/* Memory Card: Y2K digital-camera photo journal.
   Art direction: graphite camera body, silver LCD bezels, orange date-stamp type,
   polaroids and contact sheets, a viewfinder for a hero, film grain over everything.
   Plain CSS, mobile first. Motion is decoration only and is switched off by
   prefers-reduced-motion at the bottom of this file. */

:root {
  --bg: #101210;
  --bg-2: #181b17;
  --panel: #1d211c;
  --line: #2e332c;
  --text: #e9ebe2;
  --soft: #a9aea0;           /* 8:1 on --bg */
  --stamp: #ff9a1a;          /* date-stamp orange, 9:1 on --bg */
  --stamp-ink: #a54a06;      /* orange for use on cream paper, 5.4:1 */
  --link: #92b8ff;
  --visited: #cdaaff;
  --silver: #d3d6cf;
  --silver-deep: #9da198;
  --paper: #f4f1e7;
  --paper-ink: #22241f;
  --lcd: #0a0b09;
  --lcd-text: #d6dacb;
  --wide: 66rem;
  --read: 40rem;
  --font: "Trebuchet MS", Verdana, "DejaVu Sans", Geneva, sans-serif;
  --body: Verdana, "DejaVu Sans", Geneva, Tahoma, sans-serif;
  --mono: "Courier New", "DejaVu Sans Mono", "Liberation Mono", monospace;
  --hand: "Segoe Print", "Bradley Hand", "Comic Sans MS", "Marker Felt", cursive;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 16px/1.7 var(--body);
  color: var(--text);
  background:
    radial-gradient(120% 60% at 50% -10%, #23281f 0%, transparent 60%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- Film grain (looping) and vignette ---------- */

body::before {
  content: "";
  position: fixed;
  inset: -60px;
  z-index: 90;
  pointer-events: none;
  opacity: .13;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .8  0 0 0 0 .8  0 0 0 0 .8  0 0 0 1.1 -.35'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
  animation: grain .9s steps(1) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  12%  { transform: translate(-31px, 17px); }
  25%  { transform: translate(23px, -29px); }
  37%  { transform: translate(-17px, -41px); }
  50%  { transform: translate(37px, 11px); }
  62%  { transform: translate(-43px, 31px); }
  75%  { transform: translate(13px, 43px); }
  87%  { transform: translate(29px, -13px); }
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 89;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55) 100%);
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: .5rem; top: -4rem; z-index: 200;
  background: var(--stamp); color: #111; padding: .5rem .9rem; font-weight: 700; border-radius: 4px;
}
.skip:focus { top: .5rem; }

a { color: var(--link); text-underline-offset: 3px; }
a:visited { color: var(--visited); }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible, .strip:focus-visible {
  outline: 3px solid var(--stamp);
  outline-offset: 3px;
  border-radius: 3px;
}
::selection { background: var(--stamp); color: #111; }

/* ---------- Header / footer ---------- */

.site-head {
  max-width: var(--wide);
  margin: 0 auto;
  padding: .9rem 1rem .6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1.2rem;
}
.brand {
  display: flex; align-items: center; gap: .65rem;
  font: 700 1.1rem/1.1 var(--font);
  letter-spacing: -.01em;
  color: var(--text); text-decoration: none;
}
.brand:visited { color: var(--text); }
.brand small { display: block; margin-top: .15rem; font: 400 .7rem/1.2 var(--body); color: var(--soft); letter-spacing: 0; }
.logo {                         /* SD card glyph */
  position: relative; flex: none; width: 26px; height: 32px;
  background: var(--bg-2); border: 2px solid var(--silver); border-radius: 3px 3px 3px 3px;
  clip-path: polygon(0 22%, 28% 0, 100% 0, 100% 100%, 0 100%);
  display: flex; gap: 3px; justify-content: center; padding-top: 5px;
}
.logo b { width: 3px; height: 9px; background: var(--stamp); }

.site-head nav { margin-left: auto; display: flex; gap: .35rem; flex-wrap: wrap; }
.site-head nav a {
  font: 700 .82rem/1 var(--mono);
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text); text-decoration: none;
  padding: .6rem .8rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: linear-gradient(#262a24, #181b17);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
  transition: border-color .2s, color .2s, transform .2s var(--ease);
}
.site-head nav a:hover { border-color: var(--stamp); color: var(--stamp); transform: translateY(-1px); }
.site-head nav a.admin-link { display: inline-flex; align-items: center; gap: .4rem; background: transparent; box-shadow: none; border-style: dashed; color: var(--stamp); }
.site-head nav a.admin-link svg { flex: none; }
.site-head nav a[aria-current] { color: #111; background: var(--stamp); border-color: var(--stamp); box-shadow: 0 0 14px rgba(255,154,26,.35); }

main { max-width: var(--wide); margin: 0 auto; padding: 1rem 1rem 3rem; }

.site-foot {
  max-width: var(--wide); margin: 2rem auto 0; padding: 1.5rem 1rem 3rem;
  border-top: 1px dashed var(--line);
  font-size: .8rem; color: var(--soft);
}
.site-foot p { margin: .25rem 0; }

/* ---------- Type ---------- */

h1, h2, h3 { font-family: var(--font); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .7rem; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 800; }
h2 { font-size: 1.4rem; margin-top: 2.4rem; font-weight: 700; }
h2::before { content: "\25B6"; color: var(--stamp); font-size: .6em; margin-right: .5em; vertical-align: .12em; }
h3 { font-size: 1.05rem; }
.panel h2::before, .card h3::before { content: none; }
p, ul, ol { margin: 0 0 1.05rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: .4rem; }
li::marker { color: var(--stamp); }
code { font-family: var(--mono); background: var(--bg-2); padding: .1em .35em; border-radius: 3px; }
hr { border: 0; border-top: 1px dashed var(--line); margin: 2rem 0; }

blockquote {
  margin: 1.8rem 0; padding: 1.1rem 1.2rem 1.1rem 1.4rem;
  background: var(--panel); border-left: 4px solid var(--stamp);
  font: italic 1.15rem/1.5 Georgia, "Times New Roman", serif;
}
blockquote p:last-child { margin: 0; }

.lede { font-size: 1.12rem; line-height: 1.6; color: #f6f7ef; }
.lede p { margin: 0 0 1.05rem; font-size: inherit; }
.prose { max-width: var(--read); margin: 0 auto; }
.wrap-prose { max-width: var(--wide); margin: 0 auto; }
.wrap-prose > :not(.cards):not(.filter) { max-width: var(--read); margin-left: auto; margin-right: auto; }
.wrap-prose > .filter { max-width: var(--read); margin-left: auto; margin-right: auto; }

.stamp {
  font-family: var(--mono); font-weight: 700; letter-spacing: .07em;
  color: var(--stamp); white-space: nowrap;
  text-shadow: 0 0 2px rgba(255,154,26,.6), 0 0 8px rgba(255,154,26,.3);
}

/* ---------- Entrance and scroll reveals ---------- */

.rise { animation: rise .9s var(--ease) both; }
.rise:nth-child(2) { animation-delay: .12s; }
.rise:nth-child(3) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }

.js .reveal {
  opacity: 0; translate: 0 22px;
  transition: opacity .8s ease, translate .8s var(--ease), transform .35s var(--ease), box-shadow .35s;
  transition-delay: var(--d, 0s), var(--d, 0s), 0s, 0s;
}
.js .reveal.in { opacity: 1; translate: 0 0; }

/* ---------- Shutter page transition ---------- */

.shutter { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.shutter .blade { position: absolute; left: 0; right: 0; height: 50.5%; background: #060706; }
.shutter .blade.top { top: 0; transform-origin: top; border-bottom: 2px solid var(--stamp); }
.shutter .blade.bottom { bottom: 0; transform-origin: bottom; border-top: 2px solid var(--stamp); }
.shutter .flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.js .shutter .blade { animation: blade-open .5s var(--ease) both; }
.js .shutter .flash { animation: flash-in .45s ease-out both; }
@keyframes blade-open { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes flash-in { 0% { opacity: .55; } 100% { opacity: 0; } }
.shutter.closing .blade { animation: blade-close .22s cubic-bezier(.6, 0, .9, .4) forwards; }
.shutter.closing .flash { animation: flash-out .26s ease-in forwards; }
@keyframes blade-close { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes flash-out { 0%, 55% { opacity: 0; } 100% { opacity: .85; } }
.shutter.snap .flash { animation: snap .4s ease-out both; }
@keyframes snap { 0% { opacity: .9; } 100% { opacity: 0; } }

/* ---------- Hero: the viewfinder ---------- */

.hero { max-width: 56rem; margin: 0 auto 2.5rem; }
.vf {
  position: relative; aspect-ratio: 4 / 3; min-height: 17rem; max-height: 32rem; width: 100%;
  background: #080a07; border-radius: 14px; overflow: hidden;
  border: 8px solid #2b2f29;
  box-shadow: 0 0 0 1px #4a5046, 0 20px 50px rgba(0,0,0,.6), inset 0 0 60px rgba(0,0,0,.9);
  display: grid; place-items: center; padding: 2.6rem 1.4rem;
  isolation: isolate;
}
.vf::after {                      /* scanlines */
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.035) 0 1px, transparent 1px 3px);
}
.vf-bokeh { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.vf-bokeh i {
  position: absolute; border-radius: 50%; filter: blur(2px);
  width: var(--s); height: var(--s); left: var(--x); top: var(--y);
  background: radial-gradient(circle, rgba(255,190,100,.55), rgba(255,154,26,.12) 60%, transparent 70%);
  animation: drift var(--t) ease-in-out infinite alternate;
}
.vf-bokeh i:nth-child(1) { --s: 9rem; --x: 8%;  --y: 55%; --t: 9s; }
.vf-bokeh i:nth-child(2) { --s: 6rem; --x: 70%; --y: 12%; --t: 11s; background: radial-gradient(circle, rgba(120,190,255,.45), transparent 68%); }
.vf-bokeh i:nth-child(3) { --s: 11rem; --x: 55%; --y: 50%; --t: 13s; }
.vf-bokeh i:nth-child(4) { --s: 4rem; --x: 30%; --y: 8%;  --t: 7s; background: radial-gradient(circle, rgba(255,120,200,.4), transparent 68%); }
.vf-bokeh i:nth-child(5) { --s: 7rem; --x: 86%; --y: 62%; --t: 10s; background: radial-gradient(circle, rgba(120,255,190,.32), transparent 68%); }
.vf-bokeh i:nth-child(6) { --s: 3rem; --x: 18%; --y: 30%; --t: 6s; }
.vf-bokeh i:nth-child(7) { --s: 5rem; --x: 45%; --y: 72%; --t: 8s; background: radial-gradient(circle, rgba(120,190,255,.4), transparent 68%); }
@keyframes drift { from { transform: translate(-14px, 8px) scale(.94); } to { transform: translate(16px, -12px) scale(1.08); } }

.vf-hud {
  position: absolute; left: 14px; right: 14px; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  font: 700 .74rem/1 var(--mono); letter-spacing: .08em; color: var(--lcd-text);
  text-shadow: 0 0 3px #000;
}
.vf-hud.top { top: 12px; }
.vf-hud.bottom { bottom: 12px; font-size: .85rem; }
.rec { display: inline-flex; align-items: center; gap: .45em; color: #ff6a5c; }
.rec b { width: .7em; height: .7em; border-radius: 50%; background: #ff3b30; animation: blink 1.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.batt { display: inline-flex; gap: 2px; padding: 2px; border: 1.5px solid var(--lcd-text); border-radius: 2px; position: relative; }
.batt::after { content: ""; position: absolute; right: -5px; top: 3px; width: 3px; height: 6px; background: var(--lcd-text); }
.batt u { width: 5px; height: 8px; background: var(--lcd-text); }
.batt u:last-child { animation: blink 2.8s steps(1) infinite; }

.vf-focus { position: absolute; z-index: 2; left: 50%; top: 50%; width: 88%; height: 66%; translate: -50% -50%; pointer-events: none; animation: lock 5.5s ease-in-out infinite; }
.vf-focus i { position: absolute; width: 14%; height: 18%; border: 0 solid #fff; filter: drop-shadow(0 0 2px #000); }
.vf-focus i:nth-child(1) { left: 0; top: 0; border-width: 3px 0 0 3px; }
.vf-focus i:nth-child(2) { right: 0; top: 0; border-width: 3px 3px 0 0; }
.vf-focus i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 3px 3px; }
.vf-focus i:nth-child(4) { right: 0; bottom: 0; border-width: 0 3px 3px 0; }
@keyframes lock {
  0%   { scale: 1.45; opacity: 0; }
  10%  { scale: 1.3;  opacity: .8; }
  22%  { scale: 1;    opacity: 1; }
  26%  { scale: 1;    opacity: 1; filter: drop-shadow(0 0 6px #7dff9a); }
  90%  { scale: 1;    opacity: 1; }
  100% { scale: 1.1;  opacity: 0; }
}

.hooks { position: relative; z-index: 3; display: grid; place-items: center; width: 100%; }
.hook {
  grid-area: 1 / 1; margin: 0; max-width: 21ch; text-align: center; text-wrap: balance;
  font: 800 clamp(1.35rem, 5.2vw, 2.3rem)/1.22 var(--font); letter-spacing: -.01em; color: #f6f7ef;
  text-shadow: 0 2px 14px rgba(0,0,0,.95), 0 0 2px #000;
  opacity: 0; translate: 0 10px; transition: opacity .6s ease, translate .6s var(--ease);
}
.hook.is-on { opacity: 1; translate: 0 0; }

.vf-controls { display: flex; align-items: center; gap: .9rem; margin: 1rem 0 0; justify-content: center; font: 700 .85rem var(--mono); color: var(--soft); }
.shutter-btn {
  width: 3.4rem; height: 3.4rem; border-radius: 50%; padding: 0; cursor: pointer;
  border: 3px solid #50564b; background: radial-gradient(circle at 35% 30%, #fff, #b9bdb2 60%, #7e8378);
  box-shadow: 0 4px 0 #343830, 0 8px 18px rgba(0,0,0,.5);
  transition: transform .12s, box-shadow .12s;
}
.shutter-btn span { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 0 0 5px #e9ebe2, inset 0 0 0 6px #9da198; }
.shutter-btn:active { transform: translateY(4px); box-shadow: 0 0 0 #343830, 0 2px 8px rgba(0,0,0,.5); }
.pill {
  font: 700 .78rem var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  color: var(--text); background: linear-gradient(#262a24, #181b17);
  border: 1px solid var(--line); border-radius: 999px; padding: .55rem .9rem;
  transition: border-color .2s, color .2s, background .2s;
}
.pill:hover { border-color: var(--stamp); color: var(--stamp); }
.pill[aria-pressed="true"] { background: var(--stamp); border-color: var(--stamp); color: #111; }

/* ---------- LCD frame (camera screen in a silver bezel) ---------- */

.lcd {
  margin: 2rem 0; padding: 9px;
  background: linear-gradient(#e3e5de, #b7bab2);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 #8f938a, 0 14px 30px rgba(0,0,0,.55);
  color: var(--paper-ink);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.lcd-screen {
  position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--lcd); border-radius: 6px;
  box-shadow: inset 0 0 0 2px #000, inset 0 0 18px rgba(0,0,0,.9);
}
.lcd-screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.04) 0 1px, transparent 1px 3px),
              linear-gradient(115deg, rgba(255,255,255,.1), transparent 30%);
}
.lcd-screen img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.06) saturate(1.1);
  transition: transform .8s var(--ease), filter .4s;
}
.lcd:hover .lcd-screen img { transform: scale(1.05); filter: contrast(1.1) saturate(1.2) brightness(1.06); }
.lcd-ui {
  position: absolute; left: 10px; right: 10px; top: 8px; z-index: 2;
  display: flex; justify-content: space-between;
  font: 700 .78rem var(--mono); color: var(--lcd-text); text-shadow: 0 0 3px #000; pointer-events: none;
}
.lcd-screen > .stamp { position: absolute; right: 10px; bottom: 8px; z-index: 2; font-size: 1rem; }
.lcd figcaption { padding: .7rem .35rem .2rem; font-size: .85rem; line-height: 1.5; color: #3a3d36; }

/* ---------- Polaroid ---------- */

.polaroid {
  position: relative; margin: 2.2rem auto; max-width: 25rem;
  background: var(--paper); color: var(--paper-ink);
  padding: 12px 12px 14px; border-radius: 3px;
  box-shadow: 0 1px 1px rgba(0,0,0,.4), 0 16px 32px rgba(0,0,0,.55);
  transform: rotate(var(--r, 0deg)) perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.polaroid:hover { --r: 0deg; box-shadow: 0 1px 1px rgba(0,0,0,.4), 0 26px 44px rgba(0,0,0,.65); z-index: 2; }
.polaroid::before {               /* tape */
  content: ""; position: absolute; top: -12px; left: 50%; width: 5.5rem; height: 1.6rem; translate: -50% 0; rotate: -3deg;
  background: rgba(255, 207, 120, .55); box-shadow: 0 1px 2px rgba(0,0,0,.25);
  clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 88% 0, 92% 10%, 96% 0, 100% 8%, 100% 92%, 96% 100%, 92% 90%, 88% 100%, 12% 100%, 8% 90%, 4% 100%, 0 92%);
}
.polaroid .ph { aspect-ratio: 4 / 3; overflow: hidden; background: #111; }
.polaroid .ph img { display: block; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05) saturate(1.08); transition: transform .8s var(--ease); }
.polaroid:hover .ph img { transform: scale(1.06); }
.polaroid figcaption { padding: .8rem .3rem .1rem; font: 1rem/1.4 var(--hand); color: var(--paper-ink); }
.polaroid figcaption .stamp { display: block; font-size: .8rem; margin-bottom: .2rem; color: var(--stamp-ink); text-shadow: none; }

/* ---------- Contact sheet ---------- */

.sheet {
  margin: 2rem 0; padding: 30px 10px; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr);
  background:
    repeating-linear-gradient(90deg, #d9d9d0 0 10px, transparent 10px 22px) 0 6px / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, #d9d9d0 0 10px, transparent 10px 22px) 0 calc(100% - 6px) / 100% 9px no-repeat,
    #060706;
  border-radius: 6px; box-shadow: 0 14px 30px rgba(0,0,0,.55);
}
.sheet .frame { position: relative; margin: 0; padding: 0; transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.sheet .ph { aspect-ratio: 4 / 3; overflow: hidden; background: #111; }
.sheet img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; filter: grayscale(.25) contrast(1.05); }
.sheet .frame:hover img { transform: scale(1.08); filter: none; }
.fno { position: absolute; top: -22px; left: 2px; font: 700 .68rem var(--mono); color: var(--stamp); letter-spacing: .08em; }
.sheet figcaption { padding-top: .35rem; font-size: .72rem; line-height: 1.4; color: var(--soft); }
.sheet figcaption .stamp { font-size: .7rem; display: block; }

/* ---------- Carousel strip ---------- */

.strip {
  display: flex; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .5rem 1rem 1.2rem; margin: 1.5rem -1rem; scrollbar-width: thin; scrollbar-color: var(--stamp) var(--bg-2);
}
.strip .lcd { flex: 0 0 84%; margin: 0; scroll-snap-align: center; }
.strip-hint { font: 700 .75rem var(--mono); color: var(--soft); margin-top: -.6rem; letter-spacing: .05em; }

/* ---------- Cards (journal list, home) ---------- */

.cards { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 2.2rem 1.6rem; grid-template-columns: 1fr; }
.card { margin: 0; max-width: none; }
.card .card-body { padding: .8rem .3rem .2rem; }
.card h3 { margin: .15rem 0 .4rem; font-size: 1.1rem; color: var(--paper-ink); }
.card h3 a { color: var(--paper-ink); text-decoration: none; }
.card h3 a:visited { color: var(--paper-ink); }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 3; }   /* whole card is the link */
.card h3 a:focus-visible { outline: none; }
.card:has(h3 a:focus-visible) { outline: 3px solid var(--stamp); outline-offset: 4px; }
.card p { font-size: .88rem; line-height: 1.5; color: #43463e; margin: 0 0 .6rem; }
.card .stamp { font-size: .85rem; color: var(--stamp-ink); text-shadow: none; }
.card.is-hidden { display: none; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1rem; }
.tags li { margin: 0; font: 700 .68rem var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: .25rem .55rem; border: 1px solid var(--soft); border-radius: 999px; color: var(--soft); }
.card .tags li { border-color: #6b6e63; color: #4b4e45; margin: 0; }
.card .tags { margin: 0; }
.filter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 0; }
.filter[hidden] { display: none; }

/* ---------- Panel ---------- */

.panel {
  position: relative; margin: 2.6rem 0; padding: 1.3rem 1.3rem .6rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.panel::before { content: "INFO"; position: absolute; top: -.7rem; left: 1rem; padding: .1rem .5rem; background: var(--stamp); color: #111; font: 800 .68rem var(--mono); letter-spacing: .12em; border-radius: 3px; }
.panel h2 { margin-top: 0; font-size: 1.2rem; }

/* ---------- Post ---------- */

.post-head { max-width: var(--read); margin: 1.5rem auto 1.6rem; }
.kicker { margin: 0 0 .6rem; font-size: 1.5rem; }
.post-head .meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font: 700 .78rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); margin: 0 0 1rem; }
.post-head .meta span + span::before { content: "/"; margin-right: 1rem; color: var(--line); }
.prose .lcd, .prose .polaroid { max-width: 100%; }
.prose .polaroid { max-width: 26rem; }

.pager { max-width: var(--read); margin: 3rem auto 0; padding-top: 1.4rem; border-top: 1px dashed var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; font-size: .92rem; }
.pager a { display: block; padding: .8rem 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; line-height: 1.35; transition: border-color .2s, transform .25s var(--ease); }
.pager a:hover { border-color: var(--stamp); transform: translateY(-2px); }
.pager a.r { text-align: right; }
.pager small { display: block; font: 700 .68rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--stamp); margin-bottom: .2rem; }

/* ---------- Wider screens ---------- */

@media (min-width: 40em) {
  body { font-size: 17px; }
  main { padding-top: 1.6rem; }
  .vf { padding: 3rem 3rem; border-width: 10px; }
  .vf-hud { font-size: .85rem; left: 20px; right: 20px; }
  .vf-focus { width: 46%; height: auto; aspect-ratio: 4 / 3; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .sheet { grid-template-columns: repeat(3, 1fr); padding: 34px 14px; gap: 14px; }
  .strip .lcd { flex-basis: 62%; }
  .strip { margin-left: 0; margin-right: 0; padding-left: 0; }
}
@media (min-width: 64em) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Reduced motion: everything still, everything visible ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  body::before { animation: none; opacity: .09; }
  .js .reveal { opacity: 1; translate: 0 0; }
  .shutter { display: none; }
  .hook { translate: 0 0; }
  .vf-focus { opacity: 1; }
}

@media print {
  body::before, body::after, .shutter { display: none; }
  body { background: #fff; color: #000; }
}
