/* getclarus.dev/contact — loads AFTER /site.css, which carries the real tokens,
   nav, footer and buttons lifted from the landing page. Only this page's own
   layer lives here.

   ⚠️ Never redefine :root. The design this implements hardcodes its palette in
   hex and pulls Inter from Google Fonts; both are refused. An invented hex
   palette is how /app drifted off-brand once, and two external font origins on
   the critical path is the exact latency that self-hosting Geist removed.
   Everything below is site.css tokens and the site's own font.

   ⚠️ This page NO LONGER loads legal.css. That file is shared by 21 pages, so it
   cannot be adjusted for this one, and the two-column layout uses none of its
   `.doc` rules — but it did carry two globals that every short page needs, so
   they are reproduced here rather than silently lost. */

/* ⚠️ Reserve the scrollbar gutter. Long pages like /privacy always scroll; this
   one often does not, so without it the viewport is ~15px wider here and every
   centred thing — the header included — sits a few pixels off from its
   neighbours. Carried over from legal.css. */
html { scrollbar-gutter: stable; }

/* page.css already pushes the footer down on short pages; this is the breathing
   room above it, also carried over from legal.css. */
footer { margin-top: 100px; }

/* ⚠️ NOT a <section>. site.css styles the bare element at 140px vertical
   padding for the homepage's landing sections, which would open this page a
   screen and a half down. */
.contact {
  max-width: 1060px; width: 100%; margin: 0 auto;
  padding: 88px 28px 40px;
}

.c-grid {
  display: grid; grid-template-columns: 300px 1fr; gap: 0 72px;
  align-items: start;
}

/* ── the left column: who you are writing to, and the shortcut ───────────── */
/* Sticky so the "use Settings → Feedback instead" note stays with you while you
   read the rest. ⚠️ 64px from the viewport top and NOT offset for a header,
   because the site header is not sticky: site.css:110 declares it sticky and
   :2419 re-declares `position: relative` on the same element at the same
   specificity, later, so it scrolls away like any other block. */
.c-aside { position: sticky; top: 64px; }

.c-eyebrow {
  font-family: "Geist Mono", ui-monospace, Consolas, monospace;
  font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); display: block; margin: 0 0 22px;
}
.c-title {
  font-size: clamp(34px, 4.4vw, 48px); font-weight: 600; letter-spacing: -0.03em;
  line-height: 1.05; margin: 0 0 18px; color: var(--text);
}
.c-sub {
  margin: 0; font-size: 15px; line-height: 1.7; color: var(--text-soft);
  text-wrap: pretty;
}

/* The one thing on the page that is a shortcut rather than an address, so it is
   the one thing given a gold frame. */
.c-tip {
  margin-top: 32px; padding: 16px 18px; border-radius: var(--radius);
  border: 1px solid var(--gold-soft); background: var(--gold-faint);
}
.c-tip p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--text-soft); text-wrap: pretty; }
.c-tip strong, .c-main strong { color: var(--text); font-weight: 600; }

/* ── the right column: rules between blocks, no boxes ────────────────────── */
.c-main > .c-block { padding: 36px 0 40px; border-bottom: 1px solid var(--line); }
.c-main > .c-block:first-child { border-top: 1px solid var(--line); }

.c-label {
  /* ⚠️ BLOCK. As an inline <span> the EMAIL label sat on the same line as the
     address, because .c-mail is inline-block — the other labels only looked
     right because a <p> follows them and a <p> is block anyway. */
  display: block;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--eyebrow);
}
.c-main p {
  margin: 16px 0 0; font-size: 14px; line-height: 1.75; color: var(--text-soft);
  max-width: 60ch; text-wrap: pretty;
}
.c-main p + p { margin-top: 14px; }
.c-main a { color: var(--gold); }
.c-main a:hover { color: var(--gold-bright); }

/* ── the address itself ─────────────────────────────────────────────────── */
/* The largest thing in the right column on purpose: it is what the page is for.
   The rule sweeps out from the left on hover rather than being a permanent
   underline, which at this size would read as a heading that happens to be
   ruled. */
.c-mail {
  display: inline-block; margin-top: 16px;
  font-size: clamp(22px, 3vw, 32px); font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.2; color: var(--gold); text-decoration: none;
  /* ⚠️ The address must never be the thing that makes a phone scroll sideways.
     It is 21 characters at ~32px, which overflows a 360px screen. */
  max-width: 100%; overflow-wrap: anywhere;
  transition: color .2s var(--ease);
}
.c-mail:hover { color: var(--gold-bright); }
.c-mail-u {
  display: block; height: 2px; margin-top: 5px; border-radius: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.2, .65, .3, 1);
}
.c-mail:hover .c-mail-u, .c-mail:focus-visible .c-mail-u { transform: scaleX(1); }
.c-mail:focus-visible { outline: none; color: var(--gold-bright); }

/* ── the two short columns at the foot ──────────────────────────────────── */
.c-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.c-pair > div { padding: 36px 0 0; }
.c-pair p { max-width: none; }

@media (max-width: 900px) {
  /* One column, and the aside stops sticking — a sticky block is meaningless
     once it is stacked above the content it was meant to accompany. */
  .c-grid { grid-template-columns: 1fr; gap: 0; }
  .c-aside { position: static; margin-bottom: 8px; }
  .c-main > .c-block:first-child { border-top: none; }
  .c-pair { grid-template-columns: 1fr; gap: 0; }
  .c-pair > div { padding-top: 30px; }
  .contact { padding: 56px 22px 30px; }
}
