:root {
  --bread-paper: #f4ede0;
  --bread-ink: #33261a;
  --bread-muted: #6d5b47;
  --card-navy: #1b3a68;
  --card-navy-deep: #13294b;
  --card-gold: #c9a24a;
  --card-paper: #fffdf8;
  --card-band: #e9e6df;
  --card-line: #cfc6b4;
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; color: var(--bread-ink); background: #dfe4ec; font: 18px/1.65 'Iowan Old Style', Baskerville, Georgia, serif; }
.bread-page { width: min(1180px, calc(100% - 32px)); margin: 24px auto; overflow: hidden; background: var(--bread-paper); }

/* Cover: the current loaf, warm kitchen light, title in the lower left. */
.cover { position: relative; min-height: min(78svh, 720px); display: grid; align-items: end; overflow: hidden; color: #fff8ec; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
.cover-shade { position: absolute; inset: 0; background: linear-gradient(0deg, var(--bread-paper), transparent 22%), linear-gradient(90deg, rgba(38, 22, 10, .78), rgba(38, 22, 10, .2) 55%, transparent 80%); }
.cover .hierarchy-nav { position: absolute; top: 24px; left: clamp(22px, 5vw, 64px); z-index: 1; }
.cover-copy { position: relative; z-index: 1; max-width: 560px; padding: 0 clamp(22px, 5vw, 64px) clamp(70px, 9vw, 110px); }
.cover h1 { margin: 0; font-size: clamp(54px, 9vw, 104px); line-height: .95; letter-spacing: -.02em; text-shadow: 0 2px 18px rgba(30, 16, 6, .45); }
.cover-copy p { margin: 22px 0 0; font-size: clamp(19px, 2.1vw, 24px); line-height: 1.45; text-shadow: 0 1px 10px rgba(30, 16, 6, .5); }

/* The essay: one reading column on the warm paper. */
.essay { max-width: calc(66ch + 2 * clamp(22px, 5vw, 64px)); padding: clamp(8px, 2vw, 24px) clamp(22px, 5vw, 64px) clamp(8px, 2vw, 16px); }
.essay h2 { margin: 0 0 20px; }
.essay p { margin: 0 0 18px; }

/* The recipe card: weights on the left in a vertical tree, actions on the right. */
.recipe { padding: clamp(20px, 4vw, 48px) clamp(16px, 5vw, 64px) clamp(48px, 6vw, 80px); }
.card { max-width: 900px; margin: 0 auto; background: var(--card-paper); border: 1px solid var(--card-line); box-shadow: inset 0 1px #fff, 0 2px 3px rgba(51, 38, 26, .08), 0 18px 40px rgba(51, 38, 26, .16); font-family: system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif; font-size: 16px; line-height: 1.45; color: #1f2430; }
.card-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 92px; padding: 10px 14px 10px 22px; color: #fff; background: radial-gradient(120% 140% at 20% 0%, #2c548f, var(--card-navy) 55%, var(--card-navy-deep)); border-bottom: 3px solid var(--card-gold); }
.card-bar h2 { margin: 0; font: 700 34px/1.1 system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif; letter-spacing: -.01em; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.card-tools { display: flex; align-items: center; gap: 14px; }
.medallion { display: block; width: 74px; height: 74px; border-radius: 50%; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.print-button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; font: 600 14px/1 system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif; cursor: pointer; }
.print-button svg { flex: none; }

.card-columns { display: grid; grid-template-columns: minmax(200px, 36%) minmax(0, 1fr); gap: 20px; padding: 12px 22px 8px; font: 700 12px/1.3 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--card-navy); }
.stage h3 { display: flex; align-items: baseline; gap: 12px; margin: 0; padding: 7px 22px; font: 700 18px/1.3 system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif; color: var(--card-navy); background: var(--card-band); border-block: 1px solid #d8d3c8; }
.stage-number { min-width: 1.6em; font-weight: 500; font-variant-numeric: tabular-nums; color: #3c4a60; }
.row { display: grid; grid-template-columns: minmax(200px, 36%) minmax(0, 1fr); gap: 20px; padding: 10px 22px; }
.row + .row { padding-top: 4px; }
.row:last-child { padding-bottom: 14px; }
.row p { margin: 0; }
.row strong { font-weight: 700; }

.tree { margin: 0; padding: 0; list-style: none; }
.tree li { position: relative; display: grid; grid-template-columns: 4.6em minmax(0, 1fr); gap: 8px; padding-left: 16px; }
.tree li:before { content: ''; position: absolute; left: 3px; top: 0; bottom: 0; border-left: 1px solid #9aa3b2; }
.tree li:after { content: ''; position: absolute; left: 3px; top: .72em; width: 8px; border-top: 1px solid #9aa3b2; }
.tree li:last-child:before { bottom: auto; height: .72em; }
.tree li:only-child:before { top: 0; }
.tree .tag { font-style: italic; font-size: .88em; color: #5c6372; margin-left: 6px; }
.qty { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tree li.check { grid-template-columns: 1fr; padding-left: 0; font-weight: 700; }
.tree li.check:before, .tree li.check:after { display: none; }
.card-foot { padding: 10px 22px 12px; font-size: 13px; color: #5c6372; border-top: 1px solid var(--card-line); }

/* The loaves, oldest first, three to a row. */
.loaves { padding: 0 clamp(22px, 5vw, 64px) clamp(56px, 7vw, 90px); }
.loaves h2, .machine h2 { margin: 0 0 22px; color: var(--bread-ink); }
.loaf-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); align-items: start; }
.loaf-row figure { margin: 0; }
.loaf-row img { display: block; width: 100%; height: auto; border-radius: 3px; }
.loaf-row figcaption { padding-top: 10px; font-size: 15px; line-height: 1.45; color: var(--bread-muted); }

/* The machine, with the starting recipe beside it. */
.machine { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: 0 clamp(22px, 5vw, 64px) clamp(64px, 8vw, 100px); }
.machine-photo { margin: 0; }
.costs .machine-photo { margin: 0 0 18px; }
.machine-photo img { display: block; width: 100%; height: auto; border-radius: 3px; }
.machine .prose { max-width: 60ch; }
.machine .prose p { margin: 0 0 16px; }

/* The argument over a washed field of crumb. */
.crumb-field { padding-top: clamp(40px, 5vw, 64px); background: linear-gradient(180deg, var(--bread-paper), rgba(244, 237, 224, .74) 18%, rgba(244, 237, 224, .74) 82%, var(--bread-paper)), url("./assets/crumb.jpg") center / cover; }

/* The argument: a long reading column, citations as quiet links. */
.argument { max-width: calc(66ch + 2 * clamp(22px, 5vw, 64px)); padding: 0 clamp(22px, 5vw, 64px) clamp(56px, 7vw, 90px); }
.argument h2 { margin: 0 0 20px; }
.argument p { margin: 0 0 18px; }
.argument a { color: var(--bread-muted); text-decoration-color: rgba(109, 91, 71, .45); }
.argument a:hover { color: #24497a; }

/* Costs: a plain ledger, sums ruled off. */
.costs { max-width: calc(62ch + 2 * clamp(22px, 5vw, 64px)); padding: 0 clamp(22px, 5vw, 64px) clamp(56px, 7vw, 90px); }
.costs h2 { margin: 0 0 18px; }
.costs > p { margin: 0 0 20px; }
.cost-table { width: 100%; border-collapse: collapse; font: 15.5px/1.4 system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif; font-variant-numeric: tabular-nums; }
.cost-table th, .cost-table td { padding: 6px 8px; text-align: left; border-bottom: 1px solid #e3d8c6; }
.cost-table thead th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--bread-muted); border-bottom: 1px solid #c9b99f; }
.cost-table td:last-child, .cost-table th:last-child { text-align: right; white-space: nowrap; }
.cost-table td:nth-child(2) { color: var(--bread-muted); }
.cost-sums tr:first-child > * { border-top: 2px solid #c9b99f; font-weight: 700; }
.cost-table tfoot > tr > * { font-weight: 700; border-bottom: 0; }
.cost-table tfoot tr:first-child > * { border-top: 2px solid #33261a; }
.cost-table tfoot .shelf > * { font-weight: 500; color: var(--bread-muted); }

/* Against Rhodes: the same ledger, two columns of figures. */
.rhodes { max-width: calc(62ch + 2 * clamp(22px, 5vw, 64px)); padding: 0 clamp(22px, 5vw, 64px) clamp(56px, 7vw, 90px); }
.rhodes h2 { margin: 0 0 18px; }
.rhodes > p { margin: 0 0 20px; }
.compare-table td:not(:first-child), .compare-table th:not(:first-child) { text-align: right; }
.compare-table td:nth-child(2) { color: inherit; font-weight: 700; }
.table-note { margin: 12px 0 28px !important; font-size: 15px; color: var(--bread-muted); }

/* Supplies: plain links, maker after the name. */
.supplies { max-width: calc(60ch + 2 * clamp(22px, 5vw, 64px)); padding: 0 clamp(22px, 5vw, 64px) clamp(64px, 8vw, 100px); }
.supplies h2 { margin: 0 0 18px; }
.supply-list { margin: 0; padding: 0; list-style: none; }
.supply-list li { padding: 9px 0; border-bottom: 1px solid #e0d4c0; }
.supply-list li span { margin-left: 8px; font-size: 15px; color: var(--bread-muted); }
.supply-note { margin: 14px 0 0; font-size: 15px; color: var(--bread-muted); }

@media screen and (max-width: 760px) {
  .bread-page { width: 100%; margin: 0; }
  .cover { min-height: 560px; }
  .card-bar { min-height: 76px; padding-left: 16px; }
  .card-bar h2 { font-size: 26px; }
  .medallion { width: 58px; height: 58px; }
  .print-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .card-columns { display: none; }
  .row { grid-template-columns: 1fr; gap: 6px; padding-inline: 16px; }
  .stage h3 { padding-inline: 16px; }
  .loaf-row { grid-template-columns: 1fr; }
  .machine { grid-template-columns: 1fr; }
}

/* Print only the recipe card, on one page, in ink-friendly color. */
@page { size: letter; margin: .45in; }
@media print {
  html, html body, html body[data-idea-frame="fused"] { background: #fff !important; background-image: none !important; }
  html body > main, html body[data-idea-frame="fused"] > main { width: auto !important; margin: 0 !important; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: #fff !important; overflow: visible !important; }
  .bread-page > :not(.recipe) { display: none !important; }
  .recipe { padding: 0; }
  .card { max-width: none; border: 1px solid #b8b2a4; box-shadow: none; font-size: 14px; line-height: 1.38; }
  .card-bar { min-height: 80px; }
  .row { padding-block: 7px; }
  .card, .card * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-button { display: none !important; }
  .stage { break-inside: avoid; }
}
