@import url("/assets/fonts/studio-fonts.css");

/*
 * tezzvo.com — the COMPATIBILITY LAYER (STUDIO4, report §5.3 option S2).
 *
 * TEZZVO's own pages no longer load this file; they load
 * /assets/tezzvo-2026-10.css. This file exists for the pages other repos
 * render into site/ and that this repo never edits:
 *   site/apps/stet/privacy.html
 *   site/apps/crush-your-sat-prep/privacy.html
 * Their HTML and text stay as published; this file gives them the studio's
 * new look through the 14 classes they use (skip, masthead, masthead__row,
 * brand, brand__mark, brand__crumb, nav, wrap, doc, doc__inner, doc__meta,
 * foot, foot__row, foot__brand) plus plain elements inside .doc. Keep those
 * selectors working: a class removed here breaks a page we cannot fix.
 *
 * Tokens mirror tezzvo-2026-10.css (docs/site/DESIGN.md). The inline
 * four-bar SVG those pages carry is the retired mark: its bars are hidden
 * and the element is re-used as the wordmark's red square (.brand__mark).
 */

:root {
  --pad: #e6e7e2;
  --sheet: #ffffff;
  --ink: #15171c;
  --ink-2: #464b52;
  --rule: #c9ccc4;
  --red: #c8102e;

  --maxw: 74rem;
  --measure: 66ch;
  --gutter: 16px;
  --header-h: 4.25rem;
  --small: 0.9375rem;

  /* Legacy names: the four-bar SVG in the foreign pages fills one bar with
     var(--gold). It is hidden, but the name stays defined. */
  --gold: var(--ink-2);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --pad: #0f1012;
    --sheet: #1b1d20;
    --ink: #edeee9;
    --ink-2: #a9aeb0;
    --rule: #3a3e42;
    --red: #ff5c5c;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--pad);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: color-mix(in srgb, var(--ink) 16%, transparent);
  color: var(--ink);
}

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

* {
  scrollbar-color: var(--rule) transparent;
}

a {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-color: color-mix(in srgb, var(--ink) 45%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.15s ease;
}

a:hover {
  text-decoration-color: var(--ink);
  text-decoration-thickness: 2px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
}

h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.35;
}

p {
  margin: 0 0 1em;
  max-width: var(--measure);
}

img,
svg {
  max-width: 100%;
}

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 40rem) {
  :root {
    --gutter: clamp(1.5rem, 4vw, 2.5rem);
  }
}

/* ---- skip ---- */

.skip {
  position: absolute;
  left: var(--gutter);
  top: 0.75rem;
  z-index: 30;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--sheet);
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

/* ---- masthead, masthead__row, brand, brand__mark, brand__crumb, nav ---- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--pad);
  border-top: 4px solid var(--red);
  border-bottom: 1px solid var(--rule);
}

.masthead__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 1.5rem;
  min-height: calc(var(--header-h) - 5px);
}

/* In the foreign pages the wordmark is a bare text node inside .brand, so
   .brand itself carries the wordmark type and .brand__crumb resets it. */
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  /* Padding, not min-height: a baseline-aligned row sits at the top of a
     taller box, and the 44px target must stay centred in the masthead. */
  padding-block: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.625rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

/* The retired four-bar mark. The foreign pages carry the wordmark as a
   text node after it, so their markup cannot take the STUDIO2 wordmark SVG.
   Instead the same lettering is set in type (Big Shoulders 900, -0.01em,
   as the outlined mark is drawn) and the inline SVG is re-used as the red
   "Today square": its bars are hidden, flex `order` moves it after the
   word, and it sits on the baseline at 0.30 cap, 0.14 cap after the O. */
.brand,
.foot__brand {
  font-weight: 900;
  letter-spacing: -0.01em;
}

.brand__mark {
  order: 1;
  display: block;
  flex: none;
  width: 0.3cap;
  height: 0.3cap;
  margin-inline-start: calc(0.14cap - 0.6rem);
  background: var(--red);
  align-self: baseline;
}

.brand__mark * {
  display: none;
}

.brand__crumb {
  order: 2;
}

.foot__brand .brand__mark {
  margin-inline-start: 0.14cap;
}

.brand__crumb {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--small);
  letter-spacing: normal;
  color: var(--ink-2);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-inline-end: -0.5rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.5rem;
  font-size: var(--small);
  font-weight: 600;
  color: var(--ink-2);
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

@media (max-width: 47.99rem) {
  .brand__crumb {
    display: none;
  }
}

/* ---- doc, doc__inner, doc__meta, and plain elements inside .doc ---- */

.doc {
  padding-block: clamp(1.5rem, 5vw, 3.5rem) clamp(3rem, 8vw, 5rem);
}

.doc__inner {
  max-width: 50rem;
  margin-inline: auto;
  padding: 2rem var(--gutter) 2.5rem;
  background: var(--sheet);
  border-block: 1px solid var(--rule);
}

@media (min-width: 52rem) {
  .doc__inner {
    padding: 3.5rem 4rem 4rem;
    border: 1px solid var(--rule);
    border-radius: 3px;
  }
}

.doc h1 {
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  margin-bottom: 1rem;
}

.doc h2 {
  font-size: clamp(1.6rem, 3.6vw, 2rem);
  font-weight: 700;
  line-height: 1.05;
  margin-top: 2em;
  margin-bottom: 0.6em;
}

.doc h3 {
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.doc ul,
.doc ol {
  max-width: var(--measure);
  padding-left: 1.25rem;
  margin: 0 0 1em;
}

.doc li {
  margin-bottom: 0.5rem;
}

.doc li::marker {
  color: var(--ink-2);
}

.doc table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: var(--small);
  font-variant-numeric: tabular-nums;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.9rem 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}

.doc th {
  font-weight: 700;
}

.doc hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

.doc blockquote {
  margin: 1.5rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 1px solid var(--ink-2);
  color: var(--ink-2);
}

.doc code {
  font-family: inherit;
  font-weight: 700;
}

.doc__meta {
  max-width: none;
  font-size: var(--small);
  color: var(--ink-2);
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
}

.doc__meta strong {
  color: var(--ink);
}

/* ---- foot, foot__row, foot__brand ---- */

.foot {
  border-top: 1px solid var(--rule);
  padding-block: 2.5rem;
  font-size: var(--small);
  color: var(--ink-2);
}

.foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.25rem;
}

.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  text-decoration-color: transparent;
}

.foot a:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

.foot__brand {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.625rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ink);
}
