@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #111111;
  --paper: #f5f2ec;
  --teal: #2f7773;
  --vermilion: #f0441d;
  --mist: #dedcd6;
  --muted: #6d706f;
  --white: #ffffff;
  --max: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --line: 1px solid var(--mist);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(17, 17, 17, .16);
  background: rgba(245, 242, 236, .96);
}

.nav {
  min-height: 78px;
  display: grid;
  grid-template-columns: 230px 1fr auto;
  gap: 32px;
  align-items: center;
}

.nav-logo img { width: 205px; }
.nav-links { display: flex; gap: 24px; justify-content: center; }
.nav-links a {
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--teal); }

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}
.button:hover, .button:focus-visible { background: var(--ink); color: var(--white); }
.button--primary { border-color: var(--vermilion); background: var(--vermilion); color: var(--white); }
.button--primary:hover, .button--primary:focus-visible { border-color: var(--ink); background: var(--ink); }
.button--teal { border-color: var(--teal); background: var(--teal); color: var(--white); }
.button--teal:hover, .button--teal:focus-visible { border-color: var(--ink); background: var(--ink); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--vermilion); }

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, .94fr);
  border-bottom: 1px solid rgba(17, 17, 17, .18);
}

.hero-copy {
  padding: clamp(72px, 9vw, 132px) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  max-width: 950px;
  margin: 0;
  font-size: clamp(56px, 8.4vw, 132px);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: .86;
  text-transform: uppercase;
}
.hero h1 span { color: var(--vermilion); }
.hero h1.hero-title--single {
  max-width: none;
  font-size: clamp(52px, 7.2vw, 112px);
  white-space: nowrap;
}
.hero-lead { max-width: 700px; margin: 30px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 28px); line-height: 1.25; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: clamp(40px, 6vw, 92px);
  background: var(--teal) url("../brand/patterns/registration-pattern.svg") center / cover no-repeat;
}
.hero-mark {
  width: min(74%, 580px);
  filter: drop-shadow(0 0 0 transparent);
}
.hero-index {
  position: absolute;
  right: 28px;
  bottom: 22px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

.section { padding-block: clamp(78px, 10vw, 144px); border-bottom: var(--line); }
.section--ink { background: var(--ink); color: var(--white); }
.section--teal { background: var(--teal); color: var(--white); }
.section--white { background: var(--white); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: 48px; align-items: end; margin-bottom: 54px; }
.section-head > * { min-width: 0; }
.section h2 { max-width: 100%; margin: 0; font-size: clamp(42px, 5.75vw, 84px); font-weight: 800; letter-spacing: -.055em; line-height: .92; text-transform: uppercase; }
.no-break { white-space: nowrap; }
.section-intro { max-width: 700px; margin: 0; color: var(--muted); font-size: clamp(17px, 1.6vw, 23px); }
.section--ink .section-intro, .section--teal .section-intro { color: rgba(255,255,255,.7); }

.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1px; background: var(--mist); border: var(--line); }
.story-card { min-height: 360px; padding: clamp(30px, 4vw, 58px); background: var(--paper); }
.story-card--mark { display: grid; place-items: center; background: var(--white); }
.story-card--mark img { width: min(75%, 470px); }
.story-card h3 { margin: 0 0 18px; font-size: clamp(28px, 4vw, 56px); line-height: 1; letter-spacing: -.04em; }
.story-card p { max-width: 650px; margin: 0; color: var(--muted); font-size: 18px; }

.mark-meaning {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 1px;
  margin-bottom: 18px;
  border: var(--line);
  background: var(--mist);
}
.mark-meaning__visual {
  min-height: 430px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 34px;
  padding: clamp(34px, 5vw, 72px);
  background: var(--white);
}
.mark-meaning__visual img { width: min(68%, 300px); }
.mark-meaning__visual p { max-width: 370px; margin: 0; color: var(--muted); font-size: 17px; text-align: center; }
.mark-meaning__items { display: grid; background: var(--paper); }
.mark-meaning__item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  align-items: start;
  padding: clamp(28px, 3.6vw, 48px);
  border-bottom: var(--line);
}
.mark-meaning__item:last-child { border-bottom: 0; }
.mark-meaning__item b {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: .08em;
}
.mark-meaning__item--ink b { background: var(--ink); color: var(--white); }
.mark-meaning__item--cut b { border-color: var(--teal); color: var(--teal); }
.mark-meaning__item--result b { border-color: var(--vermilion); background: var(--vermilion); color: var(--white); }
.mark-meaning__item h3 { margin: 0 0 8px; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.05; letter-spacing: -.035em; }
.mark-meaning__item p { margin: 0; color: var(--muted); }

.logo-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.logo-panel { min-height: 340px; display: grid; place-items: center; padding: clamp(28px, 4vw, 64px); border: 1px solid rgba(255,255,255,.18); }
.logo-panel--paper { background: var(--paper); }
.logo-panel--teal { background: var(--teal); }
.logo-panel img { width: min(100%, 760px); }
.logo-label { margin: 14px 0 0; color: rgba(255,255,255,.66); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.rules-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.2); border-left: 1px solid rgba(255,255,255,.2); margin-top: 48px; }
.rule { min-height: 180px; padding: 28px; border-right: 1px solid rgba(255,255,255,.2); border-bottom: 1px solid rgba(255,255,255,.2); }
.rule b { display: block; color: var(--vermilion); font-size: 28px; }
.rule span { display: block; margin-top: 42px; color: rgba(255,255,255,.74); }

.palette { display: grid; grid-template-columns: repeat(6, 1fr); min-height: 440px; }
.swatch { display: flex; flex-direction: column; justify-content: space-between; padding: 22px; border-right: 1px solid rgba(17,17,17,.14); }
.swatch:last-child { border-right: 0; }
.swatch strong { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.swatch code { font-family: "Manrope", sans-serif; font-size: 13px; }
.swatch--ink { background: var(--ink); color: var(--white); }
.swatch--paper { background: var(--paper); }
.swatch--teal { background: var(--teal); color: var(--white); }
.swatch--vermilion { background: var(--vermilion); color: var(--white); }
.swatch--mist { background: var(--mist); }
.swatch--muted { background: var(--muted); color: var(--white); }

.type-specimen { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: start; }
.type-meta { position: sticky; top: 112px; }
.type-meta h3 { margin: 0; font-size: clamp(44px, 6vw, 82px); line-height: 1; letter-spacing: -.055em; }
.type-meta p { color: var(--muted); }
.type-lines { border-top: var(--line); }
.type-row { padding: 28px 0; border-bottom: var(--line); }
.type-row span { display: block; color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.type-row p { margin: 8px 0 0; line-height: 1; }
.type-800 { font-size: clamp(52px, 7vw, 100px); font-weight: 800; letter-spacing: -.06em; }
.type-700 { font-size: clamp(34px, 4vw, 64px); font-weight: 700; letter-spacing: -.04em; }
.type-400 { max-width: 760px; font-size: 20px; line-height: 1.55 !important; }

.application-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.application { overflow: hidden; background: var(--white); border: var(--line); }
.application img { width: 100%; height: 100%; object-fit: cover; }
.application--wide { grid-column: span 8; aspect-ratio: 16/6; }
.application--square { grid-column: span 4; aspect-ratio: 1; }
.application--card { grid-column: span 6; aspect-ratio: 1.8; }
.application--letter { grid-column: span 4; aspect-ratio: 210/297; }
.application--avatar { grid-column: span 4; aspect-ratio: 1; }
.application--cover { grid-column: span 8; aspect-ratio: 3; }

.downloads-tools { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr); gap: 16px; margin-bottom: 28px; }
.search {
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 2px;
  background: transparent;
  color: var(--white);
  outline: none;
}
.search::placeholder { color: rgba(255,255,255,.54); }
.search:focus { border-color: var(--vermilion); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.filter {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 2px;
  background: transparent;
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
}
.filter:hover, .filter:focus-visible, .filter.is-active { border-color: var(--vermilion); background: var(--vermilion); }

.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18); }
.download-card { min-height: 220px; display: flex; flex-direction: column; padding: 24px; background: var(--ink); }
.download-card.is-hidden { display: none; }
.download-card small { color: var(--teal); font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.download-card h3 { margin: 22px 0 7px; font-size: 22px; line-height: 1.1; }
.download-card p { margin: 0; color: rgba(255,255,255,.58); font-size: 14px; }
.download-card footer { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 24px; }
.download-card code { color: rgba(255,255,255,.42); font-family: "Manrope", sans-serif; font-size: 11px; }
.download-card a { color: var(--white); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.download-card a::after { content: " ↗"; color: var(--vermilion); }
.downloads-empty { display: none; padding: 42px; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.68); }

.ai-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 44px; align-items: start; }
.ai-aside { position: sticky; top: 112px; }
.ai-aside img { width: min(100%, 320px); }
.ai-aside p { color: rgba(255,255,255,.7); }
.code-panel { position: relative; overflow: hidden; padding: clamp(24px, 4vw, 48px); border: 1px solid rgba(255,255,255,.24); background: rgba(17,17,17,.2); }
.code-panel pre { margin: 0; white-space: pre-wrap; color: rgba(255,255,255,.86); font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.code-panel .button + pre { padding-top: 48px; }
.code-panel .button { position: absolute; top: 18px; right: 18px; border-color: rgba(255,255,255,.4); color: var(--white); }

.ai-page .hero { min-height: 600px; grid-template-columns: 1fr; }
.ai-page .hero-copy { max-width: var(--max); margin-inline: auto; width: 100%; }
.ai-page .hero h1 { max-width: 1200px; }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.spec-card { padding: 30px; border: var(--line); background: var(--white); }
.spec-card--full { grid-column: 1 / -1; }
.spec-card h3 { margin: 0 0 14px; font-size: 22px; }
.spec-card ul { margin: 0; padding-left: 20px; }
.token-list { display: grid; gap: 10px; }
.token { display: grid; grid-template-columns: 42px 110px 1fr; gap: 14px; align-items: center; }
.token-i { width: 42px; height: 42px; border: 1px solid rgba(17,17,17,.14); }
.token code { font-family: ui-monospace, monospace; font-size: 12px; }

.site-footer { padding-block: 42px; background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 220px 1fr auto; gap: 36px; align-items: end; }
.footer-grid img { width: 190px; }
.footer-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: flex-end; }
.footer-links a { color: var(--teal); font-size: 12px; font-weight: 700; text-decoration: none; }

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--white);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: .2s ease;
}
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .nav { grid-template-columns: 190px 1fr auto; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 480px; }
  .section-head, .story-grid, .type-specimen, .ai-grid { grid-template-columns: 1fr; }
  .mark-meaning { grid-template-columns: 1fr; }
  .mark-meaning__visual { min-height: 360px; }
  .type-meta, .ai-aside { position: static; }
  .rules-grid { grid-template-columns: repeat(2, 1fr); }
  .palette { grid-template-columns: repeat(3, 1fr); }
  .swatch { min-height: 230px; }
  .download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .nav { min-height: 66px; grid-template-columns: 1fr auto; gap: 16px; }
  .nav-logo img { width: 160px; }
  .nav .button { min-height: 38px; padding: 9px 11px; font-size: 10px; }
  .hero { min-height: 0; }
  .hero-copy { padding-block: 64px; }
  .hero h1 { font-size: clamp(50px, 16vw, 76px); }
  .hero h1.hero-title--single { font-size: clamp(36px, 11.6vw, 56px); }
  .hero-lead { font-size: 18px; }
  .hero-visual { min-height: 360px; }
  .section { padding-block: 72px; }
  .section-head { margin-bottom: 36px; }
  .section h2 { font-size: clamp(36px, 10.8vw, 54px); }
  .story-card { min-height: 280px; }
  .mark-meaning__visual { min-height: 300px; }
  .mark-meaning__item { grid-template-columns: 46px 1fr; gap: 16px; padding: 24px 20px; }
  .logo-showcase { grid-template-columns: 1fr; }
  .logo-panel { min-height: 220px; }
  .rules-grid, .palette, .spec-grid { grid-template-columns: 1fr; }
  .swatch { min-height: 180px; }
  .application-grid { gap: 10px; }
  .application--wide, .application--square, .application--card, .application--letter, .application--avatar, .application--cover { grid-column: 1 / -1; }
  .downloads-tools { grid-template-columns: 1fr; }
  .filters { justify-content: flex-start; }
  .download-grid { grid-template-columns: 1fr; }
  .download-card { min-height: 190px; }
  .ai-grid { gap: 28px; }
  .code-panel .button { position: static; margin-bottom: 22px; }
  .code-panel .button + pre { padding-top: 0; }
  .token { grid-template-columns: 38px 100px 1fr; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
