:root {
  --bg: #f6ecdf;
  --bg-soft: #fbf6ef;
  --paper: rgba(255, 251, 245, 0.88);
  --paper-strong: #fffaf2;
  --line: rgba(107, 66, 34, 0.14);
  --ink: #4f2e1b;
  --ink-soft: #6f523f;
  --accent: #c08b47;
  --accent-deep: #9f6732;
  --accent-soft: rgba(192, 139, 71, 0.16);
  --olive: #84714e;
  --shadow: 0 20px 50px rgba(100, 63, 32, 0.14);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --font-body: "Avenir Next", "Trebuchet MS", "Gill Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 215, 170, 0.42), transparent 32%),
    radial-gradient(circle at top right, rgba(173, 120, 69, 0.18), transparent 28%),
    linear-gradient(180deg, #f7f1e8 0%, #f2e6d6 45%, #f4ecdf 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.26), transparent 18%),
    radial-gradient(circle at 80% 14%, rgba(255, 240, 218, 0.38), transparent 22%),
    repeating-linear-gradient(
      135deg,
      rgba(120, 74, 42, 0.022) 0,
      rgba(120, 74, 42, 0.022) 2px,
      transparent 2px,
      transparent 18px
    );
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header,
.card,
.site-footer {
  backdrop-filter: blur(18px);
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.82);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 247, 237, 0.9);
  padding: 4px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-kicker {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1;
}

.brand-copy strong {
  font-weight: 600;
  color: var(--ink-soft);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-nav a {
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(107, 66, 34, 0.08);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  transform: translateY(-2px);
  background: rgba(192, 139, 71, 0.16);
  color: var(--ink);
}

.site-nav a.is-active {
  background: linear-gradient(135deg, rgba(192, 139, 71, 0.24), rgba(255, 255, 255, 0.76));
  color: var(--ink);
  border-color: rgba(160, 106, 54, 0.18);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 24px;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 24px;
}

.hero-copy,
.hero-panel,
.page-hero-copy,
.page-hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  padding: 34px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.92), rgba(250, 243, 233, 0.82));
  box-shadow: var(--shadow);
}

.hero-copy::after,
.hero-panel::after,
.page-hero-copy::after,
.page-hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 139, 71, 0.18), transparent 68%);
}

.eyebrow,
.section-chip,
.panel-kicker {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.hero h1,
.page-hero h1,
.section-heading h2,
.recipe-overview h3,
.cost-header h3,
.timeline-header h2,
.timeline-header h3,
.notes-header h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 5vw, 5.7rem);
}

.page-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.8rem, 4.8vw, 4.8rem);
}

.page-hero-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  line-height: 0.98;
}

.hero-text,
.section-heading p,
.muted,
.panel-list,
.site-footer p {
  color: var(--ink-soft);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible,
.ghost-button:hover,
.ghost-button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fffaf2;
  background: linear-gradient(135deg, #b27734, #d29a57);
  box-shadow: 0 14px 24px rgba(150, 97, 41, 0.2);
}

.button-secondary,
.ghost-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(107, 66, 34, 0.1);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.stat-card,
.metric-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(246, 236, 223, 0.6));
  border: 1px solid rgba(107, 66, 34, 0.08);
}

.stat-card span,
.metric-card span,
.control-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.stat-card strong,
.metric-card strong,
.control-summary strong {
  display: block;
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.stat-card p,
.control-summary p,
.metric-card p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  background:
    radial-gradient(circle at top left, rgba(255, 224, 187, 0.45), transparent 30%),
    linear-gradient(180deg, rgba(255, 252, 248, 0.96), rgba(247, 236, 220, 0.82));
}

.page-hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  background:
    radial-gradient(circle at top right, rgba(255, 223, 184, 0.36), transparent 34%),
    linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(245, 233, 216, 0.84));
}

.hero-control-stack {
  display: grid;
  gap: 16px;
}

.page-hero-panel .control-field,
.page-hero-panel .control-summary {
  position: relative;
  z-index: 1;
}

.page-hero-panel .input-shell {
  background: rgba(255, 255, 255, 0.82);
}

.page-hero-panel .control-summary {
  background: linear-gradient(135deg, rgba(192, 139, 71, 0.16), rgba(255, 255, 255, 0.78));
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  background: rgba(255, 252, 246, 0.72);
  border: 1px solid rgba(107, 66, 34, 0.08);
  border-radius: 30px;
}

.hero-logo {
  width: min(100%, 360px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(122, 74, 34, 0.08));
}

.hero-panel-card {
  position: relative;
  z-index: 1;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 251, 245, 0.9);
  border: 1px solid rgba(107, 66, 34, 0.08);
}

.panel-list {
  padding-left: 20px;
  margin: 0;
}

.section {
  margin-top: 52px;
}

.quick-link-grid,
.placeholder-grid {
  display: grid;
  gap: 20px;
}

.quick-link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.placeholder-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-link-card,
.placeholder-card {
  display: block;
  padding: 28px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.quick-link-card:hover,
.quick-link-card:focus-visible,
.placeholder-card:hover,
.placeholder-card:focus-visible {
  transform: translateY(-2px);
}

.quick-link-card h3,
.placeholder-card h3 {
  margin: 6px 0 10px;
  font-family: var(--font-display);
  font-size: 2rem;
}

.quick-link-card p,
.placeholder-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
}

.section-heading p {
  margin: 14px 0 0;
}

.card {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.control-deck {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(170px, 1fr)) minmax(220px, 0.8fr);
  gap: 18px;
  align-items: end;
  margin-top: 24px;
  padding: 22px;
}

.control-block-wide {
  min-width: 0;
}

.cost-control-deck {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px) minmax(220px, 260px);
}

.recipe-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.planner-control-deck {
  grid-template-columns: 1fr;
}

.planner-recipe-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  gap: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 11px 16px;
  border: 1px solid rgba(107, 66, 34, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.planner-recipe-pills .pill {
  display: flex;
  flex-direction: column;
  min-height: 84px;
  padding: 16px 18px;
  gap: 8px;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  border-radius: 22px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(243, 232, 217, 0.76));
  box-shadow: 0 10px 20px rgba(100, 63, 32, 0.06);
}

.planner-recipe-pills .pill.active {
  background: linear-gradient(180deg, rgba(255, 246, 231, 0.98), rgba(235, 217, 189, 0.88));
  border-color: rgba(160, 106, 54, 0.2);
  box-shadow: 0 16px 30px rgba(115, 72, 35, 0.12);
}

.planner-pill-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--accent-deep);
}

.planner-pill-text {
  display: block;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
}

.planner-pill-static {
  cursor: default;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: var(--accent-deep);
  background: linear-gradient(180deg, rgba(255, 248, 236, 0.98), rgba(241, 225, 198, 0.84));
  border-color: rgba(160, 106, 54, 0.2);
  box-shadow: 0 14px 28px rgba(115, 72, 35, 0.1);
}

.pill:hover,
.pill:focus-visible,
.recipe-card:hover,
.recipe-card:focus-visible {
  transform: translateY(-2px);
}

.pill.active {
  background: linear-gradient(135deg, rgba(192, 139, 71, 0.22), rgba(255, 255, 255, 0.72));
  border-color: rgba(160, 106, 54, 0.22);
}

.control-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid rgba(107, 66, 34, 0.09);
  background: rgba(255, 255, 255, 0.7);
}

.input-shell input,
.input-shell select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
}

.control-summary {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(192, 139, 71, 0.18), rgba(255, 255, 255, 0.62));
  border: 1px solid rgba(160, 106, 54, 0.18);
}

.recipes-layout,
.baking-layout,
.cost-layout {
  display: grid;
  gap: 24px;
}

.recipes-layout {
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
}

.recipe-gallery {
  display: grid;
  gap: 16px;
  align-self: start;
}

.recipe-card {
  display: block;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(107, 66, 34, 0.1);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.95), rgba(243, 232, 217, 0.74));
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  box-shadow: 0 12px 24px rgba(100, 63, 32, 0.08);
}

.recipe-card.active {
  border-color: rgba(160, 106, 54, 0.26);
  box-shadow: 0 16px 36px rgba(126, 78, 35, 0.14);
}

.recipe-card h3 {
  margin: 10px 0 6px;
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.recipe-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.recipe-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.recipe-meta div {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.recipe-meta strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
}

.recipe-details {
  display: grid;
  gap: 20px;
}

.recipe-gallery-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.recipe-directory-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
}

.recipe-switcher {
  margin-top: 22px;
}

.tool-link-list {
  display: grid;
  gap: 12px;
}

.inline-tool-link {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(107, 66, 34, 0.08);
  transition: transform 180ms ease, background 180ms ease;
}

.inline-tool-link:hover,
.inline-tool-link:focus-visible {
  transform: translateY(-2px);
  background: rgba(192, 139, 71, 0.16);
}

.recipe-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.85fr);
  gap: 20px;
  padding: 28px;
}

.recipe-overview-copy h3 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(192, 139, 71, 0.16);
  color: var(--ink);
  font-size: 0.92rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ingredient-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ingredient-card {
  padding: 20px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(248, 240, 229, 0.72));
  border: 1px solid rgba(107, 66, 34, 0.08);
  box-shadow: 0 12px 26px rgba(103, 64, 30, 0.08);
}

.ingredient-card h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.ingredient-note {
  margin: 8px 0 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.ingredient-table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
}

.ingredient-table td {
  padding: 10px 0;
  border-bottom: 1px solid rgba(107, 66, 34, 0.08);
  vertical-align: top;
}

.ingredient-table td:last-child,
.timeline-table td:last-child,
.timeline-table th:last-child {
  text-align: right;
}

.ingredient-table tr:last-child td {
  border-bottom: 0;
}

.amount {
  font-weight: 700;
  color: var(--ink);
}

.highlight-row td:first-child {
  color: var(--accent-deep);
  font-weight: 700;
}

.section-total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(107, 66, 34, 0.18);
  color: var(--ink-soft);
}

.section-total strong {
  color: var(--ink);
}

.recipe-notes,
.timeline-card,
.process-card,
.cost-inputs,
.cost-results {
  padding: 26px;
}

.planner-card {
  padding: 30px;
}

.planner-option-card {
  margin-top: 18px;
  padding: 18px 22px;
  border: 1px solid rgba(150, 101, 52, 0.14);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.92), rgba(247, 238, 225, 0.82));
}

.planner-option-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  cursor: pointer;
}

.planner-option-toggle input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent-deep);
}

.planner-option-toggle strong,
.planner-option-toggle small {
  display: block;
}

.planner-option-toggle small {
  margin-top: 4px;
  color: var(--ink-soft);
}

.notes-header,
.timeline-header,
.cost-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.notes-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(192, 139, 71, 0.16);
  color: var(--ink);
  font-size: 0.85rem;
  text-align: center;
}

.note-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.note-list.compact {
  margin-top: 12px;
}

.note-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(107, 66, 34, 0.08);
  color: var(--ink-soft);
  line-height: 1.6;
}

.note-card strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.note-bullets {
  margin: 10px 0 0;
  padding-left: 20px;
}

.note-bullets li + li {
  margin-top: 10px;
}

.baking-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.process-column {
  display: grid;
  gap: 20px;
}

.timeline-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.planner-card .timeline-header h2 {
  margin-top: 8px;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(107, 66, 34, 0.08);
  color: var(--ink-soft);
}

.time-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.planner-time-controls {
  grid-template-columns: repeat(2, minmax(260px, 340px));
  justify-content: start;
  gap: 16px;
}

.planner-time-field {
  padding: 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 249, 241, 0.94), rgba(245, 233, 216, 0.74));
  border: 1px solid rgba(160, 106, 54, 0.14);
  box-shadow: 0 10px 22px rgba(115, 72, 35, 0.06);
}

.planner-time-field .control-label {
  color: var(--accent-deep);
}

.planner-time-shell {
  min-height: 56px;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(160, 106, 54, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.table-shell {
  overflow-x: auto;
  margin-top: 20px;
  border-radius: 22px;
  border: 1px solid rgba(107, 66, 34, 0.08);
}

.timeline-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.72);
}

.timeline-table th,
.timeline-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(107, 66, 34, 0.08);
  text-align: left;
  white-space: nowrap;
}

.timeline-table tbody tr:last-child td {
  border-bottom: 0;
}

.timeline-time-col {
  width: 196px;
  text-align: center !important;
}

.timeline-time-cell {
  width: 196px;
}

.timeline-time-chip {
  display: inline-flex;
  justify-content: center;
  width: 172px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(160, 106, 54, 0.12);
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.timeline-time-chip-start {
  background: linear-gradient(180deg, rgba(255, 249, 240, 0.98), rgba(247, 233, 210, 0.86));
  color: var(--accent-deep);
}

.timeline-time-chip-end {
  background: linear-gradient(180deg, rgba(246, 239, 228, 0.98), rgba(234, 220, 199, 0.86));
  color: var(--ink);
}

.timeline-minutes {
  width: 82px;
  min-width: 82px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(107, 66, 34, 0.1);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.process-guide {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.process-item {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(107, 66, 34, 0.08);
}

.process-item h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.process-item p {
  margin: 8px 0 0;
  color: var(--accent-deep);
  font-weight: 600;
}

.process-item ol {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.accent-card {
  background:
    radial-gradient(circle at top right, rgba(255, 212, 161, 0.26), transparent 36%),
    rgba(255, 250, 243, 0.9);
}

.cost-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cost-grid,
.packaging-grid,
.business-grid,
.cost-metrics {
  display: grid;
  gap: 14px;
}

.cost-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.cost-field {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(107, 66, 34, 0.08);
}

.cost-field strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.cost-field span {
  display: block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.business-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.packaging-block {
  margin-top: 18px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(150, 101, 52, 0.12);
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.92), rgba(247, 239, 228, 0.8));
}

.packaging-header {
  margin-bottom: 14px;
}

.packaging-header h3 {
  font-size: 1.35rem;
}

.packaging-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.packaging-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(107, 66, 34, 0.08);
}

.packaging-summary strong,
.packaging-summary span {
  display: block;
}

.packaging-summary span {
  color: var(--ink-soft);
  font-size: 0.92rem;
  text-align: right;
}

.cost-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.pricing-callout {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(192, 139, 71, 0.22), rgba(255, 255, 255, 0.74));
  border: 1px solid rgba(160, 106, 54, 0.16);
  color: var(--ink);
  line-height: 1.65;
}

.pricing-callout strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.missing-value {
  color: #9b4d1a;
  font-weight: 700;
}

.site-footer {
  margin-top: 40px;
  padding: 24px 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.84);
  box-shadow: var(--shadow);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .control-deck,
  .hero,
  .page-hero,
  .recipes-layout,
  .recipe-overview,
  .baking-layout,
  .cost-layout {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }

  .page-hero h1 {
    max-width: none;
  }

  .hero-stats,
  .ingredient-grid,
  .cost-grid,
  .packaging-grid,
  .business-grid,
  .cost-metrics,
  .metric-grid,
  .quick-link-grid,
  .placeholder-grid,
  .recipe-gallery-wide,
  .planner-recipe-pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 20px, 1320px);
    padding-top: 16px;
  }

  .site-header {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    justify-content: center;
  }

  .site-nav {
    justify-content: center;
  }

  .hero-copy,
  .hero-panel,
  .page-hero-copy,
  .page-hero-panel,
  .recipe-overview,
  .recipe-notes,
  .timeline-card,
  .process-card,
  .cost-inputs,
  .cost-results,
  .site-footer,
  .control-deck {
    padding: 22px;
    border-radius: 26px;
  }

  .hero-stats,
  .ingredient-grid,
  .cost-grid,
  .packaging-grid,
  .business-grid,
  .cost-metrics,
  .metric-grid,
  .time-controls,
  .quick-link-grid,
  .placeholder-grid,
  .recipe-gallery-wide,
  .planner-recipe-pills {
    grid-template-columns: 1fr;
  }

  .planner-time-controls {
    grid-template-columns: 1fr;
  }

  .timeline-table th,
  .timeline-table td {
    padding: 12px;
  }
}

@media (max-width: 560px) {
  .brand {
    align-items: flex-start;
  }

  .brand-logo {
    width: 56px;
    height: 56px;
  }

  .brand-kicker {
    font-size: 1.28rem;
  }

  .site-nav a,
  .button,
  .ghost-button {
    width: 100%;
  }

  .hero-actions,
  .inline-actions {
    flex-direction: column;
  }

  .recipe-meta {
    grid-template-columns: 1fr;
  }

  .notes-header,
  .timeline-header,
  .cost-header,
  .packaging-summary {
    flex-direction: column;
  }

  .packaging-summary span {
    text-align: left;
  }
}
