:root {
  --bg: #d9d5cd;         /* warm stone: the shop's floor-and-shelf light */
  --paper: #f3f3f1;
  --ink: #141414;
  --muted: #45433f;
  --accent: #1f3f99;     /* royal blue, the first ink most of us ever used */
  --accent-ink: #ffffff;
  --field: #142a63;      /* deep ink navy for the one bold band */
  --field-ink: #f4f3ef;
  --rhodia: #e8692f;     /* the pad's orange cover, used only on the pad */

  --step-small: 0.9375rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem);
  --step-hero: clamp(3rem, 1.6rem + 4.4vw, 6rem);

  --margin: 12px;
  --radius: 18px;
  --font: "Erode", Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Segoe Script", cursive;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.025em; line-height: 0.98; margin: 0; text-wrap: balance; }
p { margin: 0; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink);
  font: 500 1.0625rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.button:hover { background: #17307a; transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.text-link { text-decoration-thickness: 1px; transition: color .2s var(--ease); }
.text-link:hover { color: var(--accent); }

/* ---------- the split: reading column + sticky photograph ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--margin); padding: var(--margin); }
.col { display: grid; gap: var(--margin); align-content: start; }
.panel, .col > section { background: var(--paper); border-radius: var(--radius); }
.stage { position: sticky; top: var(--margin); height: calc(100svh - var(--margin) * 2); border-radius: var(--radius); overflow: hidden; background: #2a2926; }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 1.6s ease, transform 8s ease-out; }
.stage img.on { opacity: 1; transform: scale(1); }
.stage-bar { position: absolute; left: 0; right: 0; bottom: 0; min-height: 56px; padding: 0 24px; background: var(--paper); display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: var(--step-small); }
#open-now { font-weight: 600; }
.phone-only { display: none; }

/* hero: a sheet set like the shop's card */
.hero { min-height: calc(100svh - var(--margin) * 2); padding: 28px clamp(24px, 4vw, 64px) 48px; display: grid; grid-template-rows: auto 1fr; text-align: center; }
.hero-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 28px; }
.hero-nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; font-weight: 500; text-decoration: underline 1px transparent; text-underline-offset: 5px; transition: text-decoration-color .2s var(--ease); }
.hero-nav a:hover { text-decoration-color: currentColor; }
.hero-body { align-self: center; display: grid; justify-items: center; gap: 28px; padding: 6vh 0 4vh; }
.hero h1 { font-size: var(--step-hero); color: var(--accent); max-width: 9ch; }
.hero-lead { font-size: var(--step-lead); line-height: 1.35; max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; }

/* story: a narrow, well-set column */
.story { padding: clamp(56px, 7vw, 112px) clamp(24px, 4vw, 64px) clamp(64px, 8vw, 128px); display: grid; gap: 20px; }
.story h2 { font-size: var(--step-head); max-width: 14ch; margin-bottom: 12px; }
.story p { max-width: 46ch; color: var(--muted); }
.story .story-first { color: var(--ink); font-weight: 500; font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }

/* ---------- the aisles: one bold ink-navy band ---------- */
.aisles { margin: 0 var(--margin); border-radius: var(--radius); background: var(--field); color: var(--field-ink); padding: clamp(64px, 8vw, 128px) clamp(24px, 4vw, 64px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; }
.aisles > h2 { grid-column: 1 / 6; align-self: start; position: sticky; top: 32px; font-size: clamp(3.25rem, 1.6rem + 5.4vw, 6.5rem); font-weight: 600; max-width: 9ch; }
.aisle-rows { grid-column: 7 / 13; display: grid; gap: 120px; }
.aisle h3 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); font-weight: 600; margin-bottom: 24px; }
.aisle-row { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; }
.aisle-row.flip { grid-template-columns: 1fr 200px; }
.aisle-row.flip img { order: 2; }
.aisle-row img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
.aisle-row ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-size: 1.125rem; line-height: 1.4; }

/* ---------- the ink station: the live thing ---------- */
.ink { margin: var(--margin); border-radius: var(--radius); background: var(--paper); padding: clamp(64px, 8vw, 128px) clamp(24px, 4vw, 64px); }
.ink-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; margin-bottom: 56px; }
.ink-head h2 { grid-column: 1 / 7; font-size: var(--step-hero); color: var(--accent); }
.ink-head p { grid-column: 8 / 13; max-width: 40ch; }
.ink-desk { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.ink-controls { display: grid; gap: 28px; }
.ink-controls fieldset { border: 0; margin: 0; padding: 0; }
.ink-controls legend, .ink-field span { display: block; font-weight: 600; margin-bottom: 10px; padding: 0; }
.ink-field input { width: 100%; min-height: 56px; padding: 0 18px; border: 2px solid #c9c5bc; border-radius: 12px; background: #fff; font: 400 1.25rem var(--font); color: var(--ink); }
.ink-field input:focus { outline: none; border-color: var(--accent); }
.swatches, .nibs { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches label, .nibs label { position: relative; }
.swatches input, .nibs input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.swatches span, .nibs span { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px 0 12px; border-radius: 999px; background: #e7e4dd; transition: background-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease); }
.nibs span { padding: 0 18px; }
.swatches span::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--c); flex: none; }
.swatches label:hover span, .nibs label:hover span { background: #dcd8cf; }
.swatches input:checked + span, .nibs input:checked + span { background: var(--ink); color: var(--paper); }
.swatches input:focus-visible + span, .nibs input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.swatches input:active + span, .nibs input:active + span { transform: scale(0.97); }
.pad { border-radius: 14px; overflow: hidden; background: #fff; }
.pad-top { background: var(--rhodia); height: 28px; }
.pad-sheet {
  min-height: 300px; padding: 40px 32px 36px; display: grid; align-content: center; gap: 18px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Ccircle cx='10' cy='10' r='1.1' fill='%23b9c3d6'/%3E%3C/svg%3E") 0 0 / 20px 20px;
}
.pad-writing { font-family: var(--hand); font-size: clamp(2.5rem, 1.6rem + 3vw, 4.25rem); line-height: 1.05; font-weight: 500; overflow-wrap: anywhere; }
.pad-small { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }
.pad-writing.fresh { animation: write .6s var(--ease); }
@keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.pad figcaption b { display: block; color: var(--ink); font-size: var(--step-body); margin-bottom: 4px; }
.pad figcaption { padding: 16px 22px 20px; font-size: var(--step-small); color: var(--muted); background: #fff; }

/* ---------- lower split ---------- */
.split-b { padding-top: 0; }
.shows, .family, .letter { padding: clamp(56px, 7vw, 112px) clamp(24px, 4vw, 64px); display: grid; gap: 22px; align-content: start; }
.shows h2, .family h2, .letter h2 { font-size: var(--step-head); max-width: 14ch; margin-bottom: 8px; }
.lead { font-size: var(--step-lead); line-height: 1.35; max-width: 34ch; }
.guests { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 16px; max-width: 46ch; }
.guests b { font-weight: 600; }
.shows p, .family p, .letter p { max-width: 46ch; }
.family { background: var(--field) !important; color: var(--field-ink); }
.family h2 { color: var(--field-ink); }
.signoff { margin-top: 12px; font-size: 1.375rem; font-style: italic; display: grid; }
.signoff span { font-style: normal; font-size: var(--step-small); opacity: .85; }
.letter-form { display: grid; gap: 10px; max-width: 420px; margin-top: 8px; }
.letter-form label { font-weight: 600; margin-top: 6px; }
.letter-form input { min-height: 54px; padding: 0 18px; border: 2px solid #c9c5bc; border-radius: 12px; background: #fff; font: 400 1.0625rem var(--font); color: var(--ink); }
.letter-form input:focus { outline: none; border-color: var(--accent); }
.letter-form .button { margin-top: 12px; justify-self: start; }
.letter-note { font-size: var(--step-small); color: var(--muted); }

/* ---------- visit: the address in display rows ---------- */
.visit { margin: 0 var(--margin); display: grid; }
.visit .row { display: flex; align-items: flex-end; min-height: clamp(96px, 10vw, 150px); padding: 0 24px 18px; font-size: clamp(2.25rem, 1rem + 4.6vw, 5.5rem); line-height: 1; letter-spacing: -0.03em; text-decoration: none; background: var(--paper); }
.visit .row:nth-child(odd) { background: #e9e6df; }
.visit a.row { transition: color .2s var(--ease); }
.visit a.row:hover { color: var(--accent); }
.visit .row:first-of-type { border-radius: var(--radius) var(--radius) 0 0; }
.row-hello { gap: 24px; align-items: center; padding-top: 18px; background: var(--accent) !important; color: var(--accent-ink); }
.visit a.row-hello:hover { color: var(--accent-ink); }
.hello-dot { width: 0.9em; height: 0.9em; border-radius: 50%; background: var(--paper); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 0.6em; transition: transform .25s var(--ease); flex: none; }
.row-hello:hover .hello-dot { transform: translateX(8px); }
.holidays { background: var(--paper); border-radius: 0 0 var(--radius) var(--radius); padding: 28px 24px 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; color: var(--muted); }

/* ---------- footer: photograph half, menu half ---------- */
.foot { display: grid; grid-template-columns: 1fr 1fr; gap: var(--margin); padding: var(--margin); min-height: 100svh; }
.foot-photo { border-radius: var(--radius); overflow: hidden; }
.foot-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.foot-menu { background: var(--paper); border-radius: var(--radius); padding: 56px clamp(24px, 4vw, 64px) 32px; display: flex; flex-direction: column; gap: 48px; }
.foot-mark { font-size: 1.375rem; font-weight: 600; color: var(--accent); }
.foot-menu nav { display: grid; gap: 14px; }
.foot-menu nav a { font-size: clamp(2rem, 1rem + 2.6vw, 3.25rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; text-decoration: none; transition: transform .25s var(--ease), color .25s var(--ease); justify-self: start; }
.foot-menu nav a:hover { transform: translateX(12px); color: var(--accent); }
.foot-menu nav:hover a:not(:hover) { color: var(--muted); }
.foot-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; font-size: var(--step-small); line-height: 1.7; }
.foot-legal { margin-top: auto; font-size: var(--step-small); color: var(--muted); }

/* ---------- motion: entrances ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero-body > * { opacity: 0; transform: translateY(18px); animation: rise .6s var(--ease) forwards; }
.js .hero-body > :nth-child(2) { animation-delay: .1s; }
.js .hero-body > :nth-child(3) { animation-delay: .2s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage img { transition: none; transform: none; }
  .js .reveal, .js .hero-body > * { opacity: 1; transform: none; transition: none; animation: none; }
  .pad-writing.fresh { animation: none; }
  .button, .swatches span, .nibs span, .hello-dot, .foot-menu nav a { transition: none; }
}

/* ---------- tablet & phone ---------- */
@media (max-width: 960px) {
  .aisles > h2 { grid-column: 1 / -1; position: static; max-width: none; margin-bottom: 56px; }
  .aisle-rows { grid-column: 1 / -1; }
  .ink-head h2, .ink-head p { grid-column: 1 / -1; }
  .ink-desk { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .split, .foot { grid-template-columns: 1fr; }
  .split-a .stage { display: none; }
  .split-b .stage { display: none; }
  .phone-only { display: block; }
  .inline-photo img { width: 100%; border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; }
  .hero { min-height: 0; padding: 16px 20px 28px; }
  .hero .inline-photo { order: -1; margin: 0 -8px 8px; }
  .hero .inline-photo img { aspect-ratio: 4 / 5; }
  .hero-nav { gap: 0 18px; }
  .hero-body { padding: 16px 0 0; gap: 20px; }
  .hero h1 { font-size: 3.25rem; }
  .hero-lead { font-size: 1.1875rem; }
  .hero-actions .button { width: 100%; }
  .story, .shows, .family, .letter { padding: 56px 20px 64px; }
  .aisles { padding: 64px 20px; }
  .aisles > h2 { position: sticky; top: 0; z-index: 2; background: var(--field); margin: 0 -20px 40px; padding: 12px 20px; font-size: 2.75rem; max-width: none; }
  .aisle-rows { gap: 72px; }
  .aisle-row, .aisle-row.flip { grid-template-columns: 1fr; gap: 20px; }
  .aisle-row.flip img { order: 0; }
  .aisle-row img { aspect-ratio: 4 / 3; }
  .aisle-row ul { font-size: 1.0625rem; }
  .ink { padding: 56px 20px; }
  .ink-head { margin-bottom: 36px; }
  .ink-head h2 { font-size: 3.25rem; }
  .pad-sheet { min-height: 220px; padding: 28px 20px; }
  .visit .row { font-size: 9.6vw; min-height: 84px; padding: 0 16px 14px; }
  .holidays { grid-template-columns: 1fr; padding: 24px 16px; }
  .foot { min-height: 0; }
  .foot-photo { height: 50svh; }
  .foot-menu { padding: 40px 20px 28px; gap: 36px; }
  .foot-menu nav a { font-size: 8vw; }
  .foot-blocks { grid-template-columns: 1fr; gap: 16px; }
}
