/* nara elsewhere — paper scrapbook on a dark frame.
   Palette: "washi + ballpoint" (Japanese-minimal paper, one ink-blue accent). */

:root {
  --frame: #1d1c1a;
  --frame-text: #d9d2c4;
  --frame-mute: #8a8376;
  --bg-0: #f5f1e8;
  --bg-1: #ece6da;
  --bg-2: #e2dacb;
  --bg-card: #fbf9f4;
  --paper: #fcfaf5;
  --paper-2: #f3ecdd;
  --kraft: #d3b98d;
  --obj-ink: #1f1d1a;
  --text: #1c1b19;
  --text-dim: #57524a;
  --text-mute: #8f877a;
  --accent: #2a46a8;
  --accent-soft: rgba(42, 70, 168, 0.1);
  --line: rgba(28, 27, 25, 0.09);
  --line-strong: rgba(28, 27, 25, 0.16);
  --shadow-sm: 0 1px 2px rgba(48, 36, 20, 0.05);
  --shadow-md: 0 4px 12px rgba(48, 36, 20, 0.06), 0 1px 3px rgba(48, 36, 20, 0.04);
  --shadow-lg: 0 12px 28px rgba(48, 36, 20, 0.09), 0 4px 8px rgba(48, 36, 20, 0.05);
  --shadow-xl: 0 24px 48px rgba(48, 36, 20, 0.12), 0 8px 16px rgba(48, 36, 20, 0.07);
  --obj-shadow: drop-shadow(0 1px 1px rgba(52, 38, 20, 0.16)) drop-shadow(0 6px 8px rgba(52, 38, 20, 0.1)) drop-shadow(0 16px 18px rgba(52, 38, 20, 0.09));
  --obj-shadow-up: drop-shadow(0 2px 2px rgba(52, 38, 20, 0.12)) drop-shadow(0 14px 14px rgba(52, 38, 20, 0.12)) drop-shadow(0 34px 30px rgba(52, 38, 20, 0.14));
  --nav-bg: rgba(251, 249, 244, 0.82);
  --pill-bg: #ffffff;
  --cta-bg: #141312;
  --cta-text: #f7f3ea;
  --grain-opacity: 0.55;
  --obj-dim: none;

  --f-display: "Instrument Serif", "IBM Plex Sans Thai", Georgia, serif;
  --f-body: "Newsreader", "IBM Plex Sans Thai", Georgia, serif;
  --f-ui: "IBM Plex Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
  --f-hand: "Caveat", "Sriracha", cursive;

  --radius: 22px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --grain: 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='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .32 0 0 0 0 .25 0 0 0 0 .17 0 0 0 .38 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  color-scheme: light;
}

[data-theme="dark"] {
  --frame: #0b0a09;
  --frame-text: #cfc7b8;
  --frame-mute: #776f63;
  --bg-0: #1c1a17;
  --bg-1: #24211d;
  --bg-2: #2e2a25;
  --bg-card: #26231f;
  --paper: #f1ece2;
  --paper-2: #e6dece;
  --kraft: #bfa57a;
  --text: #efe8dc;
  --text-dim: #b6ad9e;
  --text-mute: #7f776a;
  --accent: #9fb2ff;
  --accent-soft: rgba(159, 178, 255, 0.12);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.45), 0 4px 8px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.55), 0 8px 16px rgba(0, 0, 0, 0.35);
  --obj-shadow: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5)) drop-shadow(0 8px 10px rgba(0, 0, 0, 0.35)) drop-shadow(0 18px 22px rgba(0, 0, 0, 0.3));
  --obj-shadow-up: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.45)) drop-shadow(0 16px 16px rgba(0, 0, 0, 0.4)) drop-shadow(0 36px 32px rgba(0, 0, 0, 0.38));
  --nav-bg: rgba(28, 26, 23, 0.78);
  --pill-bg: #2b2823;
  --cta-bg: #f3ede1;
  --cta-text: #161513;
  --grain-opacity: 0.35;
  --obj-dim: brightness(0.9) saturate(0.95);
  color-scheme: dark;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  background: var(--frame);
  color: var(--text);
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.th { font-family: "IBM Plex Sans Thai", var(--f-ui); }
.hand { font-family: var(--f-hand); font-weight: 600; color: var(--accent); line-height: 1.1; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--cta-bg); color: var(--cta-text); padding: 8px 14px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

::selection { background: var(--accent); color: #fff; }
html { scrollbar-color: #5b564d var(--frame); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--frame); }
::-webkit-scrollbar-thumb { background: #4a463f; border-radius: 10px; border: 2px solid var(--frame); }

/* ---------- the sheet (rounded paper card on the dark frame) ---------- */
.sheet {
  position: relative;
  margin: 8px;
  min-height: calc(100vh - 16px);
  min-height: calc(100svh - 16px);
  background: var(--bg-0);
  border-radius: var(--radius);
  overflow: clip;
  transition: background-color 0.4s ease;
}
.sheet::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: var(--grain-opacity);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}
[data-theme="dark"] .sheet::before { mix-blend-mode: soft-light; }
.sheet > * { position: relative; z-index: 1; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px clamp(16px, 4vw, 40px);
  max-width: 1360px; margin: 0 auto;
}
.topbar.is-stuck { background: var(--nav-bg); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border-bottom: 1px solid var(--line); max-width: none; }
.me-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 4px 14px 4px 4px;
  background: var(--bg-1);
  border-radius: 12px;
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: background-color .2s, transform .2s;
}
.me-pill:hover { transform: translateY(-1px); }
.me-pill img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; background: var(--bg-2); }
.me-pill .me-th { color: var(--text-mute); font-weight: 400; font-size: 13px; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-pill {
  display: flex; align-items: center; gap: 2px;
  padding: 4px;
  background: var(--pill-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.nav-pill a {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  color: var(--text-dim);
  transition: color .2s, background-color .2s;
}
.nav-pill a:hover { color: var(--text); background: var(--bg-1); }
.nav-pill a[aria-current="page"] { color: var(--text); background: var(--bg-1); font-weight: 500; }
.cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: 12px;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.cta svg { width: 16px; height: 16px; }
.theme-toggle {
  position: relative;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--pill-bg);
  color: var(--text-dim);
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.theme-toggle:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.theme-toggle svg { position: absolute; width: 17px; height: 17px; transition: opacity .35s, transform .35s var(--ease-out); }
[data-theme="light"] .theme-toggle .moon { opacity: 0; transform: translateY(18px) rotate(-30deg); }
[data-theme="dark"] .theme-toggle .sun { opacity: 0; transform: translateY(-18px) rotate(30deg); }

/* ---------- shared bits ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.page-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.015em;
}
.page-title em { font-style: italic; color: var(--accent); }
.lede { font-family: var(--f-body); font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--text-dim); max-width: 38em; }
.pill-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--cta-bg); color: var(--cta-text);
  text-decoration: none; font-weight: 500; font-size: 15px;
  transition: transform .2s, box-shadow .2s;
}
.pill-link:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.pill-link svg { width: 17px; height: 17px; flex: none; }
.pill-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  text-decoration: none; font-size: 14px; color: var(--text-dim);
  background: transparent;
  transition: transform .2s, color .2s, border-color .2s;
}
.pill-ghost:hover { transform: translateY(-1px); color: var(--text); border-color: var(--text-mute); }

/* washi tape */
.tape {
  position: absolute; z-index: 3;
  width: 86px; height: 24px;
  top: -11px; left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  background: linear-gradient(180deg, rgba(198, 210, 236, 0.78), rgba(176, 192, 228, 0.7));
  clip-path: polygon(2% 8%, 8% 0, 16% 10%, 25% 2%, 35% 9%, 46% 1%, 57% 8%, 68% 0, 79% 9%, 90% 1%, 98% 7%, 100% 92%, 92% 100%, 83% 91%, 72% 99%, 61% 92%, 50% 100%, 39% 91%, 28% 99%, 17% 92%, 6% 100%, 0 90%);
  mix-blend-mode: multiply;
}
.tape.warm { background: linear-gradient(180deg, rgba(232, 214, 170, 0.8), rgba(220, 198, 150, 0.72)); }

/* ---------- HOME: the desk ---------- */
.sheet:has(.desk)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(120% 90% at 18% 0%, rgba(255, 250, 238, .55), transparent 55%), radial-gradient(90% 70% at 100% 100%, rgba(90, 70, 40, .06), transparent 60%);
}
[data-theme="dark"] .sheet:has(.desk)::after { background: radial-gradient(110% 80% at 20% 0%, rgba(255, 220, 160, .06), transparent 55%); }
.desk {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  height: clamp(760px, calc(100vh - 84px), 1000px);
  height: clamp(760px, calc(100svh - 84px), 1000px);
  padding: 0 clamp(16px, 4vw, 40px);
}
.desk-title {
  position: absolute;
  right: 4%; top: 4.5%;
  width: min(35%, 470px);
  z-index: 2;
}
.desk-title h1 { margin: 0 auto; width: 100%; }
.hand-title { width: 100%; height: auto; display: block; overflow: visible; color: var(--text); }
.hand-title .ink { stroke: currentColor; stroke-width: 4.6; stroke-dasharray: 1 1.02; stroke-dashoffset: 1; opacity: 0; animation: write var(--t) ease-out calc(var(--d) + 0.35s) forwards; }
.hand-title .ink-over { stroke-width: 2.1; stroke-opacity: .5; transform: translate(1.3px, -0.9px); }
.hand-title .ink-accent { stroke: var(--accent); stroke-width: 3.4; }
.hand-title .ink-plane { stroke-width: 2.6; }
.hand-title .ink-dash { stroke: var(--accent); stroke-width: 2.1; stroke-dasharray: 5 7; opacity: 0; animation: fade 0.8s ease calc(var(--d) + 0.35s) forwards; }
@keyframes write { 0% { stroke-dashoffset: 1; opacity: 0; } 2% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes fade { to { opacity: 1; } }

.signature { margin: 6px 0 0 9%; display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: start; text-align: left; }
.figure { width: 50px; height: 80px; color: var(--text); margin-top: 4px; }
.sig-name { font-family: var(--f-display); font-size: 22px; color: var(--accent); line-height: 1.1; }
.sig-name .th { font-size: 14px; color: var(--text-mute); margin-left: 4px; }
.sig-role { font-family: var(--f-display); font-size: 17px; line-height: 1.25; }
.desk-intro { margin-top: 8px; max-width: 23em; font-family: var(--f-body); font-size: 15.5px; line-height: 1.5; color: var(--text-dim); }
.desk-intro-th { margin-top: 5px; font-family: "Sriracha", var(--f-hand); font-weight: 400; font-size: 15px; }

.obj {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--w);
  display: block;
  color: var(--obj-ink);
  text-decoration: none;
  transform: rotate(var(--r));
  filter: var(--obj-shadow);
  transition: transform 0.45s var(--ease-out), filter 0.45s var(--ease-out);
  animation: drop 0.8s var(--ease-out) backwards;
  animation-delay: calc(var(--i, 0) * 90ms + 150ms);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  z-index: var(--z, 3);
}
.obj > * { filter: var(--obj-dim); }
.obj:hover, .obj:focus-visible {
  transform: translateY(-9px) rotate(calc(var(--r) * 0.55)) scale(1.025);
  filter: var(--obj-shadow-up);
  z-index: 40;
}
.obj.is-dragging { transition: none; transform: rotate(calc(var(--r) * 0.4)) scale(1.05); filter: var(--obj-shadow-up); cursor: grabbing; z-index: 50; }
@keyframes drop {
  from { opacity: 0; transform: translateY(-34px) rotate(calc(var(--r) + 7deg)) scale(1.06); }
}
.obj-label {
  position: absolute;
  left: 50%; top: calc(100% + 12px);
  transform: translate(-50%, -4px);
  white-space: nowrap;
  font-family: var(--f-hand); font-weight: 600; font-size: 19px;
  color: var(--accent);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease-out);
}
.obj-label::after { content: " \2192"; }
.obj:hover .obj-label, .obj:focus-visible .obj-label { opacity: 1; transform: translate(-50%, 0); }

/* polaroid */
.polaroid .pb { position: relative; display: block; background: #fdfcf8; padding: 10px 10px 50px; }
.polaroid .ph { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #d9d2c3; }
.polaroid img, .print img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.polaroid .ph::after, .print .ph::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); pointer-events: none; }
.polaroid .cap { position: absolute; left: 14px; right: 10px; bottom: 12px; font-size: 22px; color: #22389a; transform: rotate(-2deg); }
.pb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg, rgba(255,255,255,.22), transparent 42%, rgba(60,40,10,.05)); pointer-events: none; }

/* film print with orange date imprint */
.print .pb { position: relative; display: block; background: #fbfaf6; padding: 8px 8px 30px; }
.print .ph { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #cfc8b9; }
.print .date {
  position: absolute; right: 9px; bottom: 7px;
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.12em;
  color: #ff9a3c; text-shadow: 0 0 3px rgba(255, 110, 20, 0.85), 0 0 8px rgba(255, 90, 0, 0.45);
  opacity: 0.92;
}
.print .cap { position: absolute; left: 12px; bottom: 5px; font-size: 19px; color: #22389a; }

/* boarding pass */
.bpass .pb {
  position: relative; display: grid; grid-template-columns: 1fr 30%;
  background: #fdfcf8;
  border-radius: 10px;
  overflow: hidden;
  -webkit-mask: radial-gradient(circle 9px at 70% 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 9px at 70% 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 9px at 70% 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 9px at 70% 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
}
.bp-main { padding: 0 0 14px; display: block; }
.bp-band { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 14px; background: #24356f; color: #eef0f8; font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; }
.bp-band .th { font-size: 10px; letter-spacing: 0; opacity: .8; }
.bp-route { display: flex; align-items: center; gap: 12px; padding: 10px 14px 0; font-family: var(--f-mono); }
.bp-route b { font-size: 30px; font-weight: 500; letter-spacing: .02em; line-height: 1; }
.bp-route i { font-style: normal; color: #8b8577; font-size: 18px; }
.bp-cities { display: flex; gap: 46px; padding: 2px 14px 10px; font-family: var(--f-display); font-size: 15px; color: #5b5549; }
.bp-fields { display: grid; grid-template-columns: repeat(4, auto); gap: 6px 14px; padding: 8px 14px 0; border-top: 1px dashed rgba(0,0,0,.12); margin: 0 14px; padding-left: 0; padding-right: 0; }
.bp-fields span { display: grid; font-family: var(--f-mono); font-size: 12.5px; font-weight: 500; }
.bp-fields small, .bp-stub small, .tk-fields small { font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: #8b8577; font-weight: 400; }
.bp-stub { display: grid; align-content: start; gap: 2px; padding: 34px 12px 12px; border-left: 2px dashed rgba(0,0,0,.14); font-family: var(--f-mono); }
.bp-stub b { font-size: 26px; font-weight: 500; line-height: 1; }
.barcode {
  display: block; height: 34px; margin-top: 10px;
  background: repeating-linear-gradient(90deg, #1f1d1a 0 2px, transparent 2px 3px, #1f1d1a 3px 4px, transparent 4px 6px, #1f1d1a 6px 9px, transparent 9px 10px, #1f1d1a 10px 11px, transparent 11px 14px);
  opacity: .85;
}
.bpass .note { position: absolute; right: 31%; bottom: 10px; font-size: 20px; color: #22389a; transform: rotate(-6deg); }

/* train ticket */
.ticket .pb {
  position: relative; display: block;
  padding: 12px 16px 14px;
  background: #e7eedf;
  background-image: repeating-linear-gradient(135deg, rgba(90,120,80,.05) 0 2px, transparent 2px 7px);
  -webkit-mask: conic-gradient(from -45deg at right, #0000, #000 1deg 89deg, #0000 90deg) 100% / 51% 12px repeat-y, linear-gradient(#000 0 0) left / calc(100% - 6px) 100% no-repeat;
          mask: conic-gradient(from -45deg at right, #0000, #000 1deg 89deg, #0000 90deg) 100% / 51% 12px repeat-y, linear-gradient(#000 0 0) left / calc(100% - 6px) 100% no-repeat;
}
.ticket .frame { display: block; border: 1px solid rgba(60, 90, 60, 0.35); border-radius: 4px; padding: 8px 10px 10px; }
.tk-top { display: flex; justify-content: space-between; gap: 8px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em; color: #46613f; }
.tk-top .th { letter-spacing: 0; }
.tk-route { display: block; margin: 6px 0 8px; font-family: var(--f-mono); font-weight: 500; font-size: 15px; letter-spacing: .04em; }
.tk-route i { font-style: normal; color: #6f8a66; }
.tk-fields { display: flex; gap: 16px; }
.tk-fields span { display: grid; font-family: var(--f-mono); font-size: 13px; font-weight: 500; }
.tk-punch { position: absolute; right: 26px; top: 14px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg-0); box-shadow: inset 0 1px 2px rgba(0,0,0,.35); }
.ticket .stampmark { position: absolute; right: 18px; bottom: 10px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; color: rgba(160, 50, 40, 0.65); border: 1.5px solid rgba(160, 50, 40, 0.55); border-radius: 4px; padding: 1px 6px; transform: rotate(-9deg); }

/* luggage tag */
.ltag { padding-top: 0; }
.ltag .string { position: absolute; width: 120px; height: 120px; left: 50%; top: -96px; transform: translateX(-40%); overflow: visible; pointer-events: none; }
.ltag .pb {
  position: relative; display: block;
  padding: 40px 14px 14px;
  background: var(--kraft);
  background-image: var(--grain), linear-gradient(170deg, rgba(255,255,255,.18), rgba(0,0,0,.04));
  clip-path: polygon(22% 0, 78% 0, 100% 14%, 100% 100%, 0 100%, 0 14%);
  color: #2b2418;
}
.ltag .hole { position: absolute; top: 14px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--bg-0); box-shadow: 0 0 0 4px #c2a26c, 0 0 0 5px rgba(0,0,0,.12), inset 0 1px 2px rgba(0,0,0,.35); }
.ltag .lbl { display: block; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: #5d4d31; line-height: 1.5; }
.ltag .nm { display: block; margin-top: 6px; font-size: 31px; color: #1f2f86; line-height: 1; }
.ltag .addr { display: block; margin-top: 3px; font-size: 17px; color: #1f2f86; }
.ltag .rule { display: block; height: 1px; background: rgba(60, 40, 10, 0.25); margin: 10px 0 8px; }
.ltag .lt-foot { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #5d4d31; }

/* folded tee + hang tag */
.tee { width: var(--w); }
.tee .pb { position: relative; display: block; }
.tee svg.tee-svg { display: block; width: 100%; height: auto; overflow: visible; }
.hangtag {
  position: absolute; right: -6%; top: 2%;
  width: 40%;
  padding: 18px 10px 10px;
  background: #fbf8f0;
  background-image: var(--grain);
  border-radius: 4px;
  transform: rotate(12deg);
  text-align: center;
  box-shadow: 0 1px 1px rgba(0,0,0,.12), 0 6px 10px -4px rgba(0,0,0,.2);
}
.hangtag::before { content: ""; position: absolute; top: 6px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--bg-0); box-shadow: inset 0 1px 1px rgba(0,0,0,.4); }
.hangtag b { display: block; font-family: var(--f-mono); font-weight: 500; font-size: 10.5px; letter-spacing: .2em; }
.hangtag .t1 { display: block; margin-top: 4px; font-family: var(--f-display); font-style: italic; font-size: 14px; line-height: 1.1; color: #3d3a34; }
.hangtag .t2 { display: block; margin-top: 7px; padding-top: 6px; border-top: 1px dashed rgba(0,0,0,.18); font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: #22389a; }

/* notebook page */
.notepage .pb {
  position: relative; display: block;
  padding: 26px 16px 18px 34px;
  background-color: #fdfcf7;
  background-image:
    linear-gradient(90deg, transparent 25px, rgba(214, 120, 120, .45) 25px 26.5px, transparent 26.5px),
    repeating-linear-gradient(180deg, transparent 0 25px, rgba(80, 120, 190, .2) 25px 26px);
  background-position: 0 0, 0 14px;
}
.notepage .pb { clip-path: polygon(0 3%, 6% 0, 14% 2%, 22% 0, 31% 2.5%, 40% .5%, 49% 2%, 58% 0, 67% 2.4%, 76% .4%, 85% 2.2%, 94% 0, 100% 2%, 100% 100%, 0 100%); }
.np-title { display: block; font-size: 30px; color: #22389a; line-height: 1; margin: 0 0 6px; }
.np-list { display: block; font-family: var(--f-hand); font-weight: 600; font-size: 21px; line-height: 26px; color: #2b2a26; }
.np-list span { display: block; }
.np-list .done::before { content: "\2713  "; color: #22389a; }
.np-list .todo { color: #8b8577; }
.np-list .todo::before { content: "\00B7  "; }

/* rubber stamp (decor) */
.stamp {
  position: absolute; left: var(--x); top: var(--y); width: var(--w);
  transform: rotate(var(--r));
  color: var(--accent);
  opacity: 0.55;
  pointer-events: none;
  mix-blend-mode: multiply;
  animation: stampin .5s var(--ease-out) 1.1s backwards;
}
[data-theme="dark"] .stamp { mix-blend-mode: screen; opacity: .45; }
@keyframes stampin { from { opacity: 0; transform: rotate(var(--r)) scale(1.4); } }

.desk-tools {
  position: absolute; left: clamp(16px, 4vw, 40px); bottom: 18px;
  display: flex; align-items: center; gap: 14px; z-index: 5;
}
.desk-hint { font-size: 19px; color: var(--text-mute); }
.desk-tools .pill-ghost { padding: 6px 13px; font-size: 13px; }

/* ---------- JOURNAL index ---------- */
.page-head { padding: clamp(28px, 6vw, 72px) 0 clamp(28px, 5vw, 56px); display: grid; gap: 18px; }
.page-head .hand { font-size: 24px; }
.entries { display: grid; gap: clamp(28px, 4vw, 44px); padding-bottom: 40px; }
.entry {
  display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(20px, 4vw, 52px); align-items: center;
  text-decoration: none; color: inherit;
  padding: clamp(16px, 2.4vw, 26px);
  border-radius: 18px;
  transition: background-color .3s;
}
.entry:hover { background: var(--bg-1); }
.entry .print, .entry .polaroid { position: relative; left: auto; top: auto; animation: none; width: 100%; }
.entry:hover .print, .entry:hover .polaroid { transform: translateY(-6px) rotate(calc(var(--r) * .5)); filter: var(--obj-shadow-up); }
.entry-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; }
.entry h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 4.4vw, 56px); line-height: 1; margin: 8px 0 12px; }
.entry h2 .th { font-size: .45em; color: var(--text-mute); margin-left: 10px; vertical-align: middle; }
.entry p { font-family: var(--f-body); font-size: 18px; color: var(--text-dim); max-width: 34em; }
.entry .kept { margin-top: 12px; font-size: 21px; }
.entry .read { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--line-strong); }

.unwritten { padding: 36px 0 70px; border-top: 1px dashed var(--line-strong); }
.unwritten h2 { font-family: var(--f-display); font-weight: 400; font-size: 32px; margin: 8px 0 22px; }
.unwritten-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2.4vw, 28px); }
.unwritten-row .print { position: relative; left: auto; top: auto; width: 100%; animation: none; cursor: default; }
.unwritten-row .print:hover { transform: rotate(var(--r)); filter: var(--obj-shadow); }

/* ---------- POST ---------- */
.post-head { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(24px, 5vw, 64px) 0 clamp(36px, 5vw, 64px); }
.back { display: inline-flex; gap: 6px; font-size: 14px; color: var(--text-dim); text-decoration: none; margin-bottom: 20px; }
.back:hover { color: var(--text); }
.post-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(52px, 7.6vw, 104px); line-height: .95; letter-spacing: -0.01em; margin: 14px 0 18px; }
.post-title .th { display: block; font-size: .32em; color: var(--text-mute); margin-top: 10px; letter-spacing: 0; }
.post-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--text-dim); }
.chip svg { width: 14px; height: 14px; }
.post-hero { position: relative; justify-self: center; width: min(100%, 440px); }
.post-hero .polaroid { position: relative; left: auto; top: auto; width: 100%; animation: none; cursor: default; }
.post-hero .polaroid:hover { transform: rotate(var(--r)); filter: var(--obj-shadow); }
.post-hero .polaroid .cap { font-size: 26px; }

.prose { max-width: 680px; margin: 0 auto; font-family: var(--f-body); font-size: 19.5px; line-height: 1.7; color: var(--text); }
.prose p + p { margin-top: 1.05em; }
.post-body > .prose:first-child > p:first-child::first-letter { font-family: var(--f-display); float: left; font-size: 4.1em; line-height: .82; padding: 6px 10px 0 0; color: var(--accent); }
.prose .th-line { font-family: "IBM Plex Sans Thai", var(--f-ui); font-size: .92em; }
.prose em { font-style: italic; }
.prose h2 { font-family: var(--f-display); font-weight: 400; font-size: 34px; line-height: 1.1; margin: 1.4em 0 .4em; }
.post-body { padding-bottom: 30px; }
.sign-off { margin-top: 26px; font-family: var(--f-hand); font-weight: 600; font-size: 28px; color: var(--accent); }

.filmstrip {
  position: relative;
  max-width: 980px; margin: 44px auto;
  padding: 26px 18px;
  background: #171614;
  border-radius: 6px;
  transform: rotate(-0.6deg);
  box-shadow: var(--shadow-xl);
}
.filmstrip::before, .filmstrip::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 10px;
  background: radial-gradient(closest-side, var(--bg-0) 70%, transparent 76%) 0 0 / 22px 10px repeat-x;
  opacity: .9;
}
.filmstrip::before { top: 8px; }
.filmstrip::after { bottom: 8px; }
.film-frames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.film-frames figure { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #2a2723; }
.film-frames img { width: 100%; height: 100%; object-fit: cover; }
.film-frames figcaption { position: absolute; left: 6px; bottom: -1px; font-family: var(--f-mono); font-size: 9px; letter-spacing: .14em; color: #e3a35a; }
.film-edge { display: flex; justify-content: space-between; margin-top: 7px; font-family: var(--f-mono); font-size: 9px; letter-spacing: .2em; color: #c88b45; opacity: .8; }
.film-note { text-align: center; margin-top: -26px; margin-bottom: 30px; font-size: 21px; }

.souvenir {
  display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: clamp(22px, 4vw, 48px); align-items: center;
  max-width: 900px; margin: 54px auto;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 18px;
  background: var(--bg-1);
}
.souvenir .obj { position: relative; left: auto; top: auto; width: 100%; animation: none; cursor: default; }
.souvenir .obj:hover { transform: rotate(var(--r)); filter: var(--obj-shadow); }
.souvenir h3 { font-family: var(--f-display); font-weight: 400; font-size: 30px; line-height: 1.1; margin: 8px 0 10px; }
.souvenir p { font-family: var(--f-body); font-size: 17.5px; color: var(--text-dim); }

.tee-callout { display: flex; align-items: center; gap: 18px; max-width: 680px; margin: 34px auto 0; padding: 16px 18px; border: 1px dashed var(--line-strong); border-radius: 16px; text-decoration: none; transition: border-color .2s, transform .2s; }
.tee-callout:hover { border-color: var(--accent); transform: translateY(-2px); }
.tee-callout img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; background: var(--bg-2); flex: none; }
.tee-callout b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 22px; }
.tee-callout span { font-size: 14px; color: var(--text-dim); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 900px; margin: 60px auto 70px; }
.post-nav a { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; background: var(--bg-1); text-decoration: none; transition: transform .2s, background-color .2s; }
.post-nav a:hover { transform: translateY(-2px); background: var(--bg-2); }
.post-nav a.next { flex-direction: row-reverse; text-align: right; }
.post-nav img { width: 58px; height: 72px; object-fit: cover; border-radius: 4px; flex: none; }
.post-nav small { display: block; }
.post-nav b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 24px; line-height: 1.1; }

/* bus ticket + station-stamp page (post souvenirs) */
.busticket .pb {
  position: relative; display: block;
  padding: 12px 16px 14px 22px;
  background: #f4d9d6;
  background-image: var(--grain);
  -webkit-mask: conic-gradient(from 135deg at left, #0000, #000 1deg 89deg, #0000 90deg) 0 / 51% 10px repeat-y, linear-gradient(#000 0 0) right / calc(100% - 5px) 100% no-repeat;
          mask: conic-gradient(from 135deg at left, #0000, #000 1deg 89deg, #0000 90deg) 0 / 51% 10px repeat-y, linear-gradient(#000 0 0) right / calc(100% - 5px) 100% no-repeat;
  color: #2a2522;
}
.bt-top { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; color: #7a4a46; }
.bt-top .th { letter-spacing: 0; font-size: 12px; }
.bt-no { display: block; margin: 10px 0 10px; font-family: var(--f-mono); font-size: 26px; font-weight: 500; color: #2a46a8; letter-spacing: .06em; }
.bt-row { display: grid; grid-template-columns: repeat(8, 1fr); border: 1px solid rgba(122, 74, 70, .45); }
.bt-row span { text-align: center; font-family: var(--f-mono); font-size: 10px; padding: 2px 0; color: #7a4a46; border-left: 1px solid rgba(122, 74, 70, .35); }
.bt-row span:first-child { border-left: 0; }
.bt-note { position: absolute; right: 14px; top: 34px; font-size: 21px; color: #22389a; transform: rotate(-8deg); }
.stamppage .pb {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 5 / 4;
  background-color: #fdfcf7;
  background-image: repeating-linear-gradient(180deg, transparent 0 23px, rgba(80, 120, 190, .18) 23px 24px);
}
.stamppage .eki { position: absolute; width: 74%; right: -20%; top: -8%; color: #2f4bb0; opacity: .82; transform: rotate(-14deg); mix-blend-mode: multiply; }
.sp-note { position: absolute; left: 16px; bottom: 16px; font-size: 22px; color: #22389a; transform: rotate(-3deg); }


/* coffee ring + torn boarding pass */
.bpass .ring { position: absolute; left: 52%; top: 44%; width: 74px; height: 74px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, transparent 60%, rgba(120, 78, 36, .08) 63%, rgba(120, 78, 36, .2) 66.5%, rgba(120, 78, 36, .06) 70%, transparent 72%);
  transform: rotate(20deg) scaleX(1.06); mix-blend-mode: multiply; }
.bpass.torn .pb { grid-template-columns: 1fr; -webkit-mask: none; mask: none;
  clip-path: polygon(0 0, 96% 0, 97.5% 8%, 96% 16%, 98% 25%, 96.5% 34%, 98% 43%, 96% 52%, 97.8% 61%, 96.2% 70%, 98% 79%, 96.5% 88%, 97.6% 100%, 0 100%); }
.bpass.torn .bp-stub { display: none; }
.bpass.torn .note { right: 10%; }

/* night-market receipt with stapled ferry slip */
.receipt .pb { position: relative; display: block; padding: 22px 26px 18px 18px; }
.rc-paper { position: relative; display: block; width: 78%; margin-left: auto; padding: 16px 14px 18px; background: #fbfaf5; color: #26262b;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 9px 51% repeat-x, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 9px 51% repeat-x;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / 9px 51% repeat-x, conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 9px 51% repeat-x;
  font-family: var(--f-mono); font-size: 11px; }
.rc-head { display: block; text-align: center; font-size: 14px; font-weight: 500; }
.rc-sub { display: block; text-align: center; font-size: 8.5px; letter-spacing: .14em; color: #77746c; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px dashed rgba(0,0,0,.25); }
.rc-line, .rc-total { display: grid; grid-template-columns: 1fr 20px 34px; gap: 4px; align-items: baseline; padding: 2px 0; }
.rc-line span:nth-child(n+2), .rc-total span:last-child { text-align: right; }
.rc-line .th { font-size: 11.5px; }
.rc-total { grid-template-columns: 1fr auto; margin-top: 8px; padding-top: 7px; border-top: 1px dashed rgba(0,0,0,.25); font-weight: 500; font-size: 12px; }
.rc-thanks { display: block; text-align: center; margin-top: 12px; font-size: 11px; color: #77746c; }
.rc-ferry { position: absolute; left: 4px; top: 8px; width: 42%; padding: 9px 10px; background: #f0b9c8; color: #4a2a33; transform: rotate(-9deg);
  display: grid; gap: 3px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .06em; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.rc-ferry .th { font-size: 12px; letter-spacing: 0; font-weight: 500; }
.rc-staple { position: absolute; left: 26%; top: 18px; width: 22px; height: 4px; border-radius: 2px; background: linear-gradient(#e2e4e8, #9a9ea6); transform: rotate(-9deg); box-shadow: 0 1px 1px rgba(0,0,0,.3); }
.rc-paid { position: absolute; right: 12%; bottom: 26%; display: grid; justify-items: center; padding: 3px 10px; border: 2px solid rgba(200, 59, 47, .78); border-radius: 6px; color: rgba(200, 59, 47, .85); transform: rotate(-14deg); mix-blend-mode: multiply; }
.rc-paid .th { font-size: 15px; font-weight: 500; line-height: 1.2; }
.rc-paid small { font-family: var(--f-mono); font-size: 8px; letter-spacing: .2em; }

/* Edmondson-size train ticket taped into the notebook */
.edm { position: absolute; left: 7%; top: 16%; width: 52%; aspect-ratio: 57.5 / 30; padding: 6px 8px; display: grid; align-content: start; gap: 1px;
  background-color: #eef3ec; background-image: repeating-linear-gradient(45deg, rgba(169, 196, 176, .55) 0 1px, transparent 1px 4px), repeating-linear-gradient(-45deg, rgba(169, 196, 176, .45) 0 1px, transparent 1px 4px);
  color: #25241f; transform: rotate(4deg); box-shadow: 0 1px 2px rgba(0,0,0,.18); font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans JP", var(--f-ui); }
.edm::before { content: ""; position: absolute; left: 30%; top: -9px; width: 46px; height: 16px; background: rgba(232, 214, 170, .75); transform: rotate(-6deg); }
.edm-top { font-size: 9px; letter-spacing: .1em; }
.edm-route { font-size: 15px; font-weight: 600; line-height: 1.2; }
.edm-route i { font-style: normal; font-size: 12px; }
.edm-sub { font-family: var(--f-mono); font-size: 7px; letter-spacing: .12em; }
.edm-fare { position: absolute; right: 8px; bottom: 5px; font-size: 15px; font-weight: 600; }
.edm-void { position: absolute; right: 22%; top: 22%; width: 30px; height: 30px; display: grid; place-items: center; border: 1.6px solid rgba(207, 70, 48, .8); border-radius: 50%; color: rgba(207, 70, 48, .85); font-size: 10px; transform: rotate(-12deg); }
.stamppage .eki { right: -24%; top: auto; bottom: -14%; width: 66%; }

/* ---------- SHOP ---------- */
.shop-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; padding: clamp(28px, 6vw, 72px) 0 clamp(30px, 5vw, 56px); }
.shop-head .page-title { letter-spacing: .02em; }
.shop-how { font-family: var(--f-body); font-size: 17px; color: var(--text-dim); border-left: 2px solid var(--accent); padding-left: 18px; }
.shop-how .hand { font-size: 22px; display: block; margin-bottom: 6px; }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 34px); padding-bottom: 50px; }
.product {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
  scroll-margin-top: 100px;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.product:target, .product.is-target { outline: 2px solid var(--accent); outline-offset: 4px; }
.product-img { position: relative; aspect-ratio: 4 / 5; background: var(--bg-2); overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out), opacity .4s; }
.product:hover .product-img img { transform: scale(1.03); }
.product-img.is-flat { background: #f4f1ea; }
.product-img.is-flat > img { object-fit: contain; padding: 6% 4%; mix-blend-mode: multiply; }
[data-theme="dark"] .product-img.is-flat { background: #e9e4d9; }
.product-thumbs { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; }
.product-thumbs button { width: 42px; height: 42px; border-radius: 8px; overflow: hidden; border: 2px solid rgba(255,255,255,.8); box-shadow: var(--shadow-md); opacity: .85; }
.product-thumbs button[aria-pressed="true"] { border-color: var(--accent); opacity: 1; }
.product-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.souvenir-chip { position: absolute; right: 12px; top: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(251, 249, 244, .9); color: #2a2723; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; backdrop-filter: blur(6px); }
.product-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 22px; flex: 1; }
.product-body h2 { font-family: var(--f-mono); font-weight: 500; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); }
.product-body h2 .th { letter-spacing: 0; text-transform: none; color: var(--text-mute); margin-left: 4px; }
.product-city { font-family: var(--f-display); font-size: 30px; line-height: 1.02; }
.product-from { font-size: 20px; }
.product-story { font-family: var(--f-body); font-size: 16.5px; color: var(--text-dim); flex: 1; }
.product-design { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-mute); }
.product-design img { width: 44px; height: 44px; object-fit: contain; background: var(--bg-1); border-radius: 8px; padding: 4px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--line-strong); flex-wrap: wrap; }
.price { font-family: var(--f-mono); font-size: 20px; font-weight: 500; }
.btn-dm { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--cta-bg); color: var(--cta-text); text-decoration: none; font-size: 14px; font-weight: 500; transition: transform .2s, box-shadow .2s; }
.btn-dm:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-dm svg { width: 16px; height: 16px; }
.shop-note { padding: 0 0 70px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.shop-note div { padding-top: 16px; border-top: 1px solid var(--line-strong); }
.shop-note b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 22px; margin-bottom: 4px; }
.shop-note p { font-size: 15px; color: var(--text-dim); }
.shop-empty { padding: 30px; border: 1px dashed var(--line-strong); border-radius: 18px; text-align: center; color: var(--text-dim); }

/* ---------- ABOUT ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 6vw, 90px); align-items: start; padding: clamp(28px, 6vw, 72px) 0 50px; }
.about-photo { position: sticky; top: 100px; }
.about-photo .polaroid { position: relative; left: auto; top: auto; width: min(100%, 420px); margin: 0 auto; animation: none; cursor: default; }
.about-photo .polaroid:hover { transform: rotate(var(--r)); filter: var(--obj-shadow); }
.about-photo .polaroid .cap { font-size: 26px; }
.about-text .page-title { font-size: clamp(56px, 8vw, 104px); margin: 12px 0 26px; }
.carry { margin: 40px 0 0; padding: 24px 0 0; border-top: 1px dashed var(--line-strong); }
.carry h2 { font-family: var(--f-display); font-weight: 400; font-size: 30px; margin-bottom: 14px; }
.carry ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; }
.carry li { display: flex; gap: 10px; align-items: baseline; font-size: 15.5px; color: var(--text-dim); }
.carry li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--accent); transform: translateY(-1px); }
.disclosure {
  margin-top: 40px;
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  font-family: var(--f-mono); font-size: 12.5px; line-height: 1.6; letter-spacing: .02em;
  color: var(--text-dim);
}
.disclosure svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--accent); }
.about-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* ---------- 404 ---------- */
.lost { min-height: calc(100vh - 120px); display: grid; place-items: center; text-align: center; padding: 40px 16px 80px; }
.lost .ltag { position: relative; left: auto; top: auto; width: 210px; margin: 120px auto 34px; animation: none; }
.lost h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(44px, 7vw, 80px); line-height: 1; }
.lost p { margin: 14px auto 26px; max-width: 30em; font-family: var(--f-body); font-size: 19px; color: var(--text-dim); }
.lost .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer (on the dark frame) ---------- */
.foot {
  max-width: 1360px; margin: 0 auto;
  padding: 34px clamp(20px, 4vw, 48px) 44px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px;
  color: var(--frame-text);
}
.foot-mark { font-family: var(--f-display); font-size: 30px; line-height: 1; }
.foot-mark em { color: #9fb2ff; }
.foot p, .foot a { font-size: 14px; color: var(--frame-mute); text-decoration: none; }
.foot a:hover { color: var(--frame-text); }
.foot ul { list-style: none; display: grid; gap: 6px; }
.foot .small { margin-top: 10px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .03em; line-height: 1.6; }
.foot h3 { font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--frame-mute); margin-bottom: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 959px) {
  .desk { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 18px; padding-top: 6px; padding-bottom: 54px; align-items: start; }
  .desk-title { position: relative; right: auto; top: auto; width: 100%; grid-column: 1 / -1; margin-bottom: 14px; }
  .desk-title h1 { width: min(100%, 420px); }
  .signature { margin: 4px auto 0; grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .desk-intro { margin-left: auto; margin-right: auto; font-size: 16.5px; }
  .obj { position: relative; left: auto; top: auto; width: 100%; transform: rotate(var(--rm, 0deg)); }
  .obj:hover, .obj:focus-visible { transform: translateY(-4px) rotate(var(--rm, 0deg)); }
  @keyframes drop { from { opacity: 0; transform: translateY(-20px) rotate(var(--rm, 0deg)); } }
  .obj-label { position: static; display: block; transform: none; opacity: 1; margin-top: 10px; text-align: center; font-size: 18px; white-space: normal; }
  .obj:hover .obj-label, .obj:focus-visible .obj-label { transform: none; }
  .m-span { grid-column: 1 / -1; }
  .m-narrow { width: 82%; justify-self: center; }
  .m-end { justify-self: end; }
  .m-down { margin-top: 34px; }
  .stamp, .desk-tools { display: none; }
  .ltag { margin-top: 70px; width: 86%; justify-self: center; }
  .tee { width: 74%; justify-self: center; margin-top: 10px; }
  .entry { grid-template-columns: 1fr; }
  .entry .print, .entry .polaroid { max-width: 340px; }
  .post-head, .shop-head, .about-grid { grid-template-columns: 1fr; }
  .post-hero { width: min(100%, 380px); }
  .about-photo { position: relative; top: auto; }
  .souvenir { grid-template-columns: 1fr; }
  .souvenir .obj { max-width: 360px; justify-self: center; }
  .unwritten-row { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .shop-grid, .shop-note { grid-template-columns: 1fr; }
  .carry ul { grid-template-columns: 1fr; }
  .film-frames { gap: 6px; }
  .filmstrip { padding: 22px 8px; margin: 34px -8px; }
  .prose { font-size: 18px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav a.next { flex-direction: row; text-align: left; }
}
@media (max-width: 520px) {
  .sheet { margin: 6px; border-radius: 18px; }
  .topbar { padding: 10px 12px; gap: 6px; }
  .cta { display: none; }
  .me-pill { padding-right: 10px; font-size: 13.5px; }
  .me-pill .me-th { display: none; }
  .nav-pill a { padding: 6px 9px; font-size: 13.5px; }
  .theme-toggle { width: 34px; height: 34px; }
  .bp-route b { font-size: 25px; }
  .bp-cities { gap: 30px; }
  .bp-fields { grid-template-columns: repeat(2, auto); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .hand-title .ink { stroke-dashoffset: 0; opacity: 1; animation: none; }
  .hand-title .ink-dash { opacity: 1; animation: none; }
  .obj:hover, .obj:focus-visible { transform: rotate(var(--r)); }
}
