@font-face { font-family: "DM Serif Text"; src: url("/dm-serif-text.woff2") format("woff2"); font-display: swap; }
:root { color-scheme: light dark; --bg: #f7f7f0; --ink: #1b3029; --muted: #4d6057; --line: #c9d3c9; --link: #245e45; }
* { box-sizing: border-box; }
body { margin: 0; font: 1rem/1.55 system-ui,sans-serif; color: var(--ink); background: var(--bg); }
header, main { max-width: 78rem; margin: auto; padding-inline: clamp(1.1rem, 4vw, 4rem); }
header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
header img { display: block; object-fit: contain; }
a { color: var(--link); text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
h1, h2 { font-family: "DM Serif Text", Georgia, serif; font-weight: 400; line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 7vw, 5rem); margin: clamp(2rem, 6vw, 5rem) 0 .5rem; letter-spacing: -.035em; }
.intro { max-width: 40rem; font-size: 1.15rem; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,18rem),1fr)); gap: 2rem 1.5rem; margin-block: 2.5rem; }
article { border-bottom: 1px solid var(--line); padding-bottom: 1.25rem; }
article h2 { font-size: 1.6rem; margin: .8rem 0 .3rem; }
article p { margin: .4rem 0 .85rem; }
.spec { color: var(--muted); font-size: .9rem; }
.preview { display: grid; place-items: center; padding: 1rem 12%; height: 10.8rem; background: #cbdacf; border-radius: .65rem; }
article:nth-child(3n+2) .preview { background: #e8d9c6; }
article:nth-child(3n) .preview { background: #d1dae3; }
.paper { width: min(100%, var(--sample-width)); aspect-ratio: var(--ratio); position: relative; container-type: inline-size; overflow: hidden; background: #fffefa; box-shadow: 0 2px 8px #273b3422; }
.layer { position: absolute; line-height: 1.04; white-space: pre-line; overflow: hidden; }
.instructions, .privacy { border-top: 1px solid var(--line); padding-block: 1rem; }
.instructions p, .privacy p { max-width: 72ch; }
.privacy { color: var(--muted); }
@media (prefers-color-scheme: dark) { :root { --bg: #17231e; --ink: #f0f3e8; --muted: #bbc8be; --line: #495c51; --link: #a4dfbd; } }
@media print { header, .privacy { display: none; } article { break-inside: avoid; } }
