/* rium.dev — Paper & pigments, shared with Atrium. Light only. */
:root {
  color-scheme: light;
  --surface: #fffefa;
  --paper: #f1eee7;
  --paper-deep: #e3ddd2;
  --ink: #302e32;
  --muted: #6e6970;
  --line: #e1ddd6;
  --line-strong: #bdb7ae;
  --action: #abc6ed;
  --action-hover: #9ab9e4;
  --action-ink: #26374f;
  --accent: #44628a;
  --butter: #efd294;
  --coral: #efb29a;
  --mint: #c5ddd0;
  --radius: 3px;
  --shadow: 2px 2px 0 var(--ink);
  --gutter: clamp(16px, 5vw, 48px);
  --measure: 1040px;
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--action-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius); }
code, pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.875em; }
code { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.05em 0.35em; }
pre { background: var(--paper); border: 1px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; overflow-x: auto; line-height: 1.55; }
pre code { background: none; border: 0; padding: 0; font-size: 1em; }

.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }
main { flex: 1; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; letter-spacing: -0.01em; font-size: 18px; }
.brand:hover { color: var(--ink); }
.brand .dim { color: var(--muted); font-weight: 500; }
.brand svg { flex: none; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 10px; border: 1px solid transparent; border-radius: var(--radius); }
.site-nav a:hover { background: var(--paper-deep); }
.site-nav a[aria-current="page"] { background: var(--paper-deep); border-color: var(--ink); box-shadow: var(--shadow); }

/* Type */
.eyebrow { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
h1, h2, h3 { font-weight: 750; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 72px); letter-spacing: -0.035em; }
h2 { font-size: clamp(24px, 3.2vw, 30px); margin-bottom: 12px; }
h3 { font-size: 19px; margin-bottom: 6px; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 40ch; margin: 20px 0 0; }
.prose { max-width: 68ch; }
.prose p, .prose ul { margin: 0 0 16px; }
.prose h2 { margin-top: 40px; }

/* Hero */
.hero { padding: clamp(48px, 9vw, 104px) 0 clamp(40px, 7vw, 72px); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.hero-art { justify-self: end; width: 100%; max-width: 320px; }
.hero-art svg { display: block; width: 100%; height: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Buttons */
.button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; transition: transform 80ms ease, box-shadow 80ms ease; }
.button:hover { color: var(--ink); background: var(--paper); }
.button:active { transform: translate(2px, 2px); box-shadow: none; }
.button.primary { background: var(--action); color: var(--action-ink); }
.button.primary:hover { background: var(--action-hover); }
.button .arrow { font-weight: 500; }

/* Sections and cards */
.section { padding: clamp(40px, 6vw, 64px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface); color: var(--ink); text-decoration: none; min-width: 0; }
a.card:hover { color: var(--ink); background: var(--paper); }
.card p { margin: 0; color: var(--muted); }
.card .meta { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 600; color: var(--accent); overflow-wrap: anywhere; }
.card .swatch { width: 36px; height: 36px; border: 1px solid var(--ink); border-radius: var(--radius); display: grid; place-items: center; margin-bottom: 6px; }
.card.big { padding: 28px; }
.card.big h3 { font-size: 26px; }
.swatch.mint { background: var(--mint); }
.swatch.butter { background: var(--butter); }
.swatch.coral { background: var(--coral); }
.swatch.blue { background: var(--action); }

/* Link lists */
.link-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 16px 4px; color: var(--ink); text-decoration: none; }
.link-list a:hover { background: var(--paper); }
.link-list strong { font-weight: 700; }
.link-list span { color: var(--muted); grid-column: 1; }
.link-list time, .link-list .go { grid-column: 2; grid-row: 1; color: var(--muted); font-size: 14px; white-space: nowrap; }

/* Article */
.article { padding: clamp(40px, 7vw, 80px) 0; }
.article h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 12px; }
.article .byline { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.back { display: inline-block; font-size: 14px; font-weight: 600; margin-bottom: 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.site-footer a { color: var(--ink); }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { justify-self: start; max-width: 200px; order: -1; }
}
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }
