/* humanhairwigsupply.com · site.css — site-wide layer (_DESIGN-SYSTEM.md §0)
   tokens · fonts · reset · type scale (modulus 1.414) · section shell · buttons · .brief-sheet · .item-title / .item-link · .spec-rule · marks · form
   Page layouts live in each page's section <style> blocks, prefixed with #section-id. Corners are square everywhere. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("/assets/fonts/cormorant-garamond-var-latin.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-var-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #3B2A20;
  --ink-deep: #2A1E17;
  --bronze: #B08D57;
  --parchment: #F1E8D6;
  --vellum: #F8F3EA;
  --ink-2: #6B5646;
  --on-ink: #E9DECB;
  --rule: #CBB894;

  --font-head: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  /* type scale · modulus 1.414 (desktop / mobile) */
  --fs-1: clamp(2.75rem, 1.6rem + 4.4vw, 4.75rem);      /* 76 / 44 */
  --fs-2: clamp(2.125rem, 1.5rem + 2.4vw, 3.375rem);    /* 54 / 34 */
  --fs-3: clamp(1.6875rem, 1.35rem + 1.3vw, 2.375rem);  /* 38 / 27 */
  --fs-4: clamp(1.375rem, 1.2rem + 0.6vw, 1.6875rem);   /* 27 / 22 */
  --fs-5: clamp(1.125rem, 1.09rem + 0.12vw, 1.1875rem); /* 19 / 18 */
  --fs-6: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);     /* 17 / 16 */
  --fs-7: 0.8125rem;                                    /* 13 */

  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
  --sec: 72px;
  --w-narrow: 680px; --w-std: 1080px; --w-wide: 1400px;
  --gutter: clamp(20px, 4vw, 48px);
  --sticky-top: 136px;
}
@media (max-width: 760px) { :root { --sec: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 112px; }
body {
  margin: 0; background: var(--vellum); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-6); line-height: 1.7;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: inherit; margin: 0; text-wrap: balance; letter-spacing: 0; }
h1 { font-size: var(--fs-1); font-weight: 500; line-height: 1.05; }
h2 { font-size: var(--fs-2); font-weight: 500; line-height: 1.05; }
h3 { font-size: var(--fs-4); font-weight: 600; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl { margin: 0; padding: 0; }
dd { margin: 0; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.on-ink :focus-visible { outline-color: var(--bronze); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--ink); color: var(--parchment); padding: 10px 14px; text-decoration: none; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* section shell · backgrounds (light bands carry a faint same-hue gradient) */
.sec { padding-block: var(--sec); position: relative; }
.wrap { width: 100%; max-width: calc(var(--w-std) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: calc(var(--w-wide) + 2 * var(--gutter)); }
.wrap--narrow { max-width: calc(var(--w-narrow) + 2 * var(--gutter)); }
.bg-vellum { background-color: var(--vellum); background-image: linear-gradient(180deg, rgba(241,232,214,0) 0%, rgba(241,232,214,.45) 100%); }
.bg-parchment { background-color: var(--parchment); background-image: linear-gradient(180deg, rgba(248,243,234,.35) 0%, rgba(248,243,234,0) 100%); }
.bg-ink { background-color: var(--ink); color: var(--on-ink); }
.bg-photo { background-color: var(--ink-deep); background-size: cover; background-position: center; color: var(--on-ink); }
.bg-photo .scrim { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.bg-photo > .wrap { position: relative; z-index: 1; }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-photo h1, .bg-photo h2, .bg-photo h3 { color: #F6EEDF; }

.lede { font-size: var(--fs-5); line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.on-ink .lede { color: var(--on-ink); }
.muted { color: var(--ink-2); }
.on-ink .muted { color: #CDBFA8; }
.field-name { font-family: var(--font-body); font-weight: 600; font-size: var(--fs-7); line-height: 1.4; letter-spacing: 0; text-transform: none; padding-bottom: 4px; border-bottom: 1px solid var(--bronze); display: inline-block; }
.strong-line { font-family: var(--font-head); font-size: var(--fs-4); font-weight: 600; line-height: 1.3; }
.measure { max-width: 64ch; }

/* buttons — square, 52 high */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 0;
  font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1;
  text-decoration: none; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--ink); color: var(--parchment); border: 1px solid var(--ink); }
.btn-primary:hover { background: var(--parchment); color: var(--ink); }
.on-ink .btn-primary { background: var(--bronze); color: var(--ink-deep); border-color: var(--bronze); }
.on-ink .btn-primary:hover { background: var(--ink-deep); color: var(--bronze); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--bronze); }
.btn-secondary:hover { background: var(--parchment); }
.on-ink .btn-secondary { color: var(--on-ink); border-color: var(--bronze); }
.on-ink .btn-secondary:hover { background: rgba(176,141,87,.16); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.text-link { font-weight: 500; color: inherit; text-decoration: underline; text-decoration-color: var(--bronze); text-underline-offset: 5px; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* product / style / field names are headings */
.item-title { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-4); line-height: 1.2; color: inherit; letter-spacing: 0; text-transform: none; }
.item-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 600; font-size: 15px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--bronze); padding-bottom: 3px; }
.item-link:hover { border-bottom-width: 2px; padding-bottom: 2px; }
.item-link svg { width: 14px; height: 14px; }

/* agreed / open · matches / needs change marks */
.mark { display: inline-block; flex: none; width: 9px; height: 9px; border: 1px solid var(--bronze); background: var(--bronze); border-radius: 50%; vertical-align: middle; }
.mark--open { background: transparent; }

/* spec rule table: horizontal hairlines only */
.spec-rule { width: 100%; border-collapse: collapse; font-size: var(--fs-6); }
.spec-rule th, .spec-rule td { text-align: left; vertical-align: top; padding: 13px 16px 13px 0; border-bottom: 1px solid var(--rule); }
.spec-rule thead th { font-weight: 600; font-size: var(--fs-7); border-bottom-color: var(--bronze); }
.spec-rule tbody th { font-weight: 600; }
.on-ink .spec-rule th, .on-ink .spec-rule td { border-bottom-color: rgba(203,184,148,.32); }

/* brief sheet — the motif (only where brief content is carried) */
.brief-sheet { background: var(--parchment); color: var(--ink); border: 1px solid var(--rule); padding: 28px 30px 30px; }
.brief-sheet__head { display: grid; gap: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--bronze); }
.brief-sheet__name { font-family: var(--font-head); font-weight: 500; font-size: 22px; line-height: 1.2; }
.brief-sheet__note { font-size: var(--fs-7); color: var(--ink-2); }
.brief-row { display: grid; grid-template-columns: minmax(0,4fr) minmax(0,7fr) 16px; gap: 14px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.5; }
.brief-row__field { font-weight: 600; font-size: var(--fs-7); }
.brief-row__need { grid-column: 2 / 4; font-size: var(--fs-7); color: var(--ink-2); }

/* form */
.field { display: grid; gap: 6px; }
.field > label { font-weight: 600; font-size: var(--fs-7); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 0;
  font: inherit; font-size: 15px; color: var(--ink); background: var(--vellum);
}
.field textarea { min-height: 92px; resize: vertical; field-sizing: content; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.field:has(:user-invalid) input, .field:has(:user-invalid) select, .field:has(:user-invalid) textarea { border-color: var(--bronze); border-bottom-width: 2px; }
.field .err { display: none; font-size: var(--fs-7); color: var(--ink); }
.field:has(:user-invalid) .err { display: block; }
.field .hint { font-size: var(--fs-7); color: var(--ink-2); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice { display: inline-flex; gap: 8px; align-items: center; min-height: 40px; cursor: pointer; font-weight: 500; font-size: 15px; }
.choice input { width: 16px; height: 16px; accent-color: var(--ink); margin: 0; }
.hp-field { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-size: 15px; }
.form-status.is-error { color: #8A2E1C; font-weight: 600; }
.form-status.is-ok { color: var(--ink); font-weight: 600; }

/* dark/light boundaries: a right-angle step cut in the dark section's own bottom edge */
.cut-r { clip-path: polygon(0 0, 100% 0, 100% 100%, 62% 100%, 62% calc(100% - 32px), 0 calc(100% - 32px)); margin-bottom: -32px; z-index: 1; }
.cut-l { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 32px), 38% calc(100% - 32px), 38% 100%, 0 100%); margin-bottom: -32px; z-index: 1; }
.after-cut { padding-top: calc(var(--sec) + 32px); }
@media (max-width: 760px) {
  .cut-r, .cut-l { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), 50% calc(100% - 20px), 50% 100%, 0 100%); margin-bottom: -20px; }
  .after-cut { padding-top: calc(var(--sec) + 20px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
