/* oddyak.ai — one stylesheet, no framework. Brand colours are from docs/BRAND.md. */

@font-face { font-family: "Baloo 2"; font-weight: 700; font-display: swap; src: url("/fonts/baloo-2-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 800; font-display: swap; src: url("/fonts/baloo-2-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("/fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url("/fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("/fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Fira Code"; font-weight: 500; font-display: swap; src: url("/fonts/fira-code-latin-500-normal.woff2") format("woff2"); }

:root {
  --blue: #5B5CF0;        /* brand blue: fills and large type only */
  --blue-ink: #4345D6;    /* the same hue, dark enough for body-size text on cream */
  --blue-soft: #9C9DFF;   /* the same hue, light enough for text on navy */
  --navy: #1A1C3A;
  --night: #0a0a16;
  --cream: #FFF6DC;
  --horn: #F3E7C9;
  --white: #ffffff;
  --muted-on-navy: #C9C6E2;
  --muted-on-cream: #4A4C70;
  --ok-fill: #BFE8CF;   --ok-ink: #0B4A2B;
  --warn-fill: #F8E2A0; --warn-ink: #5E4100;
  --bad-fill: #F6C6CB;  --bad-ink: #6E0F1C;

  --display: "Baloo 2", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --body: "DM Sans", "Trebuchet MS", system-ui, sans-serif;
  --mono: "Fira Code", ui-monospace, Menlo, Consolas, monospace;

  --gutter: clamp(20px, 6vw, 120px);
  --section: clamp(64px, 9vw, 120px);
  --line: 3px solid var(--navy);
  --shadow: 8px 8px 0 var(--navy);
  --radius: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 18px; line-height: 1.6; color: var(--navy); background: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(38px, 5vw, 60px); }
p { text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .on-blue :focus-visible { outline-color: var(--cream); }

.skip { position: absolute; left: 16px; top: -80px; z-index: 10; padding: 12px 18px; border-radius: 12px; background: var(--navy); color: var(--cream); font-weight: 700; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.on-blue { background: var(--blue); color: var(--white); }
.on-dark { background: var(--navy); color: var(--cream); }
.stack { display: flex; flex-direction: column; gap: 40px; }
.stack--tight { gap: 18px; }

/* Buttons and stickers: outlined, with a hard offset shadow, like the outlined wordmark. */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 26px; border-radius: 14px; border: var(--line); box-shadow: 4px 4px 0 var(--navy); background: var(--cream); color: var(--navy); font-weight: 700; font-size: 17px; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--navy); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--navy); }
.btn--big { min-height: 66px; padding: 0 36px; border-radius: 18px; box-shadow: 6px 6px 0 var(--navy); font-family: var(--display); font-weight: 800; font-size: 24px; }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--white { background: var(--white); }
.on-dark .btn { border-color: var(--night); box-shadow: 6px 6px 0 var(--night); }
.btn--soon, .btn--soon:hover, .btn--soon:active { transform: none; box-shadow: none; border-style: dashed; cursor: default; }
.on-blue .btn--soon { background: transparent; color: var(--white); border-color: var(--white); }
.on-dark .btn--soon { background: transparent; color: var(--cream); border-color: var(--cream); box-shadow: none; }

.card { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); border: var(--line); box-shadow: var(--shadow); background: var(--white); color: var(--navy); }
.card--blue { background: var(--blue); color: var(--white); }
.card--navy { background: var(--navy); color: var(--cream); box-shadow: 8px 8px 0 var(--blue); }
.card--cream { background: var(--cream); }
.card--bubble { border-radius: var(--radius) var(--radius) var(--radius) 6px; }
.card h3 { font-size: clamp(28px, 3vw, 40px); }
.card--bubble h3, .card--fact h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.1; }
.grid { display: grid; gap: 32px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Header */
.site-head { background: var(--blue); color: var(--white); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1; }
.brand img { width: 52px; height: 52px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); font-weight: 700; font-size: 17px; }
.nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 3px; }
.nav .btn { min-height: 48px; }

/* Hero */
.hero { position: relative; overflow: hidden; text-align: center; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; gap: 30px; padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 110px); }
.lockup { padding: clamp(14px, 2vw, 26px) clamp(20px, 3.4vw, 44px); border-radius: clamp(22px, 3vw, 36px); background: var(--cream); border: 4px solid var(--navy); box-shadow: 10px 10px 0 var(--navy); }
.lockup img { width: min(690px, 72vw); aspect-ratio: 3 / 1; }
.hero h1 { max-width: 900px; font-size: clamp(44px, 6.4vw, 76px); line-height: 1; }
.hero .lede { max-width: 680px; font-size: clamp(19px, 1.8vw, 22px); line-height: 1.5; }
.hero .fine { font-size: 16px; }
.sticker { position: absolute; padding: 8px 22px; border-radius: 999px; border: var(--line); box-shadow: 4px 4px 0 var(--navy); font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.3; white-space: nowrap; }
.sticker--a { left: max(24px, 9vw); top: 64px; transform: rotate(-8deg); background: var(--horn); color: var(--navy); }
.sticker--b { right: max(24px, 8vw); top: 104px; transform: rotate(6deg); background: var(--white); color: var(--navy); }
.sticker--c { right: max(24px, 11vw); bottom: 110px; transform: rotate(-5deg); background: var(--navy); color: var(--cream); box-shadow: 4px 4px 0 var(--night); }

.ribbon { background: var(--navy); color: var(--cream); font-family: var(--display); font-weight: 700; font-size: clamp(18px, 2vw, 24px); }
.ribbon ul { list-style: none; margin: 0; padding: 22px var(--gutter); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 40px; }
.ribbon li + li::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 40px; border-radius: 50%; background: var(--blue-soft); vertical-align: middle; }

.card--blue h3 { color: var(--white); }
.card--navy h3 { color: var(--horn); }
.card h3.ink { color: var(--blue-ink); }

/* The Herd */
.split { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.pill { align-self: flex-start; padding: 4px 18px; border-radius: 999px; background: var(--blue); color: var(--white); font-family: var(--display); font-weight: 700; font-size: 20px; }
.herd-copy { display: flex; flex-direction: column; gap: 22px; }
.herd-copy h2 { font-size: clamp(38px, 4.6vw, 56px); }
.herd-copy p { color: var(--muted-on-navy); font-size: 19px; line-height: 1.65; }
.herd-list { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; list-style: none; }
.herd-row { display: flex; align-items: center; gap: 16px; padding: 20px 26px; border-radius: 22px; background: var(--cream); color: var(--navy); border: 3px solid var(--night); box-shadow: 6px 6px 0 var(--blue); }
.herd-row .name { flex: 1; display: flex; flex-direction: column; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.2; }
.herd-row .name small { font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--muted-on-cream); }
.fit { padding: 6px 16px; border-radius: 999px; border: 2px solid; font-weight: 700; font-size: 16px; white-space: nowrap; }
.fit--ok { background: var(--ok-fill); color: var(--ok-ink); }
.fit--tight { background: var(--warn-fill); color: var(--warn-ink); }
.fit--no { background: var(--bad-fill); color: var(--bad-ink); }
.caption { font-size: 14px; color: var(--muted-on-navy); }

/* Privacy */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 60px; flex-wrap: wrap; }
.head-row p { max-width: 460px; }

/* Editions */
.edition-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.edition-head .price { font-family: var(--display); font-weight: 800; font-size: 30px; }
.edition-head .price--small { font-family: var(--body); font-weight: 700; font-size: 18px; }
.card .btn { align-self: flex-start; margin-top: 6px; }

/* Download */
.download .wrap { display: flex; align-items: center; justify-content: center; gap: clamp(28px, 4vw, 56px); flex-wrap: wrap; }
.download img { width: clamp(150px, 18vw, 240px); }
.download .copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.download h2 { font-size: clamp(44px, 5.6vw, 72px); }
.download .fine { font-size: 16px; color: var(--muted-on-navy); }

.site-foot { background: var(--night); color: var(--muted-on-navy); font-size: 15px; }
.site-foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; min-height: 110px; padding-block: 24px; }
.site-foot a { color: var(--white); }
.site-foot nav { display: flex; gap: 8px 28px; flex-wrap: wrap; }
.site-foot nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-foot nav a:hover { text-decoration: underline; }

/* Plain pages: privacy, 404 */
.page { max-width: 760px; }
.page h1 { font-size: clamp(40px, 5vw, 60px); margin-bottom: 24px; }
.page h2 { font-size: 30px; margin: 36px 0 10px; }
.page p + p { margin-top: 14px; }
.page a { color: var(--blue-ink); font-weight: 700; }
.lost { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.lost img { width: 200px; }

@media (max-width: 1100px) {
  .sticker { display: none; }
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .grid--3, .grid--2 { grid-template-columns: minmax(0, 1fr); }
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .site-head .wrap { min-height: 76px; }
  .brand { font-size: 26px; }
  .brand img { width: 42px; height: 42px; }
  .btn--big { width: 100%; justify-content: center; font-size: 21px; padding: 0 20px; }
  .lockup { box-shadow: 6px 6px 0 var(--navy); }
  .herd-row { flex-wrap: wrap; gap: 10px; padding: 18px 20px; }
  .herd-row .name { flex-basis: 100%; }
  .ribbon li + li::before { display: none; }
  .ribbon ul { flex-direction: column; align-items: center; }
  .download .copy { align-items: stretch; text-align: center; }
  :root { --shadow: 6px 6px 0 var(--navy); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* /brand: specimens drawn from the tokens above, so the page cannot drift from them. */
code { font-family: var(--mono); font-size: 0.85em; }
.specimen { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 32px; border-radius: var(--radius); border: 3px solid var(--night); box-shadow: 8px 8px 0 var(--blue); }
.specimen img { width: min(220px, 60%); }
.specimen figcaption { font-weight: 700; text-align: center; }
.specimen--cream { background: var(--cream); color: var(--navy); }
.specimen--blue { background: var(--blue); color: var(--white); }
.specimen--navy { background: var(--navy); color: var(--cream); border-color: var(--cream); }
.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.swatch { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-height: 190px; padding: 20px; border-radius: 22px; border: var(--line); box-shadow: 6px 6px 0 var(--navy); font-size: 15px; line-height: 1.4; }
.swatch strong { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.1; }
.sw--blue { background: var(--blue); color: var(--white); }
.sw--blue-ink { background: var(--blue-ink); color: var(--white); }
.sw--blue-soft { background: var(--blue-soft); color: var(--navy); }
.sw--navy { background: var(--navy); color: var(--cream); }
.sw--night { background: var(--night); color: var(--cream); }
.sw--cream { background: var(--cream); color: var(--navy); }
.sw--horn { background: var(--horn); color: var(--navy); }
.sw--white { background: var(--white); color: var(--navy); }
.fits, .parts-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.parts-row { padding-block: 10px 14px; }
.type-label { font-family: var(--mono); font-size: 14px; color: var(--muted-on-cream); }
.type-display { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 4.4vw, 60px); line-height: 1; }
.type-body { font-size: 22px; line-height: 1.5; font-weight: 500; }
.type-mono { font-family: var(--mono); font-size: 26px; }
.sticker--inline { position: static; display: inline-block; }
.sticker--horn { background: var(--horn); color: var(--navy); transform: rotate(-6deg); box-shadow: 4px 4px 0 var(--night); }
.sticker--white { background: var(--white); color: var(--navy); transform: rotate(5deg); box-shadow: 4px 4px 0 var(--night); }
@media (max-width: 1100px) { .sticker--inline { display: inline-block; } }
@media (max-width: 900px) { .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
