/* RŌZ stylist portal — shared base. Tokens mirror RŌZ Design System V3.1
   (design/exports/roz-design-system-v3-reporting-handoff-2026-05-14/roz_v3.1/colors_and_type.css).
   Fonts are self-hosted (Cardo + Inter as the Neue Haas Unica fallback). */
/* fonts.css is linked from each page (not @import-ed) so the font files are discovered without a CSS round-trip. */

:root {
  --roz-black: #333331;
  --roz-white: #FDFDF7;
  --roz-seaglass: #A9BAB6;
  --roz-dew: #F5F3EE;
  --roz-overlay: rgba(51, 51, 49, 0.5);
  --roz-stroke: #CCCCCB;
  --roz-muted: #6E6E6B;          /* V3.1 muted #999997 fails 4.5:1 on Dew for body text; darker step proposed for small text */
  --roz-clay: #C1886C;
  --roz-spruce: #134852;
  --roz-error: #8C4F33;          /* proposal: Clay darkened to pass AA; errors are a deferred V3.1 pattern */

  --ff-serif: "Cardo", Georgia, "Times New Roman", serif;
  --ff-sans: "Neue Haas Unica", "Inter", "Helvetica Neue", Arial, sans-serif;

  --ls-caps: 0.07em;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 160ms;
  --dur-med: 280ms;
  --dur-slow: 520ms;

  --gutter: clamp(24px, 5.5vw, 80px);
  --nav-h: 67px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--roz-dew);
  color: var(--roz-black);
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--ff-serif); font-weight: 400; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--roz-seaglass); color: var(--roz-black); }
input, textarea { caret-color: var(--roz-black); }
:focus-visible { outline: 2px solid var(--roz-black); outline-offset: 3px; }
html { scrollbar-color: var(--roz-seaglass) var(--roz-dew); }

.wordmark { font-family: var(--ff-serif); font-size: 26px; letter-spacing: 0.15em; line-height: 1; text-decoration: none; padding-left: 0.15em; }
.caps { font-family: var(--ff-sans); font-size: 12px; font-weight: 500; letter-spacing: var(--ls-caps); text-transform: uppercase; line-height: 1.4; }
.muted { color: var(--roz-muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--roz-black); color: var(--roz-white); padding: 12px 16px; }
.skip:focus { top: 12px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  background: var(--roz-dew);
  border-bottom: 1px solid var(--roz-stroke);
}
.nav__left { justify-self: start; }
.nav__right { justify-self: end; }
.nav a.caps { text-decoration: none; color: var(--roz-muted); transition: color var(--dur-fast) var(--ease); }
.nav a.caps:hover { color: var(--roz-black); }
.nav--clear { background: transparent; border-bottom-color: transparent; color: var(--roz-white); position: absolute; left: 0; right: 0; }
.nav--clear a.caps { color: var(--roz-white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; padding: 14px 28px;
  border: 1px solid var(--roz-black); border-radius: 0; background: transparent; color: var(--roz-black);
  font-family: var(--ff-sans); font-size: 13px; font-weight: 500; letter-spacing: var(--ls-caps); text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn:hover { background: var(--roz-black); color: var(--roz-white); }
.btn:active { background: #1f1f1e; }
.btn--solid { background: var(--roz-black); color: var(--roz-white); }
.btn--solid:hover { background: var(--roz-seaglass); color: var(--roz-black); border-color: var(--roz-seaglass); }
.btn--light { border-color: var(--roz-white); color: var(--roz-white); }
.btn--light:hover { background: var(--roz-white); color: var(--roz-black); }
.btn--sm { min-height: 40px; padding: 10px 18px; font-size: 12px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.link-under { font-family: var(--ff-sans); font-size: 12px; font-weight: 500; letter-spacing: var(--ls-caps); text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

/* ---------- Prototype banner + footer ---------- */
.proto { background: var(--roz-black); color: var(--roz-white); font-size: 12px; letter-spacing: 0.02em; padding: 8px var(--gutter); display: flex; justify-content: space-between; gap: 16px; }
.proto a { color: var(--roz-white); }
.footer { background: var(--roz-seaglass); padding: 56px var(--gutter) 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer .wordmark { font-size: 30px; }
.footer p, .footer a { font-size: 14px; }
.footer ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__fine { grid-column: 1 / -1; border-top: 1px solid rgba(51,51,49,.25); padding-top: 20px; font-size: 12px; color: #3d3d3b; max-width: 90ch; }

@media (max-width: 720px) {
  .apply .grid { grid-template-columns: 1fr; }
  .choice { grid-template-columns: 1fr; }
  .choice label + label { border-left: 0; border-top: 1px solid var(--roz-stroke); }
  .footer { grid-template-columns: 1fr; }
  .apply__done li { grid-template-columns: 1fr; gap: 4px; }
  .nav__left { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .nav .wordmark { justify-self: start; }
  .proto span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
