/* Phren hub. Same tokens as Reperi (warm paper and charcoal, ink at fixed opacities, system fonts, no shadows). */
:root {
  --bg: #F3F0E8; --card: #FBF8F2; --ink: rgb(0 0 0 / .9); --muted: rgb(0 0 0 / .64); --faint: rgb(0 0 0 / .45);
  --rule: rgb(0 0 0 / .1); --head: #000; --head-ink: rgb(255 255 255 / .93); --on: #fff;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #171513; --card: #22201D; --ink: rgb(255 255 255 / .93); --muted: rgb(255 255 255 / .62); --faint: rgb(255 255 255 / .42); --rule: rgb(255 255 255 / .1); --on: #000; }
}
* { box-sizing: border-box; }
html { background: var(--bg); overscroll-behavior-y: none; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 4px; }
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 1.5rem; } }

header.site { position: sticky; top: 0; z-index: 10; padding: 0 .5rem; }
header.site .bar { max-width: 72rem; margin: 0 auto; height: 3rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 0 1.25rem; background: var(--head); color: var(--head-ink); border-radius: 0 0 12px 12px; }
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.brand svg { width: 22px; height: 22px; }
nav.top { display: flex; align-items: center; gap: .25rem; font-size: 13px; }
nav.top a { padding: .375rem .75rem; border-radius: 6px; text-decoration: none; color: rgb(255 255 255 / .7); }
nav.top a:hover { background: rgb(255 255 255 / .15); color: var(--head-ink); }
nav.top a.lang { background: rgb(255 255 255 / .1); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); margin: 0; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.06; font-weight: 600; }
h2 { font-size: clamp(1.7rem, 4vw, 2.25rem); line-height: 1.12; font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
.lead { font-size: 1.125rem; line-height: 1.65; color: var(--muted); max-width: 40rem; margin: 0; }

.hero { padding: 5rem 0 4rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; }
section.block { padding: 4rem 0; }
section.band { background: color-mix(in srgb, var(--ink) 3%, transparent); border-block: 1px solid var(--rule); }
.head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .75rem; margin-bottom: 2.5rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid.two { grid-template-columns: 1fr 1fr; } }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 1.75rem; display: flex; flex-direction: column; gap: .9rem; }
.card p { margin: 0; color: var(--muted); }
.card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .4rem; font-size: 14px; }
.card li::before { content: "✓"; margin-right: .5rem; color: var(--faint); }
.tag { align-self: flex-start; font: 11px ui-monospace, "SF Mono", Menlo, monospace; border: 1px solid var(--rule); border-radius: 6px; padding: .15rem .5rem; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 2.5rem; padding: 0 1.25rem; border-radius: 10px; font-size: 14px; font-weight: 500; text-decoration: none; border: 1px solid var(--rule); }
.btn.primary { background: var(--ink); color: var(--on); border-color: transparent; }
.btn:hover { opacity: .88; }
.row { display: flex; flex-wrap: wrap; gap: .75rem; }
.card .row { margin-top: auto; padding-top: .5rem; }
dl.facts { display: grid; gap: 0; margin: 0 auto; max-width: 48rem; border: 1px solid var(--rule); border-radius: 16px; background: var(--card); overflow: hidden; }
dl.facts div { display: grid; gap: .25rem; padding: .85rem 1.1rem; border-top: 1px solid var(--rule); }
dl.facts div:first-child { border-top: 0; }
@media (min-width: 640px) { dl.facts div { grid-template-columns: 9rem 1fr; gap: 1rem; } }
dl.facts dt { font-size: 12px; font-weight: 500; color: var(--muted); }
dl.facts dd { margin: 0; font-size: 14px; }
.prose { max-width: 44rem; margin: 0 auto; font-size: 1.05rem; color: var(--muted); text-align: center; }
footer.site { border-top: 1px solid var(--rule); margin-top: 2rem; padding: 2rem 0 3rem; font-size: 12px; color: var(--muted); }
footer.site .wrap { display: flex; flex-direction: column; gap: .5rem; }
footer.site p { margin: 0; max-width: 48rem; }
footer.site .links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
mark { background: color-mix(in srgb, #F2D27A 55%, transparent); color: inherit; }

.row.center { justify-content: center; }
cite { font-style: normal; }
