/* Grennen storefront v1: shared styles for the reading pages (the guide, privacy, 404).
   Same system as the home page (index.html keeps its own inline copy): page #f0f0ee, ink #15171a,
   stone #ecebe7, signal #e5322b; Archivo; labels 12px uppercase; tiles r20, buttons r12. */
@font-face { font-family: Archivo; src: url(/fonts/archivo.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --page: #f0f0ee; --ink: #15171a; --stone: #ecebe7; --signal: #e5322b;
  --ink-70: rgb(21 23 26 / .7); --ink-62: rgb(21 23 26 / .62); --rule: rgb(21 23 26 / .12);
  --stone-70: rgb(236 235 231 / .7); --rule-dark: rgb(236 235 231 / .14);
  --gutter: 16px; --max: 1360px; --measure: 680px; --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
@media (min-width: 640px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 17px/1.6 Archivo, ui-sans-serif, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
p, li { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -64px; z-index: 50; background: var(--ink); color: var(--page); padding: 12px 16px; border-radius: 12px; text-decoration: none; font-size: 15px; }
.skip:focus { top: 16px; }
.label { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-variant-numeric: tabular-nums; color: var(--ink-62); }

/* lockup: the Dot sized from Archivo's x-height, as on the home page */
.lockup { display: inline-flex; align-items: baseline; font-weight: 600; letter-spacing: -0.025em; text-decoration: none; font-size: 22px; line-height: 1; }
.lockup::before { content: ""; width: .494em; height: .494em; margin-right: .34em; border-radius: 50%; background: var(--signal); transform: translateY(-.016em); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; font: 500 15px/1 Archivo, sans-serif; text-decoration: none; transition: background-color .25s var(--ease), border-color .25s var(--ease); }
.btn-ink { background: var(--ink); color: var(--page); }
.btn-ink:hover { background: #2a2d31; }
.btn-line { border-color: var(--rule); }
.btn-line:hover { border-color: var(--ink); }
.btn-stone { background: var(--stone); color: var(--ink); }
.btn-stone:hover { background: #fff; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgb(240 240 238 / .9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.top nav ul { display: none; list-style: none; margin: 0; padding: 0; gap: 32px; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink-70); }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }
.top .btn { min-height: 44px; padding: 0 16px; }
@media (min-width: 820px) { .top nav ul { display: flex; } }

/* article */
.article { padding-block: 48px 96px; }
.article .wrap > * { max-width: var(--measure); }
.article .crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; font-size: 13px; color: var(--ink-62); }
.article .crumbs li + li { margin-top: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.article h1 { margin-top: 24px; font-size: clamp(36px, 5.2vw, 64px); letter-spacing: -0.04em; line-height: 1.02; }
.dek { margin-top: 20px; font-size: 22px; line-height: 1.4; letter-spacing: -0.01em; color: var(--ink-70); }
.byline { margin-top: 20px; }
.article h2 { margin-top: 64px; font-size: clamp(26px, 3vw, 34px); scroll-margin-top: 96px; }
.article h3 { margin-top: 32px; font-size: 20px; letter-spacing: -0.015em; }
.article h2 + p, .article h3 + p, .article h2 + ul, .article h2 + ol { margin-top: 16px; }
.article p + p, .article p + ul, .article ul + p, .article ol + p, .article p + ol { margin-top: 16px; }
.article ul, .article ol { padding-left: 1.2em; }
.article li + li { margin-top: 8px; }
.article li::marker { color: var(--ink-62); }
.article a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article strong { font-weight: 600; }

/* the short version: a numbered summary in a stone tile */
.summary { margin-top: 40px; padding: 28px; border-radius: 20px; background: var(--stone); }
.summary h2 { margin-top: 0; font-size: 22px; letter-spacing: -0.015em; }
.summary ol { margin-top: 16px; padding: 0; list-style: none; counter-reset: s; }
.summary li { position: relative; padding: 12px 0 12px 44px; border-top: 1px solid var(--rule); counter-increment: s; }
.summary li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--ink-62); font-variant-numeric: tabular-nums; }
.summary li + li { margin-top: 0; }

/* contents */
.toc { margin-top: 32px; }
.toc ol { margin-top: 12px; padding: 0; list-style: none; display: grid; gap: 4px; }
.toc a { text-decoration: none; color: var(--ink-70); }
.toc a:hover { color: var(--ink); }

/* room-by-room checklist */
.rooms { margin-top: 24px; display: grid; gap: 12px; }
@media (min-width: 640px) { .rooms { grid-template-columns: 1fr 1fr; } }
.room { padding: 22px; border-radius: 16px; background: #fafaf8; box-shadow: inset 0 0 0 1px var(--rule); }
.room h3 { margin: 0; font-size: 17px; }
.room ul { margin-top: 10px; font-size: 15px; color: var(--ink-70); }

.tip { margin-top: 24px; padding: 18px 20px; border-left: 3px solid var(--signal); background: #fafaf8; border-radius: 0 12px 12px 0; font-size: 15px; color: var(--ink-70); }
.tip strong { color: var(--ink); }

/* the R1 block */
.r1-cta { margin-top: 64px; padding: 32px; border-radius: 20px; background: var(--ink); color: var(--stone); display: grid; gap: 24px; align-items: center; }
.r1-cta h2 { margin-top: 0; }
.r1-cta p { color: var(--stone-70); }
.r1-cta .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.r1-cta .btn-line { border-color: var(--rule-dark); color: var(--stone); }
.r1-cta .btn-line:hover { border-color: var(--stone); }
.r1-cta img { border-radius: 14px; }
@media (min-width: 760px) { .r1-cta { grid-template-columns: 1.2fr 1fr; } }
.article .wrap > .r1-cta { max-width: 920px; }

/* FAQ */
.faq h3 { margin-top: 28px; }
.faq h3 + p { margin-top: 8px; }

.sources { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-62); }
.sources ul { margin-top: 8px; }

/* footer */
.foot { padding-block: 64px 48px; border-top: 1px solid var(--rule); }
.foot-grid { display: grid; gap: 32px; }
.foot .lockup { font-size: 17px; }
.foot p { margin-top: 16px; font-size: 13px; color: var(--ink-70); max-width: 42ch; }
.foot .tagline { margin-top: 12px; font-size: 15px; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.foot ul a { display: inline-flex; min-height: 44px; align-items: center; font-size: 13px; color: var(--ink-70); text-decoration: none; }
.foot ul a:hover { color: var(--ink); }
.foot .legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 16px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1fr auto; align-items: start; } }

/* 404 */
.missing { min-height: 60vh; display: grid; align-content: center; gap: 20px; padding-block: 96px; }
.missing h1 { font-size: clamp(40px, 6vw, 80px); letter-spacing: -0.045em; }
.missing p { color: var(--ink-70); max-width: 40ch; }
.missing .btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* press kit: a fact sheet, then render and logo grids that run wider than the reading column */
.article .wrap > .wide { max-width: 1120px; }
.facts { width: 100%; margin-top: 20px; border-collapse: collapse; font-size: 15px; }
.facts th, .facts td { padding: 12px 0; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; }
.facts th { width: 32%; padding-right: 16px; font-weight: 500; color: var(--ink-62); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 1px solid var(--rule); }
.boiler { margin-top: 16px; padding: 22px 24px; border-radius: 16px; background: var(--stone); font-size: 17px; }
.press-grid { margin-top: 24px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.asset { display: grid; gap: 8px; align-content: start; font-size: 13px; }
.asset .frame { border-radius: 14px; overflow: hidden; background: #f7f8f3; aspect-ratio: 4 / 3; }
.asset .frame img { width: 100%; height: 100%; object-fit: cover; }
.asset b { font-weight: 600; font-size: 14px; }
.asset a { color: var(--ink-70); }
.logo-tile { border-radius: 14px; aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 24px; box-shadow: inset 0 0 0 1px var(--rule); }
.logo-tile.light { background: #fafaf8; }
.logo-tile.dark { background: var(--ink); }
.logo-tile img { max-width: 70%; max-height: 40%; }
.logo-tile .sym { max-height: 46%; }
.press-grid + p { margin-top: 20px; }
