/* Broke to Fine — shared site styles */
@font-face { font-family: "Archivo Black"; src: url("fonts/archivo-black-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-700-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #16213a;
  --ink-2: #4a5470;
  --bg: #f6f2e9;
  --paper: #fbfaf6;
  --line: #e4ddcf;
  --yellow: #f2b705;
  --yellow-soft: #fdf1c7;
  --red: #c8402f;
  --red-soft: #fbe7e3;
  --green: #14804a;
  --green-dark: #0e6a3c;
  --green-soft: #e3f3ea;
  --radius: 16px;
  --display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--ink); }
button { font: inherit; color: inherit; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 18px; }

/* header */
.site-head { background: var(--yellow); border-bottom: 3px solid var(--ink); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.logo-mark { display: flex; align-items: center; gap: 5px; }
.logo-broke { position: relative; font: 15px/1 var(--display); letter-spacing: -0.01em; }
.logo-broke::after { content: ""; position: absolute; left: -3px; right: -3px; top: 50%; height: 3px; margin-top: -1px; background: var(--red); transform: rotate(-5deg); border-radius: 2px; }
.logo-fine { font: 18px/1 var(--display); color: #fff8ee; background: var(--green); padding: 4px 8px 6px; border-radius: 6px; transform: rotate(-5deg); box-shadow: 0 3px 0 rgba(22,33,58,.3); }
.head-tag { font: 700 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }

/* type */
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: 34px; line-height: 1.04; }
h2 { font-size: 26px; line-height: 1.08; }
h3 { font-size: 20px; line-height: 1.15; }
.eyebrow { font: 700 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: 14px; line-height: 1.45; }
.hl { background: linear-gradient(transparent 58%, var(--yellow) 58%); }

/* buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; padding: 14px 20px; border: 0; border-radius: 14px; font: 700 18px/1.2 var(--body); text-decoration: none; cursor: pointer; transition: transform .08s ease, background .15s ease; }
.btn:active { transform: translateY(2px); }
.btn-go { background: var(--green); color: #fff; box-shadow: 0 4px 0 var(--green-dark); }
.btn-go:hover { background: var(--green-dark); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 4px 0 #0b1224; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); min-height: 50px; font-size: 16px; }
.btn-link { background: none; border: 0; padding: 6px 0; font: 600 15px var(--body); color: var(--ink-2); text-decoration: underline; cursor: pointer; }
.btn .arrow { font-family: var(--mono); font-weight: 700; }

/* cards */
.card { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card-ink { border-color: var(--ink); box-shadow: 0 6px 0 rgba(22,33,58,.16); }
.stamp { display: inline-block; font-family: var(--display); line-height: 1; border-radius: 8px; transform: rotate(-4deg); }

/* checks row */
.checks { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.checks li { display: flex; align-items: center; gap: 6px; }
.checks svg { width: 16px; height: 16px; flex: none; }

/* footer */
.site-foot { margin-top: 44px; padding: 26px 0 40px; border-top: 2px solid var(--line); font-size: 13px; color: var(--ink-2); }
.site-foot p { margin: 0 0 10px; }
.site-foot nav { display: flex; gap: 16px; margin-top: 14px; }
.site-foot nav a { color: var(--ink-2); }

/* prose pages */
.prose { padding: 28px 0 0; }
.prose h1 { font-size: 32px; margin-bottom: 14px; }
.prose h2 { font-size: 21px; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 20px; }

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