/* Hardstock brand file for roderick-ui (loaded after roderick-ui.css, outside any layer, so it wins).
   Colors are the locked palette (final/palette.py); fonts are the locked families (final/typography.md).
   Light page = cream paper. Navy sections flip the tokens with .on-navy. */

@font-face { font-family: "Mona Sans"; src: url("fonts/MonaSans-VF.woff2") format("woff2");
  font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/InstrumentSans-VF.woff2") format("woff2");
  font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Open Mono"; src: url("fonts/OpenMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Open Mono"; src: url("fonts/OpenMono-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --hs-navy: #242938;
  --hs-paper: #F6F2E8;
  --hs-mint: #27E8A7;
  --hs-mint-p: #139A74;
  --hs-berry: #EA3B78;
  --hs-berry-p: #D81C61;
  --hs-ice: #E4F0FB;
  --hs-muted: #5A6070;
  --hs-line: color-mix(in oklab, var(--hs-navy) 16%, var(--hs-paper));
  --hs-display: "Mona Sans", system-ui, sans-serif;

  /* roderick-ui roles and UI SDK tokens */
  --rui-font-sans: "Instrument Sans";
  --rui-font-mono: "Open Mono";
  --ui-ink: var(--hs-navy);
  --ui-paper: var(--hs-paper);
  --ui-surface-1: #fff;
  --ui-surface-2: #fff;
  --ui-surface-3: #fff;
  --ui-line: color-mix(in oklab, var(--hs-navy) 38%, var(--hs-paper));
  --ui-line-faint: var(--hs-line);
  --ui-tint: color-mix(in oklab, var(--hs-navy) 6%, var(--hs-paper));
  --ui-muted: var(--hs-muted);
  --ui-accent: var(--hs-mint-p);
  --ui-radius-row: 4px;
  --ui-radius-control: 6px;
  --ui-radius-surface: 8px;
  --ui-radius-popup: 10px;
  --rui-background: var(--hs-paper);
  --rui-surface: #fff;
  --rui-text: var(--hs-navy);
  --rui-text-muted: var(--hs-muted);
  --rui-border: var(--hs-line);
  --rui-focus: var(--hs-mint-p);
}

/* Navy sections: ice text, mint actions with navy labels (9.1:1). */
.on-navy {
  --ui-ink: var(--hs-ice);
  --ui-paper: var(--hs-navy);
  --ui-tint: color-mix(in oklab, var(--hs-ice) 10%, var(--hs-navy));
  --ui-line: color-mix(in oklab, var(--hs-ice) 30%, var(--hs-navy));
  --ui-line-faint: color-mix(in oklab, var(--hs-ice) 14%, var(--hs-navy));
  --ui-muted: #A6ACCD;
  --ui-accent: var(--hs-mint);
  --ui-surface-1: color-mix(in oklab, var(--hs-ice) 6%, var(--hs-navy));
  --ui-surface-2: var(--ui-surface-1);
  --ui-surface-3: var(--ui-surface-1);
  --hs-line: color-mix(in oklab, var(--hs-ice) 14%, var(--hs-navy));
  background: var(--hs-navy);
  color: var(--hs-ice);
}
.btn-mint { --ui-ink: var(--hs-mint); --ui-paper: var(--hs-navy); }
.btn-berry { --ui-ink: var(--hs-berry-p); --ui-paper: #fff; }

/* ---------- page ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--hs-paper); color: var(--hs-navy); font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a:not([data-slot]) { color: inherit; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.mono, .eyebrow, .spec { font-family: "Open Mono", ui-monospace, monospace; }
.eyebrow { font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--hs-berry-p); }
.on-navy .eyebrow { color: var(--hs-mint); }
.spec { font-weight: 500; font-size: 12.5px; letter-spacing: .03em; color: var(--hs-muted); }
.on-navy .spec { color: #A6ACCD; }
h1, h2, h3 { font-family: var(--hs-display); margin: 0; letter-spacing: -.01em; }
h1 { font-weight: 800; font-stretch: 125%; font-size: clamp(44px, 8vw, 96px); line-height: .95; }
h2 { font-weight: 800; font-stretch: 125%; font-size: clamp(32px, 5vw, 56px); line-height: 1; }
h3 { font-weight: 700; font-size: 20px; line-height: 1.2; }
p { margin: 0 0 12px; max-width: 64ch; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--hs-muted); }
.on-navy .lead { color: #C9D3E3; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--hs-line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.top .brand img { height: 46px; width: auto; margin-left: -10px; }
.top nav { display: flex; gap: 22px; margin-left: auto; font-size: 14.5px; }
.top nav a { text-decoration: none; color: #C9D3E3; }
.top nav a:hover, .top nav a[aria-current] { color: var(--hs-mint); }
.top .cta { display: block; flex: none; }
@media (max-width: 900px) { .top nav { display: none; } .top .cta { margin-left: auto; } }

/* hero */
.hero { padding: 88px 0 96px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.hero h1 { margin: 18px 0 22px; }
.hero h1 span { color: var(--hs-mint); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .art { justify-self: center; width: min(420px, 100%); }
.hero .meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; }
@media (max-width: 860px) { .hero { padding: 56px 0 64px; } .hero .wrap { grid-template-columns: 1fr; } .hero .art { width: 70%; justify-self: start; } }

/* sections */
section.block { padding: 96px 0; border-top: 1px solid var(--hs-line); }
.head { display: grid; grid-template-columns: 220px 1fr; gap: 32px; margin-bottom: 44px; }
.head .num { font-family: "Open Mono", monospace; font-weight: 700; font-size: 13px; letter-spacing: .1em; padding-top: 12px; color: var(--hs-berry-p); }
.on-navy .head .num { color: var(--hs-mint); }
.head h2 { margin-bottom: 14px; }
@media (max-width: 760px) { section.block { padding: 64px 0; } .head { grid-template-columns: 1fr; gap: 8px; } .head .num { padding: 0; } }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.tile { background: #fff; border: 1px solid var(--hs-line); border-radius: 8px; padding: 24px; }
.on-navy .tile { background: color-mix(in oklab, var(--hs-ice) 5%, var(--hs-navy)); }
.tile .k { font-family: "Open Mono", monospace; font-weight: 700; font-size: 12px; letter-spacing: .1em; color: var(--hs-mint-p); margin-bottom: 10px; }
.on-navy .tile .k { color: var(--hs-mint); }
.tile p { color: var(--hs-muted); margin: 8px 0 0; font-size: 15.5px; }
.on-navy .tile p { color: #C9D3E3; }

/* logo */
.stage { border-radius: 8px; display: grid; place-items: center; aspect-ratio: 16 / 10; border: 1px solid var(--hs-line); }
.stage img { width: 62%; }
.stage.navy { background: var(--hs-navy); }
.stage.paper { background: var(--hs-paper); }
.stage.white { background: #fff; }
.stage.mint { background: var(--hs-mint-p); }
.version { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 20px; }
.version-copy { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; }
.dl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
ui-tabs, ui-tabs-panel { display: block; width: 100%; }
ui-tabs [data-slot="tabs-list"] { margin-bottom: 12px; }
.rules-list { list-style: none; padding: 0; margin: 0; }
.rules-list li { padding: 12px 0; border-top: 1px solid var(--hs-line); }
.rules-list li:first-child { border-top: 0; }
.dont figure { margin: 0; }
.dont .img { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--hs-line); background: var(--hs-paper); }
.dont .img::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top right, transparent calc(50% - 1.5px), var(--hs-berry-p) calc(50% - 1.5px), var(--hs-berry-p) calc(50% + 1.5px), transparent calc(50% + 1.5px)); opacity: .85; }
.dont img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.dont figcaption { font-weight: 600; margin-top: 10px; font-size: 15.5px; }
@media (max-width: 600px) { .version { grid-template-columns: 1fr; } }

/* color */
.swatch { border: 1px solid var(--hs-line); border-radius: 8px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.swatch .chip { height: 128px; display: flex; align-items: flex-end; justify-content: space-between; padding: 12px 14px;
  font-family: "Open Mono", monospace; font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.swatch .body { padding: 14px 16px 16px; display: grid; gap: 4px; flex: 1; }
.swatch .name { font-weight: 600; font-size: 17px; }
.swatch .row { display: flex; justify-content: space-between; gap: 8px; font-family: "Open Mono", monospace; font-size: 12.5px; color: #3A4052; border-top: 1px solid var(--hs-line); padding-top: 6px; }
.swatch .row span:first-child { color: var(--hs-muted); }
.swatch .use { color: var(--hs-muted); font-size: 14.5px; margin-top: 6px; }
.copy { all: unset; cursor: pointer; font-family: "Open Mono", monospace; font-weight: 700; font-size: 12px; letter-spacing: .06em;
  padding: 4px 8px; border-radius: 4px; background: color-mix(in oklab, currentColor 14%, transparent); }
.copy:focus-visible { outline: 2px solid var(--hs-mint-p); outline-offset: 2px; }
.share { display: flex; height: 56px; border-radius: 8px; overflow: hidden; margin-top: 28px; border: 1px solid var(--hs-line);
  font-family: "Open Mono", monospace; font-weight: 700; font-size: 12px; }
.share div { display: flex; align-items: center; padding-left: 12px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* type */
.specimen { background: #fff; border: 1px solid var(--hs-line); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; }
.specimen .big { font-family: var(--hs-display); font-weight: 800; font-stretch: 125%; font-size: clamp(40px, 5vw, 60px); line-height: .98; margin: 16px 0 14px; }
.specimen .body-sample { font-size: 22px; line-height: 1.35; margin: 16px 0 14px; }
.specimen .mono-sample { font-family: "Open Mono", monospace; font-weight: 700; font-size: 26px; letter-spacing: .04em; margin: 18px 0 16px; }
.specimen p { color: var(--hs-muted); font-size: 15px; }
.alphabet { font-size: 15px; color: #3A4052; word-break: break-all; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hs-line); }

/* print rules + voice */
ui-accordion, ui-accordion-item, ui-accordion-panel { display: block; width: 100%; }
#print ui-accordion { max-width: 880px; margin-left: auto; }
.say { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.say .tile b { display: block; font-family: "Open Mono", monospace; font-size: 12px; letter-spacing: .1em; margin-bottom: 8px; }
.say .do b { color: var(--hs-mint-p); }
.say .dont-say b { color: var(--hs-berry-p); }
.say .tile q { font-family: var(--hs-display); font-weight: 700; font-size: 22px; quotes: none; }
@media (max-width: 600px) { .say { grid-template-columns: 1fr; } }

/* in use + downloads */
.inuse img { border-radius: 8px; border: 1px solid var(--hs-line); }
.inuse figcaption { color: var(--hs-muted); font-size: 14.5px; margin-top: 10px; }
.files [data-slot="table"] { width: 100%; }
.files td:last-child { text-align: right; white-space: nowrap; }
@media (max-width: 600px) { .files tr > :nth-child(2) { display: none; } }
.kit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 28px; border-radius: 8px; margin-bottom: 24px; }

footer { padding: 56px 0 48px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-end; justify-content: space-between; }
footer img { height: 64px; width: auto; margin-left: -14px; }
footer p { margin: 0; color: #A6ACCD; font-size: 14px; }
