/* ==========================================================================
   base.css — global element styling + helpers. Loaded on every page,
   after reset, before nav/buttons. No component/section styles here.
   Element styling matches the preview's RESET/BASE block.
   ========================================================================== */

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  /* the dark is never flat — faint warm bleed at the corners (from preview) */
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(232, 178, 89, 0.06), transparent 60%),
    radial-gradient(80% 60% at 100% 110%, rgba(168, 50, 43, 0.05), transparent 60%);
  background-attachment: fixed;
  /* viewport-fit=cover safe-area hooks */
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
}

/* The "sealed" state: scroll-lock is applied here but gated to no-preference
   in reveal.css so reduced-motion users are never trapped. */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
  font-optical-sizing: auto; /* let large Fraunces cuts open up */
}

:focus-visible {
  outline: 2px solid var(--grace);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) {
  outline: none;
}

::selection {
  background: var(--grace);
  color: var(--ink);
}

/* ---- layout helpers -------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: max(var(--gutter), var(--safe-l));
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0.5rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--shadow);
  color: var(--bone);
  border: 1px solid var(--grace);
  border-radius: var(--radius);
}
.skip-link:focus {
  top: 0.5rem;
}

/* ---- shared "engraved plate" eyebrow (verbatim from preview) --------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--grace);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--grace), transparent);
}
.eyebrow.center {
  justify-content: center;
}
.eyebrow.center::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(270deg, var(--grace), transparent);
}

/* ---- shared section head (eyebrow + h2 + intro p) -------------------- */
/* Reused by #how, the work, and mission sections. Ported from the preview. */
.section-head {
  max-width: 60ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2 {
  font-size: var(--step-3);
  margin-top: 1rem;
  font-weight: 300;
}
.section-head p {
  margin-top: 0.7rem;   /* ease the intro off the big H2 */
  color: var(--bone-dim);
  font-size: var(--step-1);
  font-family: var(--font-display);
  font-weight: 300;
}

/* ---- blindfold-band divider (hairline + short centered gold segment) -- */
.band {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--veil) 18%, var(--veil) 82%, transparent);
  position: relative;
}
.band::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 1px;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, var(--grace), transparent);
}

/* ---- content-page shells (shared by /services/, /faq/, /accessibility/) ---- */
.page-section {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--nav-h) + clamp(1.5rem, 5vw, 3rem));
  padding-bottom: clamp(3rem, 9vw, 7rem);
}

/* breadcrumb */
.crumb {
  display: flex;
  align-items: center;
  gap: 0.6ch;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  color: var(--bone-faint);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.crumb a {
  color: var(--bone-dim);
  transition: color 200ms ease;
}
.crumb a:hover {
  color: var(--grace);
}
.crumb__sep {
  color: var(--grace);
  opacity: 0.6;
}

/* page intro (eyebrow + Fraunces headline + lede) */
.page-intro {
  max-width: 60ch;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.page-intro__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-3);
  line-height: 1.04;
  margin-top: 1rem;
  color: var(--bone);
}
.page-intro__title em {
  font-style: italic;
  color: var(--grace);
}
.page-intro__lede {
  margin-top: 1.1rem;
  color: var(--bone-dim);
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-1);
  line-height: 1.5;
}
.page-intro__lede strong {
  color: var(--bone);
  font-weight: 400;
}

/* small contextual cross-link (e.g. "Questions about the process? → /faq/") */
.inline-more {
  margin-top: 1.1rem;
  font-family: var(--font-body);
  font-size: var(--step--1);
  letter-spacing: 0.02em;
}
.inline-more a {
  color: var(--grace);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.inline-more a:hover {
  color: var(--grace-hi);
}

/* ---- shared closing CTA (used by /faq/, /contact/, /gallery/) -----------
   ONE definition so the close pattern can't drift. /about/'s close is an
   intentionally distinct centered+moth treatment and does NOT use this. */
.page-close {
  margin-top: clamp(3rem, 8vw, 5rem);
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--hairline);
  text-align: center;
}
.page-close__line {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-2);
  color: var(--bone);
  margin-bottom: 1.4rem;
}
.page-close__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;   /* keep mixed-size buttons (btn vs btn--sm) tidy */
  gap: 1rem;
}
