:root {
  color-scheme: light;
  --paper: #f7f5ee;
  --white: #fffdf7;
  --ink: #192f25;
  --muted: #56645b;
  --forest: #214c39;
  --deep: #15372a;
  --gold: #f8d37f;
  --line: #dddcd0;
  --sans: "Segoe UI", system-ui, sans-serif;
  --serif: Lora, Georgia, "Times New Roman", serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
select {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
img {
  display: block;
  width: 100%;
  object-fit: cover;
}
:focus-visible {
  outline: 3px solid #ab5d15;
  outline-offset: 3px;
}
.hero :focus-visible {
  outline-color: var(--gold);
}
:where([data-icon]) {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  z-index: 2;
  background: var(--white);
  top: 8px;
  left: 8px;
  padding: 10px;
}
.wrap {
  width: min(100% - 64px, 1240px);
  margin-inline: auto;
}
.header {
  border-bottom: 1px solid var(--line);
}
.header-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font: bold 1.35rem var(--serif);
  white-space: nowrap;
}
.brand img {
  width: 38px;
  height: 38px;
}
nav {
  display: flex;
  gap: clamp(16px, 4vw, 48px);
  align-items: center;
}
nav a,
.footer-row > a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.91rem;
}
nav a:hover,
.footer-row > a:hover {
  text-decoration: underline;
  color: var(--forest);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  min-height: 44px;
  padding: 9px 15px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.button-line {
  border-color: var(--line);
  color: var(--forest);
  background: var(--white);
}
.button-line:hover {
  background: #ebefe1;
  border-color: #b8c7b3;
}
.button-gold {
  background: var(--gold);
  color: #253728;
}
.button-gold:hover {
  background: #ffe3a2;
}
.button-green {
  background: var(--forest);
  color: #fffdf7;
}
.button-green:hover {
  background: var(--deep);
}
.count {
  background: #e4eddc;
  border-radius: 20px;
  padding: 0 7px;
}
.hero {
  display: grid;
  grid-template-columns: 0.97fr 1.03fr;
  min-height: 445px;
  margin-top: 28px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--deep);
  color: white;
}
.hero-text {
  padding: clamp(32px, 4vw, 59px);
  align-self: center;
}
.kicker {
  color: #536950;
  font-weight: 800;
  font-size: 0.71rem;
  letter-spacing: 0.13em;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f1db9d;
}
.hero-kicker span {
  width: 24px;
  height: 1px;
  background: currentColor;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
.hero h1 {
  margin: 14px 0 20px;
  font: 700 clamp(3.4rem, 6.65vw, 6.3rem)/0.97 var(--serif);
  letter-spacing: -0.057em;
}
.hero h1 em {
  color: var(--gold);
  font-weight: 400;
}
.hero p {
  max-width: 395px;
  color: #e2eadf;
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 27px;
}
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-underline-offset: 4px;
}
.hero-picture {
  position: relative;
  min-width: 0;
  min-height: 275px;
  isolation: isolate;
  background: radial-gradient(circle at 50%, #7a9263, #214c39);
}
.hero-picture img {
  height: 100%;
  width: 100%;
  position: absolute;
  inset: 0;
  object-position: 50% 56%;
}
.hero-picture::after {
  content: "";
  z-index: 0;
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #14291dd9, transparent 43%);
  pointer-events: none;
}
.hero-picture figcaption {
  display: grid;
  position: absolute;
  z-index: 1;
  bottom: 24px;
  right: 26px;
  text-align: right;
  color: white;
}
.hero-picture figcaption span:first-child {
  color: #ffe6aa;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.hero-picture figcaption span:last-child {
  font: italic 1.55rem var(--serif);
}
.summary-strip {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px 30px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.86rem;
}
.summary-strip > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.summary-strip .icon {
  color: var(--forest);
}
.section {
  margin-block: 46px;
  scroll-margin-top: 22px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: end;
  margin-bottom: 20px;
}
.section-heading h2,
.dialog-title {
  font: bold clamp(2.05rem, 4vw, 3.6rem)/1.06 var(--serif);
  letter-spacing: -0.042em;
  margin-block: 6px 8px;
}
.section-heading p,
.muted {
  color: var(--muted);
}
.date-badge {
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 13px;
  color: var(--forest);
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 650;
}
.planner {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  overflow: hidden;
}
.planner-controls {
  padding: 20px;
  background: #ecf0e5;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: end;
}
.planner-controls label,
.serving-field {
  display: grid;
  gap: 6px;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--forest);
}
select {
  min-height: 44px;
  min-width: 0;
  width: 100%;
  border: 1px solid #cdd2c7;
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--white);
}
.menu-grid {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.menu-grid-single {
  grid-template-columns: minmax(0, 460px);
}
.menu-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #faf9f2;
  padding: 12px;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.menu-item:hover {
  border-color: #9bac97;
  background: #f0f4e9;
}
.menu-photo .card-art {
  aspect-ratio: 1;
  border-radius: 8px;
}
.menu-item small {
  color: var(--muted);
  font-size: 0.72rem;
  display: block;
}
.menu-item strong {
  display: block;
  font-size: 0.94rem;
  line-height: 1.3;
}
.planner-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 0.85rem;
}
.search-panel {
  display: grid;
  grid-template-columns: 1fr 210px 170px;
  gap: 10px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #cdd2c7;
  border-radius: 11px;
  background: var(--white);
  padding: 0 12px;
  color: var(--muted);
}
.search-field input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 0;
  background: transparent;
  outline: 0;
}
.search-field:focus-within {
  outline: 2px solid var(--forest);
}
.catalog-bar {
  margin: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 9px;
}
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-buttons button {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 7px 13px;
  min-height: 39px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.filter-buttons button[aria-pressed="true"] {
  background: var(--forest);
  border-color: var(--forest);
  color: white;
}
.filter-buttons button:hover:not([aria-pressed="true"]) {
  background: #edf0e7;
}
#result-count {
  white-space: nowrap;
  font-size: 0.83rem;
  color: var(--muted);
}
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.recipe-card {
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}
.recipe-card:focus-within,
.recipe-card:hover {
  border-color: #9bac97;
}
.card-art {
  width: 100%;
  aspect-ratio: 1.57;
  overflow: hidden;
  display: grid;
}
.card-art img {
  height: 100%;
  min-height: 0;
}
.atlas-art {
  position: relative;
  background: #eae0d1;
}
.atlas-tile {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  transform: translateY(-50%);
}
.card-art .atlas-tile img {
  position: absolute;
  width: 300%;
  height: 200%;
  top: 0;
  left: 0;
}
.card-art .atlas-tile.col-1 img {
  left: -100%;
}
.card-art .atlas-tile.col-2 img {
  left: -200%;
}
.card-art .atlas-tile.row-1 img {
  top: -100%;
}
.art-fallback {
  position: relative;
  isolation: isolate;
  color: #214c39;
  background: #e4e9d9;
  display: grid;
  place-items: center;
}
.art-fallback.trung {
  color: #683c2b;
  background: #f4dfd0;
}
.art-fallback.nam {
  color: #624719;
  background: #f5e6ba;
}
.art-fallback::before,
.art-fallback::after {
  content: "";
  position: absolute;
  inset: 13% 24%;
  z-index: -1;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.2;
  transform: rotate(-15deg);
}
.art-fallback::after {
  inset: 20% 30%;
  transform: rotate(15deg);
}
.art-fallback .icon {
  width: 56px;
  height: 56px;
  stroke-width: 1.1;
}
.card-text {
  padding: 14px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}
.card-tag {
  align-self: start;
  border-radius: 50px;
  padding: 2px 8px;
  background: #e8eee1;
  color: #2b513b;
  font-size: 0.71rem;
  font-weight: 750;
}
.card-tag.trung {
  background: #f7e8dd;
  color: #793f2e;
}
.card-tag.nam {
  background: #f5edce;
  color: #6a4c16;
}
.card-text h3 {
  font: bold 1.27rem/1.15 var(--serif);
  letter-spacing: -0.02em;
}
.card-text h3 a {
  text-decoration: none;
}
.card-text h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.card-text p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
  flex: 1;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--muted);
}
.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.card-meta .icon {
  width: 15px;
  height: 15px;
}
.icon-button {
  border: 1px solid var(--line);
  min-width: 40px;
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  background: var(--white);
  border-radius: 50%;
  color: var(--forest);
}
.icon-button:hover {
  background: #e7efdf;
}
.card-save {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 1;
}
[data-save][aria-pressed="true"] .icon {
  fill: #ebca75;
}
.empty {
  padding: 26px;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: 14px;
  text-align: center;
}
.empty p {
  margin: 6px 0 12px;
  color: var(--muted);
}
.footer {
  border-top: 1px solid var(--line);
  background: #ecefe5;
  padding: 25px 0;
}
.footer-row {
  display: grid;
  grid-template-columns: 1fr minmax(210px, 1fr) auto;
  gap: 20px;
  align-items: start;
}
.footer-row p {
  color: var(--muted);
  margin-top: 7px;
  font-size: 0.86rem;
}
summary {
  cursor: pointer;
  font-weight: 650;
}
#sources {
  margin-top: 8px;
  font-size: 0.83rem;
}
#sources ul {
  padding-left: 22px;
}
dialog {
  border: 1px solid var(--line);
  padding: 0;
  border-radius: 18px;
  width: min(94vw, 760px);
  max-height: 90vh;
  max-height: 90dvh;
  background: var(--white);
  color: var(--ink);
  overflow: auto;
}
dialog::backdrop {
  background: #12271ec2;
}
.dialog-bar {
  position: sticky;
  z-index: 2;
  top: 0;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ecf0e5;
  border-bottom: 1px solid var(--line);
}
.dialog-bar > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--forest);
  font-weight: 800;
  letter-spacing: 0.095em;
  font-size: 0.73rem;
}
.dialog-content {
  padding: 22px;
}
.dialog-lead {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 15px;
  align-items: center;
}
.dialog-lead .card-art {
  border-radius: 12px;
}
.dialog-lead .dialog-title {
  font-size: clamp(1.85rem, 5vw, 3rem);
}
.detail-stats {
  display: flex;
  gap: 5px 15px;
  flex-wrap: wrap;
  margin: 11px 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.recipe-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  margin: 24px 0 15px;
}
.recipe-columns h3,
.shopping-group h3 {
  font: bold 1.4rem var(--serif);
}
.serving-field {
  margin: 9px 0;
  max-width: 150px;
}
.check-list,
.steps {
  list-style: none;
  padding: 0;
  margin: 9px 0 16px;
}
.check-list li {
  border-bottom: 1px solid var(--line);
}
.check-list label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
  font-size: 0.88rem;
  cursor: pointer;
}
.check-list input {
  accent-color: var(--forest);
  margin: 0;
}
.check-list label:has(:checked) span {
  text-decoration: line-through;
  color: var(--muted);
}
.check-list b {
  font-size: 0.8rem;
  white-space: nowrap;
}
.steps {
  counter-reset: step;
}
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  margin-bottom: 12px;
  counter-increment: step;
  font-size: 0.9rem;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #e5eddc;
  color: var(--forest);
  font-weight: 700;
}
.tip {
  background: #f5edce;
  border-radius: 10px;
  padding: 12px;
  font-size: 0.86rem;
}
.detail-credit {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--muted);
}
.shopping-group {
  margin-top: 17px;
}
.shopping-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.shopping-header .dialog-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
}
.shopping-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
.shopping-controls .serving-field {
  width: 112px;
  margin: 0;
}
.shopping-actions {
  margin-top: 19px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
#copy-fallback {
  width: 100%;
  min-height: 120px;
  margin-top: 10px;
  font: inherit;
}
@media (max-width: 1000px) {
  .wrap {
    width: min(100% - 44px, 1240px);
  }
  .recipe-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero {
    min-height: 380px;
  }
  .hero-text {
    padding: 32px;
  }
}
@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .header-row {
    min-height: 64px;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding-block: 10px;
  }
  .header-row nav {
    order: 3;
    width: 100%;
    gap: 18px;
  }
  .header-row nav a {
    font-size: 0.84rem;
  }
  .hero {
    margin-top: 15px;
    grid-template-columns: 1fr;
    border-radius: 17px;
  }
  .hero-text {
    padding: 25px 23px;
  }
  .hero h1 {
    font-size: clamp(3.7rem, 12vw, 5.9rem);
  }
  .hero-actions {
    margin-top: 18px;
  }
  .hero-picture {
    min-height: clamp(195px, 50vw, 290px);
  }
  .hero-picture figcaption {
    right: 15px;
    bottom: 15px;
  }
  .summary-strip {
    gap: 6px 14px;
    font-size: 0.76rem;
  }
  .section {
    margin-block: 31px;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
  }
  .planner-controls {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    padding: 12px;
  }
  .planner-controls button {
    grid-column: 1 / -1;
  }
  .menu-grid {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 8px;
  }
  .planner-footer {
    align-items: start;
    flex-direction: column;
    padding: 0 12px 12px;
  }
  .search-panel {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .search-field {
    grid-column: 1 / -1;
  }
  .catalog-bar {
    align-items: start;
    flex-direction: column;
  }
  .recipe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .card-text {
    padding: 10px;
  }
  .card-text h3 {
    font-size: 1.08rem;
  }
  .card-meta {
    flex-wrap: wrap;
    gap: 4px;
  }
  .footer-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 470px) {
  .dialog-content {
    padding: 14px;
  }
  .dialog-lead {
    grid-template-columns: 1fr;
  }
  .dialog-lead .card-art {
    grid-row: 1;
    max-height: 190px;
  }
  .recipe-columns {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .save-nav {
    padding: 7px 9px;
    min-height: 39px;
  }
}
@media (max-width: 350px) {
  .planner-controls,
  .recipe-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media print {
  body:has(#shopping-dialog[open]) > :not(#shopping-dialog) {
    display: none;
  }
  #shopping-dialog[open] {
    position: static;
    width: 100%;
    max-width: none;
    max-height: none;
    overflow: visible;
    border: 0;
  }
  #shopping-dialog::backdrop,
  #shopping-dialog .dialog-bar,
  #shopping-dialog .shopping-controls,
  #shopping-dialog .shopping-actions {
    display: none;
  }
}
