/* The Abide Collective
   Brand tokens from content/brand/README.md (Gini's brand, landed 2026-08-03).
   These are the real values — no longer placeholders. */

:root {
  /* ---- brand palette (raw) ---- */
  --cream:     #FBF7EF;  /* page background */
  --cream-2:   #F2E9D8;  /* alternating section background */
  --cream-3:   #EDE2CC;  /* contact / emphasis section background */
  --ink:       #2E2A22;  /* headings, dark section background */
  --ink-soft:  #5B5546;  /* body copy — 6.94:1 on cream */
  --gold:      #A97C50;  /* botanical stroke, decorative rules */
  --gold-dark: #8A6038;  /* eyebrows, CTAs, hover — 5.16:1 on cream */
  --gold-pale: #D9BB92;  /* leaf fill, captions on dark */
  --sage:      #767F5E;  /* declared in the brand, currently unused */
  --line:      #E2D5BC;  /* hairlines and dividers */

  /* ---- semantic aliases ----
     Markup references these, so a palette change stays in one place. */
  --bg:        var(--cream);
  --surface:   var(--cream-2);
  --text:      var(--ink-soft);
  --heading:   var(--ink);
  --accent:    var(--gold-dark);

  /* ---- type ----
     Playfair Display (display) + Jost (body) + Fraunces italic (accent).
     Supersedes the Playfair + Inter pairing taken from the old Carrd site —
     Inter is not part of this brand. See audit/findings.md. */
  --font-sans:    Jost, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-accent:  Fraunces, Georgia, "Times New Roman", serif;

  /* ---- scale ---- */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1:  clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  --step-2:  clamp(1.8rem, 1.4rem + 1.8vw, 3rem);

  --wrap: 68rem;
  --gap: clamp(1rem, 3vw, 2.5rem);
}

/* No dark-mode block.
   The brand is a specific warm, light palette; Gini has not specified a dark
   variant, and inventing one would mean authoring six brand colours she never
   chose. The scaffold's old dark block was written against placeholder values,
   so nothing real is lost. If a dark mode is wanted, it is a brand decision
   for Gini, not a CSS one. */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img, svg { max-width: 100%; height: auto; display: block; }

body {
  background: var(--bg);
  color: var(--text);
  font: var(--step-0)/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--heading);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: var(--step-2); }
h2 { font-size: var(--step-1); }

/* Small caps-ish label above a heading. */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* Fraunces italic — the voice that carries the script feel of the logo
   into running text. Signatures, captions, pull quotes. */
.accent {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--ink-soft);
}

a { color: inherit; }
a:focus-visible, .btn:focus-visible, .skip-link:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 3px;
}

.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--cream); color: var(--ink);
  padding: 0.75rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; }

/* ---------- header ----------
   No hamburger and no JS. Four short links simply wrap onto their own row on
   narrow screens. A toggle would need scripting to open, which would break the
   site's navigation entirely with JS disabled — the exact failure in the mockup. */
.site-header { border-bottom: 1px solid var(--line); padding-block: 1rem; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem 1.5rem; flex-wrap: wrap;
}
.brand { display: block; text-decoration: none; }
.brand img { width: 9.5rem; height: auto; }

.nav {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.75rem 1.75rem; list-style: none; margin: 0; padding: 0;
}
/* :not(.btn) matters. A bare `.nav a` colour rule outscores `.btn` on specificity
   and silently repaints the button's label to --ink-soft on --gold-dark — 1.35:1,
   effectively invisible. Scoping the selector leaves the button's own colour intact. */
.nav a:not(.btn) {
  text-decoration: none; color: var(--ink-soft);
  font-size: var(--step--1); letter-spacing: 0.04em; text-transform: uppercase;
}
.nav a:not(.btn):hover { color: var(--gold-dark); }

.lede { font-size: var(--step-1); color: var(--ink-soft); }

/* Primary CTA.
   Resting state is --gold-dark, NOT --gold. White on --gold measures 3.69:1 and
   fails WCAG AA; --gold-dark reaches 5.51:1. This is the site's main conversion
   element, so it is not a place to lose contrast for half a shade of warmth.
   See design/mockups/2026-08-03-gini/README.md. */
.btn {
  display: inline-block; margin-top: 1.5rem;
  background: var(--gold-dark); color: #fff;
  padding: 0.75rem 1.5rem; border-radius: 2px; text-decoration: none;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background .25s ease;
}
.btn:hover { background: var(--ink); }

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

.btn--outline {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--cream); }
.btn--sm { margin-top: 0; padding: 0.55rem 1.1rem; }

/* ---------- section bands ---------- */
.band { padding-block: clamp(3.5rem, 8vw, 6.25rem); }
.band--soft   { background: var(--cream-2); }
.band--accent { background: var(--cream-3); }
.band--dark   { background: var(--ink); color: #D9D3C4; }   /* 9.57:1 */
.band--dark h2 { color: var(--cream); }
.band--dark .eyebrow { color: var(--gold-pale); }           /* 7.80:1 on ink */

/* --gold-dark clears AA on --cream (5.16) and --cream-2 (4.57), but lands at 4.29
   on the deeper --cream-3 — under the 4.5 bar. --ink-soft reaches 5.77 there and
   is still an eyebrow: the letterspacing and caps carry the role, not the hue. */
.band--accent .eyebrow { color: var(--ink-soft); }

.band-head { max-width: 40rem; margin: 0 auto clamp(2rem, 5vw, 3.5rem); text-align: center; }
.band-head h2 { margin-bottom: 0; }
.band-head .eyebrow { margin-bottom: 0.75rem; }

/* Botanical rule echoing the sprig in the logo. Gini's signature device. */
.divider { display: flex; justify-content: center; color: var(--gold); padding-block: 0.5rem; }
.divider svg { display: block; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 4.5rem) clamp(2rem, 5vw, 3rem); }
.hero-inner { max-width: 52rem; text-align: center; }
.hero h1 { margin-bottom: 0; }
.hero .eyebrow { margin-bottom: 1.25rem; }
.hero .lede { max-width: 36rem; margin-inline: auto; }

.hero-medallion { margin: 0 auto 1.75rem; width: 190px; height: 190px; }
.hero-medallion img {
  width: 100%; height: 100%; object-fit: cover;
  background: #fff; border-radius: 50%;
  box-shadow: 0 18px 40px -18px rgba(169, 124, 80, 0.35);
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: center; margin-top: 2rem;
}
.hero-actions .btn { margin-top: 0; }
.hero-locales { margin-top: 2.5rem; font-size: var(--step-0); }

/* ---------- about ---------- */
.about { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 52rem) {
  .about { grid-template-columns: 0.85fr 1.15fr; }
}
.about-portrait { margin: 0; max-width: 22rem; }
.about-portrait img { border-radius: 2px; box-shadow: 0 30px 60px -30px rgba(46, 42, 34, 0.35); }
.about-copy h2 { margin-block: 0.5rem 1rem; }
.about-copy p + p { margin-top: 1rem; }
.signature { font-size: var(--step-1); color: var(--gold-dark); margin-top: 1.75rem; }

/* ---------- services ----------
   The 1px gaps let --line show through as hairline rules between cards. Purely
   decorative at 1.36:1, so each card also carries its own fill. */
.services {
  display: grid; gap: 1px; margin: 0; padding: 0; list-style: none;
  background: var(--line); border: 1px solid var(--line);
  grid-template-columns: 1fr;
}
@media (min-width: 40rem)  { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem)  { .services { grid-template-columns: repeat(3, 1fr); } }

.service { background: var(--cream); padding: clamp(1.5rem, 3vw, 2.25rem); }
.band--soft .service { background: var(--cream-2); }
.service h3 { font-size: var(--step-1); margin: 0.4rem 0 0.6rem; }
.service p { margin: 0; font-size: var(--step--1); }
.service-num {
  font-family: var(--font-accent); font-style: italic;
  color: var(--gold-dark); font-size: var(--step--1); margin: 0;
}

.tags {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
  list-style: none; margin: 2.25rem 0 0; padding: 0;
}
.tags li {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.5rem 1.1rem; font-size: var(--step--1); color: var(--ink-soft);
}

/* ---------- credentials ---------- */
.credentials { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 52rem) {
  .credentials { grid-template-columns: 1fr auto; }
}
.credentials-copy { max-width: 28rem; }
.credentials-copy h2 { margin-block: 0.5rem 0.75rem; }
.credentials-copy p { margin: 0; }
.badges { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.badges img { width: 15rem; max-width: 100%; border-radius: 6px; }

/* ---------- community ---------- */
.community { margin: 0; }
.community img { width: 100%; border-radius: 2px; }
.community figcaption { margin-top: 0.85rem; text-align: center; font-size: var(--step--1); }

/* ---------- contact ---------- */
.contact { text-align: center; max-width: 46rem; }
.contact h2 { margin-block: 0.75rem 0; font-size: var(--step-2); }
.contact .lede { max-width: 34rem; margin-inline: auto; }
.contact-links {
  display: flex; flex-wrap: wrap; gap: 1.75rem; justify-content: center;
  list-style: none; margin: 2.75rem 0 0; padding: 0;
  font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.06em;
}
.contact-links a { color: var(--ink-soft); text-decoration: none; }
.contact-links a:hover { color: var(--gold-dark); text-decoration: underline; }

/* ---------- inquiry form ----------
   Replaces the mailto-only CTA. Two columns on wide screens, one on narrow.
   Sits on --cream-3 (the .band--accent background), so field surfaces use
   --cream to stay distinguishable from the band behind them. */
.inquiry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.25rem;
  margin-top: 2.5rem;
  text-align: left;
}
@media (max-width: 40rem) {
  .inquiry { grid-template-columns: minmax(0, 1fr); }
}
.field--full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  /* --ink-soft on --cream-3 is 6.1:1 — comfortably past AA. */
  color: var(--ink-soft);
}
/* The asterisk is decorative for sighted users; `required` carries the real
   semantics for assistive tech, which is why the span is aria-hidden in the
   markup. --gold-dark on --cream-3 is 4.7:1, so it passes AA on its own rather
   than relying on the label text beside it. */
.req { color: var(--gold-dark); }

/* "(optional)" is lowercase and unemphasised — it should read as reassurance
   that the field can be skipped, not as another label competing for attention. */
.optional {
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.75;
}

.inquiry input,
.inquiry select,
.inquiry textarea {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--gold);
  border-radius: 2px;
  padding: 0.7rem 0.8rem;
  width: 100%;
}
.inquiry textarea { resize: vertical; min-height: 8rem; }

/* The select's native chevron is a grey system control that reads as borrowed
   from the operating system rather than from this brand. Replaced with a
   Playfair-weight chevron in --gold-dark.

   The colour is hardcoded because a data: URI is a separate document and cannot
   see CSS custom properties or currentColor — so if --gold-dark ever changes in
   content/brand/README.md, this hex has to change with it. It is the one place
   in this stylesheet where a token value is duplicated. */
.inquiry select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%238A6038' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  /* Room for the chevron so a long option label never runs underneath it. */
  padding-right: 2.6rem;
}

/* The placeholder option is not a value, so it should not look like one. Muted
   only while it is the current selection — pick a real service and the text goes
   to full --ink like every other field.

   :has() is a progressive enhancement: browsers without it simply show the
   placeholder in normal ink, which is exactly today's behaviour. */
.inquiry select:has(option[value=""]:checked) { color: var(--ink-soft); }

/* Not all selects are on the accent band — the arrow needs the same treatment
   wherever the control sits, so keep this rule with the control, not the band. */
@media (forced-colors: active) {
  /* In forced-colours mode the custom arrow is dropped and the native one
     returns, which is the correct outcome — the OS is deliberately overriding
     author styling for legibility. */
  .inquiry select { appearance: auto; background-image: none; padding-right: 0.8rem; }
}

/* Focus has to be visible on a form more than anywhere else on the site — it is
   the only thing telling a keyboard user which field they are typing into. */
.inquiry input:focus-visible,
.inquiry select:focus-visible,
.inquiry textarea:focus-visible {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
  border-color: var(--gold-dark);
}

.form-actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.9rem 1.25rem; margin: 0.5rem 0 0;
}
.form-actions .btn { margin-top: 0; }
.form-note { font-size: var(--step--1); color: var(--ink-soft); }
.form-note a { color: var(--ink-soft); }
.form-note a:hover { color: var(--gold-dark); }

/* Honeypot. Off-screen rather than display:none — some bots skip fields that
   are explicitly hidden, and the point is that they DO fill this one in. */
.hp {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2rem;
  color: var(--ink-soft);
  font-size: var(--step--1);
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  align-items: center; justify-content: space-between;
}
.footer-inner p { margin: 0; }
.footer-tagline { font-size: var(--step-0); }
