/* ============================================================
   FORMA — The Workshop Wall
   Design C · Handcraft Sketchbook, dark-wall override
   Fraunces (display) · Alegreya Sans (body) · Caveat (hand notes)
   ============================================================ */

@font-face {
  font-family: 'Fraunces';
  src: url('/artifacts/forma-frontend--v1--s3-alternative-direction--glm-5.3--best-web-design--2026-09-20T15-20-21-237Z/assets/fonts/Fraunces-Variable.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alegreya Sans';
  src: url('/artifacts/forma-frontend--v1--s3-alternative-direction--glm-5.3--best-web-design--2026-09-20T15-20-21-237Z/assets/fonts/AlegreyaSans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alegreya Sans';
  src: url('/artifacts/forma-frontend--v1--s3-alternative-direction--glm-5.3--best-web-design--2026-09-20T15-20-21-237Z/assets/fonts/AlegreyaSans-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alegreya Sans';
  src: url('/artifacts/forma-frontend--v1--s3-alternative-direction--glm-5.3--best-web-design--2026-09-20T15-20-21-237Z/assets/fonts/AlegreyaSans-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alegreya Sans';
  src: url('/artifacts/forma-frontend--v1--s3-alternative-direction--glm-5.3--best-web-design--2026-09-20T15-20-21-237Z/assets/fonts/AlegreyaSans-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Caveat';
  src: url('/artifacts/forma-frontend--v1--s3-alternative-direction--glm-5.3--best-web-design--2026-09-20T15-20-21-237Z/assets/fonts/Caveat-Variable.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --bg: #262019;
  --bg-raise: #2d261e;
  --paper: #f3ecdd;
  --paper-edge: #d9cdb2;
  --paper-dim: #e8dfc9;
  --ink: #2b2119;
  --ink-soft: #4a3d2d;
  --ink-faint: #75654e;
  --bone: #eee4d3;
  --bone-dim: #b3a48d;
  --accent: #e9a83f;
  --accent-deep: #8a5c14;
  --line: rgba(238, 228, 211, 0.16);
  --line-paper: #cbbfa3;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Alegreya Sans', 'Segoe UI', system-ui, sans-serif;
  --font-hand: 'Caveat', 'Segoe Script', 'Comic Sans MS', cursive;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 16px 34px rgba(14, 9, 4, 0.4), 0 2px 6px rgba(14, 9, 4, 0.32);
  --shadow-frame: 0 20px 44px rgba(12, 8, 4, 0.48);
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  color-scheme: dark;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--bone);
  background:
    radial-gradient(1100px 520px at 72% -8%, rgba(233, 168, 63, 0.06), transparent 62%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(238, 228, 211, 0.038) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(238, 228, 211, 0.038) 31px 32px),
    var(--bg);
  overflow-x: clip;
}
/* pencil grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
h1, h2, h3, p, dl, dd, dt, figure, figcaption { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--ink); }

.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 56px);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: 3px;
  translate: 0 -64px;
  transition: translate 0.2s var(--ease);
}
.skip:focus-visible, .skip:focus {
  translate: 0 0;
  outline: 2px solid var(--bone);
  outline-offset: 2px;
}

/* ---------- shared focus / press ---------- */
a, button, input, select { transition: color 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease), translate 0.2s var(--ease), rotate 0.2s var(--ease), box-shadow 0.18s var(--ease); }
:focus-visible, :focus {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.card :focus-visible, .card :focus,
.sheet :focus-visible, .sheet :focus,
.band :focus-visible, .band :focus {
  outline-color: var(--ink);
}
a:active, button:active { scale: 0.97; }
.btn-primary:active { translate: 0 0; box-shadow: 0 3px 10px rgba(233, 168, 63, 0.25); }
.open-btn:active { color: var(--accent-deep); }
.arrow-link:active { color: var(--accent); }
.site-nav a:active, .footer-links a:active { color: var(--accent); }

/* ---------- masthead ---------- */
.masthead {
  border-bottom: 1.5px dashed var(--line);
  background: rgba(38, 32, 25, 0.6);
}
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 27px;
  letter-spacing: -0.02em;
  color: var(--bone);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.wordmark-note {
  font-family: var(--font-hand);
  font-weight: 500;
  font-size: 17px;
  color: var(--accent);
  rotate: -2deg;
  letter-spacing: 0;
}
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 12px;
  font-size: 16px;
  font-weight: 500;
  color: var(--bone);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

/* ---------- hero ---------- */
.hero {
  overflow: clip;
  padding-top: clamp(28px, 5vh, 52px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  padding-block: clamp(4px, 2vh, 20px) clamp(72px, 9vh, 108px);
}
.kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 18px;
}
h1 {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: clamp(40px, 9vw, 132px);
  line-height: 1.03;
  letter-spacing: -0.025em;
  color: var(--bone);
  margin-bottom: 30px;
}
.h1-line { display: block; }
.circled {
  position: relative;
  display: inline-block;
  padding-inline: 0.05em;
  color: var(--accent);
}
.scribble {
  position: absolute;
  left: -9%;
  top: -11%;
  width: 118%;
  height: 128%;
  overflow: visible;
  pointer-events: none;
}
.scribble path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw-in 1.3s var(--ease) 0.55s forwards;
}
.lede {
  max-width: 46ch;
  font-size: 18px;
  color: #ddd2bd;
  margin-bottom: 30px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-bottom: 26px;
}
.hand-note {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 21px;
  color: var(--accent);
  letter-spacing: 0.01em;
}
.hero-note { rotate: -1.2deg; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(233, 168, 63, 0.22);
}
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 12px 4px;
  color: var(--bone);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0 calc(100% - 10px);
}

/* taped photo frames */
.frame {
  position: relative;
  background: var(--paper);
  padding: 10px 10px 4px;
  border: 1px solid var(--paper-edge);
  border-radius: 2px;
  box-shadow: var(--shadow-frame);
  margin: 0;
}
.frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--paper-edge);
}
.hand-caption {
  font-family: var(--font-hand);
  font-weight: 500;
  font-size: 19px;
  color: var(--ink-faint);
  text-align: center;
  padding: 7px 4px 6px;
}
.tape {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 92px;
  height: 26px;
  translate: -50% 0;
  rotate: -3deg;
  transition: rotate 0.2s var(--ease);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 14px),
    linear-gradient(rgba(248, 242, 228, 0.66), rgba(226, 214, 184, 0.58));
  border-inline: 1px solid rgba(120, 100, 70, 0.22);
  box-shadow: 0 2px 4px rgba(16, 10, 4, 0.28);
  pointer-events: none;
}
.hero-cluster {
  position: relative;
  padding: 10px 6px 44px;
}
.frame-main {
  width: min(100%, 470px);
  margin-left: auto;
  transform: rotate(1.4deg);
  transition: translate 0.25s var(--ease), box-shadow 0.25s var(--ease);
  animation: drift-in 0.8s var(--ease) 0.25s backwards;
}
.frame-main img { aspect-ratio: 4 / 2.9; }
.frame-small {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 47%;
  animation: drift-in 0.8s var(--ease) 0.45s backwards, sway 7s ease-in-out 1.8s both;
}
.frame-small img { aspect-ratio: 4 / 3.1; }
.pin {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 20px;
  height: 20px;
  translate: -50% 0;
  filter: drop-shadow(0 2px 2px rgba(16, 10, 4, 0.4));
  transition: scale 0.2s var(--ease);
}
.cluster-note {
  position: absolute;
  right: 4px;
  bottom: -36px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.15;
  rotate: 2deg;
}
.doodle-arrow {
  width: 30px;
  height: 24px;
  flex: none;
  margin-top: 4px;
}
.doodle-arrow path, .flow-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- board ---------- */
.board {
  padding-block: clamp(56px, 9vh, 104px) clamp(64px, 10vh, 116px);
  border-top: 1.5px dashed var(--line);
}
.board-head { max-width: 720px; margin-bottom: 40px; }
h2 {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--bone);
}
.board-sub {
  margin-top: 14px;
  max-width: 62ch;
  color: var(--bone-dim);
  font-size: 17.5px;
}

/* tray of controls */
.tray {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  align-items: flex-end;
  padding: 20px 22px 22px;
  background: var(--bg-raise);
  border: 1.5px dashed rgba(238, 228, 211, 0.22);
  border-radius: 4px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-search { flex: 2 1 240px; }
.field:not(.field-search) { flex: 1 1 150px; }
label, .label-fake {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
input[type="search"], select {
  height: 48px;
  min-width: 0;
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--bone);
  background: rgba(243, 236, 221, 0.05);
  border: 1.5px dashed rgba(238, 228, 211, 0.35);
  border-radius: 3px;
}
input[type="search"] { width: 100%; }
input[type="search"]::placeholder { color: rgba(238, 228, 211, 0.55); }
select {
  width: 100%;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1.5 1.5 7 7 12.5 1.5' fill='none' stroke='%23eee4d3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.saved-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 6px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--bone);
  background: rgba(243, 236, 221, 0.05);
  border: 1.5px dashed rgba(238, 228, 211, 0.35);
  border-radius: 3px;
  cursor: pointer;
}
.saved-count {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 19px;
  line-height: 1;
  color: var(--ink);
  background: var(--accent);
  border-radius: 2px;
  padding: 4px 8px 3px;
}
.saved-toggle.is-on {
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--paper-edge);
}
.saved-toggle.is-on .saved-count { rotate: -3deg; }
.saved-count.bump { animation: bump 0.35s var(--ease); }
.tray-note {
  font-size: 18px;
  align-self: center;
  rotate: -1.5deg;
  margin-bottom: 2px;
}

.board-count {
  margin: 18px 2px 34px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

/* the pinned cards */
.board-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px 56px;
  align-items: start;
}
.board-grid > li {
  animation: card-in 0.55s var(--ease) backwards;
  transition: translate 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.board-grid.settled > li { animation: none; }
.board-grid > li:focus-within { translate: 0 -4px; }
.board-grid > li:nth-child(1) { animation-delay: 0.05s; }
.board-grid > li:nth-child(2) { animation-delay: 0.11s; }
.board-grid > li:nth-child(3) { animation-delay: 0.17s; }
.board-grid > li:nth-child(4) { animation-delay: 0.23s; }
.board-grid > li:nth-child(5) { animation-delay: 0.29s; }
.board-grid > li:nth-child(6) { animation-delay: 0.35s; }
.board-grid > li:nth-child(even) { transform: translateY(28px) rotate(0.5deg); }
.board-grid > li:nth-child(odd) { transform: rotate(-0.4deg); }

.card {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--paper-edge);
  border-radius: 3px;
  padding: 20px 24px 20px;
  box-shadow: var(--shadow-card);
  translate: 0 0;
}
.card-photo {
  margin: -20px -24px 16px;
  padding: 12px 12px 0;
  background: var(--paper-dim);
  border-bottom: 1px solid var(--paper-edge);
}
.card-photo img {
  width: 100%;
  aspect-ratio: 16 / 9.5;
  object-fit: cover;
  border: 1px solid var(--paper-edge);
  rotate: -0.6deg;
}
.board-grid > li:nth-child(even) .card-photo img { aspect-ratio: 4 / 3.1; rotate: 0.6deg; }
img[data-pos="b"] { object-position: 50% 78%; }
img[data-pos="c"] { object-position: 50% 28%; }
img[data-pos="d"] { object-position: 50% 72%; }
.card-caption {
  font-family: var(--font-hand);
  font-weight: 500;
  font-size: 17px;
  color: var(--ink-faint);
  text-align: right;
  padding: 5px 4px 7px;
}
.card-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 4px;
}
.card-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
  color: #8b7a5f;
  flex: none;
}
.card-cat {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.1;
  color: var(--ink-faint);
}
.card-title {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: 27px;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 10px;
}
.card-summary {
  color: var(--ink-soft);
  font-size: 16.5px;
  max-width: 52ch;
  margin-bottom: 16px;
}
.card-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 26px;
  padding-top: 14px;
  border-top: 1.5px dashed var(--line-paper);
  margin-bottom: 12px;
}
.card-facts div { display: flex; gap: 10px; align-items: baseline; }
.card-facts dt {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  flex: none;
}
.card-facts dd { font-size: 16px; font-weight: 700; color: var(--ink); }
.card-lead {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1.5px dashed var(--line-paper);
  padding-top: 12px;
  min-height: 56px;
}
.open-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px 2px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 800;
  color: var(--ink);
  background-image: linear-gradient(var(--accent-deep), var(--accent-deep));
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0 calc(100% - 8px);
}
.saved-flag {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  background: var(--accent);
  padding: 5px 10px 4px;
  border-radius: 2px;
  rotate: -2deg;
  box-shadow: 1px 2px 0 rgba(90, 62, 15, 0.35);
}

/* attachments: what pins each card to the wall */
.attach-tape .tape {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 92px;
  height: 26px;
}
.attach-clip .clip {
  position: absolute;
  top: -20px;
  left: 36px;
  width: 21px;
  height: 44px;
  rotate: 9deg;
}
.attach-pin .pin {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 20px;
  height: 20px;
  translate: -50% 0;
  filter: drop-shadow(0 2px 2px rgba(16, 10, 4, 0.4));
}

/* empty state */
.empty-note {
  max-width: 480px;
  margin: 24px auto 8px;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px dashed var(--paper-edge);
  border-radius: 3px;
  padding: 30px 32px 32px;
  rotate: -1.2deg;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.empty-script {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 30px;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.empty-text { color: var(--ink-soft); margin-bottom: 20px; }

/* ---------- accent band ---------- */
.band {
  background:
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(43, 33, 25, 0.06) 31px 32px),
    var(--accent);
  color: var(--ink);
  overflow: clip;
}
.band-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(64px, 9vh, 100px);
}
.band h2 { color: var(--ink); }
.band-flow {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: clamp(23px, 2.4vw, 29px);
  line-height: 1.5;
  margin-block: 18px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}
.flow-arrow { width: 44px; height: 15px; flex: none; }
.band-note { max-width: 52ch; color: #4a3316; font-size: 17px; }
.frame-leather {
  width: min(100%, 330px);
  margin-left: auto;
  transform: rotate(2deg);
  transition: translate 0.25s var(--ease), box-shadow 0.25s var(--ease);
  animation: drift-in 0.8s var(--ease) 0.3s backwards;
}
.frame-leather img { aspect-ratio: 3 / 4; }

/* ---------- footer ---------- */
.footer {
  border-top: 1.5px dashed var(--line);
  padding-block: clamp(56px, 8vh, 88px) 44px;
}
.footer-line {
  font-family: var(--font-display);
  font-weight: 640;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--bone);
  max-width: 22ch;
  margin-bottom: 44px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 8px;
}
.footer-col p { color: var(--bone-dim); font-size: 16.5px; }
.footer-heading {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 10px;
}
.footer-links li + li { margin-top: 2px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 2px;
  color: var(--bone);
  font-size: 16.5px;
  font-weight: 500;
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: 0 calc(100% - 8px);
}
.fine-print {
  border-top: 1.5px dashed var(--line);
  padding-top: 22px;
  font-size: 13.5px;
  color: var(--bone-dim);
}

/* ---------- detail dialog (the workbench) ---------- */
dialog {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  max-width: none;
  max-height: none;
}
dialog::backdrop {
  background: rgba(20, 14, 8, 0.74);
}
dialog[open] { display: block; }
dialog[open] .sheet { animation: sheet-in 0.28s var(--ease); }
.sheet {
  position: relative;
  width: min(740px, calc(100vw - 28px));
  max-height: min(86vh, 900px);
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: 3px;
  box-shadow: 0 30px 80px rgba(10, 6, 2, 0.6);
  rotate: -0.35deg;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-deep) var(--paper-dim);
}
.sheet-close {
  position: sticky;
  top: 10px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  margin: 10px 12px -52px auto;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px dashed var(--paper-edge);
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(20, 12, 5, 0.25);
}
.sheet-photo { position: relative; border-bottom: 1px solid var(--paper-edge); background: var(--paper-dim); }
.sheet-photo img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}
.sheet-body {
  position: relative;
  padding: 26px clamp(22px, 4vw, 38px) 32px;
}
/* one tape at the seam, holding the paper together */
.sheet-body::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 88px;
  height: 26px;
  translate: -50% 0;
  rotate: -2deg;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 2px, transparent 2px 14px),
    linear-gradient(rgba(248, 242, 228, 0.66), rgba(226, 214, 184, 0.58));
  border-inline: 1px solid rgba(120, 100, 70, 0.22);
  box-shadow: 0 2px 4px rgba(16, 10, 4, 0.2);
  pointer-events: none;
}
.sheet-kicker {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 21px;
  color: var(--ink-faint);
  margin-bottom: 4px;
}
.sheet h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  color: var(--ink);
  margin-bottom: 12px;
}
.sheet-lede {
  color: var(--ink-soft);
  font-size: 17.5px;
  max-width: 58ch;
  margin-bottom: 22px;
}
.sheet-facts { border-top: 1.5px solid var(--paper-edge); margin-bottom: 24px; }
.sheet-facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 2px;
  border-bottom: 1.5px dashed var(--line-paper);
}
.sheet-facts dt {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.sheet-facts dd { font-size: 16.5px; font-weight: 700; color: var(--ink); text-align: right; }
.fact-price { font-family: var(--font-display); font-weight: 700; font-size: 24px; }
.sheet-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
}
.sheet-hint {
  font-family: var(--font-hand);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink-faint);
}
#save-btn.is-saved {
  background: var(--paper);
  color: var(--ink);
  border: 1.5px dashed var(--accent-deep);
  box-shadow: none;
}

/* ---------- noscript ---------- */
.noscript-note {
  background: var(--paper);
  color: var(--ink);
  padding: 22px 24px;
  border-radius: 3px;
  margin-block: 20px;
}
.noscript-note ol { list-style: decimal; padding-left: 22px; margin-top: 8px; }
.noscript-note li { padding-block: 3px; }

/* ---------- keyframes ---------- */
@keyframes draw-in { to { stroke-dashoffset: 0; } }
@keyframes drift-in { from { opacity: 0; translate: 0 26px; } }
@keyframes rise { from { opacity: 0; translate: 0 16px; } }
@keyframes card-in { from { opacity: 0; translate: 0 18px; } }
@keyframes sheet-in { from { opacity: 0; translate: 0 22px; scale: 0.985; } }
@keyframes sway {
  0%, 100% { transform: rotate(-3.6deg); }
  50% { transform: rotate(-2.4deg); }
}
@keyframes bump {
  0% { scale: 1; }
  40% { scale: 1.3; rotate: -5deg; }
  100% { scale: 1; rotate: -3deg; }
}
.rise { animation: rise 0.65s var(--ease) backwards; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.12s; }
.d3 { animation-delay: 0.2s; }
.d4 { animation-delay: 0.28s; }
.d5 { animation-delay: 0.36s; }

/* ---------- hover (pointer only) ---------- */
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
  .btn-primary:hover { translate: 0 -2px; box-shadow: 0 10px 24px rgba(233, 168, 63, 0.3); }
  .arrow-link:hover { color: var(--accent); background-size: 100% 2px; }
  .frame-main:hover, .frame-leather:hover { translate: 0 -4px; box-shadow: 0 26px 52px rgba(12, 8, 4, 0.55); }
  .footer-links a:hover { color: var(--accent); background-size: 100% 2px; }
  .board-grid > li:hover { translate: 0 -5px; }
  .card:hover .card-photo img, .card:focus-within .card-photo img { rotate: 0deg; }
  .card:hover .tape { rotate: -1deg; }
  .card:hover .pin { scale: 1.12; }
  .open-btn:hover { background-size: 100% 2px; }
  .saved-toggle:hover { border-color: var(--accent); color: var(--accent); }
  .saved-toggle.is-on:hover { color: var(--ink); border-color: var(--accent-deep); }
  input[type="search"]:hover, select:hover { border-color: rgba(233, 168, 63, 0.65); }
  .sheet-close:hover { border-style: solid; border-color: var(--accent-deep); color: var(--accent-deep); }
  #save-btn:hover { translate: 0 -2px; }
  .wordmark:hover .wordmark-note { color: var(--bone); }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; padding-block-end: 96px; }
  .hero-cluster { max-width: 560px; }
  .frame-small { width: 42%; }
  .cluster-note {
    position: static;
    margin: 52px 4px 0;
    justify-content: flex-start;
  }
  .board-grid { grid-template-columns: 1fr; gap: 44px; }
  .board-grid > li:nth-child(even), .board-grid > li:nth-child(odd) { transform: rotate(-0.3deg); }
  .band-inner { grid-template-columns: 1fr; }
  .frame-leather { margin-inline: auto; }
  .footer-cols { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .masthead-inner { flex-wrap: wrap; padding-block: 12px; }
  .wordmark { font-size: 24px; }
  .wordmark-note { display: none; }
  .site-nav { overflow-x: auto; padding-inline-end: 4px; scrollbar-width: none; }
  .site-nav a { flex: none; padding-inline: 8px; font-size: 15px; }
  .tray { flex-direction: column; align-items: stretch; padding: 18px; }
  .field { width: 100%; }
  .sheet-photo img { aspect-ratio: 16 / 10; }
  .sheet-facts div { flex-direction: column; gap: 2px; align-items: flex-start; }
  .sheet-facts dd { text-align: left; }
  .frame-small { width: 48%; }
  .h1-line { font-size: 0.96em; }
  .card-facts { grid-template-columns: 1fr; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .scribble path { animation: none; stroke-dashoffset: 0; }
  .rise, .frame-main, .frame-leather, dialog[open] .sheet { animation: none; }
  .frame-small { animation: none; transform: rotate(-3deg); }
  .board-grid > li { animation: none; }
}
