/* ============================================================
   shopwright.css — Shopwright House only. Never loaded on a
   client build. Load AFTER skeleton.css.

     <link rel="stylesheet" href="brand/skeleton.css">
     <link rel="stylesheet" href="brand/shopwright.css">

   Two things this file does NOT do, deliberately:
     · no @import, and no request off theshopwright.com
     · no --brand-* token names and no .on-ink class — those names
       belong to the client placeholder layer in skeleton.css, and
       reusing them here guarantees a collision the first time a
       client build loads both files.
   ============================================================ */

/* --- fonts: self-hosted, three files, 91.9 KB --------------- */

@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-roman.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('fonts/manrope.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* Metric-matched fallbacks — this is what removes the swap jump
   and holds CLS under 0.05. Closes §17 open decision #1. */
@font-face {
  font-family: 'Fraunces Fallback';
  src: local('Georgia'), local('Times New Roman');
  size-adjust: 103%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Manrope Fallback';
  src: local('Arial'), local('Helvetica Neue');
  size-adjust: 104%;
  ascent-override: 100%;
  descent-override: 30%;
  line-gap-override: 0%;
}

/* --- tokens, §4.6 ------------------------------------------- */

:root {
  --ink:        #16150F;
  --bone:       #F4F2ED;
  --acid:       #C4F042;
  --acid-lift:  #DCF98A;  /* link hover — ink surface only */
  --acid-press: #B3E02F;  /* fill hover and press */
  --on-acid:    var(--ink);

  --font-display: Fraunces, 'Fraunces Fallback', Georgia, 'Times New Roman', serif;
  --font-ui: Manrope, 'Manrope Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Fraunces axes. WONK is gone — the axis is not in the shipped file. */
  --fraunces-display: 'SOFT' 30, 'opsz' 120;
  --fraunces-mid:     'SOFT' 25, 'opsz' 72;
  --fraunces-small:   'SOFT' 15, 'opsz' 14;
}

/* Ink is the default surface. There is no 50% step in either
   ladder — ink at 50% on bone is 3.37:1 and fails AA. */
:root,
[data-surface="ink"] {
  --surface:      var(--ink);
  --fg:           var(--bone);
  --fg-strong:    color-mix(in srgb, var(--bone) 72%, transparent);
  --fg-body:      color-mix(in srgb, var(--bone) 62%, transparent);
  --fg-quiet:     color-mix(in srgb, var(--bone) 55%, transparent);
  --line-strong:  color-mix(in srgb, var(--bone) 28%, transparent);
  --line:         color-mix(in srgb, var(--bone) 14%, transparent);
  --focus:        var(--acid);
}

[data-surface="bone"] {
  --surface:      var(--bone);
  --fg:           var(--ink);
  --fg-strong:    color-mix(in srgb, var(--ink) 72%, transparent);
  --fg-body:      color-mix(in srgb, var(--ink) 62%, transparent);
  --fg-quiet:     color-mix(in srgb, var(--ink) 62%, transparent); /* 55% fails on bone */
  --line-strong:  color-mix(in srgb, var(--ink) 28%, transparent);
  --line:         color-mix(in srgb, var(--ink) 14%, transparent);
  --focus:        var(--ink);
}

[data-surface] { background: var(--surface); color: var(--fg); }

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

/* --- type presets ------------------------------------------- */

.t-hero, .t-display, .t-title, .t-sub, .t-heading, .t-section {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.t-hero    { font-size: var(--t-hero);    font-weight: 400; line-height: var(--lh-display); font-variation-settings: var(--fraunces-display); }
.t-display { font-size: var(--t-display); font-weight: 400; line-height: var(--lh-display); font-variation-settings: var(--fraunces-display); }
.t-title   { font-size: var(--t-title);   font-weight: 400; line-height: var(--lh-heading); font-variation-settings: var(--fraunces-mid); }
.t-sub     { font-size: var(--t-sub);     font-weight: 400; line-height: var(--lh-heading); font-variation-settings: var(--fraunces-mid); }
.t-heading { font-size: var(--t-heading); font-weight: 500; line-height: var(--lh-heading); font-variation-settings: var(--fraunces-mid); }
.t-section { font-size: var(--t-section); font-weight: 500; line-height: var(--lh-heading); font-variation-settings: var(--fraunces-small); }

.lede { font-size: var(--t-body-lg); line-height: 1.6; color: var(--fg-strong); max-width: var(--measure); }
.body { color: var(--fg-body); }
.small { font-size: var(--t-small); line-height: 1.6; color: var(--fg-body); }
.label { color: var(--fg-body); }
.mono { color: var(--fg-body); }

a.prose-link {
  color: var(--fg-body);
  text-decoration: underline;
  transition: color var(--dur-interaction) var(--ease-interaction);
}
a.prose-link:hover { color: var(--fg); }

/* --- buttons ------------------------------------------------ */

.btn--primary {
  background: var(--acid);
  color: var(--on-acid);
  border-color: var(--acid);
}
.btn--primary:hover { background: var(--acid-press); border-color: var(--acid-press); }
.btn--primary:active { background: var(--acid-press); }
.btn--primary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 0;
  box-shadow: 0 0 0 2px var(--surface);
}

.btn--secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
}
.btn--secondary:hover { border-color: var(--fg); }

/* --- the mark and wordmark ---------------------------------- */

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
  text-decoration: none;
  color: var(--fg);
  font-size: clamp(30px, 1.6vw + 22px, 46px);
}
.mark { width: 1.05em; height: 1.05em; flex: none; color: currentColor; }
.wordmark {
  font-family: var(--font-display);
  font-variation-settings: var(--fraunces-mid);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
  font-size: 1em;
}
.footer .lockup { font-size: 28px; }

/* --- nav ---------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
  padding-block: var(--sp-6);
}
.nav .lockup { font-size: clamp(30px, 1.6vw + 22px, 46px); }
.nav__links { display: flex; align-items: center; gap: var(--sp-2); }
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-body);
  text-decoration: none;
  transition: color var(--dur-interaction) var(--ease-interaction);
}
.nav__link:hover { color: var(--fg); }
.nav__link[aria-current="page"] { color: var(--fg); }
.nav__link--cta { font-weight: 600; color: var(--fg); padding-right: 0; }

@media (max-width: 719px) {
  .nav__link--hide-narrow { display: none; }
}

/* --- the title-block register — Shopwright House only -------
   Mono, 12–13px/1.9, for a number that should look measured.
   This is the signature. It does not travel to client builds. */

.title-block {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: var(--hairline) solid var(--line);
}
.title-block__num {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--fg-body);
  flex: none;
}
@media (max-width: 719px) {
  .title-block { flex-direction: column; gap: var(--sp-2); }
}

.spec-strip {
  font-family: var(--font-mono);
  font-size: var(--t-mono);
  line-height: var(--lh-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-body);
  border-top: var(--hairline) solid var(--line);
  border-bottom: var(--hairline) solid var(--line);
  padding-block: var(--sp-4);
  max-width: none;
}

/* --- cards -------------------------------------------------- */

.card:hover { border-color: var(--line-strong); }
.card__body { color: var(--fg-body); max-width: var(--measure-column); }
.card--always { border-color: color-mix(in srgb, var(--acid) 35%, transparent); }
.card--always:hover { border-color: color-mix(in srgb, var(--acid) 35%, transparent); }

/* --- the ladder --------------------------------------------- */

.rung { display: flex; flex-direction: column; gap: var(--sp-6); }
.rung__price {
  font-family: var(--font-display);
  font-variation-settings: var(--fraunces-mid);
  font-weight: 500;
  font-size: var(--t-heading);
  letter-spacing: -0.02em;
  line-height: var(--lh-heading);
}
.rung__flag { font-family: var(--font-ui); font-weight: 600; font-size: 15px; color: var(--fg); }
.rung__list { display: flex; flex-direction: column; gap: var(--sp-3); }
.rung__list li {
  position: relative;
  padding-left: var(--sp-5);
  font-size: var(--t-small);
  line-height: 1.6;
  color: var(--fg-body);
  max-width: var(--measure-column);
}
.rung__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--fg-quiet);
}

/* --- pull-quote — one per page, ink surface only ------------ */

.pullquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--t-sub);
  line-height: var(--lh-heading);
  letter-spacing: -0.02em;
  color: var(--acid);
  max-width: 760px;
  text-wrap: pretty;
  margin: 0;
}
[data-surface="bone"] .pullquote { color: var(--fg); }

/* --- lists of the "we don't build" kind --------------------- */

.plain-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.plain-list li {
  position: relative;
  padding-left: var(--sp-6);
  color: var(--fg-body);
  max-width: var(--measure);
}
.plain-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--fg-quiet);
}

/* --- forms -------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: var(--sp-2); max-width: var(--measure-column); }
.field__label { color: var(--fg-body); }
.field-input {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}
.field-input:hover { border-color: var(--line-strong); }
.field-input:focus { border-color: var(--fg); }
.field-input::placeholder { color: var(--fg-quiet); }
.field-input[aria-invalid="true"] { border-color: var(--fg); border-width: 2px; }

.field__message {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg);
}

.select-wrap { position: relative; display: block; }
.select-wrap select { appearance: none; padding-right: 44px; }
.select-wrap .chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  margin-top: -12px;
  width: 24px;
  height: 24px;
  pointer-events: none;
  color: var(--fg-body);
}

/* Server redirects to /start?sent#sent — the fragment reveals the
   confirmation with no JavaScript on the page. */
.form-success:not(:target) { display: none; }
.form-success {
  border-left: 2px solid var(--acid);
  padding-left: var(--sp-5);
  color: var(--fg);
  max-width: var(--measure);
}

/* --- the build page: five stages in the drafting register --- */

.stage { display: flex; flex-direction: column; gap: var(--sp-6); }
.stage__head { display: flex; align-items: center; gap: var(--sp-4); }
.stage__head .rule { flex: 1; }
.stage__body { display: flex; flex-direction: column; gap: var(--sp-3); max-width: var(--measure); }

.shoot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
  margin-top: var(--sp-6);
}
@media (max-width: 1135px) { .shoot { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 719px)  { .shoot { grid-template-columns: minmax(0, 1fr); } }
.shoot__col { display: flex; flex-direction: column; gap: var(--sp-4); }

.band--closing { padding-block: var(--sp-24); }

/* --- the hero drawing — Shopwright House only ---------------
   An axonometric projection of the mark, inked by scroll. Volume is
   carried entirely by line weight: front elevation at full stroke,
   projection lines at 0.5, far plane at 0.38. One colour, three
   weights — no gradient, no shadow, no fill.

   The three wipes are transform-scaled clip rects driven by --p1/--p2
   /--p3, so the compositor does the work and no path geometry is ever
   repainted. At rest --p1 is 1: the flat elevation is already drawn on
   the first painted frame, so nothing above the fold animates on load. */

.hero-drawing {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100vw;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-drawing__svg {
  position: absolute;
  left: 50%;
  top: -12vw;
  width: 115vw;
  max-width: 1800px;
  aspect-ratio: 122 / 108;
  height: auto;
  transform: translateX(-50%);
  color: var(--fg);
  opacity: 0.14;
  --p1: 1;
  --p2: 0;
  --p3: 0;
}
.hero-drawing__wipe-1 { transform: scaleX(var(--p1, 0)); transform-origin: 14px 0; }
.hero-drawing__wipe-2 { transform: scaleX(var(--p2, 0)); transform-origin: 14px 0; }
.hero-drawing__wipe-3 { transform: scaleX(var(--p3, 0)); transform-origin: 14px 0; }

/* Each layer fades up across its own range as well as wiping, so a line
   arrives rather than appearing. Without this the clip edge hands you a
   full-strength stroke on the first pixel it uncovers, which pops. */
.hero-drawing__layer-2 { opacity: var(--p2, 0); }
.hero-drawing__layer-3 { opacity: var(--p3, 0); }

body { position: relative; }
body > header,
body > main,
body > footer { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero-drawing__svg { --p1: 1; --p2: 1; --p3: 1; }
  .hero-drawing__layer-2,
  .hero-drawing__layer-3 { opacity: 1; }
}

/* --- footer ------------------------------------------------- */

.footer {
  border-top: var(--hairline) solid var(--line);
  padding-block: var(--sp-12) var(--pad-bottom);
}
.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-12);
  flex-wrap: wrap;
}
.footer__links { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer__link {
  font-size: var(--t-small);
  color: var(--fg-body);
  text-decoration: none;
  transition: color var(--dur-interaction) var(--ease-interaction);
}
.footer__link:hover { color: var(--fg); }

/* --- full-bleed surface flip: starts and ends at an edge ---- */

.bleed { width: 100%; }
