/* Generated by brand/build.ts from brand/tokens.ts. Do not edit by hand. */
@font-face {
  font-family: "Newsreader";
  src: url("/brand/fonts/newsreader.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/brand/fonts/work-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Permanent Marker";
  src: url("/brand/fonts/permanent-marker.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/brand/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --rz-ground: #e6e2d8;
  --rz-paper: #f2efe8;
  --rz-panel: #e9e5db;
  --rz-ink: #14120f;
  --rz-ink2: #43403a;
  --rz-muted: #6b665c;
  --rz-line: #ddd8cc;
  --rz-line-strong: #c9c4b8;
  --rz-rule: #a8a49a;
  --rz-accent: #c4402a;
  --rz-accent-text: #b53a25;
  --rz-on-accent: #fbf8f2;
  --rz-on-ink: #f2efe8;
  --rz-on-ink-muted: #bdb6a8;
  --rz-on-ink-line: #33302a;
  --rz-on-ink-caption: #cdc7ba;
  --rz-good: #2f7a3a;
  --rz-stripe-a: #dcd7ca;
  --rz-stripe-b: #e6e1d5;
  --rz-ink-stripe-a: #1c1a17;
  --rz-ink-stripe-b: #242220;
  --rz-tile-aoe3: #6b4a20;
  --rz-font-serif: Newsreader, "Iowan Old Style", Georgia, serif;
  --rz-font-sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rz-font-marker: "Permanent Marker", "Comic Sans MS", cursive;
  --rz-font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --rz-max-width: 80rem;
  --rz-gutter: 2.75rem;
  --rz-edge: max(var(--rz-gutter), calc((100% - var(--rz-max-width)) / 2 + var(--rz-gutter)));
  color-scheme: light;
}
@media (max-width: 64em) { :root { --rz-gutter: 1.75rem; } }
@media (max-width: 35em) { :root { --rz-gutter: 1.125rem; } }

/* Sizes are in rem, so they follow the reader's browser font size; these
   scale the whole design up a step from the browser default. */
html { font-size: 106.25%; }
@media (min-width: 75em) { html { font-size: 112.5%; } }

/* The filter definitions (TORN_FILTERS_SVG) take no space. */
.rz-filters { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Small uppercase mono label: "PRICING", "CHANGELOG". */
.rz-label {
  font-family: var(--rz-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rz-muted);
}

/* The wordmark: RAZADOR.dev */
.rz-wordmark { font-family: var(--rz-font-marker); letter-spacing: 0.01em; display: inline-flex; align-items: baseline; color: var(--rz-ink); }
.rz-wordmark span { font-family: var(--rz-font-sans); font-weight: 600; font-size: 0.72em; color: var(--rz-accent-text); text-transform: lowercase; letter-spacing: 0; }

/* Torn-edged surfaces: the shape is a pseudo-element pushed through an SVG
   filter, so the text on top stays crisp. */
.rz-torn { position: relative; isolation: isolate; }
/* will-change gives each torn shape its own layer: Chrome otherwise
   repaints the filter in tiles when text on top is selected, leaving seams. */
.rz-torn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--rz-torn-bg, var(--rz-ink)); filter: url(#torn-b); will-change: transform; }

.rz-btn {
  position: relative; isolation: isolate; display: inline-block;
  padding: 0.8125rem 1.5rem; border: 0; background: none; cursor: pointer;
  font: 700 0.875rem/1.2 var(--rz-font-sans); color: var(--rz-on-ink); text-decoration: none;
}
.rz-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--rz-ink); filter: url(#torn-btn); will-change: transform; }
.rz-btn--accent { color: var(--rz-on-accent); }
.rz-btn--accent::before { background: var(--rz-accent); }
.rz-btn:hover { color: var(--rz-on-ink); }
.rz-btn:focus-visible { outline: 2px solid var(--rz-accent); outline-offset: 0.25rem; }
.rz-btn[disabled], .rz-btn[aria-disabled="true"] { cursor: not-allowed; opacity: 0.55; }

/* The torn horizontal rule between sections. */
.rz-rule { position: relative; height: 3px; margin: 0 var(--rz-edge); }
.rz-rule::before { content: ""; position: absolute; inset: 0; background: var(--rz-ink); filter: url(#torn-rule); }

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

/* razador.dev layout (plan 2026-09-26-website, W5). Colours, fonts and the
   torn shapes come from /brand/brand.css; this file places things, following
   the design's Home and Product pages. Breakpoints 1024, 860, 560 px. */

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--rz-paper); scroll-padding-top: 1rem; }
body { margin: 0; color: var(--rz-ink); font: 0.9375rem/1.55 var(--rz-font-sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--rz-accent-text); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--rz-accent); outline-offset: 3px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }

/* Backgrounds run the full window width; .pad keeps content in the column. */
.page { min-height: 100vh; background: var(--rz-paper); overflow: hidden; }
.pad { padding-left: var(--rz-edge); padding-right: var(--rz-edge); }
.skip { position: absolute; left: -9999px; top: 0.5rem; z-index: 10; background: var(--rz-ink); color: var(--rz-on-ink); padding: 0.5rem 0.875rem; }
.skip:focus { left: 0.5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------------------------------------------------------------- nav */
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  padding-top: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rz-line); }
.logo { display: flex; align-items: center; gap: 0.875rem; text-decoration: none; }
.logo img { width: 2.125rem; height: 2.125rem; }
.logo .rz-wordmark { font-size: 1.375rem; }
.logo .rz-wordmark span { font-size: 1rem; }
.nav-links { display: flex; gap: 1.875rem; font-size: 0.875rem; font-weight: 500; }
.nav-links a, .signin { text-decoration: none; }
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 1.125rem; }
.signin { font-size: 0.875rem; font-weight: 500; }
.rz-btn--small { padding: 0.6875rem 1.25rem; }

/* --------------------------------------------------------------- type */
h1 { font: 400 clamp(2.125rem, 4.2vw, 3.125rem)/1 var(--rz-font-serif); letter-spacing: -0.02em; text-wrap: balance; }
.display { font: 400 clamp(2rem, 3.6vw, 2.75rem)/1.02 var(--rz-font-serif); text-wrap: balance; }
.lede { font-size: 1rem; line-height: 1.6; color: var(--rz-ink2); max-width: 35rem; margin-top: 1rem; text-wrap: pretty; }
.eyebrow { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 1rem; }
.eyebrow .line { width: 3rem; height: 1px; background: var(--rz-rule); }
.eyebrow .dash { width: 1.75rem; height: 2px; background: var(--rz-accent); }
.rz-label { margin: 0; }
.rz-label.accent { color: var(--rz-accent-text); }
.underline { font-size: 0.875rem; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--rz-ink); padding-bottom: 3px; }
.small { font-size: 0.75rem; line-height: 1.6; }
.actions { display: flex; gap: 1.375rem; align-items: center; flex-wrap: wrap; margin-top: 1.625rem; }

/* --------------------------------------------------------------- hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center; padding-top: 2.75rem; padding-bottom: 2.5rem; }
.hero-art { position: relative; aspect-ratio: 3 / 2; max-height: 20rem; filter: url(#torn-b); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

/* -------------------------------------------------------------- games */
.games { padding-top: 2.5rem; padding-bottom: 3.5rem; }
.games .rz-label { margin-bottom: 1.75rem; }
.deck { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 2rem 1.75rem; }
.tile { display: flex; flex-direction: column; gap: 0.75rem; text-decoration: none; }
/* The design's tile: the game's logo on a brush stroke of the game's colour. */
.tile-art { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 14%;
  background: radial-gradient(circle at 50% 45%, var(--tile) 0, color-mix(in srgb, var(--tile) 45%, #000) 75%);
  mask-image: url(/brand/art/brush-mask.webp); mask-size: 100% 100%; mask-repeat: no-repeat;
  -webkit-mask-image: url(/brand/art/brush-mask.webp); -webkit-mask-size: 100% 100%; -webkit-mask-repeat: no-repeat;
  transition: transform .25s ease; will-change: transform; }
.tile-art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0.25rem 0.5rem rgb(0 0 0 / .8)) drop-shadow(0 0 1.5rem rgb(0 0 0 / .5)); }
.tile-art--aoe3 { --tile: var(--rz-tile-aoe3); }
.tile:hover .tile-art { transform: translateY(-0.25rem); }
.tile-name { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; padding: 0 0.625rem;
  font: 400 1.25rem/1.1 var(--rz-font-serif); }
.tile-price, .tile-tags { font: 500 0.625rem/1.5 var(--rz-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--rz-muted); flex: none; }
.tile-tags { padding: 0 0.625rem; }
.tile:hover .tile-name > span:first-child { color: var(--rz-accent-text); }

/* ---------------------------------------------------------- spotlight */
.spot { background: var(--rz-panel); padding-top: 3.25rem; padding-bottom: 3.25rem;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: center; }
.spot-art { aspect-ratio: 3 / 4; max-height: 32.5rem; filter: url(#torn-b); }
.spot-art img { width: 100%; height: 100%; object-fit: cover; }
.ticks { list-style: none; padding: 0; margin-top: 1.375rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem 1.5rem; font-size: 0.875rem; color: var(--rz-ink2); }
.ticks li::before, .features li::before { content: "■"; color: var(--rz-accent); margin-right: 0.625rem; }
.buy { display: flex; align-items: center; gap: 1.375rem; margin-top: 1.75rem; flex-wrap: wrap; }
.price { display: block; font: 400 1.875rem/1.1 var(--rz-font-serif); }
.price--none { font-size: 1.25rem; color: var(--rz-muted); }
.includes { display: block; font-size: 0.8125rem; color: var(--rz-ink2); margin-top: 0.375rem; }
.closed { display: inline-block; font: 600 0.875rem/1.3 var(--rz-font-sans); padding: 0.75rem 0; }
.pricing .closed { color: var(--rz-on-ink); }

/* Selected text on the ink surfaces reads as accent, not grey on black. */
.pricing ::selection, .band ::selection { background: var(--rz-accent); color: var(--rz-on-accent); }

/* ------------------------------------------------------------ product */
.product { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: start; padding-top: 2rem; padding-bottom: 2.75rem; }
.crumbs { display: flex; gap: 0.625rem; margin-bottom: 1.375rem; }
.crumbs a { text-decoration: none; }
.crumbs [aria-current] { color: var(--rz-ink); }
.product-head { display: flex; align-items: center; gap: 1.125rem; margin-bottom: 1.125rem; }
.product-head h1 { margin-top: 0.375rem; font-size: clamp(2.125rem, 4vw, 3rem); }
.brush { width: 5.25rem; height: 5.25rem; flex: none; background: var(--rz-tile-aoe3);
  mask-image: url(/brand/art/brush-mask.webp); mask-size: 100% 100%; -webkit-mask-image: url(/brand/art/brush-mask.webp); -webkit-mask-size: 100% 100%; }
.brush img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.375rem, 1fr)); gap: 0.875rem 1.5rem; margin-top: 1.5rem;
  padding: 1.125rem 0; border-top: 1px solid var(--rz-line); border-bottom: 1px solid var(--rz-line); }
.facts dd { font-size: 0.9375rem; font-weight: 600; margin-top: 0.25rem; }
.status { display: inline-flex; align-items: center; gap: 0.5rem; }
.status .dot { width: 0.5rem; height: 0.5rem; background: var(--rz-muted); }
.status--working .dot { background: var(--rz-good); }
.status--updating .dot { background: var(--rz-rule); }
.status--down .dot { background: var(--rz-accent); }
#features { margin-top: 1.625rem; }
.features { list-style: none; padding: 0; margin-top: 0.875rem; display: grid; gap: 0.875rem; }
.features b { font-weight: 700; }
.features span { display: block; font-size: 0.875rem; color: var(--rz-ink2); margin: 2px 0 0 1.375rem; }

.pricing { --rz-torn-bg: var(--rz-ink); color: var(--rz-on-ink); padding: 1.875rem 2rem; }
.pricing .rz-label { color: var(--rz-on-ink-muted); margin-bottom: 1rem; }
.plan { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 0; border-top: 1px solid var(--rz-on-ink-line); border-bottom: 1px solid var(--rz-on-ink-line); }
.plan-name { font-size: 0.875rem; color: var(--rz-on-ink-muted); }
.pricing .price { font-size: 2rem; margin-top: 0.25rem; }
.pricing .price--none { font-size: 1.25rem; color: var(--rz-on-ink-muted); }
.pricing .includes, .pricing .small { color: var(--rz-on-ink-muted); }
.pricing .small { margin-top: 0.75rem; }
.pricing a:not(.rz-btn) { color: var(--rz-on-ink); }
.cards { list-style: none; padding: 0; display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.cards li { font: 500 0.625rem/1 var(--rz-font-mono); letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--rz-on-ink-line); color: var(--rz-on-ink-caption); padding: 0.375rem 0.5rem; }

.demo { padding-top: 0.5rem; padding-bottom: 2.75rem; }
.demo .rz-label { margin-bottom: 1rem; }
.video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer; background: var(--rz-ink); overflow: hidden; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.video .play { position: absolute; left: 50%; top: 50%; width: 4.5rem; height: 4.5rem; margin: -2.25rem 0 0 -2.25rem; border-radius: 50%; background: var(--rz-accent); }
.video .play::after { content: ""; position: absolute; left: 1.8125rem; top: 1.4375rem; border-style: solid; border-width: 0.8125rem 0 0.8125rem 1.25rem; border-color: transparent transparent transparent var(--rz-on-accent); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.demo .small { color: var(--rz-muted); margin-top: 0.625rem; }

.shots { padding-bottom: 3rem; }
.shots .rz-label { margin-bottom: 1rem; }
.shot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.shot-grid img, .shot-slot { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--rz-line-strong); }
.shot-slot { background: repeating-linear-gradient(118deg, var(--rz-stripe-a) 0 0.5625rem, var(--rz-stripe-b) 0.5625rem 1.125rem); }
figcaption { font-size: 0.8125rem; color: var(--rz-muted); margin-top: 0.5rem; }

/* ------------------------------------------------- changelog and FAQ */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; padding-top: 3.25rem; padding-bottom: 3.25rem; }
.two .rz-label { margin-bottom: 1.125rem; }
.changelog { list-style: none; padding: 0; }
.changelog li { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 0.875rem 0; border-top: 1px solid var(--rz-line); font-size: 0.875rem; }
.changelog li:last-child { border-bottom: 1px solid var(--rz-line); }
.changelog .when { font: 0.75rem/1.6 var(--rz-font-mono); color: var(--rz-accent-text); text-transform: uppercase; }
.faq > div { padding: 0.875rem 0; border-top: 1px solid var(--rz-line); }
.faq > div:last-child { border-bottom: 1px solid var(--rz-line); }
.faq dt { font-weight: 600; font-size: 0.9375rem; }
.faq dd { font-size: 0.875rem; color: var(--rz-ink2); margin-top: 0.375rem; }

/* ------------------------------------------------------------ discord */
.band { --rz-torn-bg: var(--rz-ink); margin: 0 var(--rz-edge) 3.5rem; padding: 2.75rem 3rem; color: var(--rz-on-ink);
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.band h2 { font: 400 clamp(1.625rem, 3vw, 2.125rem)/1.1 var(--rz-font-serif); }
.band p { font-size: 0.9375rem; color: var(--rz-on-ink-muted); margin-top: 0.625rem; }

/* ------------------------------------------------------------- plain */
.plain { padding-top: 4rem; padding-bottom: 5rem; max-width: calc(47.5rem + 2 * var(--rz-edge)); }
.plain p { margin-top: 1rem; color: var(--rz-ink2); }

/* ------------------------------------------------------------- legal */
.legal { max-width: calc(51.25rem + 2 * var(--rz-edge)); padding-top: 3.5rem; padding-bottom: 4.5rem; }
.legal .rz-label { margin-bottom: 0.875rem; }
.legal h2 { font: 400 1.5rem/1.2 var(--rz-font-serif); margin-top: 2.25rem; }
.legal p, .legal li { color: var(--rz-ink2); line-height: 1.65; }
.legal p { margin-top: 0.75rem; }
.legal ul { margin: 0.75rem 0 0; padding-left: 1.25rem; }
.legal li + li { margin-top: 0.375rem; }
.legal .lede { margin-top: 1.25rem; }
.draft { display: inline-block; margin-top: 1rem; padding: 0.375rem 0.75rem; border: 1px solid var(--rz-accent-text);
  color: var(--rz-accent-text); font: 600 0.75rem/1.4 var(--rz-font-mono); letter-spacing: .08em; text-transform: uppercase; }
.updated { font-size: 0.8125rem; color: var(--rz-muted); }
.unset { color: var(--rz-accent-text); font-weight: 600; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 0.875rem; font-size: 0.875rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.625rem 0.75rem 0.625rem 0; border-top: 1px solid var(--rz-line); color: var(--rz-ink2); }
.legal th { color: var(--rz-ink); font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* ------------------------------------------------------------ footer */
.foot { border-top: 1px solid var(--rz-line); padding-top: 1.75rem; padding-bottom: 1.75rem; display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; gap: 0.875rem 1.5rem; font-size: 0.8125rem; color: var(--rz-muted); }
.foot .rz-wordmark { font-size: 1.125rem; text-decoration: none; }
.foot .rz-wordmark span { font-size: 0.8125rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.375rem; }
.fine { flex-basis: 100%; font-size: 0.75rem; }

/* -------------------------------------------------------- breakpoints */
@media (max-width: 64em) {
  .two, .spot, .product { grid-template-columns: 1fr; gap: 2rem; }
  .spot-art { max-height: 22.5rem; width: min(100%, 18.75rem); }
  .band { padding: 2rem 1.75rem; }
}
@media (max-width: 53.75em) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { grid-column: 1 / -1; order: 3; gap: 1.125rem; overflow-x: auto; }
  .hero { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 1.75rem; }
  .hero-art { order: -1; max-height: 13.75rem; aspect-ratio: 16 / 9; }
}
@media (max-width: 35em) {
  .signin { display: none; }
  .ticks { grid-template-columns: 1fr; }
  .band { padding: 1.625rem 1.25rem; }
  .pricing { padding: 1.625rem 1.375rem; }
  .changelog li { grid-template-columns: 1fr; gap: 0.25rem; }
  .deck { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
  .tile-name { flex-direction: column; font-size: 1.0625rem; }
}
