/* coauctor.com (coauctor-site). Two typefaces, Geist and Newsreader, both
   served from this folder; nothing underlined. One look on every device, at
   the owner's word on the local preview (28 Nov 2026): the white r on a black
   page, after Resend's site, which he named as the reference: a soft light
   from above with a fine grain in it, a name that fades from white to grey,
   buttons of tinted glass, faint borders. The page no longer follows the
   device's light or dark setting. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ground: #000000;
  --white: #ffffff;
  --ink: #ededed;
  --muted: #a1a4a8;
  --faint: #80858c;
  --rule: rgb(255 255 255 / 0.08);
  --edge: rgb(255 255 255 / 0.13);
  --edge-hover: rgb(255 255 255 / 0.26);
  --field: rgb(255 255 255 / 0.03);
  --error: #f87171;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background-color: var(--ground);
  /* The light, drawn by the style alone: a pool from above that falls on the
     mark, and a faint beam from the top right corner. Over both, a fine grain
     (grain.svg), blended so that it shows in the light and leaves the black
     untouched, as on Resend's page. */
  background-image:
    url("/grain.svg"),
    radial-gradient(38rem 24rem at 50% 3rem, rgb(255 255 255 / 0.13), transparent 70%),
    linear-gradient(215deg, rgb(255 255 255 / 0.05), transparent 32rem);
  background-size: 200px 200px, auto, auto;
  background-repeat: repeat, no-repeat, no-repeat;
  background-blend-mode: overlay, normal, normal;
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: var(--white);
  background: rgb(255 255 255 / 0.22);
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
  border-radius: 4px;
}

/* The column. */

.page {
  flex: 1;
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 12vh, 7.5rem) 1rem 3rem;
}

.intro {
  text-align: center;
}

/* The mark. Its path is redrawn by site.mjs while it plays; the circles may
   travel past its box, and in the opening the word it draws is wider than
   the box, so nothing clips them, and the margin under it keeps them off the
   name. */
.mark {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 2.75rem;
  overflow: visible;
}

.mark path {
  fill: var(--white);
}

.home {
  display: block;
  width: max-content;
  margin: 0 auto;
}

.name {
  margin: 0;
  color: var(--white);
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  font-size: clamp(3rem, 12vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

/* The name fades from white to grey, as the headings on Resend's page do.
   A browser that cannot paint text with a gradient keeps it white. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .name {
    color: transparent;
    background-image: linear-gradient(170deg, var(--white) 35%, #8d9198 120%);
    -webkit-background-clip: text;
    background-clip: text;
  }
}

.line {
  max-width: 24rem;
  margin: 1.125rem auto 0;
  color: var(--muted);
  font-size: 1.1875rem;
  line-height: 1.45;
  text-wrap: balance;
}

/* The form. "Request a demo" is one button, as the start button on Resend's
   page is, and it opens into the card that holds the form. A details element
   does the opening, so it opens without the page's script too. */

.demo {
  margin-top: 2.75rem;
}

.ask:not([open]) {
  text-align: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.75rem;
  color: var(--white);
  background: linear-gradient(104deg, rgb(255 255 255 / 0.08), rgb(255 255 255 / 0.16));
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 1rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: border-color 0.15s, background-color 0.15s;
}

/* Safari draws the details element's triangle by this name only; in a rule
   of its own, so that a browser that does not know it drops only this. */
.cta::-webkit-details-marker {
  display: none;
}

.cta:hover {
  background-color: rgb(255 255 255 / 0.06);
  border-color: rgb(255 255 255 / 0.3);
}

.cta:focus-visible {
  border-radius: 1rem;
}

/* A card: the open form, and the answer pages. Open, the button becomes the
   card's title. */
.card,
.ask[open] {
  padding: 1.5rem;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.015) 45%);
  border: 1px solid var(--rule);
  border-radius: 1.5rem;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
}

.ask[open] {
  animation: arrive 0.35s ease-out;
}

.ask[open] > .cta {
  display: flex;
  justify-content: flex-start;
  min-height: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 4px;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(0.375rem);
  }
}

.form {
  margin-top: 1.25rem;
}

.field + .field {
  margin-top: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.optional {
  color: var(--faint);
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 0.875rem;
  color: var(--white);
  background: var(--field);
  border: 1px solid var(--edge);
  border-radius: 0.75rem;
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--edge-hover);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgb(255 255 255 / 0.45);
  box-shadow: 0 0 0 3px rgb(255 255 255 / 0.08);
}

.field input[aria-invalid="true"] {
  border-color: var(--error);
}

/* A browser's own autofill paints a field blue or yellow; this keeps it on
   the page's ground. In rules of their own: a browser that does not know the
   selector drops only these. */
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--white);
  caret-color: var(--white);
  box-shadow: 0 0 0 100px #111111 inset;
}

.field input:-webkit-autofill:focus {
  box-shadow: 0 0 0 100px #111111 inset, 0 0 0 3px rgb(255 255 255 / 0.08);
}

.error {
  margin: 0.375rem 0 0;
  color: var(--error);
  font-size: 0.8125rem;
}

/* The robot trap: a field no person sees or reaches with the keyboard. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.privacy {
  margin: 1.25rem 0 0;
  color: var(--faint);
  font-size: 0.8125rem;
}

.send {
  width: 100%;
  min-height: 2.75rem;
  margin-top: 1.25rem;
  padding: 0 1.5rem;
  color: var(--white);
  background: linear-gradient(104deg, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.18));
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.send:hover {
  background-color: rgb(255 255 255 / 0.06);
  border-color: rgb(255 255 255 / 0.3);
}

.send:disabled {
  opacity: 0.6;
  cursor: progress;
}

.answer {
  margin: 1rem 0 0;
}

.answer.sent {
  color: var(--white);
  font-size: 1.0625rem;
  font-weight: 500;
}

.answer.failed {
  color: var(--error);
  font-size: 0.9375rem;
}

.answer.failed a {
  color: inherit;
  font-weight: 600;
}

/* The answer pages, /sent and /not-sent, for a browser without JavaScript. */
.answer-title {
  margin: 0;
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.5;
}

.again {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
}

.again a {
  color: var(--muted);
  font-weight: 500;
}

.again a:hover {
  color: var(--white);
}

/* The footer line. */

.foot {
  padding: 2rem 1rem 2.5rem;
  color: var(--faint);
  font-size: 0.8125rem;
  line-height: 1.6;
  text-align: center;
}

.foot p {
  max-width: 46rem;
  margin: 0 auto;
  text-wrap: balance;
}

.foot a {
  color: var(--muted);
}

.foot a:hover {
  color: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
