:root {
  --ink: #1a120b;
  --paper: #fff6e8;
  --tomato: #ff3d2e;
  --mango: #ffb703;
  --leaf: #2f9e44;
  --cream: #fffdf8;
  --butter: #fff3bf;
  --line: 3px solid var(--ink);
  --shadow: 8px 8px 0 var(--ink);
  --serif: "Literata", "Iowan Old Style", Georgia, serif;
  --display: "Syne", "Avenir Next", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.55;
  background:
    radial-gradient(circle at 0 0, #ffd8a8 0 160px, transparent 161px),
    radial-gradient(circle at 100% 120px, #ffc9c9 0 220px, transparent 221px),
    linear-gradient(180deg, #fff1d6 0%, var(--paper) 280px);
}
img { max-width: 100%; display: block; }
button, input { font: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 0.95; letter-spacing: -0.04em; margin: 0 0 0.4em; }
p { margin: 0 0 0.8em; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.skip-link {
  position: absolute;
  left: 12px;
  top: 0;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 20;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
  top: 12px;
}

.ribbon { background: var(--tomato); color: #fff8f2; border-bottom: var(--line); }
.ribbon-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0 14px;
}
.brand {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.85rem; letter-spacing: -0.05em; line-height: 0.85; }
.wordmark-sub { font-family: var(--serif); font-size: 0.82rem; opacity: 0.9; }
.seek { display: flex; gap: 8px; }
.seek input {
  flex: 1;
  min-width: 0;
  border: var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  padding: 10px 16px;
}
.seek button, .button, .nav-toggle {
  border: var(--line);
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: var(--display);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.nav-toggle { display: none; background: var(--mango); color: var(--ink); }
.ribbon-nav { background: var(--ink); }
.ribbon-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 12px 0;
}
.nav-chip {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
}
.ribbon-nav li:nth-child(6n+1) .nav-chip { background: #ffb703; }
.ribbon-nav li:nth-child(6n+2) .nav-chip { background: #ffd8a8; }
.ribbon-nav li:nth-child(6n+3) .nav-chip { background: #b2f2bb; }
.ribbon-nav li:nth-child(6n+4) .nav-chip { background: #ffc9c9; }
.ribbon-nav li:nth-child(6n+5) .nav-chip { background: #d0bfff; }
.ribbon-nav li:nth-child(6n+6) .nav-chip { background: #a5d8ff; }
.nav-chip.is-current { outline: 3px solid #fff6e8; }

.seal {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--mango);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.lede { font-size: 1.15rem; max-width: 42rem; }
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  padding: 36px 0 12px;
}
.hero h1 { font-size: clamp(3rem, 6.4vw, 5.5rem); }
.seek-hero { margin-top: 18px; max-width: 460px; }
.seek-hero button { background: var(--tomato); color: #fff; }
.hero-dish > a {
  display: block;
  position: relative;
  color: inherit;
  text-decoration: none;
  border: 4px solid var(--ink);
  border-radius: 190px 190px 28px 28px;
  overflow: hidden;
  box-shadow: 14px 14px 0 var(--mango);
  transform: rotate(-1.5deg);
  background: var(--tomato);
}
.hero-dish img, .hero-dish .photo-fallback { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.hero-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--paper);
  border: var(--line);
  padding: 12px 14px;
}
.hero-title { font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.04em; line-height: 1; }

.pantry { padding: 28px 0 8px; }
.pantry-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: 150px 150px;
  gap: 12px;
}
.pantry-grid > a {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 16px;
  text-decoration: none;
  color: var(--ink);
  border: var(--line);
  box-shadow: 6px 6px 0 var(--ink);
}
.pantry-grid > a:nth-child(1) { grid-row: 1 / span 2; background: var(--tomato); color: #fff8f2; }
.pantry-grid > a:nth-child(2) { background: var(--mango); }
.pantry-grid > a:nth-child(3) { background: #b2f2bb; }
.pantry-grid > a:nth-child(4) { background: #ffd8a8; }
.pantry-grid > a:nth-child(5) { background: #d0bfff; }
.pantry-title { font-family: var(--display); font-weight: 800; font-size: 2rem; letter-spacing: -0.04em; line-height: 0.9; }
.pantry-text { font-size: 0.95rem; }

.shelf { padding: 28px 0; }
.shelf-head { margin-bottom: 14px; max-width: 40rem; }
.shelf-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.shelf-head a { color: var(--ink); font-family: var(--display); font-weight: 700; }
.tickets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.ticket {
  background: var(--cream);
  border: var(--line);
  box-shadow: var(--shadow);
  border-radius: 18px;
  min-height: 100%;
}
.ticket > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.ticket-photo { display: block; background: #ffd8a8; border-bottom: var(--line); }
.ticket-photo img, .ticket-photo .photo-fallback { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.photo-fallback, img.is-missing {
  display: block;
  background:
    repeating-linear-gradient(135deg, #ffb703 0 12px, #ff3d2e 12px 24px);
}
.ticket-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; }
.ticket-kicker { font-family: var(--display); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.ticket-name { font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; line-height: 1.05; }
.ticket-note { color: #3d3328; font-size: 0.95rem; }
.ticket-time {
  align-self: flex-start;
  background: var(--butter);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 2px 8px;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
}
.library-cta {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin: 10px auto 36px;
  padding: 22px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 22px;
}
.library-cta .seal { background: var(--tomato); color: #fff; }
.library-cta .button { background: var(--mango); color: var(--ink); }

.lane-top { padding: 32px 0 8px; }
.lane-top h1, .story-top h1, .search-page h1, .missing h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.count-line { font-family: var(--display); font-weight: 700; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; font-size: 0.92rem; }
.crumbs a { color: var(--ink); }
.child-row { display: flex; flex-wrap: wrap; gap: 8px; }
.child-row a {
  display: inline-block;
  padding: 6px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.88rem;
}
.story-top { padding-top: 28px; }
.times { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 12px 0; }
.times li {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 4px 10px;
}
.times span { font-family: var(--display); font-weight: 700; margin-right: 4px; }
.jump {
  display: inline-block;
  margin-top: 8px;
  background: var(--tomato);
  color: #fff;
  text-decoration: none;
  border: var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--display);
  font-weight: 700;
}
.story-figure { width: min(920px, calc(100% - 32px)); margin: 18px auto; }
.story-figure img, .story-figure .photo-fallback {
  width: 100%;
  max-height: 760px;
  object-fit: cover;
  border: 4px solid var(--ink);
  border-radius: 28px 28px 80px 28px;
  box-shadow: 12px 12px 0 #1c7ed6;
  background: var(--mango);
}
.prose-wrap { padding-bottom: 20px; }
.prose { max-width: 44rem; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.2em; font-size: 1.7rem; }
.prose a { color: #9c1c14; }
.prose img { margin: 12px 0; border: var(--line); border-radius: 16px; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.sheet {
  margin-top: 28px;
  background: var(--butter);
  border: var(--line);
  box-shadow: 10px 10px 0 var(--tomato);
  border-radius: 22px;
  padding: 22px;
}
.sheet-top h2 { font-size: clamp(2rem, 4vw, 3rem); }
.sheet-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 22px; }
.ingredient-pad, .method { background: var(--cream); border: var(--line); border-radius: 16px; padding: 14px; }
.ingredients, .steps, .tool-list { list-style: none; margin: 0; padding: 0; }
.ingredients li { border-bottom: 1px dashed var(--ink); padding: 7px 0; }
.steps { display: flex; flex-direction: column; gap: 12px; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; }
.step-no {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tomato);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
}
.sheet-notes { margin-top: 16px; }
.nutrition, .tool-list { display: flex; flex-wrap: wrap; gap: 8px; }
.nutrition li, .tool-list li {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 6px 8px;
}
.faq { margin-top: 22px; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 8px; }
.page-link {
  min-width: 42px;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: var(--cream);
  border: var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  font-family: var(--display);
  font-weight: 700;
}
.page-link.is-current { background: var(--tomato); color: #fff; }
.search-page { padding: 28px 0 36px; }
.seek-line { max-width: 560px; margin: 12px 0 18px; }
.missing { padding: 48px 0 64px; }
.base { background: var(--ink); color: #fff6e8; margin-top: 28px; padding: 32px 0 16px; }
.base-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 18px; }
.base h2 { font-size: 1rem; color: var(--mango); }
.base ul { list-style: none; margin: 0; padding: 0; }
.base a { color: #fff6e8; text-decoration: none; }
.base a:hover { text-decoration: underline; }
.base-legal { margin-top: 18px; border-top: 1px solid #3d3328; padding-top: 12px; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.desk {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
  padding: 32px 0 48px;
}
.desk-points { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.desk-points li {
  background: var(--cream);
  border: var(--line);
  border-radius: 16px;
  padding: 10px 12px;
}
.desk-points span { display: block; font-family: var(--display); font-weight: 800; }
.desk-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--butter);
  border: var(--line);
  box-shadow: 10px 10px 0 var(--tomato);
  border-radius: 22px;
  padding: 18px;
}
.desk-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.desk-form label { display: flex; flex-direction: column; gap: 6px; font-family: var(--display); font-weight: 700; }
.desk-form input, .desk-form textarea {
  border: var(--line);
  border-radius: 14px;
  background: var(--cream);
  color: var(--ink);
  padding: 12px 14px;
  font-family: var(--serif);
  font-weight: 500;
}
.desk-form button {
  align-self: flex-start;
  border: var(--line);
  background: var(--tomato);
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  font-family: var(--display);
  font-weight: 800;
  cursor: pointer;
}
.notice { margin: 0; background: #b2f2bb; border: var(--line); border-radius: 12px; padding: 10px 12px; }
.notice-bad { background: #ffc9c9; }
.hp { position: absolute; left: -9999px; }
.captcha { background: var(--cream); border: var(--line); border-radius: 12px; padding: 8px; }
@media (max-width: 800px) {
  .desk, .desk-row { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero, .sheet-grid, .base-grid { grid-template-columns: 1fr; }
  .pantry-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .pantry-grid > a:nth-child(1) { grid-row: auto; grid-column: 1 / -1; min-height: 160px; }
  .ribbon-bar { grid-template-columns: 1fr auto; }
  .seek { grid-column: 1 / -1; }
  .nav-toggle { display: inline-block; }
  .ribbon-nav { display: none; }
  body.nav-open .ribbon-nav { display: block; }
  .library-cta { flex-direction: column; align-items: start; }
}
@media (max-width: 640px) {
  .tickets, .pantry-grid { grid-template-columns: 1fr; }
  .hero-dish > a { transform: none; }
}
