/* ============================================================
   TYPEWRITER JUSTICE: design tokens
   Voice system: the shop speaks in serif (Besley, a Clarendon),
   the machines speak in mono (Courier Prime).
   ============================================================ */
:root {
  /* Color: paper, ink, and blue ribbon */
  --color-bg: #f2ebdb;            /* aged paper stock */
  --color-surface: #e9dfc8;       /* deeper paper, mounted areas */
  --color-text: #221e18;          /* typewriter ink black */
  --color-muted: #5c5545;         /* faded ink */
  --color-accent: #b23a26;        /* ribbon red: stamps, emphasis */
  --color-ribbon: #2a417a;        /* royal blue ribbon ink, darkened for text */
  --color-ribbon-raw: #8fabdd;    /* blue ribbon, straight off the spool */
  --color-focus: #b23a26;
  --color-success: #2a417a;
  --color-warning: #9a6b1f;
  --color-danger: #b23a26;

  /* Typography */
  --font-display: "Besley", "Bookman Old Style", "Iowan Old Style", Georgia, serif;
  --font-body: "Besley", Georgia, serif;
  --font-mono: "Courier Prime", "Courier New", Courier, monospace;
  --text-xs: 0.75rem;   --leading-xs: 1.5;
  --text-sm: 0.9rem;    --leading-sm: 1.55;
  --text-base: 1.125rem;--leading-base: 1.65;
  --text-lg: 1.45rem;   --leading-lg: 1.45;
  --text-xl: clamp(1.8rem, 3.5vw, 2.6rem);   --leading-xl: 1.15;
  --text-2xl: clamp(3.2rem, 9vw, 7.5rem);    --leading-2xl: 0.92;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-6: 3rem;
  --space-8: 5.5rem;

  /* Radius and Shadow: paper doesn't round; it stacks */
  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 4px;
  --shadow-sm: 0 1px 2px rgba(34, 30, 24, 0.18);
  --shadow-md: 0 2px 8px rgba(34, 30, 24, 0.22), 0 1px 2px rgba(34, 30, 24, 0.12);
  --shadow-lg: 0 12px 32px rgba(34, 30, 24, 0.26), 0 2px 6px rgba(34, 30, 24, 0.14);

  /* Motion is mechanical: quick to move, firm to land */
  --duration-fast: 120ms;
  --duration-base: 260ms;
  --duration-slow: 600ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
}

/* ============================================================ Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-base);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
/* Paper grain: one texture, everywhere, quiet */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
/* If a photo fails to load, the alt text sits on paper like a typed note */
img {
  background: var(--color-surface);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-muted);
  padding: 0;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0 0 var(--space-3); }

::selection { background: var(--color-ribbon-raw); color: var(--color-text); }

/* Links: underline is the ink; hover re-inks it red; focus is a stamp outline */
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, var(--color-text) 50%, transparent);
  transition: text-decoration-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}
a:hover { color: var(--color-accent); text-decoration-color: var(--color-accent); text-decoration-thickness: 2px; }
a:active { color: color-mix(in srgb, var(--color-accent) 80%, var(--color-text)); }
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -4rem;
  z-index: 100;
  background: var(--color-text);
  color: var(--color-bg);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  padding: var(--space-2) var(--space-3);
  text-decoration: none;
  transition: top var(--duration-fast) var(--ease-out);
}
.skip-link:focus { top: var(--space-3); color: var(--color-bg); }

.wrap { max-width: 76rem; margin: 0 auto; padding-inline: clamp(1.25rem, 4vw, 3rem); }

/* Typed rules: the double line a typewriter makes under a heading */
.rule-double { border: 0; border-top: 1px solid var(--color-text); position: relative; margin: 0; }
.rule-double::after { content: ""; position: absolute; left: 0; right: 0; top: 2px; border-top: 1px solid var(--color-text); }

.mono { font-family: var(--font-mono); }

/* ============================================================ Masthead */
.masthead {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  padding-block: var(--space-3);
}
.masthead .site-mark { font-weight: 700; margin-right: auto; }
.masthead nav { display: flex; gap: var(--space-2); }
.masthead a {
  text-decoration: none;
  padding: 0.65em 0.6em; /* ≥44px touch target with line height */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.masthead a:hover { color: var(--color-accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }

/* ============================================================ Hero */
.hero { padding-block: clamp(2rem, 6vw, 5rem) 0; position: relative; }
.hero .kicker {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-3);
}
.hero h1 {
  font-size: var(--text-2xl);
  line-height: var(--leading-2xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 11ch;
}
.hero h1 em {
  font-style: normal;
  font-weight: inherit;
  color: var(--color-ribbon);
}

/* Signature element: the tagline types itself, carriage cursor and all */
.typed-line {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  line-height: 1.5;
  margin-top: var(--space-4);
  max-width: 34rem;
  min-height: 3em;
}
.typed-line .caret {
  display: inline-block;
  width: 0.62em;
  height: 1.15em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--color-ribbon);
}
.typed-line.done .caret { animation: caret-blink 1.1s steps(1) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }

/* The inspection stamp lands once the sentence is finished */
.stamp {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 3px double var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 0.5em 0.9em;
  transform: rotate(-4deg);
  opacity: 0.9;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.12' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0.32'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23r)'/%3E%3C/svg%3E");
}
.hero .stamp { margin-top: var(--space-4); }
.js .hero .stamp { opacity: 0; transform: rotate(-4deg) scale(1.6); }
.js .hero .stamp.landed {
  opacity: 0.9;
  transform: rotate(-4deg) scale(1);
  transition: opacity var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-spring);
}
@media (prefers-reduced-motion: reduce) {
  .js .hero .stamp { opacity: 0.9; transform: rotate(-4deg) scale(1); }
}

/* Hero photo breaks the grid: aligned left, bleeds off the right edge */
.hero-figure { margin: var(--space-6) calc(50% - 50vw) 0 0; }
.hero-figure img { width: 100%; height: auto; box-shadow: var(--shadow-lg); }
.hero-figure figcaption { padding-right: clamp(1.25rem, 4vw, 3rem); }

/* Figure tags: every photo is logged like a work order */
figure { margin: 0; }
figcaption {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding-top: var(--space-2);
}
figcaption .no { color: var(--color-accent); font-weight: 700; }

/* ============================================================ Sections */
section { padding-block: var(--space-8); }
.section-head {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.section-head h2 {
  font-size: var(--text-xl);
  line-height: var(--leading-xl);
  font-weight: 600;
  white-space: nowrap;
}
.section-head .rule-double { flex: 1; align-self: center; }
.section-head .index {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 700;
}

/* Statement */
.statement { padding-block: var(--space-8); }
.statement p {
  font-size: var(--text-lg);
  line-height: var(--leading-lg);
  font-weight: 400;
  max-width: 46rem;
}
.statement p + p { max-width: 40rem; color: var(--color-muted); font-size: var(--text-base); }
.statement .wrap { display: grid; grid-template-columns: 1fr; }
@media (min-width: 64rem) {
  .statement .wrap { grid-template-columns: 1.2fr 0.8fr; gap: var(--space-6); }
}

/* The ledger: services as work-order line items */
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { border-top: 1px solid color-mix(in srgb, var(--color-text) 35%, transparent); }
.ledger li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--color-text) 35%, transparent); }
.ledger .row {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: var(--space-2) var(--space-4);
  padding-block: var(--space-4);
  transition: background var(--duration-fast) var(--ease-out);
}
@media (min-width: 48rem) {
  .ledger .row { grid-template-columns: 4rem 1.1fr 1.3fr; }
}
.ledger li:hover .row { background: color-mix(in srgb, var(--color-surface) 55%, transparent); }
.ledger .num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-accent);
  font-size: var(--text-sm);
  padding-top: 0.5em;
}
.ledger h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500;
  line-height: 1.1;
}
.ledger .spec {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-ribbon);
  margin-top: var(--space-2);
}
.ledger .desc { color: var(--color-muted); margin: 0; grid-column: 2; }
@media (min-width: 48rem) { .ledger .desc { grid-column: 3; padding-top: 0.35em; } }
.ledger .joke h3 { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--color-accent); }
.ledger .joke .desc { font-style: italic; }

/* Bench photos: asymmetric spread */
.spread {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
@media (min-width: 48rem) {
  .spread { grid-template-columns: repeat(12, 1fr); }
  .spread figure:nth-child(1) { grid-column: 1 / 8; }
  .spread figure:nth-child(2) { grid-column: 8 / 13; padding-top: var(--space-8); }
  .spread figure:nth-child(3) { grid-column: 3 / 9; }
  .spread figure:nth-child(4) { grid-column: 9 / 13; padding-top: var(--space-6); }
}
.spread img { width: 100%; height: auto; box-shadow: var(--shadow-md); }

/* The shop: copy beside the pinned polaroid, matched pair of photos beneath */
.shop-grid { display: grid; gap: var(--space-6) var(--space-4); align-items: start; margin-top: var(--space-6); }
.shop-grid figure:not(.polaroid) img { width: 100%; height: auto; box-shadow: var(--shadow-md); }
.shop-copy p { max-width: 38rem; }
.shop-copy .banner-quote {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text);
  border-left: 4px solid var(--color-accent);
  padding: var(--space-2) var(--space-3);
  margin: var(--space-4) 0;
}
@media (min-width: 64rem) {
  .shop-grid { grid-template-columns: repeat(12, 1fr); }
  .shop-copy { grid-column: 1 / 8; grid-row: 1; }
  .shop-photo-shelves { grid-column: 8 / 13; grid-row: 1; }
  .shop-photo-banner { grid-column: 1 / 13; grid-row: 2; }
  .polaroid { grid-column: 8 / 13; grid-row: 2; align-self: start; justify-self: end; margin-top: calc(-1 * var(--space-8)); margin-bottom: 0; }
}

/* Quality control: the cat gets a polaroid, slightly off square */
.polaroid {
  background: #faf6ec;
  padding: var(--space-3) var(--space-3) var(--space-4);
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
  max-width: 17rem;
  justify-self: end;
  margin-right: var(--space-4);
  margin-bottom: calc(-1 * var(--space-8)); /* mobile: pinned over the top corner of the photo below, deliberate */
  position: relative;
  z-index: 1;
}
.polaroid img { width: 100%; height: auto; box-shadow: none; }
.polaroid figcaption { text-transform: none; letter-spacing: 0.03em; font-size: var(--text-sm); color: var(--color-text); }

/* ============================================================ Gallery: the overflow drawer */
.gallery-grid {
  column-count: 1;
  column-gap: var(--space-4);
  margin-top: var(--space-6);
}
@media (min-width: 40rem) { .gallery-grid { column-count: 2; } }
@media (min-width: 64rem) { .gallery-grid { column-count: 3; } }
.gallery-grid figure {
  break-inside: avoid;
  margin-bottom: var(--space-4);
}
.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: var(--shadow-md);
  transition: transform var(--duration-base) var(--ease-out);
}
.gallery-grid figure:hover img,
.gallery-grid figure:focus-within img {
  transform: translateY(-3px);
}
@media (prefers-reduced-motion: reduce) {
  .gallery-grid img { transition: none; }
}

/* ============================================================ The shelf · inventory ledger */
.shelf-intro { max-width: 46rem; }
.shelf-legend {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: var(--space-3) var(--space-4);
  border: 3px double color-mix(in srgb, var(--color-text) 55%, transparent);
  border-radius: var(--radius-lg);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
}
.shelf-legend li { padding-block: var(--space-1); }
.shelf-legend .term {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.shelf-legend .term.ready { color: var(--color-accent); }
.shelf-legend .term.queue { color: var(--color-ribbon); }

.shelf-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-6);
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--color-text);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  padding: 0.6em 1em;
  min-height: 44px;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}
.filter-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.filter-btn[aria-pressed="true"] { background: var(--color-text); color: var(--color-bg); border-color: var(--color-text); }
.shelf-count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 0 auto;
}

.shelf-grid { display: grid; gap: var(--space-4); margin-top: var(--space-4); }
@media (min-width: 40rem) { .shelf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .shelf-grid { grid-template-columns: repeat(3, 1fr); } }

.machine-card {
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}
.machine-card .photo-wrap { position: relative; }
.machine-card .photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.machine-card .photo-empty {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 20%, transparent);
}
.machine-card.sold .photo,
.machine-card.commissioned .photo { filter: grayscale(0.55) contrast(0.92); opacity: 0.85; }
.card-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  font-size: var(--text-base);
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
}
.machine-card .body {
  padding: var(--space-3) var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}
.machine-card h3 { font-size: 1.35rem; font-weight: 500; line-height: 1.15; }
.machine-card .meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0;
}
.machine-card .notes { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-muted); margin: 0; }
.machine-card .tail {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid color-mix(in srgb, var(--color-text) 25%, transparent);
}
.status-chip {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status-chip.ready { color: var(--color-accent); }
.status-chip.queue { color: var(--color-ribbon); }
.status-chip.sold, .status-chip.commissioned { color: var(--color-muted); }
.machine-card .price { font-family: var(--font-mono); font-weight: 700; font-size: var(--text-sm); text-align: right; }
.card-action {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  align-self: start;
}
.shelf-fallback { color: var(--color-muted); font-size: var(--text-sm); letter-spacing: 0.04em; }

/* Commission desk */
.commission {
  margin-top: var(--space-8);
  border: 3px double color-mix(in srgb, var(--color-text) 55%, transparent);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--color-surface) 55%, transparent);
}
.commission h3 { font-size: var(--text-lg); font-weight: 600; }
.commission > p { max-width: 42rem; }
.commission form { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
@media (min-width: 48rem) {
  .commission form { grid-template-columns: 1fr 1fr; }
  .commission .field-wide, .commission .form-actions { grid-column: 1 / -1; }
}
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-1);
}
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: var(--leading-sm);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid color-mix(in srgb, var(--color-text) 55%, transparent);
  border-radius: var(--radius-sm);
  padding: 0.75em 0.8em;
}
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.stamp-btn {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: transparent;
  border: 3px double var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 0.7em 1.2em;
  min-height: 44px;
  cursor: pointer;
  transform: rotate(-1deg);
  transition: background var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              transform var(--duration-base) var(--ease-spring);
}
.stamp-btn:hover { background: var(--color-accent); color: var(--color-bg); transform: rotate(-1deg) scale(1.03); }
.form-note { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-muted); margin: var(--space-3) 0 0; }
.sent-note { margin-top: var(--space-4); }
.sent-note .stamp { margin-bottom: var(--space-3); }
.sent-note p { font-family: var(--font-mono); font-size: var(--text-sm); max-width: 38rem; }

/* ============================================================ Visit */
.visit { background: var(--color-text); color: var(--color-bg); }
.visit ::selection { background: var(--color-accent); color: var(--color-bg); }
.visit .section-head h2 { color: var(--color-bg); }
.visit .section-head .rule-double,
.visit .section-head .rule-double::after { border-color: color-mix(in srgb, var(--color-bg) 60%, transparent); }
.visit-grid { display: grid; gap: var(--space-6); }
@media (min-width: 64rem) { .visit-grid { grid-template-columns: 1.1fr 0.9fr; } }
.hours {
  font-family: var(--font-mono);
  border: 3px double color-mix(in srgb, var(--color-bg) 75%, transparent);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
.hours h3 {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ribbon-raw);
  margin-bottom: var(--space-3);
  font-weight: 700;
}
.hours .days {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
}
.hours .time { font-size: var(--text-lg); margin-top: var(--space-2); }
.hours .note { color: color-mix(in srgb, var(--color-bg) 70%, transparent); font-size: var(--text-sm); margin-top: var(--space-3); }
.visit address {
  font-style: normal;
  font-size: var(--text-lg);
  line-height: var(--leading-lg);
}
.visit address .mono { font-size: var(--text-sm); color: color-mix(in srgb, var(--color-bg) 70%, transparent); letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: var(--space-2); }
.visit a { text-decoration-color: color-mix(in srgb, var(--color-bg) 55%, transparent); }
.visit a:hover { color: var(--color-ribbon-raw); text-decoration-color: var(--color-ribbon-raw); }
.visit :focus-visible { outline-color: var(--color-ribbon-raw); }
.contact-list { list-style: none; padding: 0; margin: var(--space-4) 0 0; font-family: var(--font-mono); font-size: var(--text-base); }
.contact-list li { padding-block: var(--space-2); display: flex; gap: var(--space-3); flex-wrap: wrap; }
.contact-list .label { color: color-mix(in srgb, var(--color-bg) 60%, transparent); text-transform: uppercase; font-size: var(--text-xs); letter-spacing: 0.14em; width: 6.5rem; padding-top: 0.35em; }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; }
.visit address a { display: inline-flex; align-items: center; min-height: 44px; }

/* ============================================================ Footer */
footer {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  justify-content: space-between;
  padding-block: var(--space-4);
}

/* ============================================================ Small screens */
@media (max-width: 40rem) {
  .masthead nav { width: 100%; }
  .hero h1 { max-width: none; }
  section { padding-block: var(--space-6); }
  .section-head { flex-wrap: wrap; }
  .section-head .rule-double { flex-basis: 100%; }
}

/* ============================================================ The ledger (ledger.html) */
.masthead a.site-mark { text-decoration: none; color: inherit; }

.ledger-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin-bottom: var(--space-4);
}
.ledger-search-label {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.ledger-search {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-text);
  border-radius: var(--radius-sm);
  padding: 0.6em 0.9em;
  min-height: 44px;
  min-width: min(24rem, 100%);
}
.ledger-search:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}
.ledger-search::placeholder { color: color-mix(in srgb, var(--color-muted) 70%, transparent); }
.ledger-filters { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.ledger-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  padding: var(--space-3) 0 var(--space-4);
  border-top: 1px dotted var(--color-muted);
}
.ledger-tabs .tab {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
}
.ledger-tabs .tab:hover { color: var(--color-accent); }
.ledger-tabs .tab-count { color: var(--color-accent); }

.make-group { padding-top: var(--space-6); }
.make-group:target { scroll-margin-top: var(--space-6); }
.make-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}
.make-head h3 { font-size: var(--text-lg); font-weight: 600; }
.make-count {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;
}

.catalog { list-style: none; padding: 0; margin: var(--space-2) 0 0; }
.entry {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1) var(--space-3);
  padding-block: var(--space-2);
  border-bottom: 1px dotted color-mix(in srgb, var(--color-muted) 55%, transparent);
}
.entry-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-1) var(--space-3); }
.entry-name { font-size: var(--text-base); font-weight: 500; margin: 0; }
.entry-meta {
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0;
}
.entry-tail { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-left: auto; }
.entry-grade {
  font-size: var(--text-sm);
  letter-spacing: 0.18em;
  color: var(--color-text);
  cursor: help;
}
.entry-flag {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ribbon);
  border: 1px solid var(--color-ribbon);
  border-radius: var(--radius-sm);
  padding: 0.2em 0.55em;
}
.entry-ask {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.entry-stamp {
  font-size: 0.65rem;
  padding: 0.3em 0.7em;
  transform: rotate(-3deg);
}
.entry.sold .entry-name,
.entry.sold .entry-meta { opacity: 0.55; }

.ledger-outro { margin-top: var(--space-8); }
.ledger-outro p {
  max-width: 46rem;
  color: var(--color-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-3);
}

@media (max-width: 40rem) {
  .entry-tail { margin-left: 0; }
  .ledger-search { min-width: 100%; }
}

.ledger-link {
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  margin-top: var(--space-3);
}
.ledger-link a { color: var(--color-accent); text-underline-offset: 3px; }
