/* Matteo Dall'Ombra — static site */

@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("../fonts/instrument-serif.ttf") format("truetype"); font-display: swap; }

:root {
  --paper: #f6f2e8;
  --white: #fffdfa;
  --ink: #151512;
  --blue: #1856ed;
  --yellow: #ffd84c;
  --line: rgba(21,21,18,.24);
  --page: 1380px;
  --sans: "Bricolage", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument", Georgia, serif;
  --mono: "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.45; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
::selection { color: white; background: var(--blue); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 9999; top: 10px; left: 10px; width: auto; height: auto; padding: 12px 16px; clip: auto; color: white; background: var(--blue); }
.site-shell { overflow: clip; }

.site-header { position: relative; z-index: 50; width: min(calc(100% - 40px), var(--page)); height: 64px; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.brand { text-decoration: none; font-size: 18px; font-weight: 700; letter-spacing:-.025em; }
.brand-mark, .brand-label small { display: none; }
.site-nav ul { display: flex; gap: clamp(20px,3vw,44px); margin: 0; padding: 0; list-style: none; }
.site-nav a { text-decoration: none; font-size: 13px; font-weight: 700; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--blue); text-decoration: underline 2px; text-underline-offset: 5px; outline: none; }
.menu-toggle { display: none; }

/* The apps are a real scrollable collector's deck. */
.apps-first { overflow:hidden; padding:12px 0 14px; background:#e9f3ff; background-image:linear-gradient(135deg,rgba(24,86,237,.07) 25%,transparent 25%),linear-gradient(315deg,rgba(24,86,237,.07) 25%,transparent 25%); background-position:12px 0,12px 0; background-size:24px 24px; }
.collector-deck { width:100%; }
.collector-track { display:flex; align-items:center; gap:clamp(16px,2.2vw,30px); overflow-x:auto; overscroll-behavior-inline:contain; padding:32px max(20px,calc((100vw - clamp(275px,25vw,340px))/2)) 38px; scroll-padding-inline:max(20px,calc((100vw - clamp(275px,25vw,340px))/2)); scrollbar-width:none; cursor:grab; }
.collector-track::-webkit-scrollbar { display:none; }
.collector-track:focus-visible { outline:3px solid var(--blue); outline-offset:-3px; }
.collectible-card { --mx:50%; --my:40%; --rx:0deg; --ry:0deg; flex:0 0 clamp(275px,25vw,340px); aspect-ratio:2.5/3.5; position:relative; padding:9px; border:2px solid var(--ink); border-radius:23px; background:linear-gradient(135deg,color-mix(in srgb,var(--app-accent) 82%,white),var(--app-accent) 55%,#ffe978); box-shadow:0 13px 17px -11px rgba(21,21,18,.9),0 23px 30px -12px rgba(20,38,70,.28); scroll-snap-align:center; transform:perspective(900px) rotate(calc((var(--card-index) - 2) * 1.3deg)); transform-style:preserve-3d; transition:transform .28s cubic-bezier(.2,.8,.2,1),filter .28s,opacity .28s; animation:deal-card .7s calc(var(--card-index) * 90ms) both cubic-bezier(.18,.9,.25,1.25); isolation:isolate; }
.collectible-card:not(.is-active) { filter:saturate(.88); }
.collectible-card.is-active { z-index:3; transform:perspective(900px) translateY(-8px) rotateX(var(--rx)) rotateY(var(--ry)) scale(1.035); filter:saturate(1.08); }
.collectible-card:hover { z-index:4; transform:perspective(900px) translateY(-10px) rotateX(var(--rx)) rotateY(var(--ry)) scale(1.045); }
.collectible-card__frame { position:absolute; inset:9px; overflow:hidden; display:flex; flex-direction:column; min-height:0; padding:12px; border:1.5px solid rgba(21,21,18,.85); border-radius:15px; background:#fffaf0; background-image:linear-gradient(rgba(21,21,18,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(21,21,18,.035) 1px,transparent 1px); background-size:12px 12px; box-shadow:inset 0 0 0 3px rgba(255,255,255,.66); }
.collectible-card__header { min-height:52px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:9px; padding:1px 1px 8px; }
.collectible-card__title { overflow:hidden; margin:0; font-size:clamp(23px,2.15vw,31px); line-height:.88; letter-spacing:-.055em; white-space:nowrap; text-overflow:ellipsis; }
.collectible-card__price { min-width:64px; padding:9px 11px; border:1.5px solid var(--ink); border-radius:999px; background:var(--app-accent); text-align:center; font-size:14px; line-height:1; box-shadow:2px 2px 0 rgba(21,21,18,.22); }
.collectible-card__art { position:relative; flex:0 0 43%; overflow:hidden; display:grid; place-items:center; border:2px solid var(--ink); border-radius:7px 7px 22px 7px; background:radial-gradient(circle at 50% 38%,rgba(255,255,255,.94),rgba(255,255,255,.2) 32%,transparent 33%),linear-gradient(145deg,color-mix(in srgb,var(--app-accent) 65%,white),var(--app-accent)); box-shadow:inset 0 0 0 4px rgba(255,255,255,.26),0 5px 0 rgba(21,21,18,.14); }
.collectible-card__art::after { content:""; position:absolute; width:68%; aspect-ratio:1; border:1px solid rgba(21,21,18,.2); border-radius:50%; }
.collectible-card__foil { position:absolute; z-index:3; inset:-80%; opacity:.38; pointer-events:none; background:conic-gradient(from 0deg at var(--mx) var(--my),transparent,#7df9ff,#ff7bd5,#fff176,#9aff8a,transparent 38%); mix-blend-mode:color-dodge; transform:rotate(18deg); transition:opacity .2s; }
.collectible-card:hover .collectible-card__foil { opacity:.72; }
.collectible-card__art img { position:relative; z-index:2; width:46%; max-height:76%; object-fit:contain; border-radius:23%; filter:drop-shadow(0 14px 10px rgba(21,21,18,.26)); transition:transform .35s cubic-bezier(.18,.9,.25,1.25); }
.collectible-card:hover .collectible-card__art img { transform:translateZ(34px) scale(1.09) rotate(3deg); }
.collectible-card__letter { position:relative; z-index:2; font-size:92px; font-weight:700; }
.collectible-card__details { flex:1; display:flex; flex-direction:column; padding:13px 4px 8px; border-bottom:1px solid var(--ink); }
.collectible-card__tagline { margin:0; font-family:var(--serif); font-size:clamp(16px,1.45vw,20px); line-height:1.02; }
.collectible-card__model { margin:auto 0 0; padding-top:8px; font:8px/1.2 var(--mono); text-transform:uppercase; }
.collectible-card__actions { display:flex; gap:6px; padding:10px 2px 1px; }
.collectible-card__actions a { flex:1; display:grid; place-items:center; min-height:32px; border:1.5px solid var(--ink); border-radius:5px; background:white; text-decoration:none; font-size:9px; font-weight:700; box-shadow:2px 2px 0 var(--ink); transition:.18s; }
.collectible-card__actions a:first-child { color:white; background:var(--ink); }
.collectible-card__actions a:hover,.collectible-card__actions a:focus-visible { color:white; background:var(--blue); transform:translate(-1px,-2px); outline:none; }
.collector-controls { width:min(calc(100% - 40px),var(--page)); margin:-4px auto 0; display:flex; align-items:center; justify-content:center; }
.collector-arrows { display:flex; gap:7px; }
.collector-arrows button { width:42px; height:42px; padding:0; border:2px solid var(--ink); border-radius:50%; background:var(--yellow); box-shadow:2px 2px 0 var(--ink); cursor:pointer; font-size:17px; transition:.18s; }
.collector-arrows button:hover,.collector-arrows button:focus-visible { color:white; background:var(--blue); transform:translateY(-2px); outline:none; }
.collector-arrows button:disabled { opacity:.28; transform:none; cursor:default; }
@keyframes deal-card { from { opacity:0; transform:translateY(90px) rotate(9deg) scale(.86); } }

/* The writing becomes a tactile stack of field notes. */
.posts-section { padding:72px 0 88px; background:var(--paper); }
.posts-heading { width:min(calc(100% - 40px),var(--page)); margin:0 auto 30px; display:flex; align-items:center; justify-content:space-between; gap:30px; }
.posts-heading h1,.posts-heading h2 { margin:0; font-size:clamp(58px,7vw,96px); line-height:.75; letter-spacing:-.075em; }
.post-search { position:relative; flex:0 1 360px; margin:0; }
.post-search input { width:100%; height:50px; padding:0 84px 0 17px; border:2px solid var(--ink); border-radius:999px; color:var(--ink); background:white; box-shadow:3px 3px 0 var(--ink); font:700 14px var(--sans); outline:none; transition:box-shadow .18s,transform .18s,border-color .18s; }
.post-search input::-webkit-search-cancel-button { display:none; }
.post-search input::placeholder { color:rgba(21,21,18,.58); }
.post-search input:focus { border-color:var(--blue); box-shadow:4px 4px 0 var(--blue); transform:translateY(-1px); }
.post-search__clear { position:absolute; top:7px; right:7px; min-width:62px; height:36px; padding:0 12px; border:1.5px solid var(--ink); border-radius:999px; color:white; background:var(--ink); cursor:pointer; font:700 10px var(--sans); text-transform:uppercase; transition:background .18s,transform .18s; }
.post-search__clear:hover,.post-search__clear:focus-visible { background:var(--blue); transform:translateY(-1px); outline:none; }
.post-search__status { position:absolute; top:calc(100% + 8px); right:10px; display:block; min-height:10px; font:8px/1.2 var(--mono); text-align:right; text-transform:uppercase; white-space:nowrap; }
.writing-list { width:min(calc(100% - 40px),var(--page)); margin:0 auto; display:flex; flex-direction:column; gap:16px; }
.post-card { --post-bg:#fffdfa; position:relative; min-width:0; min-height:138px; display:grid; grid-template-columns:94px minmax(0,1fr) minmax(190px,280px) 48px; grid-template-areas:"meta body media arrow"; align-items:center; gap:clamp(16px,3vw,42px); margin:0; padding:18px 20px; border:2px solid var(--ink); border-radius:20px; color:var(--ink); background:var(--post-bg); box-shadow:0 3px 0 var(--ink); text-decoration:none; transition:transform .22s cubic-bezier(.2,.8,.2,1),box-shadow .22s; }
.post-card:nth-child(5n+1) { --post-bg:#d9ff43; transform:rotate(-.25deg); }
.post-card:nth-child(5n+2) { --post-bg:#ff8f7c; transform:rotate(.18deg); }
.post-card:nth-child(5n+3) { --post-bg:#91e1e5; transform:rotate(-.15deg); }
.post-card:nth-child(5n+4) { --post-bg:#b8aaff; transform:rotate(.24deg); }
.post-card:nth-child(5n+5) { --post-bg:#ffc974; transform:rotate(-.14deg); }
.post-card:hover { z-index:4; transform:translate(8px,-4px) rotate(0); box-shadow:-5px 9px 0 var(--ink); }
.post-card__media { grid-area:media; width:100%; height:96px; overflow:hidden; border:1.5px solid var(--ink); border-radius:12px; background:white; }
.post-card__thumb { width:100%; height:100%; object-fit:cover; filter:saturate(.85); transition:transform .35s,filter .35s; }
.post-card:hover .post-card__thumb { transform:scale(1.08) rotate(1deg); filter:saturate(1.15); }
.post-card__meta { grid-area:meta; display:flex; flex-direction:column; align-items:flex-start; gap:6px; font:7px/1.15 var(--mono); text-transform:uppercase; }
.post-card__meta time { display:flex; flex-direction:column; gap:3px; }
.post-card__meta time strong { font:700 20px/.9 var(--sans); letter-spacing:-.045em; white-space:nowrap; }
.post-card__meta time span { font:8px/1 var(--mono); letter-spacing:.04em; }
.post-card__body { grid-area:body; }
.post-card__title,.post-card:nth-child(n+3) .post-card__title { max-width:20ch; margin:0; font-size:clamp(30px,4vw,55px); line-height:.82; letter-spacing:-.055em; }
.post-card:nth-child(even) .post-card__title { font-family:var(--serif); font-weight:400; }
.post-card__arrow { grid-area:arrow; position:relative; display:block; width:42px; height:42px; border:1.5px solid var(--ink); border-radius:50%; background:rgba(255,255,255,.45); transition:.2s; }
.post-card__arrow::before { content:""; position:absolute; top:50%; left:11px; width:17px; height:2px; background:currentColor; transform:translateY(-50%); }
.post-card__arrow::after { content:""; position:absolute; top:50%; right:11px; width:8px; height:8px; border-top:2px solid currentColor; border-right:2px solid currentColor; transform:translateY(-50%) rotate(45deg); }
.post-card:hover .post-card__arrow,.post-card:focus-visible .post-card__arrow { color:white; background:var(--blue); transform:translateX(3px); }
.post-card:focus-visible { z-index:5; outline:3px solid var(--blue); outline-offset:4px; }
.search-empty { margin:0; padding:34px; border:2px dashed var(--ink); border-radius:18px; text-align:center; font:18px var(--sans); }
.pagination { width:min(calc(100% - 40px),var(--page)); margin:34px auto 0; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:14px; }
.pagination__newer,.pagination__older { display:flex; flex-wrap:wrap; gap:8px; }
.pagination__older { justify-content:flex-end; }
.pagination__status { font:10px var(--mono); text-transform:uppercase; white-space:nowrap; }
.pagination .page-numbers { display:grid; place-items:center; min-height:42px; padding:0 14px; border:2px solid var(--ink); border-radius:7px; background:white; box-shadow:2px 2px 0 var(--ink); text-decoration:none; font:10px var(--mono); text-transform:uppercase; }
.pagination a:hover { color:white; background:var(--blue); transform:translateY(-2px); }

.site-footer { background: var(--paper); }
.footer-inner { width: min(calc(100% - 40px), var(--page)); min-height: 78px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); }
.footer-title { display: none; }
.footer-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-row p { margin: 0; font: 9px var(--mono); text-transform: uppercase; }
.footer-links { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.footer-links li { display: contents; }
.footer-links a { text-decoration: none; font-size: 11px; font-weight: 700; }
.footer-links a:hover { color: var(--blue); text-decoration: underline; }

.content-wrap { width: min(calc(100% - 40px), 880px); margin: 0 auto; padding: 100px 0 120px; }
.entry-header { margin-bottom: 55px; padding-bottom: 35px; border-bottom: 2px solid var(--ink); }
.entry-header .eyebrow, .empty-state .eyebrow { display: block; margin-bottom: 16px; color: var(--blue); font: 10px var(--mono); text-transform: uppercase; }
.entry-title { margin: 0; font-size: clamp(60px,9vw,118px); line-height: .78; letter-spacing: -.07em; }
.entry-meta { margin: 20px 0 0; font: 10px var(--mono); text-transform: uppercase; }
.entry-content { font-family: var(--serif); font-size: clamp(20px,2.1vw,27px); line-height: 1.6; }
.entry-content > * { max-width: 780px; margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { width: min(1150px,100vw - 40px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content h2, .entry-content h3 { margin-top: 2.1em; font-family: var(--sans); line-height: 1; }
.entry-content a { color: var(--blue); text-underline-offset: 4px; }
.archive-head, .empty-state { width: min(calc(100% - 40px), var(--page)); margin: 0 auto; padding: 100px 0 65px; }
.archive-head h1 { max-width: 1050px; margin: 0; font-size: clamp(70px,10vw,140px); line-height: .76; letter-spacing: -.075em; }
.empty-state { min-height: 55vh; }
.writing-section { padding:0 0 90px; }

/* Shared collectible app one-pager. */
.app-onepage { min-height:100vh; padding:22px 0 100px; background:color-mix(in srgb,var(--app-accent) 14%,var(--paper)); background-image:linear-gradient(135deg,rgba(21,21,18,.035) 25%,transparent 25%),linear-gradient(315deg,rgba(21,21,18,.035) 25%,transparent 25%); background-size:24px 24px; }
.app-onepage__back { display:inline-flex; margin-left:max(20px,calc((100% - var(--page))/2)); padding:9px 13px; border:1.5px solid var(--ink); border-radius:999px; background:white; box-shadow:2px 2px 0 var(--ink); text-decoration:none; font-size:10px; font-weight:700; }
.app-onepage__hero { width:min(calc(100% - 40px),1180px); margin:48px auto 100px; display:grid; grid-template-columns:380px minmax(0,1fr); align-items:center; gap:clamp(55px,8vw,120px); }
.app-onepage__card { width:380px; max-width:100%; flex:none; animation:none; transform:rotate(-1.5deg); }
.app-onepage__card.is-active { transform:rotate(-1.5deg); }
.app-onepage__card:hover { transform:perspective(900px) translateY(-8px) rotateX(var(--rx)) rotateY(var(--ry)) rotate(-.4deg) scale(1.02); }
.app-onepage__card .collectible-card__title { font-size:34px; }
.app-onepage__kicker { margin:0 0 15px; font:9px/1.2 var(--mono); letter-spacing:.06em; text-transform:uppercase; }
.app-onepage__lead { max-width:17ch; margin:0; font-family:var(--serif); font-size:clamp(38px,5vw,68px); line-height:.93; }
.app-onepage__facts { display:flex; flex-wrap:wrap; gap:8px; margin-top:30px; }
.app-onepage__facts span { padding:9px 13px; border:1.5px solid var(--ink); border-radius:999px; background:var(--app-accent); box-shadow:2px 2px 0 var(--ink); font-size:10px; font-weight:700; }
.app-onepage__section { width:min(calc(100% - 40px),var(--page)); margin:0 auto 110px; }
.app-onepage__section > h2,.app-privacy h2,.app-onepage__cta h2 { margin:0 0 35px; font-size:clamp(56px,8vw,108px); line-height:.76; letter-spacing:-.075em; }
.app-feature-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; }
.app-feature { min-height:210px; padding:26px; border:2px solid var(--ink); border-radius:18px; background:color-mix(in srgb,var(--app-accent) 44%,white); box-shadow:4px 5px 0 var(--ink); transform:rotate(calc((var(--feature-index) - 2) * .12deg)); transition:.2s; }
.app-feature:nth-child(even) { background:color-mix(in srgb,var(--app-accent) 58%,white); }
.app-feature:hover { z-index:2; transform:translateY(-5px) rotate(0); box-shadow:8px 10px 0 var(--ink); }
.app-feature h3 { margin:0; font-size:clamp(30px,3.2vw,48px); line-height:.84; letter-spacing:-.055em; }
.app-feature:nth-child(even) h3 { font-family:var(--serif); font-weight:400; }
.app-feature p { max-width:42ch; margin:18px 0 0; font-family:var(--serif); font-size:17px; line-height:1.25; }
.app-screens { display:flex; gap:16px; overflow-x:auto; padding:8px 8px 24px; scroll-snap-type:x mandatory; scrollbar-color:var(--app-accent) transparent; }
.app-screens figure { flex:0 0 clamp(230px,26vw,340px); overflow:hidden; margin:0; border:2px solid var(--ink); border-radius:22px; background:white; box-shadow:5px 6px 0 var(--ink); scroll-snap-align:start; }
.app-screens img { width:100%; height:560px; object-fit:cover; object-position:top; }
.app-onepage__body { padding:48px; border:2px solid var(--ink); border-radius:22px; background:white; box-shadow:5px 6px 0 var(--ink); }
.app-privacy { display:grid; grid-template-columns:.9fr 1.1fr; gap:60px; padding:50px; border:2px solid var(--ink); border-radius:24px; background:var(--app-accent); box-shadow:7px 8px 0 var(--ink); }
.app-privacy h2 { margin-bottom:0; font-size:clamp(48px,6vw,82px); }
.app-privacy ul { display:grid; gap:10px; margin:0; padding:0; list-style:none; }
.app-privacy li { padding:18px 20px; border:1.5px solid var(--ink); border-radius:12px; background:rgba(255,255,255,.58); font-family:var(--serif); font-size:18px; }
.app-faq details { margin-top:-2px; border:2px solid var(--ink); background:white; }
.app-faq summary { padding:20px 24px; cursor:pointer; font-size:clamp(22px,2.5vw,34px); font-weight:700; }
.app-faq details:nth-of-type(even) { background:color-mix(in srgb,var(--app-accent) 38%,white); }
.app-faq details p { max-width:70ch; margin:0; padding:0 24px 24px; font-family:var(--serif); font-size:18px; }
.app-onepage__cta { width:min(calc(100% - 40px),var(--page)); margin:0 auto; padding:50px; border:2px solid var(--ink); border-radius:24px 90px 24px 24px; background:var(--app-accent); box-shadow:8px 9px 0 var(--ink); }
.app-onepage__cta h2 { max-width:12ch; margin-bottom:30px; }
.app-onepage__cta a { display:inline-flex; min-height:48px; align-items:center; padding:10px 18px; border:2px solid var(--ink); border-radius:7px; color:white; background:var(--ink); box-shadow:3px 3px 0 white; text-decoration:none; font-size:12px; font-weight:700; }

/* Single post: a calm editorial surface that lets long-form writing breathe. */
.story-single { padding:32px 20px 88px; background:var(--paper); }
.story-card { width:min(100%,900px); margin:0 auto; }
.story-hero { padding:26px 0 32px; border:0; border-bottom:2px solid var(--ink); border-radius:0; background:transparent; box-shadow:none; }
.story-hero__meta { margin-bottom:16px; color:rgba(21,21,18,.72); }
.story-hero__meta time { padding:0; border:0; background:transparent; font:700 12px/1.2 var(--mono); letter-spacing:.035em; text-transform:uppercase; }
.story-hero h1 { max-width:18ch; margin:0; font-size:clamp(46px,6.2vw,76px); line-height:.94; letter-spacing:-.052em; }
.story-hero__image { overflow:hidden; margin:28px 0 0; border:1.5px solid var(--ink); border-radius:14px; background:white; box-shadow:none; }
.story-hero__image img { width:100%; max-height:560px; object-fit:cover; }
.story-content { margin:0; padding:40px 0 12px; border:0; border-radius:0; background:transparent; box-shadow:none; font-family:"Helvetica Neue",Arial,sans-serif; font-size:clamp(17px,1.45vw,19px); line-height:1.72; }
.story-hero:has(.story-hero__image) + .story-content { margin-top:0; }
.story-content > p:first-child { font-size:1em; }
.story-content blockquote { margin-top:2em; margin-bottom:2em; padding:4px 0 4px 24px; border:0; border-left:5px solid var(--yellow); border-radius:0; background:transparent; box-shadow:none; }
.story-footer { margin-top:20px; padding-top:24px; border-top:1px solid var(--line); }
.story-footer .nav-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.story-footer a { min-height:94px; display:flex; flex-direction:column; justify-content:space-between; padding:18px; border:1.5px solid var(--ink); border-radius:12px; background:#b8aaff; box-shadow:2px 3px 0 var(--ink); text-decoration:none; }
.story-footer .nav-next a { background:#ff8f7c; text-align:right; }
.story-footer span { font:8px var(--mono); text-transform:uppercase; }
.story-footer strong { font-size:20px; line-height:1; }

/* Standard page: flexible content on a calm card. */
.standard-page { padding:58px 20px 100px; background:var(--paper); }
.page-card { width:min(100%,1080px); margin:0 auto; }
.page-hero { position:relative; overflow:hidden; padding:clamp(35px,6vw,75px); border:2px solid var(--ink); border-radius:24px 90px 24px 24px; background:#b8aaff; box-shadow:7px 8px 0 var(--ink); }
.page-hero > span { display:inline-block; margin-bottom:28px; padding:7px 10px; border:1.5px solid var(--ink); border-radius:999px; background:white; font:8px var(--mono); text-transform:uppercase; }
.page-hero h1 { max-width:12ch; margin:0; font-size:clamp(68px,10vw,130px); line-height:.75; letter-spacing:-.08em; }
.page-hero figure { overflow:hidden; margin:45px 0 0; border:2px solid var(--ink); border-radius:14px; background:white; }
.page-hero img { width:100%; max-height:540px; object-fit:cover; }
.page-content { margin-top:24px; padding:clamp(32px,6vw,75px); border:2px solid var(--ink); border-radius:22px; background:white; box-shadow:5px 6px 0 var(--ink); }

@media (max-width: 940px) {
  .post-card { grid-template-columns:88px minmax(0,1fr) 170px 44px; gap:16px; }
  .post-card__title,.post-card:nth-child(n+3) .post-card__title { font-size:36px; }
  .app-onepage__hero { grid-template-columns:330px minmax(0,1fr); gap:45px; }
  .app-onepage__card { width:330px; }
  .app-onepage__lead { font-size:44px; }
}

@media (max-width: 700px) {
  .site-header { width: calc(100% - 28px); height: 62px; }
  .menu-toggle { position: relative; z-index: 101; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); }
  .menu-toggle i { position: absolute; width: 17px; height: 2px; background: var(--ink); transition: transform .2s; }
  .menu-toggle i:first-of-type { transform: translateY(-4px); }
  .menu-toggle i:last-of-type { transform: translateY(4px); }
  .menu-open .menu-toggle i:first-of-type { transform: rotate(45deg); }
  .menu-open .menu-toggle i:last-of-type { transform: rotate(-45deg); }
  .site-nav { position: fixed; z-index: 100; inset: 0; visibility: hidden; opacity: 0; display: grid; place-items: center; background: var(--yellow); transition: .2s; }
  .menu-open .site-nav { visibility: visible; opacity: 1; }
  .site-nav ul { flex-direction: column; gap: 20px; }
  .site-nav a { font-family: var(--serif); font-size: 48px; font-weight: 400; }
  .apps-first { padding:6px 0 16px; }
  .collector-track { gap:15px; padding:30px 9vw 34px; scroll-padding-inline:9vw; scroll-snap-type:x mandatory; }
  .collectible-card { flex-basis:min(82vw,310px); }
  .collectible-card__title { font-size:26px; }
  .collectible-card__tagline { font-size:17px; }
  .collector-controls { width:calc(100% - 28px); }
  .collector-arrows button { width:39px; height:39px; }
  .posts-section { padding:52px 0 62px; }
  .posts-heading { width:calc(100% - 28px); margin-bottom:20px; }
  .posts-heading { align-items:stretch; flex-direction:column; gap:20px; }
  .posts-heading h2 { font-size:54px; }
  .post-search { flex-basis:auto; width:100%; margin:0; }
  .post-search input { height:48px; }
  .writing-list { width:calc(100% - 28px); }
  .post-card { min-height:0; grid-template-columns:1fr 42px; grid-template-areas:"meta arrow" "body body" "media media"; gap:15px 10px; padding:17px; border-radius:16px; }
  .post-card:not(.post-card--has-media) { grid-template-areas:"meta arrow" "body body"; }
  .post-card__meta { flex-direction:row; align-items:center; }
  .post-card__meta time { min-width:66px; }
  .post-card__media { height:135px; }
  .post-card__title,.post-card:nth-child(n+3) .post-card__title { font-size:38px; }
  .writing-list { gap:12px; }
  .pagination { width:calc(100% - 28px); grid-template-columns:1fr 1fr; align-items:start; }
  .pagination__status { grid-column:1 / -1; grid-row:1; text-align:center; }
  .pagination__newer,.pagination__older { grid-row:2; }
  .pagination .page-numbers { min-height:39px; padding:0 11px; }
  .app-onepage { padding-top:16px; }
  .app-onepage__back { margin-left:14px; }
  .app-onepage__hero { width:calc(100% - 28px); margin:34px auto 76px; grid-template-columns:1fr; gap:45px; }
  .app-onepage__card { width:min(100%,320px); margin:0 auto; }
  .app-onepage__lead { max-width:none; font-size:42px; }
  .app-onepage__section { width:calc(100% - 28px); margin-bottom:78px; }
  .app-onepage__section > h2,.app-privacy h2,.app-onepage__cta h2 { font-size:58px; }
  .app-feature-grid { grid-template-columns:1fr; }
  .app-feature { min-height:180px; padding:22px; }
  .app-screens { margin-right:-14px; padding-left:2px; }
  .app-screens figure { flex-basis:250px; }
  .app-screens img { height:450px; }
  .app-onepage__body { padding:28px 20px; }
  .app-privacy { grid-template-columns:1fr; gap:28px; padding:27px 22px; }
  .app-onepage__cta { width:calc(100% - 28px); padding:30px 24px; border-radius:20px 55px 20px 20px; }
  .story-single { padding:18px 18px 62px; }
  .standard-page { padding:28px 14px 70px; }
  .story-hero { padding:18px 0 25px; border-radius:0; }
  .story-hero h1 { font-size:46px; }
  .page-hero h1 { font-size:62px; }
  .story-hero__image { margin-top:24px; margin-bottom:0; }
  .story-hero:has(.story-hero__image) + .story-content { margin-top:0; }
  .story-content { padding:30px 0 8px; }
  .page-content { padding:30px 20px; }
  .story-footer .nav-links { grid-template-columns:1fr; }
  .page-hero { padding:30px 22px; border-radius:20px 58px 20px 20px; }
  .footer-inner { width: calc(100% - 28px); min-height: 96px; }
  .footer-row { align-items: flex-start; flex-direction: column-reverse; gap: 12px; padding: 20px 0; }
  .content-wrap, .archive-head, .empty-state { width: calc(100% - 28px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
