/*
  Brand: taken from the Cambria Designer ring swatch sheets — warm charcoal band
  (#2f2925) on white, Myriad-style type. Source Sans 3 is Adobe's open-source
  Myriad cousin, self-hosted so every request stays on our domain.
*/
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --brand: #2f2925;
  --brand-ink: #ffffff;
  --brand-ink-muted: #c9c3be;
  --bg: #f7f6f5;
  --surface: #ffffff;
  --ink: #1c1917;
  --ink-muted: #5f5853;
  --line: #e4e0dc;
  --accent: #2f2925;
  --accent-ink: #ffffff;
  --accent-soft: #f0ece9;
  --danger: #b3261e;
  --success: #2e7d4f;
  --radius: 8px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px rgb(0 0 0 / 0.06);
  --font: "Source Sans 3", "Myriad Pro", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171412;
    --surface: #221e1b;
    --ink: #f0ece8;
    --ink-muted: #b0a8a1;
    --line: #3a3430;
    --accent: #f0ece8;
    --accent-ink: #2f2925;
    --accent-soft: #2e2925;
    --danger: #f2877f;
    --success: #7cc79a;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.35);
    color-scheme: dark;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Header */
.site-header {
  background: var(--brand);
  color: var(--brand-ink);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 22px;
  color: inherit;
  text-decoration: none;
}
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a {
  color: var(--brand-ink-muted);
  font-weight: 600;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--brand-ink); }
.site-nav a[aria-current="page"] { color: var(--brand-ink); border-bottom-color: currentColor; }
.site-header :focus-visible { outline-color: var(--brand-ink); }
.logo { height: 64px; width: auto; display: block; }
.brand-text {
  display: flex;
  flex-direction: column;
  padding-left: 22px;
  border-left: 1px solid rgb(255 255 255 / 0.22);
  line-height: 1.25;
}
/* Mode is the brand; its wordmark keeps the Segoe UI letter-spaced treatment. */
.wordmark {
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.1;
}
.product-sub { color: var(--brand-ink-muted); font-size: 0.95rem; margin-top: 2px; }

/* Hero */
.hero { padding: 72px 0 56px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.lede {
  max-width: 36em;
  margin: 0 0 28px;
  color: var(--ink-muted);
  font-size: 1.1rem;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 1rem var(--font);
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s, transform 0.05s;
}
.button:hover { filter: brightness(1.1); }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: 0.6; cursor: progress; }
.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.faq a, .text-link, .link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* About */
.about { padding-bottom: 72px; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.card {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card h2 {
  margin: 0 0 10px;
  color: var(--ink-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list li { padding: 7px 0; font-size: 1.1rem; font-weight: 600; }
.plain-list li + li { border-top: 1px solid var(--line); }
.contact-card p { margin: 0 0 18px; color: var(--ink-muted); }
.contact-card .contact-email { margin-top: -8px; color: var(--ink); font-weight: 600; }

/* Q&A */
.faq { padding-bottom: 72px; }
.faq h2 { margin: 0 0 16px; font-size: 1.35rem; }
.faq-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq details + details { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink-muted);
  border-bottom: 2px solid var(--ink-muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:hover { background: var(--accent-soft); }
.faq details > :not(summary) { margin: 0 22px 18px; color: var(--ink-muted); }
.faq details ul { padding-left: 20px; }

/* Footer */
.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.site-footer p { margin: 0 0 6px; }
.fineprint { font-size: 0.85rem; }

/* Contact dialog */
.contact {
  width: min(640px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 64px rgb(0 0 0 / 0.25);
}
.contact::backdrop { background: rgb(20 20 18 / 0.55); }
.contact-inner { position: relative; padding: 28px; }
.contact h2 { margin: 0 0 4px; font-size: 1.4rem; }
.hint { margin: 0 0 20px; color: var(--ink-muted); font-size: 0.9rem; }
.close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.close:hover { background: var(--accent-soft); }

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; margin-bottom: 5px; font-size: 0.9rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: 1rem var(--font);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent-soft);
  outline-offset: 0;
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.error { display: block; min-height: 0; color: var(--danger); font-size: 0.85rem; }
.error:empty { display: none; }

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.turnstile { margin: 6px 0 12px; }

.form-status { margin: 0 0 12px; color: var(--danger); font-size: 0.95rem; }
.form-status:empty { display: none; }

.actions { display: flex; justify-content: flex-end; gap: 10px; }

.contact-done { padding: 12px 4px 4px; text-align: center; }
.contact-done:focus { outline: none; }
.contact-done p { max-width: 30em; margin: 8px auto 24px; color: var(--ink-muted); }
.contact-done strong { color: var(--ink); overflow-wrap: anywhere; }
.check {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--success) 15%, transparent);
  color: var(--success);
}

@media (max-width: 560px) {
  .hero { padding: 48px 0 40px; }
  .grid { grid-template-columns: 1fr; }
  .contact-inner { padding: 24px 18px; }
  .actions { flex-direction: column-reverse; }
  .actions .button { width: 100%; }
  .site-header .wrap { gap: 10px 14px; }
  .brand { gap: 14px; }
  .site-nav {
    width: 100%;
    margin-left: 0;
    padding-top: 8px;
    border-top: 1px solid rgb(255 255 255 / 0.15);
  }
  .about-grid { grid-template-columns: 1fr; }
  .logo { height: 50px; }
  .brand-text { padding-left: 14px; }
  .wordmark { font-size: 1.45rem; }
  .product-sub { font-size: 0.85rem; }
  .hero-actions .button { width: 100%; }
}

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