/* nueye — public site styles
   Mood: a darkroom at night. Warm charcoal, safelight red, the orange
   glow of a film date-stamp, and prints with clean white borders. */

:root {
  --bg: #15120e;
  --bg-2: #1c1813;
  --bg-3: #241f18;
  --ink: #efe6d4;
  --ink-2: #c9bea9;
  --muted: #8f8573;
  --line: rgba(239, 230, 212, 0.12);
  --paper: #fdfbf6;
  --note: #f5efe1;
  --note-line: rgba(64, 104, 170, 0.14);
  --marker: #141414;
  --ballpoint: #1f3a86;
  --amber: #ff8a1e;
  --amber-glow: rgba(255, 128, 20, 0.75);
  --safelight: #e0472a;

  --f-ui: 'Space Grotesk', system-ui, sans-serif;
  --f-mono: 'DM Mono', ui-monospace, monospace;
  --f-marker: 'Permanent Marker', 'Comic Sans MS', cursive;
  --f-pen: 'Nothing You Could Do', 'Bradley Hand', cursive;
  --f-read: 'Newsreader', Georgia, serif;
  --f-lcd: 'DSEG7', var(--f-mono);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(224, 71, 42, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(255, 138, 30, 0.06), transparent 60%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }

/* Film grain over everything */
.grain {
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 100;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: rgba(21, 18, 14, 0.78);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 14px;
  text-decoration: none;
}
.brand-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--safelight);
  box-shadow: 0 0 10px 2px rgba(224, 71, 42, 0.6);
}
.nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.nav a {
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none; padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current='page'] { color: var(--ink); border-bottom-color: var(--amber); }

main { display: block; }
.section { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gutter) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--safelight); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.marker { font-family: var(--f-marker); font-weight: 400; letter-spacing: 0.01em; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px, 9vw, 120px); padding-bottom: 24px; overflow: hidden; overflow: clip; }
.hero-copy {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 40px clamp(32px, 6vw, 96px);
}
.hero-copy.has-sotd { grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr); }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-width: 0; }
.hero-text .eyebrow { margin-bottom: 0; }
.hero-actions { display: flex; align-items: center; gap: 14px 18px; flex-wrap: wrap; }
.hero h1 {
  margin: 0; max-width: 16ch;
  font-size: clamp(2.5rem, 6.6vw, 5.6rem); line-height: 0.98; letter-spacing: -0.035em; font-weight: 700;
  text-wrap: balance;
}
.hero-sub { margin: 0; max-width: 46ch; color: var(--ink-2); font-size: clamp(1rem, 1.4vw, 1.12rem); }
.counter {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px;
  background: linear-gradient(180deg, #0f0d0a, #17130f);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.6);
}
.counter-num {
  font-family: var(--f-lcd); font-size: clamp(2rem, 4vw, 3rem); color: var(--amber);
  text-shadow: 0 0 12px var(--amber-glow); line-height: 1;
}
.counter-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted); line-height: 1.3; }

/* Film strip marquee */
.strip {
  position: relative; margin-top: clamp(40px, 6vw, 72px);
  background: #0b0907;
  padding: 34px 0;
  overflow: hidden;
  transform: rotate(-1.2deg) scale(1.03);
  border-top: 1px solid #000; border-bottom: 1px solid #000;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.strip::before, .strip::after {
  content: ''; position: absolute; left: 0; right: 0; height: 12px;
  background-image: radial-gradient(ellipse 5px 4px at center, var(--bg-3) 70%, transparent 72%);
  background-size: 22px 12px;
}
.strip::before { top: 13px; } .strip::after { bottom: 13px; }
.strip-track { display: flex; gap: 10px; width: max-content; animation: roll 70s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
@keyframes roll { to { transform: translateX(-50%); } }
.strip-cell { position: relative; width: clamp(160px, 20vw, 260px); aspect-ratio: 3 / 2; flex: none; }
.strip-cell img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) contrast(1.05); border-radius: 2px; }
.strip-no {
  position: absolute; left: 6px; bottom: -32px;
  font-family: var(--f-mono); font-size: 10px; color: var(--amber); opacity: 0.8; letter-spacing: 0.1em;
}

/* ---------- section heads ---------- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: clamp(24px, 4vw, 44px); padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.section-head h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.02em; }
.section-note, .section-link { margin: 0; font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.section-link { text-decoration: none; color: var(--ink-2); } .section-link:hover { color: var(--amber); }

/* ---------- prints: square white border, photo keeps its own shape ---------- */
.frame {
  position: relative; display: block;
  aspect-ratio: 1 / 1;
  background: var(--paper);
  border-radius: 2px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 0 0 1px rgba(0, 0, 0, 0.25),
    0 18px 36px -18px rgba(0, 0, 0, 0.85),
    0 4px 10px -4px rgba(0, 0, 0, 0.5);
}
.shot {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden; background: #e9e4d8;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.stamp {
  position: absolute; right: 5%; bottom: 5%;
  font-family: var(--f-lcd); font-size: clamp(8px, 0.95vw, 12px); letter-spacing: 0.08em; word-spacing: 0.45em;
  color: #ffae4a;
  text-shadow: 0 0 4px var(--amber-glow), 0 0 10px rgba(255, 110, 10, 0.55);
  opacity: 0.92; pointer-events: none; white-space: pre;
}

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: clamp(22px, 3.2vw, 44px) clamp(18px, 2.6vw, 36px);
}
.card-btn {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left;
}
.card-btn .frame { transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), box-shadow 0.35s; }
.card-btn:hover .frame, .card-btn:focus-visible .frame {
  transform: translateY(-5px) rotate(-0.6deg);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 0 0 1px rgba(0,0,0,.25), 0 28px 44px -20px rgba(0,0,0,.9), 0 0 0 6px rgba(255,138,30,.0);
}
.card-meta { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; min-width: 0; }
.card-no { flex: none; font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.08em; }
.card-title {
  font-family: var(--f-marker); font-size: 1.08rem; color: var(--ink); line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* "Developing" effect as prints come into view */
.js .card .shot img { opacity: 0; filter: brightness(2.4) saturate(0) blur(4px); }
.js .card.in .shot img { animation: develop 1.5s cubic-bezier(.3, .7, .2, 1) forwards; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes develop {
  0% { opacity: 0; filter: brightness(2.4) saturate(0) sepia(0.6) blur(4px); }
  35% { opacity: 1; filter: brightness(1.6) saturate(0.3) sepia(0.5) blur(1px); }
  100% { opacity: 1; filter: none; }
}

/* ---------- load more ---------- */
.more-wrap { display: flex; justify-content: center; margin-top: clamp(40px, 6vw, 72px); }
.more {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 22px 14px 18px;
  background: var(--bg-2); border: 1px solid rgba(239, 230, 212, 0.22); border-radius: 999px;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.1s;
}
.more:hover { border-color: var(--amber); background: var(--bg-3); }
.more:active { transform: scale(0.98); }
.more[disabled] { opacity: 0.6; cursor: progress; }
.lever {
  width: 26px; height: 8px; border-radius: 4px;
  background: linear-gradient(180deg, #d8cfbd, #8a8170);
  transform-origin: 4px 50%; transform: rotate(-18deg);
  transition: transform 0.45s cubic-bezier(.3, 1.6, .5, 1);
}
.more.cranking .lever { transform: rotate(38deg); }
.more-count { font-family: var(--f-lcd); font-size: 12px; color: var(--amber); text-shadow: 0 0 6px var(--amber-glow); letter-spacing: 0.06em; }

.empty { padding: 60px 20px; text-align: center; color: var(--ink-2); border: 1px dashed var(--line); border-radius: 12px; }
.empty-title { font-family: var(--f-marker); font-size: 1.6rem; color: var(--ink); margin: 0 0 6px; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 60; }
.lb-backdrop {
  position: absolute; inset: 0;
  background: rgba(12, 10, 8, 0.93);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: fadein 0.25s ease;
}
@keyframes fadein { from { opacity: 0; } }
.lb-inner {
  position: relative; height: 100%;
  max-width: 1480px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); align-items: center;
  gap: clamp(20px, 3vw, 44px); padding: clamp(20px, 3vw, 40px);
  pointer-events: none;
}
.lb-inner > * { pointer-events: auto; }
.lb-stage { position: relative; display: grid; place-items: center; height: 100%; min-height: 0; }
.lb-frame {
  width: min(100%, calc(100dvh - 2 * clamp(20px, 3vw, 40px)));
  animation: printin 0.45s cubic-bezier(.2, .8, .2, 1);
}
@keyframes printin { from { opacity: 0; transform: translateY(14px) rotate(-1deg) scale(0.98); } }
.lb-frame .stamp { font-size: clamp(11px, 1.4vw, 18px); }
.lb-frame img { cursor: default; }
.lb-nav {
  position: absolute; top: 50%; z-index: 2;
  width: 46px; height: 46px; margin-top: -23px; border-radius: 50%;
  background: rgba(21, 18, 14, 0.7); border: 1px solid rgba(239, 230, 212, 0.25);
  font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 3px;
}
.lb-nav:hover { border-color: var(--amber); color: var(--amber); }
.lb-nav.prev { left: -6px; } .lb-nav.next { right: -6px; }
.lb-nav[disabled] { opacity: 0.2; pointer-events: none; }
.lb-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(21, 18, 14, 0.8); border: 1px solid rgba(239, 230, 212, 0.25); cursor: pointer; font-size: 16px;
}
.lb-close:hover { border-color: var(--amber); color: var(--amber); }

/* Handwritten notes card */
.lb-notes {
  position: relative;
  max-height: calc(100dvh - 80px); overflow: auto;
  padding: 34px 28px 26px;
  color: #2b2a26;
  background-color: var(--note);
  background-image: radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,.55), transparent 60%), linear-gradient(180deg, rgba(120,90,40,.04), rgba(120,90,40,.10));
  border-radius: 3px;
  transform: rotate(0.8deg);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.12);
  animation: notein 0.5s 0.08s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes notein { from { opacity: 0; transform: translateX(20px) rotate(3deg); } }
.tape {
  position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; margin-left: -55px;
  background: rgba(236, 226, 196, 0.72);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transform: rotate(-3deg);
  clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 50%);
}
.lb-no { margin: 0 0 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; color: #8a7f6c; text-transform: uppercase; }
.lb-title {
  margin: 0 0 12px;
  font-family: var(--f-marker); font-weight: 400; color: var(--marker);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.12; letter-spacing: 0.01em;
  transform: rotate(-1deg);
}
.lb-title:empty { display: none; }
.lb-caption {
  margin: 0 0 20px;
  font-family: var(--f-pen); color: var(--ballpoint);
  font-size: 1.3rem; line-height: 1.55; white-space: pre-line;
}
.lb-caption:empty { display: none; }
.lb-meta {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 16px;
  font-family: var(--f-mono); font-size: 12.5px; line-height: 1.5;
  padding-top: 14px; border-top: 1px dashed rgba(0, 0, 0, 0.18);
}
.lb-meta dt { color: #8a7f6c; text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; padding-top: 1px; }
.lb-meta dd { margin: 0; color: #2b2a26; }
.lb-tags { margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.lb-tags:empty { display: none; }
.lb-tags span { font-family: var(--f-mono); font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: rgba(31, 58, 134, 0.08); color: var(--ballpoint); }
.lb-actions { margin: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.lb-actions button, .lb-actions a {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: #6c6252; text-decoration: underline; text-underline-offset: 3px;
}
.lb-actions button:hover, .lb-actions a:hover { color: var(--safelight); }
html.lb-open { overflow: hidden; }
section[id] { scroll-margin-top: 72px; }

/* ---------- the camera ---------- */
.camera {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr); gap: clamp(28px, 5vw, 72px); align-items: center;
}
.camera-copy h2 { margin: 0 0 14px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.02; color: var(--ink); }
.camera-text { font-family: var(--f-read); font-size: clamp(1.08rem, 1.45vw, 1.24rem); line-height: 1.65; color: var(--ink-2); max-width: 52ch; }
.camera-text p { margin: 0 0 1em; }
.camera-specs {
  list-style: none; margin: 22px 0 0; padding: 16px 0 0; border-top: 1px dashed var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 32px;
  font-family: var(--f-mono); font-size: 13px; color: var(--ink);
}
.camera-specs span { display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.camera-photo { position: relative; display: grid; place-items: center; padding: clamp(10px, 3vw, 40px) 0; }
.camera-glow {
  position: absolute; inset: 8% 4%;
  background: radial-gradient(closest-side, rgba(255, 138, 30, 0.16), rgba(224, 71, 42, 0.06) 55%, transparent 75%);
  filter: blur(10px);
}
.camera-photo img {
  position: relative; width: 100%; max-width: 340px; height: auto;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.7)) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
  transform: rotate(-2deg);
  transition: transform 0.6s cubic-bezier(.2, .8, .2, 1);
}
.camera-photo:hover img { transform: rotate(0deg) translateY(-6px); }

/* ---------- about ---------- */
.about {
  display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(36px, 6vw, 96px); align-items: center;
}
.polaroid {
  position: relative;
  background: var(--paper); padding: 16px 16px 20px; border-radius: 2px;
  transform: rotate(-3deg);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.2);
}
.polaroid-img { aspect-ratio: 4 / 5; background: #e2dccd; overflow: hidden; display: grid; place-items: center; }
.polaroid-img img { width: 100%; height: 100%; object-fit: cover; }
.polaroid-empty { font-family: var(--f-pen); color: #8a7f6c; font-size: 1.2rem; }
.polaroid-cap { margin: 14px 4px 0; font-family: var(--f-pen); color: var(--ballpoint); font-size: 1.25rem; line-height: 1.3; }
.about-copy h2 { margin: 0 0 6px; font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.02; color: var(--ink); }
.about-loc { margin: 0 0 20px; font-family: var(--f-mono); font-size: 13px; color: var(--amber); letter-spacing: 0.06em; }
.about-bio { font-family: var(--f-read); font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.65; color: var(--ink-2); max-width: 58ch; }
.about-bio p { margin: 0 0 1em; }
.about-links { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.about-links a { color: var(--ink); text-decoration-color: var(--amber); text-underline-offset: 4px; }

/* ---------- journal ---------- */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(28px, 4vw, 48px); }
.post-card { display: flex; flex-direction: column; gap: 16px; text-decoration: none; }
.post-card .frame { transition: transform 0.35s cubic-bezier(.2, .8, .2, 1); }
.post-card:hover .frame { transform: translateY(-4px) rotate(0.6deg); }
.post-card-body { display: flex; flex-direction: column; gap: 6px; }
.post-date { font-family: var(--f-mono); font-size: 12px; color: var(--amber); letter-spacing: 0.08em; text-transform: uppercase; margin: 0; }
.post-card-title { font-family: var(--f-marker); font-size: 1.55rem; line-height: 1.15; }
.post-card-excerpt { color: var(--ink-2); font-size: 0.98rem; }
.post-card:hover .post-card-title { color: #fff; text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 5px; }

.journal, .post { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 8vw, 110px) var(--gutter) 0; }
.page-head { margin-bottom: clamp(36px, 6vw, 64px); }
.page-head h1 { margin: 0 0 12px; font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1; }

.post article { max-width: 760px; margin: 0 auto; }
.post-head { margin-bottom: clamp(28px, 4vw, 48px); }
.back { display: inline-block; margin-bottom: 26px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--amber); }
.post-head h1 { margin: 10px 0 0; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.04; text-wrap: balance; }
.draft-flag { color: var(--safelight); }
.post-cover { margin: 0 0 clamp(32px, 5vw, 56px); }
.post-cover .frame { max-width: 620px; margin: 0 auto; }

.prose { font-family: var(--f-read); font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.75; color: var(--ink-2); }
.prose p { margin: 0 0 1.25em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--f-ui); color: var(--ink); letter-spacing: -0.015em; line-height: 1.2; margin: 1.8em 0 0.6em; }
.prose h2 { font-size: 1.6em; } .prose h3 { font-size: 1.3em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); text-decoration-color: var(--amber); text-underline-offset: 4px; }
.prose blockquote { margin: 1.8em 0; padding: 0 0 0 22px; border-left: 3px solid var(--amber); font-family: var(--f-marker); font-size: 1.35em; line-height: 1.4; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.25em; }
.prose img { border-radius: 2px; }
.film-rule { border: 0; height: 14px; margin: 2.4em 0; background-image: radial-gradient(ellipse 5px 4px at center, rgba(239,230,212,.18) 70%, transparent 72%); background-size: 22px 14px; }

/* Inline journal photos: a print with a white border, caption in ballpoint on the margin */
.post-figure {
  margin: 2.2em auto; max-width: 640px;
  background: var(--paper); padding: 14px 14px 12px; border-radius: 2px;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.2);
}
.post-figure:nth-of-type(odd) { transform: rotate(-0.6deg); }
.post-figure:nth-of-type(even) { transform: rotate(0.5deg); }
.post-figure .frame { aspect-ratio: auto; background: none; box-shadow: none; }
.post-figure img { width: 100%; height: auto; }
.post-figure figcaption { padding: 10px 4px 0; font-family: var(--f-pen); color: var(--ballpoint); font-size: 1.4rem; line-height: 1.35; }

.post-nav { max-width: 760px; margin: clamp(48px, 8vw, 90px) auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px dashed var(--line); padding-top: 24px; }
.post-nav a { text-decoration: none; font-family: var(--f-marker); font-size: 1.2rem; line-height: 1.2; }
.post-nav a span { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.post-nav a:hover { color: var(--amber); }
.post-nav .older { text-align: right; }

.notfound { max-width: 640px; margin: 0 auto; padding: 18vh var(--gutter) 10vh; text-align: center; }
.notfound .stamp { position: static; font-size: 28px; }
.notfound h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); margin: 18px 0 8px; }
.notfound a { color: var(--amber); }

/* ---------- footer ---------- */
.footer { margin-top: clamp(80px, 12vw, 160px); padding-bottom: 36px; color: var(--muted); font-size: 13px; }
.footer p { max-width: var(--max); margin: 18px auto 0; padding: 0 var(--gutter); font-family: var(--f-mono); font-size: 12px; }
.edge {
  display: flex; gap: clamp(24px, 6vw, 80px); overflow: hidden; white-space: nowrap;
  padding: 22px var(--gutter);
  background: #0b0907;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--amber); opacity: 0.85;
  position: relative;
}
.edge::before, .edge::after {
  content: ''; position: absolute; left: 0; right: 0; height: 10px;
  background-image: radial-gradient(ellipse 5px 3.5px at center, var(--bg) 70%, transparent 72%);
  background-size: 22px 10px;
}
.edge::before { top: 4px; } .edge::after { bottom: 4px; }

/* ---------- random shot ---------- */
.ico { flex: none; }
.random-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 999px; cursor: pointer;
  background: var(--bg-2); border: 1px solid rgba(239, 230, 212, 0.22);
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  transition: border-color 0.2s, background 0.2s, transform 0.1s;
}
.random-btn .ico { color: var(--amber); transition: transform 0.4s cubic-bezier(.3, 1.6, .5, 1); }
.random-btn:hover { border-color: var(--amber); background: var(--bg-3); }
.random-btn:hover .ico { transform: rotate(-20deg) scale(1.1); }
.random-btn:active { transform: scale(0.97); }
.random-btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- shot of the day ---------- */
.sotd { margin: 0; position: relative; justify-self: center; width: min(100%, 420px); }
.sotd-print {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  transform: rotate(2.2deg); transition: transform 0.45s cubic-bezier(.2, .8, .2, 1);
}
.sotd-print:hover, .sotd-print:focus-visible { transform: rotate(0.6deg) translateY(-6px); }
.sotd-print .frame { box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 0 0 1px rgba(0,0,0,.25), 0 40px 70px -30px rgba(0,0,0,.95), 0 8px 16px -8px rgba(0,0,0,.6); }
.sotd-print .tape { z-index: 2; top: -13px; }
.sotd-print .stamp { font-size: clamp(9px, 1vw, 13px); }
.sotd-label {
  position: absolute; z-index: 3; left: -14px; top: 18px;
  padding: 6px 12px 5px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: #fff3e6; background: var(--safelight);
  border-radius: 3px; transform: rotate(-6deg);
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.7);
}
.sotd figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 22px; padding-left: 6px; transform: rotate(1deg); }
.sotd-title { font-family: var(--f-marker); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.15; }
.sotd-meta { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }

/* ---------- counts under prints ---------- */
.card-stats { margin-left: auto; flex: none; display: inline-flex; gap: 10px; font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); }
.card-stats:empty { display: none; }
.card-stats .st-like { color: #e9876f; }

/* ---------- link to the camera maker ---------- */
.camera-link {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 22px;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: 0.06em;
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 5px;
}
.camera-link:hover { color: var(--amber); }

/* ---------- likes & notes in the pop-up ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lb-actions { align-items: center; row-gap: 10px; }
.lb-actions .lb-link { display: inline-flex; align-items: center; gap: 6px; }
.lb-actions .lb-link .ico { width: 14px; height: 14px; }
.lb-like {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px 6px 10px !important; border-radius: 999px;
  border: 1.5px solid rgba(0, 0, 0, 0.16) !important; background: rgba(255, 255, 255, 0.5) !important;
  font-family: var(--f-mono); font-size: 13px !important; color: #4a4338 !important; text-decoration: none !important; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.lb-like .heart { fill: none; stroke: currentColor; stroke-width: 1.8; transition: fill 0.2s, stroke 0.2s; }
.lb-like:hover { border-color: var(--safelight) !important; color: var(--safelight) !important; }
.lb-like.on { color: var(--safelight) !important; border-color: rgba(224, 71, 42, 0.45) !important; background: rgba(224, 71, 42, 0.08) !important; }
.lb-like.on .heart { fill: var(--safelight); stroke: var(--safelight); }
.lb-like.pop .heart { animation: heartpop 0.45s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes heartpop { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

.lb-talk { margin-top: 22px; padding-top: 16px; border-top: 1px dashed rgba(0, 0, 0, 0.18); }
.lb-talk-title { margin: 0 0 12px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #8a7f6c; }
.lb-comments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.note-text { margin: 0; font-family: var(--f-pen); font-size: 1.12rem; line-height: 1.5; color: #2f2c27; white-space: pre-line; overflow-wrap: anywhere; }
.note-by { margin: 3px 0 0; font-family: var(--f-mono); font-size: 11px; color: #8a7f6c; letter-spacing: 0.02em; }
.note.pending { opacity: 0.6; }
.lb-empty { margin: 0; font-family: var(--f-pen); font-size: 1.05rem; color: #8a7f6c; }
.lb-form { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.lb-form textarea, .lb-form input {
  width: 100%; font: inherit; font-size: 15px; color: #2b2a26;
  background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(0, 0, 0, 0.16); border-radius: 8px; padding: 9px 11px;
}
.lb-form textarea { resize: vertical; min-height: 64px; font-family: var(--f-pen); font-size: 1.12rem; line-height: 1.45; color: var(--ballpoint); }
.lb-form textarea::placeholder, .lb-form input::placeholder { color: #9c917e; }
.lb-form textarea:focus, .lb-form input:focus { outline: none; border-color: var(--ballpoint); box-shadow: 0 0 0 3px rgba(31, 58, 134, 0.14); }
.lb-form-row { display: flex; gap: 8px; }
.lb-form-row input { flex: 1; min-width: 0; font-family: var(--f-mono); font-size: 13px; }
.lb-form-row button {
  flex: none; padding: 0 18px; border-radius: 8px; border: 0; cursor: pointer;
  background: #2b2a26; color: var(--note); font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
}
.lb-form-row button:hover { background: var(--ballpoint); }
.lb-form-row button[disabled] { opacity: 0.55; cursor: progress; }
.lb-form-msg { margin: 0; min-height: 1.2em; font-family: var(--f-mono); font-size: 12px; }
.lb-form-msg.ok { color: #3f7a4a; }
.lb-form-msg.bad { color: #b4402a; }

/* ---------- rolls ---------- */
.roll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: clamp(36px, 5vw, 56px) clamp(24px, 3.4vw, 44px); }
.roll-grid.wide { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.roll-card { display: flex; flex-direction: column; gap: 18px; text-decoration: none; }
.roll-stack { position: relative; display: block; padding: 10px 10px 0 0; }
.roll-sheet {
  position: absolute; inset: 10px 10px 0 0; background: #ece6d8; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 10px 20px -12px rgba(0, 0, 0, 0.8);
  transition: transform 0.4s cubic-bezier(.2, .8, .2, 1);
}
.roll-sheet.s1 { transform: rotate(4deg) translate(6px, -2px); background: #e3dccb; }
.roll-sheet.s2 { transform: rotate(-3deg) translate(-4px, 2px); }
.roll-stack .frame { transition: transform 0.4s cubic-bezier(.2, .8, .2, 1); }
.roll-card:hover .roll-stack .frame { transform: translateY(-6px) rotate(-1deg); }
.roll-card:hover .roll-sheet.s1 { transform: rotate(7deg) translate(12px, -4px); }
.roll-card:hover .roll-sheet.s2 { transform: rotate(-6deg) translate(-10px, 2px); }
.roll-info { display: flex; flex-direction: column; gap: 4px; }
.roll-title { font-family: var(--f-marker); font-size: 1.4rem; line-height: 1.15; }
.roll-meta { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--amber); }
.roll-card:hover .roll-title { color: #fff; text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 5px; }
.roll-page { max-width: var(--max); margin: 0 auto; }
.roll-head { padding: clamp(48px, 8vw, 100px) var(--gutter) 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.roll-head .back { margin-bottom: 4px; }
.roll-head .eyebrow { margin: 0; }
.roll-head h1 { margin: 0; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; text-wrap: balance; }
.roll-desc { font-family: var(--f-read); font-size: clamp(1.08rem, 1.45vw, 1.24rem); line-height: 1.65; color: var(--ink-2); max-width: 60ch; }
.roll-desc p { margin: 0 0 0.8em; }
.roll-head .random-btn { margin-top: 6px; }
.roll-page .section { padding-top: clamp(40px, 6vw, 72px); }
.lb-meta dd a.lb-roll { color: var(--ballpoint); text-decoration: underline; text-underline-offset: 3px; }
.lb-meta dd a.lb-roll:hover { color: var(--safelight); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .lb-inner { display: block; overflow-y: auto; padding: 64px 16px 32px; height: 100%; }
  .lb-stage { height: auto; }
  .lb-frame { width: 100%; }
  .lb-nav { width: 40px; height: 40px; margin-top: -20px; font-size: 22px; }
  .lb-nav.prev { left: 8px; } .lb-nav.next { right: 8px; }
  .lb-notes { margin: 32px 4px 0; max-height: none; overflow: visible; transform: rotate(0.5deg); }
  .about { grid-template-columns: 1fr; }
  .camera { grid-template-columns: 1fr; }
  .camera-photo { order: -1; }
  .camera-photo img { max-width: 260px; }
  .about-photo { max-width: 320px; margin: 0 auto; width: 88%; }
  .hero-copy.has-sotd { grid-template-columns: minmax(0, 1fr); }
  .sotd { width: min(86%, 380px); margin-top: 8px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .topbar { padding-top: max(12px, env(safe-area-inset-top)); }
  .brand { font-size: 12px; letter-spacing: 0.1em; }
  .nav a { font-size: 12px; }
  .random-btn { padding: 12px 16px; font-size: 12px; }
  .sotd-label { left: -8px; font-size: 10px; }
  .card-stats { font-size: 10.5px; gap: 6px; }
  .lb-like { font-size: 12px !important; }
  .lb-form-row input, .lb-form textarea { font-size: 16px; } /* stops iPhone zooming in on tap */
  .grid { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .card-title { font-size: 0.95rem; }
  .card-no { display: none; }
  .stamp { font-size: 7.5px; }
  .post-list { grid-template-columns: 1fr; }
  .roll-grid, .roll-grid.wide { grid-template-columns: 1fr 1fr; gap: 32px 18px; }
  .roll-title { font-size: 1.1rem; }
  .roll-meta { font-size: 10.5px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .older { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .grain { animation: none; }
  .js .card .shot img { opacity: 1; filter: none; }
}
.card-title { min-width: 0; }
