:root {
  color-scheme: light;
  --ink: #2c241e;
  --muted: #6a6055;
  --tomato: #b83c20;
  --paper: #faf7ef;
  --line: #e1d9cb;
  --serif: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif;
  --sans: "DM Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 18px; }
body { margin: 0; font: 16px/1.65 var(--sans); color: var(--ink); background: #fffcf6; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #397753; outline-offset: 4px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
.wrap { width: min(1312px, 89%); margin-inline: auto; }
.skip { position: fixed; z-index: 4; top: -60px; background: white; padding: 8px 18px; }
.skip:focus { top: 0; }
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-wrap, .brand, .nav-wrap nav, .nav-app, .hero-actions, .button, .text-link, .slide-controls, .filters, .section-top, .portion-row, .serving-line, .stepper, .footer { display: flex; align-items: center; }
.nav-wrap { min-height: 80px; gap: 40px; }
.brand { gap: 9px; width: fit-content; white-space: nowrap; }
.brand strong { font-size: 24px; font-weight: 850; letter-spacing: -.06em; }
.brand span { font: 600 19px/1 Georgia, serif; letter-spacing: -.055em; margin-left: 2px; }
.nav-wrap nav { gap: clamp(20px, 3vw, 48px); margin-inline: auto; font-size: 14px; font-weight: 600; }
.nav-wrap nav a:hover, .footer>a:last-child:hover { color: var(--tomato); }
.nav-app { gap: 18px; padding: 7px 17px; font-size: 14px; font-weight: 650; border: 1px solid #bbae9e; border-radius: 30px; }
.nav-app:hover { background: white; }
.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: .96fr 1.04fr; gap: clamp(24px, 4vw, 66px); align-items: center; padding-block: clamp(35px, 4.8vw, 76px); }
.hero-copy h1 { font: 800 clamp(42px, 4.28vw, 71px)/1.24 var(--serif); letter-spacing: -.075em; }
.hero-copy h1 em { font-style: normal; color: var(--tomato); }
.hero-copy>p, .body-copy, .camera-copy>p:not(.eyebrow), .about-grid p:not(.eyebrow) { font-size: clamp(15px, 1.15vw, 18px); color: var(--muted); line-height: 1.9; }
.hero-copy>p { margin: 24px 0 30px; }
.hero-actions { gap: 24px; flex-wrap: wrap; }
.button { width: fit-content; justify-content: center; gap: 20px; border: 0; border-radius: 40px; padding: 13px 24px; font-size: 15px; font-weight: 700; line-height: 1.5; }
.primary { color: #fff9ef; background: var(--tomato); }
.primary:hover { background: #963018; }
.button span { font-family: Arial, sans-serif; font-size: 20px; line-height: 1; }
.text-link { gap: 9px; font-size: 14px; font-weight: 650; }
.text-link:hover { color: var(--tomato); }
.camera-icon { position: relative; height: 15px; width: 20px; border: 1.6px solid currentColor; border-radius: 3px; }
.camera-icon:before { content: ""; position: absolute; width: 5px; height: 5px; left: 5.5px; top: 3px; border: 1.4px solid currentColor; border-radius: 50%; }
.camera-icon:after { content: ""; position: absolute; width: 7px; height: 3px; background: var(--paper); border: 1.6px solid currentColor; border-bottom: 0; border-radius: 2px 2px 0 0; top: -4px; left: 3px; }
.featured { position: relative; border-radius: 18px; overflow: hidden; isolation: isolate; aspect-ratio: 1.4; background: #913c25; }
.featured>img { height: 100%; width: 100%; object-fit: cover; }
.featured:after { content: ""; position: absolute; z-index: 0; inset: 48% 0 0; pointer-events: none; background: linear-gradient(transparent, #33190bcb); }
.featured figcaption { position: absolute; z-index: 1; bottom: 0; inset-inline: 0; display: flex; justify-content: space-between; align-items: end; padding: clamp(16px, 2.4vw, 32px); color: white; }
#featured-recipe { background: transparent; border: 0; text-align: left; color: #fff9ee; padding: 0; display: grid; justify-items: start; gap: 2px; text-shadow: 0 1px 5px #4f250b; }
.featured-kicker { font-size: 12px; font-weight: 600; letter-spacing: .1em; }
#featured-name { font: 750 clamp(23px, 2.3vw, 36px)/1.4 var(--serif); }
#featured-time { font-size: 13px; }
.slide-controls { gap: 7px; }
.slide-controls button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; font: 20px/1 Arial,sans-serif; border-radius: 50%; border: 1px solid #ffffffa3; background: #27160e48; color: white; }
.slide-controls button:hover { background: #fff; color: var(--ink); }
.section-space { padding-block: clamp(48px, 5vw, 82px); }
.section-top { justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.eyebrow { font-size: 12px; font-weight: 750; letter-spacing: .12em; color: var(--tomato); margin-bottom: 8px; }
h2 { font: 760 clamp(28px, 2.8vw, 44px)/1.35 var(--serif); letter-spacing: -.055em; }
.filters { gap: 5px; flex-wrap: wrap; }
.filters button { border-radius: 30px; border: 1px solid transparent; background: transparent; color: var(--muted); padding: 6px 14px; font-size: 14px; }
.filters button[aria-pressed=true] { background: #ede7d9; color: var(--ink); font-weight: 700; }
.filters button:hover { border-color: var(--line); }
.recipe-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(14px, 1.75vw, 26px); }
.recipe-card { padding: 0; border: 0; border-radius: 12px 12px 0 0; background: transparent; text-align: left; }
.card-photo { display: block; border-radius: 12px; overflow: hidden; background: #e9d8be; }
.card-photo img { aspect-ratio: 1.55; object-fit: cover; width: 100%; transition: transform .32s ease; }
.recipe-card:hover img { transform: scale(1.045); }
.card-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 11px; }
.card-title { font: 700 clamp(18px,1.5vw,24px)/1.6 var(--serif); }
.card-arrow { line-height: 1; color: var(--tomato); font-family: Arial,sans-serif; }
.card-meta { color: var(--muted); display: block; font-size: 13px; margin-top: 2px; }
.camera-section { padding-block: clamp(42px, 4.5vw, 74px); border-block: 1px solid var(--line); background: #f1eddf; }
.camera-grid, .portion-section, .about-grid { display: grid; align-items: center; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 105px); }
.ingredient-shot { position: relative; border-radius: 16px; overflow: hidden; }
.ingredient-shot img { aspect-ratio: 1.6; height: auto; width: 100%; object-fit: cover; }
.viewfinder { position: absolute; inset: 9%; }
.viewfinder i { position: absolute; width: 21px; height: 21px; border: 2px solid #fff6e8; }
.viewfinder i:nth-child(1) { inset: 0 auto auto 0; border-right: 0; border-bottom: 0; }
.viewfinder i:nth-child(2) { inset: 0 0 auto auto; border-left: 0; border-bottom: 0; }
.viewfinder i:nth-child(3) { inset: auto auto 0 0; border-right: 0; border-top: 0; }
.viewfinder i:nth-child(4) { inset: auto 0 0 auto; border-left: 0; border-top: 0; }
.camera-copy>p:not(.eyebrow) { margin: 16px 0 20px; max-width: 28em; }
#sample-result p { font-size: 13px; font-weight: 650; }
.tags { display: flex; list-style: none; gap: 8px; margin: 5px 0 14px; padding: 0; }
.tags li { padding: 2px 10px; border-radius: 20px; border: 1px solid #bdb8a5; font-size: 14px; }
.body-copy, .about-grid p:not(.eyebrow) { margin-top: 14px; max-width: 30em; }
.portion-tool { background: #f7f1e6; border: 1px solid var(--line); border-radius: 16px; padding: 22px 28px; }
.portion-row { justify-content: space-between; font-weight: 650; }
.portion-tool input { width: 100%; height: 28px; margin: 9px 0; accent-color: var(--tomato); cursor: pointer; }
.portion-total { display: flex; gap: 8px; align-items: baseline; border-top: 1px solid var(--line); padding-top: 5px; }
.portion-total strong { color: var(--tomato); font: 600 40px/1.4 Georgia, serif; }
.portion-tool>p, .version>span { color: var(--muted); font-size: 13px; }
.about-section { padding-block: 52px; background: #eee8d9; border-block: 1px solid var(--line); }
.version { border-left: 1px solid #c9bfac; padding-left: 26px; }
.version .button { margin-top: 15px; }
.version>span { display: inline-block; margin-top: 8px; }
.footer { justify-content: space-between; padding-block: 26px; }
.footer .brand strong { font-size: 18px; }.footer .brand span { font-size: 16px; }
.footer>a:last-child { font-size: 14px; }
dialog { padding: 0; color: var(--ink); border: 0; border-radius: 18px; width: min(600px,calc(100% - 28px)); max-height: 88dvh; overflow: auto; background: #fffcf6; box-shadow: 0 30px 85px #301b1a40; }
dialog::backdrop { background: #251d17a6; }
.dialog-inner { position: relative; }
.dialog-close { position: absolute; right: 12px; top: 12px; width: 42px; height: 42px; border: none; border-radius: 50%; background: #fffaf1; font: 26px/1 Arial,sans-serif; }
.dialog-photo { width: 100%; height: clamp(135px, 24vh, 220px); object-fit: cover; }
.dialog-content { padding: 20px clamp(18px,4vw,32px) 30px; }
.dialog-content h3 { font-size: 17px; }
.serving-line { justify-content: space-between; margin-top: 24px; }
.stepper { gap: 10px; font-size: 14px; }
.stepper button { border: 1px solid var(--line); border-radius: 50%; width: 30px; height: 30px; background: white; line-height: 1; }
.stepper button:disabled { opacity: .4; cursor: default; }
.ingredients { padding: 0; margin: 10px 0 24px; list-style: none; }
.ingredients li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding: 6px 0; }
.ingredients .ingredient-group { padding-top: 12px; color: var(--muted); font-size: 13px; font-weight: 700; }
.ingredients small { color: var(--muted); margin-left: 7px; }
.steps { margin: 10px 0 0; padding-left: 25px; }
.steps li { padding: 0 0 12px 3px; }
.steps li::marker { color: var(--tomato); font-weight: 750; }
.steps p { margin-top: 3px; }
.steps small { color: var(--muted); }
button[hidden], [hidden] { display: none; }
@media(max-width:850px) {
  .wrap { width: 92%; }.hero-grid { gap: 23px; }.hero-copy h1 { font-size: clamp(34px,4.8vw,45px); }
  .hero-copy>p { margin: 17px 0 22px; }.hero-actions { gap: 14px; }.button { padding: 11px 17px; }
  .recipe-grid { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 24px; }
}
@media(max-width:620px) {
  .wrap { width: calc(100% - 36px); }.nav-wrap { gap: 0; justify-content: space-between; min-height: 60px; flex-wrap: wrap; }
  .nav-wrap .brand img { width: 30px; height: 30px; }.brand strong { font-size: 21px; }.brand span { font-size: 17px; }
  .nav-wrap nav { order: 3; width: 100%; justify-content: space-between; padding: 0 0 9px; font-size: 13px; }
  .nav-wrap .brand,.nav-app { margin-block: 10px; }.nav-app { font-size: 12px; padding: 4px 11px; gap: 8px; }
  .hero-grid,.camera-grid,.portion-section,.about-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-grid { padding-block: 34px 24px; }.hero-copy h1 { font-size: clamp(37px,9vw,54px); }.hero-copy>p { margin: 13px 0 20px; font-size: 15px; }
  .featured { aspect-ratio: 1.55; }.hero-actions { gap: 19px; }
  .section-space { padding-block: 38px; }.section-top { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 16px; }
  .filters button { padding: 5px 12px; }.recipe-grid { gap: 18px 12px; }.card-title { font-size: 18px; }.card-meta { font-size: 12px; }
  .camera-section,.about-section { padding-block: 34px; }.portion-tool { padding: 18px; }.version { padding: 18px 0 0; border-left: 0; border-top: 1px solid #c9bfac; }
  .featured-kicker { font-size: 11px; }.slide-controls button { width: 33px; height: 33px; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; }*,*:before,*:after { transition-duration: 0s !important; } }
