/* Hallmark · shape: bento grid (draw e674cd) · genre: editorial · theme: brand · redesign: full · job: try · draw: e674cd
 * paper: oklch(97.6% 0.009 300) · accent: oklch(45% 0.19 292) · display: Newsreader · body: system sans · hero: Stage · nav: edge-aligned · footer: colophon block · signature: a real printed page from the app, set large as paper
 * axes: light/high-contrast-serif/chromatic-violet · posture: Restrained · contrast: pass · fold: pass · imagery: screenshots 7 (simulator, the app's own) · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: H, the bento's text tile could read thin; set its head a step up and kept the tile to five columns */
/* Hallmark · hero swapped from the draw's Corridor to Stage · editorial refuses a centred hero, and the printed page is the strongest thing the app makes */
/* Hallmark · dropped https://apps.apple.com/app/dearfold · it carried no app id; replaced by the store URL the owner gave (id6795739193) */
/* Hallmark · reworded "Read the whole thing at print size, a page at a time — the measurements…" to use a colon · 19 names the dash */
/* Hallmark · reworded "Questions, trouble with a book, or something that isn't working — write to us…" to a question and a sentence · 19 names the dash */
@import url("./tokens.css");
@import url("./base.css");

:root { --nav-h: 72px; }
html { scroll-padding-top: calc(var(--nav-h) + var(--space-lg)); }

.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); }
.skip:focus-visible { top: var(--space-md); }

/* Nav */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper-2); border-bottom: 1px solid var(--color-rule); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); min-height: var(--nav-h); }
.wordmark { font: 400 1.5rem/1 var(--font-display); letter-spacing: -0.01em; color: var(--color-ink); text-decoration: none; }
.nav__links { display: flex; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); }
.nav__links a { color: var(--color-ink-2); text-decoration: none; white-space: nowrap; transition: color var(--dur-short) var(--ease-out); }
.nav__links a:hover { color: var(--color-ink); text-decoration: underline; }
.nav__links a:active, .wordmark:active { color: var(--color-accent); }

/* Controls */
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 var(--space-lg); border: 1px solid var(--color-accent); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font: 600 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: color-mix(in oklch, var(--color-accent) 82%, var(--color-ink)); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--quiet { min-height: 48px; border-color: var(--color-muted); background: transparent; color: var(--color-ink); }
.btn--quiet:hover { background: var(--color-paper-2); }
.link { color: var(--color-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--color-muted); white-space: nowrap; transition: color var(--dur-short) var(--ease-out); }
.link:hover { color: var(--color-accent); text-decoration-color: currentColor; }
.link:active { color: var(--color-ink-2); }

/* Product pictures: the app's own screens, never framed as a device */
.shot { border-radius: var(--radius-card); }
.shot > img { object-position: 50% 0; outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }

/* Hero: Stage, the printed page on seven columns */
.hero { display: grid; align-items: center; min-height: calc(100svh - var(--nav-h)); padding-block: var(--space-xl); background: var(--color-paper-2); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-lg); }
.hero h1 { max-width: 12ch; }
.hero .lead { max-width: 30ch; color: var(--color-ink-2); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); margin-top: var(--space-xs); }
.hero__page { justify-self: end; width: min(100%, 72svh, 640px); margin: 0; }
.page { aspect-ratio: 1; box-shadow: var(--shadow-card); }
.page > img { outline: 1px solid color-mix(in oklab, var(--color-ink) 6%, transparent); outline-offset: -1px; }
figcaption { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-ink-2); }

/* Bento */
.what { padding-block: var(--section-gap) var(--section-gap-s); }
.head { margin-bottom: var(--space-2xl); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); }
.tile { display: flex; flex-direction: column; gap: var(--space-md); min-height: 380px; padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); overflow: hidden; }
.tile p { color: var(--color-ink-2); max-width: 48ch; }
.tile--wide { grid-column: span 7; }
.tile--narrow { grid-column: span 5; }
.tile--shot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xl); padding-bottom: 0; }
.tile--shot .tile__text { display: flex; flex-direction: column; gap: var(--space-md); padding-bottom: var(--space-xl); }
.tile--shot .shot { align-self: end; height: 340px; border-radius: calc(var(--radius-card) - 6px) calc(var(--radius-card) - 6px) 0 0; }
.tile--big h3 { font-size: var(--text-2xl); max-width: 16ch; }
.tile__note { margin-top: auto; font-size: var(--text-sm); color: var(--color-muted); }
.chapters { margin: 0; padding: 0; list-style: none; counter-reset: chapter; }
.chapters li { display: flex; gap: var(--space-md); align-items: baseline; padding-block: var(--space-sm); border-top: 1px solid var(--color-rule); font: 400 var(--text-lg)/1.3 var(--font-display); counter-increment: chapter; }
.chapters li::before { content: counter(chapter); min-width: 1.25em; font: 600 var(--text-sm)/1 var(--font-body); color: var(--color-accent); font-variant-numeric: tabular-nums; }

/* Switcher: three screens, one per step */
.screens { padding-block: var(--section-gap-l) var(--section-gap); }
.switch { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: center; }
.tabs { display: flex; flex-direction: column; border-top: 1px solid var(--color-rule); }
html:not(.js) .tabs { display: none; }
.tab { display: flex; gap: var(--space-md); align-items: baseline; min-height: 44px; padding: var(--space-lg) 0; border: 0; border-bottom: 1px solid var(--color-rule); background: none; color: var(--color-muted); font: 400 var(--text-title)/1.2 var(--font-display); text-align: left; cursor: pointer; transition: color var(--dur-short) var(--ease-out); }
.tab:hover { color: var(--color-ink-2); }
.tab:active { color: var(--color-ink); }
.tab[aria-selected="true"] { color: var(--color-ink); }
.tab__n { font: 600 var(--text-sm)/1 var(--font-body); font-variant-numeric: tabular-nums; }
.tab[aria-selected="true"] .tab__n { color: var(--color-accent); }
.panels { display: grid; gap: var(--space-2xl); }
.panel { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: var(--space-xl); align-items: end; margin: 0; }
.panel .shot { aspect-ratio: 1206 / 2622; }
.panel figcaption { margin: 0; display: flex; flex-direction: column; gap: var(--space-sm); font-size: var(--text-md); }
.panel figcaption h3 { color: var(--color-ink); }

/* Privacy: rows under hairlines */
.privacy { padding-block: var(--section-gap) var(--section-gap-l); }
.privacy h2 { max-width: 24ch; margin-bottom: var(--space-2xl); }
.rows { margin: 0 0 var(--space-2xl); border-bottom: 1px solid var(--color-rule); }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-xl); border-top: 1px solid var(--color-rule); }
.row dt { font: 400 var(--text-title)/1.2 var(--font-display); }
.row dd { margin: 0; max-width: 52ch; font-size: var(--text-lead); line-height: 1.5; color: var(--color-ink-2); }

/* Close: the download beside the cover */
.close { padding-top: var(--section-gap-s); background: var(--color-paper-2); }
.close__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: end; }
.close__text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-xl); padding-bottom: var(--section-gap-s); }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0 var(--space-xl); width: 100%; margin: 0; }
.facts dt, .facts dd { margin: 0; padding-block: var(--space-sm); border-top: 1px solid var(--color-rule); }
.facts dt { font-size: var(--text-sm); color: var(--color-ink-2); }
.close .shot { height: 560px; border-radius: var(--radius-card) var(--radius-card) 0 0; }

/* Footer: a colophon block that is also the support desk */
.colophon { padding-block: var(--space-3xl) var(--space-2xl); border-top: 1px solid var(--color-rule); }
.colophon__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); }
.colophon .wordmark { font-size: var(--text-3xl); }
.colophon__body { display: flex; flex-direction: column; gap: var(--space-md); }
.colophon h2 { font-size: var(--text-title); }
.colophon__links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin: var(--space-md) 0 0; padding: 0; list-style: none; }
.colophon__links a { color: var(--color-ink-2); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.colophon__links a:hover { color: var(--color-ink); text-decoration: underline; }
.colophon__links a:active { color: var(--color-accent); }
.legal { font-size: var(--text-sm); color: var(--color-muted); }

@media (max-width: 60rem) {
    .hero { min-height: 0; padding-block: var(--space-2xl); }
    .hero__grid, .switch, .close__grid, .colophon__grid, .row { grid-template-columns: minmax(0, 1fr); }
    .hero__grid, .switch { gap: var(--space-xl); }
    .hero__page { justify-self: stretch; width: 100%; }
    .tile--wide, .tile--narrow { grid-column: 1 / -1; }
    .row { gap: var(--space-xs); }
    .close .shot { height: 440px; }
}
@media (max-width: 40rem) {
    .nav__wide { display: none; }
    .nav__links { font-size: var(--text-md); }
    .tile--shot, .panel { grid-template-columns: minmax(0, 1fr); }
    .tile--shot .shot { justify-self: center; width: min(100%, 280px); height: 300px; }
    .panel .shot { width: min(100%, 300px); }
    .tile { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .btn, .link, .tab, .nav__links a, .colophon__links a { transition: none; }
    .btn:active { transform: none; }
}
