/* the menu board, the style pages, and the two reading pages */

/* --- menu board ----------------------------------------------------------- */
.board { padding: clamp(2rem, 5vw, 3.4rem) 0 3rem; }
.board-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.board-top { max-width: 60ch; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.board-top h1::after {
  content: ""; display: block; width: 4.4rem; height: 6px; background: var(--aqua); margin-top: 0.8rem;
}
.board-copy { margin-top: 1.1rem; }

.board-group {
  background: var(--ink); color: var(--cream);
  border: 2px solid var(--ink); box-shadow: var(--lift);
  margin-bottom: 1.6rem; padding: clamp(1.2rem, 3vw, 1.9rem);
}
.board-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  border-bottom: 2px solid rgba(246, 238, 220, 0.28); padding-bottom: 0.8rem; margin-bottom: 1rem; }
.board-head h2 { color: var(--mustard); }
.board-head p { margin: 0; font-size: 0.88rem; opacity: 0.72; font-family: var(--script); font-size: 1.15rem; }

.board-row {
  display: flex; align-items: baseline; gap: 0.6rem;
  padding: 0.5rem 0.3rem; text-decoration: none; color: inherit;
  border-bottom: 1px solid rgba(246, 238, 220, 0.12);
}
.board-row:last-child { border-bottom: 0; }
.board-name {
  font-family: var(--display); font-weight: 700; font-stretch: 108%;
  text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.02rem;
}
.board-aka {
  display: block; font-family: var(--body); font-weight: 400; font-stretch: 100%;
  text-transform: none; letter-spacing: 0; font-size: 0.82rem; opacity: 0.6;
}
.board-lead { flex: 1; border-bottom: 1px dotted rgba(246, 238, 220, 0.4); transform: translateY(-0.3em); }
.board-price {
  font-family: var(--mono); font-size: 1.05rem; font-weight: 700; color: var(--mustard); white-space: nowrap;
}
.board-price small { font-size: 0.7rem; opacity: 0.7; }
.board-row:hover { background: rgba(226, 163, 43, 0.14); }
.board-row:hover .board-name { color: var(--mustard); }
.board-row:hover .board-lead { border-bottom-style: solid; }

/* --- a style -------------------------------------------------------------- */
.style-head {
  border-bottom: 2px solid var(--ink);
  background:
    radial-gradient(90% 120% at 10% 0%, rgba(200, 64, 47, 0.16), transparent 62%),
    linear-gradient(180deg, var(--cream-2), rgba(246, 238, 220, 0));
}
.style-head-inner { max-width: var(--max); margin: 0 auto; padding: clamp(2rem, 5vw, 3.6rem) var(--gutter) clamp(1.6rem, 4vw, 2.6rem); }
.style-aka { font-family: var(--script); font-size: 1.5rem; color: var(--tomato); margin: 0.4rem 0 0.2rem; }
.style-board { font-size: 1.12rem; max-width: 52ch; margin: 0.6rem 0 1.4rem; }

.style-body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
  gap: clamp(1.6rem, 4vw, 3rem); padding-top: clamp(1.6rem, 4vw, 2.6rem); align-items: start;
}
@media (max-width: 900px) { .style-body { grid-template-columns: 1fr; } }
.style-main {
  max-width: 72ch;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  padding: clamp(1.3rem, 3vw, 2.2rem);
}
.style-main h2 { margin: 2.2rem 0 0.9rem; }
.style-main h2:first-of-type { margin-top: 1.6rem; }
.lede { font-size: 1.12rem; line-height: 1.6; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step; position: relative; padding-left: 2.6rem; margin-bottom: 0.9rem;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0.1em;
  font-family: var(--mono); font-size: 0.82rem; font-weight: 700; color: var(--tomato);
  border: 2px solid var(--ink); border-radius: 999px; padding: 0.1rem 0.35rem; background: var(--paper);
}

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid rgba(34, 27, 24, 0.2); vertical-align: top; }
thead th {
  font-family: var(--display); font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; border-bottom: 2px solid var(--ink); white-space: nowrap;
}
tbody th { font-weight: 600; }
.sched td:nth-child(2), .sched td:nth-child(3) { font-family: var(--mono); white-space: nowrap; }
.aside { font-size: 0.9rem; opacity: 0.8; margin-top: 0.8rem; }

.bake { background: var(--ink); color: var(--cream); padding: 1.2rem 1.3rem; box-shadow: var(--lift); }
.bake p { margin: 0 0 0.6rem; font-size: 0.95rem; }
.bake p:last-child { margin-bottom: 0; }
.bake-nums { display: flex; gap: 2rem; margin-bottom: 1rem; flex-wrap: wrap; }
.bake-label {
  display: block; font-family: var(--display); font-size: 0.64rem; letter-spacing: 0.18em;
  text-transform: uppercase; opacity: 0.7;
}
.bake-value {
  display: block; font-family: var(--display); font-weight: 800; font-stretch: 120%;
  font-size: 1.7rem; color: var(--mustard); line-height: 1.1;
}
.bake-sub { font-family: var(--mono); font-size: 0.78rem; opacity: 0.7; }

.tops { display: grid; grid-template-columns: 7rem 1fr; gap: 0.5rem 1rem; margin: 0; }
.tops dt {
  font-family: var(--display); font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; padding-top: 0.15rem;
}
.tops dd { margin: 0; }
@media (max-width: 520px) { .tops { grid-template-columns: 1fr; gap: 0.1rem 0; } .tops dd { margin-bottom: 0.7rem; } }

.tell {
  margin-top: 2rem; padding: 1rem 1.2rem; background: var(--paper);
  border-left: 6px solid var(--aqua); font-size: 1.02rem;
}
.tell span {
  display: block; font-family: var(--display); font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--aqua); margin-bottom: 0.3rem;
}

.style-side { position: sticky; top: 5.4rem; }
@media (max-width: 900px) { .style-side { position: static; } }
.spec { padding: 1.2rem 1.3rem 1.4rem; }
.spec h3 { margin-bottom: 0.8rem; }
.spec-list { margin: 0 0 1rem; }
.spec-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem;
  padding: 0.35rem 0; border-bottom: 1px dotted rgba(34, 27, 24, 0.3);
}
.spec-row dt { font-size: 0.86rem; opacity: 0.8; }
.spec-row dd { margin: 0; font-family: var(--mono); font-size: 0.9rem; font-weight: 700; text-align: right; }
.spec-flour { font-size: 0.86rem; line-height: 1.5; }

.style-nav {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 1.4rem; border-top: 2px solid var(--ink);
}
.style-nav a {
  font-family: var(--display); font-size: 0.9rem; font-weight: 700; font-stretch: 104%;
  text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none;
}
.style-nav a:hover { color: var(--tomato); }
.style-nav span {
  display: block; font-size: 0.62rem; letter-spacing: 0.18em; opacity: 0.6; margin-bottom: 0.1rem;
}

/* --- reading pages -------------------------------------------------------- */
.prose-head {
  border-bottom: 2px solid var(--ink);
  background: linear-gradient(180deg, var(--cream-2), rgba(246, 238, 220, 0));
}
.prose-head-inner { max-width: var(--max); margin: 0 auto; padding: clamp(2rem, 5vw, 3.6rem) var(--gutter) clamp(1.4rem, 3vw, 2.2rem); }
.prose-head .lede { max-width: 62ch; margin-top: 1rem; }

.prose {
  display: grid; grid-template-columns: minmax(13rem, 16rem) minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3.2rem); padding-top: clamp(1.6rem, 4vw, 2.6rem);
}
@media (max-width: 880px) { .prose { grid-template-columns: 1fr; } }
.contents {
  position: sticky; top: 5.4rem; align-self: start;
  background: var(--paper); border: 2px solid var(--ink); box-shadow: var(--shadow);
  padding: 1rem 1.1rem 1.1rem;
}
@media (max-width: 880px) { .contents { position: static; } }
.contents ol { margin: 0; padding-left: 1.1rem; font-size: 0.9rem; }
.contents li { margin-bottom: 0.35rem; }
@media (max-width: 620px) {
  .contents li { margin-bottom: 0.1rem; }
  .contents a { display: inline-block; padding: 0.42rem 0; }
  .board-row { padding: 0.75rem 0.3rem; }
  .style-nav a { padding: 0.5rem 0; }
}
.contents a { text-decoration: none; }
.contents a:hover { color: var(--tomato); text-decoration: underline; }

.prose-main {
  max-width: 72ch;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  padding: clamp(1.3rem, 3vw, 2.2rem);
}
.chapter { margin-bottom: 2.4rem; scroll-margin-top: 5.5rem; }
.chapter:last-child { margin-bottom: 0.4rem; }
.chapter h2 { margin-bottom: 0.9rem; font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem); font-stretch: 106%; }
.chapter h2::after {
  content: ""; display: block; width: 2.6rem; height: 4px; background: var(--mustard); margin-top: 0.6rem;
}

.ticks { list-style: none; padding: 0; margin: 1rem 0 0; }
.ticks li { position: relative; padding-left: 1.7rem; margin-bottom: 0.7rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 0.7rem; height: 0.7rem; background: var(--tomato);
  clip-path: polygon(0 40%, 40% 100%, 100% 0, 62% 0, 38% 62%, 22% 34%);
}

.recipes { display: grid; gap: 1.2rem; margin-top: 1.2rem; }
.recipe { background: var(--paper); border: 2px solid var(--ink); box-shadow: var(--shadow); padding: 1.2rem 1.3rem; }
.recipe h3 { margin-bottom: 0.3rem; }
.recipe-yield {
  font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--tomato); margin-bottom: 0.9rem;
}
.recipe-ing { list-style: none; padding: 0; margin: 0 0 1rem; border-left: 3px solid var(--mustard); }
.recipe-ing li { padding: 0.2rem 0 0.2rem 0.8rem; font-family: var(--mono); font-size: 0.88rem; }
.recipe-note { font-size: 0.9rem; opacity: 0.8; border-top: 1px dashed rgba(34, 27, 24, 0.3); padding-top: 0.7rem; margin: 0.4rem 0 0; }

.fixes tbody th { width: 30%; min-width: 12rem; }

/* --- 404 ------------------------------------------------------------------ */
.lost { max-width: 40rem; margin: 0 auto; padding: clamp(3rem, 10vw, 6rem) var(--gutter); text-align: center; }
.lost h1 { font-size: clamp(3rem, 2rem + 6vw, 6rem); }
.lost p { font-size: 1.1rem; }
.lost .mark-script { font-size: 2.4rem; display: block; margin-bottom: 1rem; }
