:root {
  color-scheme: light;
  --ink: #173f38;
  --ink-soft: #41615b;
  --paper: #f5f0e6;
  --paper-deep: #ebe2d1;
  --cream: #fffaf0;
  --leaf: #6f8b72;
  --leaf-pale: #d9e2d5;
  --apricot: #e88658;
  --apricot-pale: #f4d6c5;
  --gold: #b98a3d;
  --line: rgba(23, 63, 56, 0.18);
  --shadow: 0 24px 70px rgba(38, 53, 45, 0.12);
  --radius: 28px;
  --font-serif: "Songti SC", "STSong", "SimSun", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
}

button,
select {
  font: inherit;
}

button,
a,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

button,
select {
  color: inherit;
}

button:focus-visible,
select:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--apricot);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.paper-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.5px) 0 0 / 18px 18px,
    radial-gradient(circle at 80% 40%, rgba(23, 63, 56, 0.08) 0 0.7px, transparent 1px) 0 0 / 15px 16px;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

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

.brand-mark {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
}

.brand-mark svg {
  width: 34px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.08em;
}

.brand small,
.header-note {
  color: var(--ink-soft);
  font-size: 13px;
}

.header-note {
  margin: 0;
}

.hero {
  position: relative;
  display: grid;
  overflow: clip;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  min-height: 570px;
  align-items: center;
  gap: 60px;
  padding: 70px 0 80px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--apricot);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 700;
}

h1 {
  max-width: 710px;
  margin-bottom: 26px;
  font-size: clamp(48px, 6.8vw, 84px);
  letter-spacing: -0.05em;
}

.hero-intro {
  max-width: 680px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: 19px;
}

.date-switcher {
  display: inline-grid;
  grid-template-columns: auto minmax(190px, 1fr) auto;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 250, 240, 0.7);
}

.date-button {
  border: 0;
  padding: 14px 18px;
  background: transparent;
  cursor: pointer;
}

.date-button:hover {
  background: var(--leaf-pale);
}

.date-display {
  padding: 10px 18px;
  text-align: center;
  border-inline: 1px solid var(--line);
}

.date-display span,
.date-display strong {
  display: block;
}

.date-display span {
  color: var(--ink-soft);
  font-size: 13px;
}

.date-display strong {
  font-size: 15px;
}

.today-button {
  margin-top: 14px;
  border: 0;
  padding: 8px 0;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-plate {
  position: relative;
  display: grid;
  min-height: 430px;
  place-items: center;
}

.plate-ring {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(360px, 100%);
  aspect-ratio: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 28px solid var(--cream);
  border-radius: 50%;
  background: var(--apricot-pale);
  box-shadow:
    inset 0 0 0 1px rgba(23, 63, 56, 0.1),
    var(--shadow);
  transform: rotate(4deg);
}

.plate-day {
  font-family: var(--font-serif);
  font-size: 116px;
  line-height: 0.9;
}

.plate-month {
  margin-top: 15px;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: 0.35em;
}

.steam {
  position: absolute;
  z-index: 3;
  top: -8px;
  right: 3%;
  width: 150px;
  fill: none;
  stroke: var(--leaf);
  stroke-linecap: round;
  stroke-width: 2;
  opacity: 0.6;
  animation: breathe 5s ease-in-out infinite;
}

.leaf {
  position: absolute;
  z-index: 1;
  width: 115px;
  height: 215px;
  border-radius: 100% 0 100% 0;
  background: var(--leaf);
  opacity: 0.75;
}

.leaf-one {
  left: 2%;
  bottom: 4%;
  transform: rotate(-24deg);
}

.leaf-two {
  right: 0;
  bottom: 12%;
  width: 82px;
  height: 158px;
  transform: rotate(42deg);
  background: var(--gold);
}

@keyframes breathe {
  0%,
  100% { transform: translateY(3px); opacity: 0.45; }
  50% { transform: translateY(-8px); opacity: 0.75; }
}

.safety-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  margin-bottom: 80px;
  padding: 26px 30px;
  border-radius: 20px;
  background: var(--ink);
  color: #f9f2e7;
}

.safety-strip h2 {
  margin: 0 0 5px;
  font-family: var(--font-sans);
  font-size: 19px;
}

.safety-strip p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.safety-strip a {
  font-size: 14px;
  white-space: nowrap;
}

.safety-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: var(--apricot-pale);
  font-family: var(--font-serif);
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(300px, 0.72fr);
  gap: 46px;
  align-items: start;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2,
.watch-heading h2,
.sources-section h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.035em;
}

.shopping-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  background: transparent;
  cursor: pointer;
}

.shopping-button:hover {
  background: var(--ink);
  color: white;
}

.shopping-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.nutrition-band {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  overflow: hidden;
  margin-bottom: 22px;
  border-radius: 22px;
  background: var(--apricot-pale);
}

.nutrition-band > div {
  position: relative;
  min-height: 132px;
  padding: 22px 24px;
}

.nutrition-band > div + div::before {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 0;
  width: 1px;
  background: rgba(23, 63, 56, 0.16);
  content: "";
}

.nutrition-band span,
.nutrition-band em {
  display: block;
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.nutrition-band strong {
  display: block;
  margin-top: 7px;
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1;
}

.nutrition-band strong small {
  font-family: var(--font-sans);
  font-size: 12px;
}

.nutrition-band em {
  margin-top: 8px;
  color: var(--ink-soft);
}

.nutrition-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 250, 240, 0.45);
}

.nutrition-note p {
  margin: 7px 0 0;
  font-weight: 700;
  line-height: 1.45;
}

.meal-timeline {
  border-top: 1px solid var(--line);
}

.meal-card {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 20px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
}

.meal-time {
  padding-top: 4px;
  color: var(--ink-soft);
  font-size: 13px;
}

.meal-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 25px;
}

.meal-summary {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.meal-nutrition {
  min-width: 95px;
  padding-top: 2px;
  text-align: right;
}

.meal-nutrition strong,
.meal-nutrition span {
  display: block;
}

.meal-nutrition strong {
  font-family: var(--font-serif);
  font-size: 21px;
}

.meal-nutrition span {
  color: var(--ink-soft);
  font-size: 12px;
}

.meal-details {
  grid-column: 2 / -1;
  margin-top: -8px;
}

.meal-details summary {
  width: max-content;
  color: var(--apricot);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.meal-details summary::marker {
  color: var(--apricot);
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 14px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 250, 240, 0.72);
}

.details-grid h4 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.details-grid ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--ink-soft);
  font-size: 14px;
}

.details-grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.guide-column {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 18px;
}

.stage-panel,
.principles-panel,
.fluids-panel {
  border-radius: var(--radius);
  padding: 28px;
}

.stage-panel {
  background: var(--cream);
  box-shadow: 0 18px 55px rgba(38, 53, 45, 0.08);
}

.stage-panel label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
}

.stage-panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 38px 12px 12px;
  background: var(--paper);
}

.stage-advice {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 14px;
}

.stage-advice strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

.principles-panel {
  background: var(--leaf-pale);
}

.principles-panel ol {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles-panel li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
}

.principles-panel li > span {
  color: var(--apricot);
  font-family: var(--font-serif);
  font-size: 18px;
}

.principles-panel strong,
.principles-panel small {
  display: block;
}

.principles-panel small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 13px;
}

.fluids-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px;
  border: 1px solid var(--line);
}

.line-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-serif);
}

.fluids-panel h3 {
  margin: 0 0 7px;
  font-size: 17px;
}

.fluids-panel p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.watch-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  margin: 110px 0 0;
  padding: 80px;
  border-radius: 42px;
  background: var(--ink);
  color: #fffaf0;
}

.watch-heading p:last-child {
  color: rgba(255, 255, 255, 0.68);
}

.watch-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.watch-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.watch-list li:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.watch-list span {
  color: var(--apricot);
}

.sources-section {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 80px;
  padding: 110px 0;
}

.source-copy > p {
  color: var(--ink-soft);
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.source-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 250, 240, 0.52);
  font-size: 13px;
  text-decoration: none;
}

.source-links a:hover {
  border-color: var(--ink);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 13px;
}

footer p {
  margin: 0;
}

.shopping-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: min(760px, calc(100dvh - 28px));
  border: 0;
  border-radius: 28px;
  padding: 30px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.shopping-dialog::backdrop {
  background: rgba(14, 32, 28, 0.68);
  backdrop-filter: blur(6px);
}

.dialog-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.dialog-topline h2 {
  margin: 0;
  font-size: 38px;
}

.close-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.shopping-hint,
.copy-status {
  color: var(--ink-soft);
  font-size: 13px;
}

.shopping-dialog ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 28px;
  margin: 22px 0;
  padding: 20px 20px 20px 38px;
  border-radius: 18px;
  background: var(--paper);
}

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

.dialog-actions button {
  flex: 1;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  background: var(--ink);
  color: white;
  cursor: pointer;
}

.dialog-actions button + button {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
}

noscript {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  max-width: 420px;
  padding: 16px;
  border-radius: 12px;
  background: #8e2f28;
  color: white;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 54px;
  }

  .hero-plate {
    position: absolute;
    right: 0;
    bottom: 28px;
    min-height: auto;
    opacity: 0.16;
  }

  .plate-ring {
    width: 320px;
  }

  .dashboard,
  .watch-section,
  .sources-section {
    grid-template-columns: 1fr;
  }

  .guide-column {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .fluids-panel {
    grid-column: 1 / -1;
  }

  .watch-section,
  .sources-section {
    gap: 36px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    padding: 18px 0;
  }

  .header-note {
    display: none;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .hero {
    min-height: 580px;
    padding: 48px 0 60px;
  }

  h1 {
    font-size: 50px;
  }

  .hero-intro {
    font-size: 17px;
  }

  .date-switcher {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1.3fr 1fr;
  }

  .date-button {
    padding: 12px 8px;
    font-size: 14px;
  }

  .date-display {
    padding-inline: 8px;
  }

  .hero-plate {
    right: -120px;
    bottom: 14px;
  }

  .plate-ring {
    width: 300px;
  }

  .steam,
  .leaf {
    display: none;
  }

  .safety-strip {
    grid-template-columns: auto 1fr;
    gap: 14px;
    margin-bottom: 62px;
    padding: 20px;
  }

  .safety-icon {
    width: 48px;
    height: 48px;
    font-size: 13px;
  }

  .safety-strip a {
    grid-column: 2;
    white-space: normal;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .shopping-button {
    width: 100%;
    justify-content: center;
  }

  .nutrition-band {
    grid-template-columns: 1fr 1fr;
  }

  .nutrition-note {
    grid-column: 1 / -1;
    min-height: auto !important;
  }

  .nutrition-band > div:nth-child(3)::before {
    top: 0;
    right: 20px;
    bottom: auto;
    left: 20px;
    width: auto;
    height: 1px;
  }

  .meal-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
  }

  .meal-nutrition {
    grid-column: 2;
    text-align: left;
  }

  .meal-nutrition strong,
  .meal-nutrition span {
    display: inline;
  }

  .meal-nutrition span::before {
    content: " · ";
  }

  .meal-details {
    grid-column: 2;
  }

  .details-grid,
  .guide-column {
    grid-template-columns: 1fr;
  }

  .fluids-panel {
    grid-column: auto;
  }

  .watch-section {
    margin-top: 80px;
    padding: 38px 24px;
    border-radius: 28px;
  }

  .sources-section {
    padding: 80px 0;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .shopping-dialog ul {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .hero,
  .safety-strip,
  .guide-column,
  .watch-section,
  .sources-section,
  footer,
  .shopping-button,
  .date-switcher,
  .meal-details summary {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  main {
    width: 100%;
  }

  .dashboard {
    display: block;
  }

  .meal-details[open] {
    display: block;
  }

  body.printing-shopping main,
  body.printing-shopping .site-header,
  body.printing-shopping footer {
    display: none !important;
  }

  body.printing-shopping .shopping-dialog[open] {
    position: static;
    display: block !important;
    width: 100%;
    max-height: none;
    box-shadow: none;
  }

  body.printing-shopping .close-button,
  body.printing-shopping .dialog-actions,
  body.printing-shopping .copy-status {
    display: none !important;
  }
}
