:root {
  --paper: #f3eee6;
  --card: #fffdf8;
  --ink: #211b16;
  --muted: #6e6258;
  --ox: #9c2f2a;
  --ox-deep: #6f221f;
  --brass: #a67c45;
  --sage: #e7efe3;
  --line: rgba(33, 27, 22, 0.14);
  --shadow: 0 24px 60px rgba(48, 28, 18, 0.12);
  --serif: "Bodoni Moda", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: Figtree, "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(166, 124, 69, 0.16), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(156, 47, 42, 0.08), transparent 50%),
    var(--paper);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
a { color: inherit; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.frame {
  width: min(1180px, calc(100% - 2.4rem));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--card);
  padding: 0.6rem 0.9rem;
  z-index: 20;
}
.skip:focus { top: 1rem; }

.mast {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(243, 238, 230, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.mast.is-stuck { border-bottom-color: var(--line); }
.mast-row {
  display: grid;
  grid-template-columns: auto 1fr minmax(180px, 280px) auto;
  gap: 1rem;
  align-items: center;
  min-height: 4.6rem;
}
.mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  text-decoration: none;
  letter-spacing: -0.04em;
}
.mast-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.seek {
  display: flex;
  border-bottom: 1px solid var(--ink);
}
.seek input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.45rem 0.2rem;
  outline: none;
}
.seek button {
  border: 0;
  background: transparent;
  padding: 0.45rem 0.1rem 0.45rem 0.6rem;
  cursor: pointer;
  font-weight: 650;
}
.menu-btn {
  display: none;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}
.sections ul {
  display: flex;
  gap: 0.4rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0 0 0.85rem;
  flex-wrap: wrap;
}
.nav-link {
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 650;
}
.nav-link::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.45rem;
  background: var(--brass);
  transform: translateY(-0.08rem);
}
.nav-link.is-current { color: var(--ox); }
.nav-link.is-current::before { background: var(--ox); }

.stamp {
  margin: 0 0 0.55rem;
  color: var(--ox);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 42rem;
}
.count-line { color: var(--muted); }

.opener {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 0;
  padding: 1.6rem 0 2.4rem;
}
.opener-photo a { display: block; text-decoration: none; }
.opener-photo img,
.opener-photo .photo-fallback {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #e7d8c8;
  box-shadow: var(--shadow);
}
.opener-card {
  position: relative;
  z-index: 1;
  margin: 0 0 6% -14%;
  padding: 2.2rem 2rem 1.8rem;
  background: var(--card);
  box-shadow: var(--shadow);
}
.opener-card h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(3.1rem, 6vw, 5.4rem);
  font-style: italic;
}
.opener-card h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  font-style: normal;
}
.opener-card h2 a {
  text-decoration: none;
}
.opener-card h2 a:hover { color: var(--ox); }
.go a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.go { margin: 1.1rem 0 0; font-weight: 650; }
.go a::after { content: " →"; }

.pantry { padding-bottom: 0.4rem; }
.pantry ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0 0 1.2rem;
  border-bottom: 1px solid var(--line);
}
.pantry a {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255, 253, 248, 0.7);
  font-size: 0.95rem;
}
.pantry a:hover { border-color: var(--ox); color: var(--ox); }

.section-label { padding-top: 2.2rem; }
.section-label h2 { margin: 0 0 0.35rem; font-size: clamp(2rem, 4vw, 3.1rem); }
.section-label p { margin: 0; color: var(--muted); }

.ledger { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.ledger a {
  display: grid;
  grid-template-columns: 3rem 6.6rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.ledger li:last-child a { border-bottom: 1px solid var(--line); }
.ledger-no {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--brass);
}
.ledger-photo img,
.ledger-photo .photo-fallback {
  width: 6.6rem;
  height: 6.6rem;
  object-fit: cover;
  background: #e7d8c8;
}
.ledger-title {
  display: block;
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.12;
}
.ledger-dek {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.96rem;
}
.ledger a:hover .ledger-title { color: var(--ox); }

.shelves { margin: 2rem 0 1rem; }
.shelf {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) 1.28fr;
  gap: 1.5rem 2rem;
  align-items: start;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.shelf.is-alt {
  background: linear-gradient(90deg, transparent, var(--sage) 8%, var(--sage) 92%, transparent);
}
.shelf-head h2 { margin: 0 0 0.6rem; font-size: clamp(2rem, 3vw, 2.8rem); }
.shelf-head p { color: var(--muted); }
.shelf-head > a {
  display: inline-block;
  margin-top: 0.4rem;
  font-weight: 650;
  color: var(--ox-deep);
}

.lane-top { padding: 2.2rem 0 0.4rem; }
.lane-top h1 { margin: 0 0 0.6rem; font-size: clamp(2.8rem, 6vw, 4.8rem); font-style: italic; }
.lane-body { padding-bottom: 2.5rem; }

.sheet { padding: 1.6rem 0 3rem; max-width: 860px; }
.sheet-top h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-style: italic;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.crumbs a { color: var(--ink); }
.plate { margin: 1.2rem 0 1.6rem; }
.plate img,
.plate .photo-fallback { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.plate figcaption { margin-top: 0.45rem; color: var(--muted); font-size: 0.92rem; }

.prose { font-size: 1.08rem; line-height: 1.72; }
.prose > *:first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 {
  margin: 2rem 0 0.6rem;
  line-height: 1.15;
}
.prose h2 { font-size: 2.15rem; }
.prose h3 { font-size: 1.55rem; }
.prose p { margin: 0.8rem 0; }
.prose ul, .prose ol { margin: 0.6rem 0 1rem; padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }
.prose a { color: var(--ox-deep); text-underline-offset: 0.16em; }
.prose img { width: 100%; height: auto; margin: 1rem 0; }
.prose blockquote {
  margin: 1.2rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--brass);
  color: var(--muted);
}
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.prose th, .prose td { border-bottom: 1px solid var(--line); text-align: left; padding: 0.45rem 0.3rem; vertical-align: top; }

.also { padding-bottom: 3rem; }
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.6rem;
}
.page-link {
  display: inline-flex;
  min-width: 2.4rem;
  justify-content: center;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  text-decoration: none;
  background: var(--card);
}
.page-link.is-current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.missing { padding: 4rem 0 5rem; }
.missing h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-style: italic; }
.photo-fallback {
  display: block;
  background:
    linear-gradient(145deg, #f7f1e7 0%, #e7d3c0 48%, #f3e6d4 100%);
}

.colophon {
  background: #241c18;
  color: #f6f1e8;
  padding: 2.6rem 0 1.2rem;
  margin-top: 1rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 1.5rem;
}
.foot-brand .mark { color: #f6f1e8; }
.foot-brand p, .legal p { color: rgba(246, 241, 232, 0.72); }
.colophon h2 { margin: 0 0 0.6rem; font-size: 1.35rem; color: #f6f1e8; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin: 0.28rem 0; }
.foot-link { color: #f6f1e8; text-decoration: none; }
.foot-link:hover { color: #e7c48a; }
.legal { margin-top: 1.6rem; padding-top: 0.8rem; border-top: 1px solid rgba(246, 241, 232, 0.16); }

.contact-panel {
  margin-top: 0.4rem;
  padding: 1.5rem 1.4rem 1.3rem;
  background: var(--card);
  box-shadow: var(--shadow);
}
.note-form { display: grid; gap: 1rem; }
.note-form label { display: grid; gap: 0.35rem; }
.note-form label span {
  color: var(--ox);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.note-form input, .note-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  padding: 0.55rem 0.05rem 0.65rem;
  outline: none;
}
.note-form textarea { min-height: 8rem; resize: vertical; }
.note-form input:focus, .note-form textarea:focus { border-bottom-color: var(--ox); }
.note-form button, .missing a {
  justify-self: start;
  background: var(--ox);
  color: #fffdf8;
  border: 0;
  padding: 0.75rem 1.15rem;
  cursor: pointer;
  text-decoration: none;
  font-weight: 650;
}
.note-form button:hover { background: var(--ox-deep); }
.captcha { margin-top: 0.2rem; }
.hp { position: absolute; left: -9999px; }
.notice { margin: 0 0 1rem; padding: 0.8rem 1rem; background: var(--sage); }
.form-errors { margin: 0 0 0.4rem; color: var(--ox-deep); }
.empty { color: var(--muted); }

@media (max-width: 980px) {
  .mast-row { grid-template-columns: 1fr auto; }
  .mast-line { display: none; }
  .seek { grid-column: 1 / -1; }
  .menu-btn { display: inline-flex; }
  .sections { display: none; }
  .sections.is-open { display: block; }
  .sections ul { flex-direction: column; padding-bottom: 1rem; }
  .opener { grid-template-columns: 1fr; }
  .opener-card { margin: -3.2rem 0.8rem 0; }
  .shelf, .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .opener-card h1 { font-size: 2.7rem; }
  .ledger a { grid-template-columns: 4.8rem 1fr; }
  .ledger-no { display: none; }
  .ledger-photo img, .ledger-photo .photo-fallback { width: 4.8rem; height: 4.8rem; }
  .ledger-title { font-size: 1.25rem; }
  .shelf, .foot-grid { grid-template-columns: 1fr; }
  .sheet { width: min(1180px, calc(100% - 1.4rem)); }
}
