:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f7f6f1;
  color: #151922;
  --page: #f7f6f1;
  --panel: #ffffff;
  --panel-tint: #fbfaf6;
  --ink: #151922;
  --muted: #637083;
  --soft: #eef1ea;
  --line: rgba(21, 25, 34, 0.12);
  --line-strong: rgba(21, 25, 34, 0.2);
  --green: #1f6b4a;
  --green-ink: #174f39;
  --green-soft: #e4f2e9;
  --blue: #3159a6;
  --blue-soft: #e8eefb;
  --clay: #be5b47;
  --clay-soft: #f7e7e2;
  --ochre: #b97822;
  --ochre-soft: #fff0d5;
  --shadow: 0 18px 48px rgba(21, 25, 34, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(49, 89, 166, 0.08), transparent 340px),
    linear-gradient(180deg, #ffffff 0, #fbfaf6 360px, var(--page) 100%);
  color: var(--ink);
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.site-header-inner,
.site-footer,
main {
  width: min(calc(100vw - 32px), 1280px);
  margin: 0 auto;
}

.site-header-inner,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header-inner {
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

nav a,
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  text-decoration: none;
}

.site-header nav a {
  min-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

nav a:hover {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.site-header nav a:hover {
  background: transparent;
  box-shadow: none;
}

main {
  padding: 44px 0 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 40px;
  align-items: center;
  padding: 30px 0 42px;
}

.detail-hero {
  display: block;
  max-width: 1120px;
  margin: 0 auto;
  padding: 42px 0 46px;
  text-align: center;
}

.detail-hero .hero-copy,
.detail-hero h1,
.detail-hero .lede,
.detail-hero .pantry-chips {
  margin-right: auto;
  margin-left: auto;
}

.detail-hero .actions {
  justify-content: center;
}

.hero-copy {
  min-width: 0;
  max-width: 100%;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 1180px;
  margin-bottom: 16px;
  font-size: 3.2rem;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 span {
  display: inline;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 9px;
  font-size: 1.34rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.56;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.1;
  max-width: 100%;
  text-align: center;
  text-decoration: none;
}

.primary-action {
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 107, 74, 0.2);
}

.secondary-action {
  border: 1px solid var(--line);
  background: #fff;
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
}

.pantry-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  max-width: min(100%, 1040px);
  margin-top: 24px;
  padding: 2px 2px 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.pantry-chips::-webkit-scrollbar {
  display: none;
}

.pantry-chips span {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.pantry-chips span span {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.95rem;
}

.guide-cuisine {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.guide-cuisine span {
  font-size: 1.05rem;
  line-height: 1;
}

.pantry-board {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.pantry-board::before {
  content: "";
  display: block;
  height: 72px;
  margin: -14px -14px 14px;
  background:
    linear-gradient(135deg, rgba(31, 107, 74, 0.18), transparent 42%),
    linear-gradient(90deg, rgba(49, 89, 166, 0.14), transparent 72%),
    var(--ochre-soft);
  border-bottom: 1px solid var(--line);
}

.board-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.board-topline span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.board-topline strong {
  color: var(--green);
  font-size: 0.9rem;
}

.pantry-board ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pantry-board li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pantry-board li span {
  overflow-wrap: anywhere;
  font-size: 0.88rem;
  font-weight: 900;
}

.pantry-board em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
}

.pantry-board li:nth-child(3n + 1) em {
  background: var(--clay-soft);
  color: var(--clay);
}

.focus-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 44px;
}

.focus-row article {
  min-height: 140px;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(21, 25, 34, 0.05);
}

.focus-row article:nth-child(2) {
  border-top-color: var(--blue);
}

.focus-row article:nth-child(3) {
  border-top-color: var(--ochre);
}

.feature-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
}

.focus-row article:nth-child(2) .feature-icon {
  background: var(--blue-soft);
  color: var(--blue);
}

.focus-row article:nth-child(3) .feature-icon {
  background: var(--ochre-soft);
  color: var(--ochre);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.feature-number {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.focus-row h2 {
  font-size: 1.05rem;
}

.focus-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  gap: 22px;
  align-items: start;
}

.checklist-section {
  min-width: 0;
}

.side-section,
.note,
details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.side-section {
  position: sticky;
  top: 86px;
  padding: 16px;
  box-shadow: 0 10px 26px rgba(21, 25, 34, 0.05);
}

.section-heading p {
  max-width: 620px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  min-height: 62px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.checklist li:hover {
  border-color: var(--line-strong);
  box-shadow: 0 10px 22px rgba(21, 25, 34, 0.06);
  transform: translateY(-1px);
}

.checklist-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 11px 12px;
}

.item-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--green-soft);
  font-size: 1.08rem;
}

.item-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.item-copy strong {
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.item-copy small {
  color: var(--muted);
  font-size: 0.74rem;
}

.meal-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.meal-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-tint);
}

.meal-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 900;
}

.meal-list strong {
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.note {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 13px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.48;
}

.note strong {
  color: var(--clay);
}

.save-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 46px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(21, 25, 34, 0.07);
}

.save-band p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.faq {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

details {
  padding: 13px 14px;
}

summary {
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 900;
}

details p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.52;
}

.guide-list-section h2 {
  margin-bottom: 16px;
  font-size: 1.55rem;
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-list a {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) 34px;
  gap: 9px;
  align-content: start;
  height: 196px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(21, 25, 34, 0.05);
  text-decoration: none;
  overflow: hidden;
}

.guide-list a > * {
  min-width: 0;
}

.guide-list a:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.guide-list strong {
  font-size: 1rem;
  line-height: 1.18;
}

.guide-list span {
  display: block;
  width: 100%;
  max-width: 100%;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  overflow: hidden;
}

.guide-list a > span:not(.guide-cuisine) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.guide-list .guide-cuisine {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.1;
}

.guide-list .guide-cuisine span {
  color: inherit;
  font-size: 1.05rem;
}

.guide-list em {
  display: inline-flex;
  align-items: center;
  align-self: end;
  min-height: 34px;
  margin-top: 6px;
  color: var(--green);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 900;
}

.global-card {
  position: relative;
  display: grid;
  align-content: stretch;
  gap: 0;
  width: min(100%, 380px);
  aspect-ratio: 1;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 0;
}

.global-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.global-card-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  max-width: 260px;
  margin: 0 auto;
  padding: 18px;
  text-align: center;
}

.global-card-copy strong {
  display: block;
  color: var(--green);
  font-size: 1.15rem;
  line-height: 1.1;
}

.global-card-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.35;
}

.index-visual {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.index-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.index-visual div {
  display: grid;
  gap: 8px;
  padding: 15px;
}

.index-visual span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.site-footer {
  display: grid;
  justify-items: center;
  padding: 32px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

@media (max-width: 1020px) {
  .hero,
  .content-grid,
  .save-band {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .hero {
    min-height: 0;
  }

  .pantry-board,
  .side-section {
    position: static;
  }

  .global-card {
    margin-right: auto;
  }

  .focus-row,
  .guide-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 720px) {
  .site-header-inner,
  .site-footer,
  main {
    width: auto;
    max-width: none;
    margin: 0 16px;
  }

  .site-header-inner,
  .site-footer {
    gap: 12px;
    padding: 14px 0;
  }

  .site-header-inner {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
  }

  .brand {
    gap: 7px;
    font-size: 0.98rem;
    min-width: 0;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .brand span {
    white-space: nowrap;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: 32px;
  }

  nav {
    flex: 0 0 auto;
    width: auto;
    justify-content: flex-end;
    gap: 6px;
  }

  .site-header nav {
    display: flex;
    min-width: 0;
  }

  .site-header nav a {
    min-height: 32px;
    padding: 4px 0;
    font-size: 0.72rem;
    line-height: 1;
    white-space: nowrap;
  }

  main {
    padding: 30px 0 58px;
    overflow: hidden;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(1.62rem, 6.8vw, 1.82rem);
    line-height: 1.08;
  }

  h2 {
    font-size: 1.2rem;
  }

  .lede {
    font-size: 0.98rem;
    width: auto;
    max-width: 100%;
  }

  .hero {
    width: 100%;
    gap: 22px;
    padding: 16px 0 32px;
    overflow: hidden;
  }

  .detail-hero {
    width: 100%;
    max-width: 100%;
  }

  .detail-hero .hero-copy {
    width: 100%;
    max-width: 100%;
  }

  .hero-copy,
  .pantry-chips,
  .pantry-board,
  .index-visual,
  .global-card {
    width: 100%;
    max-width: 100%;
  }

  h1,
  .lede {
    width: 100%;
    max-width: 100%;
  }

  .focus-row,
  .guide-list,
  .checklist {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }

  .actions {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }

  .primary-action,
  .secondary-action {
    min-width: 0;
    width: 100%;
    white-space: normal;
  }

  .pantry-chips {
    margin-top: 20px;
    display: flex;
    width: 100%;
    max-width: 100%;
  }

  .pantry-chips span {
    justify-content: flex-start;
  }

  .pantry-board::before {
    height: 60px;
  }

  .pantry-board li {
    grid-template-columns: 1fr;
  }

  .board-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .pantry-board em {
    width: 100%;
  }

  .save-band {
    padding: 14px;
  }

  .guide-list a {
    width: 100%;
    height: 214px;
  }

  .guide-list a > span:not(.guide-cuisine),
  .focus-row p,
  .section-heading p,
  .note span {
    width: 100%;
    max-width: 100%;
  }

  .guide-list strong,
  .focus-row h2,
  .meal-list strong,
  .item-copy strong {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .checklist-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .global-card {
    margin-left: 0;
    border: 0;
    box-shadow: none;
  }

  .site-footer {
    padding: 26px 0 34px;
  }

}
