:root {
  color-scheme: light;
  color: #2b171e;
  background: #f9f4ed;
  font: 100%/1.65 system-ui, sans-serif;
  --paper: #f9f4ed;
  --ink: #2b171e;
  --wine: #651e38;
  --wine-dark: #431326;
  --muted: #624d52;
  --line: #d9c6c2;
  --rose: #eeddd8;
  --serif: Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--wine); text-underline-offset: .24em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 5px; }
.shell { width: min(calc(100% - 5rem), 76rem); margin-inline: auto; }
.skip { position: absolute; z-index: 2; left: 1rem; top: -10rem; background: var(--paper); padding: .6rem 1rem; }
.skip:focus { top: 1rem; }
.top { border-top: 4px solid var(--wine); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; min-height: 5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font: bold clamp(1.25rem, 3vw, 1.75rem)/1 var(--serif); color: var(--ink); text-decoration: none; white-space: nowrap; letter-spacing: -.035em; }
.brand em { color: var(--wine); font-weight: normal; }
.brand-mark { display: inline-grid; place-items: center; width: 1.95rem; height: 1.95rem; border-radius: 50%; color: #fff5ef; background: var(--wine); font: 1rem/1 system-ui, sans-serif; }
.top nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(1rem, 3vw, 2.75rem); font-size: .875rem; font-weight: 650; }
.top nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.top nav a:hover, .top nav [aria-current="page"] { text-decoration: underline; }
.eyebrow { margin: 0; color: var(--wine); font-size: .7rem; font-weight: 750; letter-spacing: .145em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.85rem, 6.35vw, 6.1rem); letter-spacing: -.062em; }
h2 { font-size: clamp(1.95rem, 3.85vw, 3.7rem); letter-spacing: -.047em; }
h3 { font-size: clamp(1.6rem, 2.5vw, 2.15rem); letter-spacing: -.035em; }
.hero-home { display: grid; grid-template-columns: .94fr 1.06fr; align-items: center; gap: clamp(2rem, 5vw, 5.5rem); padding-block: clamp(2rem, 5vw, 5rem); }
.hero-kicker { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.2rem; }
.hero-kicker::before { content: ''; width: 1.75rem; height: 1px; flex: none; background: var(--wine); }
.hero h1 em { color: var(--wine); font-weight: 400; }
.intro { max-width: 34ch; margin-block: 1.25rem 1.6rem; color: var(--muted); font-size: clamp(1.025rem, 1.45vw, 1.18rem); }
.draft { display: flex; align-items: center; gap: .45rem; margin: 1.1rem 0 0; color: var(--muted); font-size: .78rem; }
.draft span { width: .42rem; height: .42rem; border-radius: 50%; background: #a55f67; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: .85rem; min-height: 3.25rem; padding: .7rem 1.15rem; background: var(--wine); color: #fff7f1; border-radius: .25rem; text-decoration: none; font-size: .9rem; font-weight: 680; }
.button:hover { background: var(--wine-dark); }
.hero-photo { min-width: 0; margin: 0; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; background: #e9ccc3; border-radius: .45rem; }
.hero-photo figcaption { display: flex; justify-content: space-between; gap: .75rem; margin-top: .7rem; color: var(--muted); font-size: .68rem; letter-spacing: .105em; text-transform: uppercase; }
.hero-interior { margin-top: 1.6rem; padding: clamp(1.35rem, 5vw, 4.25rem); background: #f1e3db; border-radius: .45rem; }
.hero-interior h1 { max-width: 16ch; font-size: clamp(2.65rem, 5.9vw, 5.45rem); }
.hero-interior .intro { max-width: 61ch; margin-bottom: 0; }
.featured { border-block: 1px solid var(--line); padding-block: clamp(1.7rem, 3.6vw, 3.1rem); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: .85rem 2rem; margin-bottom: 1.35rem; }
.section-heading .eyebrow, .article-heading .eyebrow { margin-bottom: .35rem; }
.text-link { font-size: .9rem; font-weight: 650; }
.featured-list, .cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin: 0; }
.ingredient-link { height: 100%; display: grid; grid-template-columns: 2.2rem 1fr auto; align-items: center; gap: .7rem; padding: 1rem; border: 1px solid var(--line); border-radius: .35rem; background: #f1e3de; color: var(--wine-dark); text-decoration: none; }
.featured-list li:nth-child(2) .ingredient-link { background: #eee7f0; }
.featured-list li:nth-child(3) .ingredient-link { background: #f1e9d7; }
.ingredient-link:hover { border-color: var(--wine); }
.ingredient-link strong { display: block; font: 400 clamp(1.2rem, 2.1vw, 1.7rem)/1.15 var(--serif); }
.ingredient-link small { display: block; margin-top: .23rem; color: var(--muted); }
.ingredient-number { display: grid; place-items: center; height: 2.2rem; border: 1px solid #af8c96; border-radius: 50%; font-size: .7rem; font-weight: 700; }
.ingredient-arrow { font-size: 1rem; }
.article-layout { padding-block: clamp(2rem, 5vw, 4.25rem); }
.home .article-layout { display: grid; grid-template-columns: minmax(14rem, .85fr) 1.5fr; gap: clamp(1.5rem, 6vw, 6rem); }
.article-body { max-width: 50rem; }
.article-section { max-width: 50rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.article-section + .article-section { padding-top: 1.5rem; }
.article-section p { max-width: 68ch; }
.article-section p:last-child { margin-bottom: 0; }
.article-link, .source a { font-weight: 650; }
.source { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .55rem; font-size: .8rem; }
.source span { padding: .12rem .4rem; background: var(--rose); color: var(--wine-dark); border-radius: .18rem; font-weight: 650; }
.catalog { margin-top: clamp(1.8rem, 4vw, 3.5rem); }
.filters { display: flex; flex-wrap: wrap; gap: .85rem 1.2rem; margin-top: 1.2rem; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: .35rem; background: #f3eae3; }
.filters label { display: grid; align-content: start; gap: .25rem; max-width: 100%; font-size: .86rem; font-weight: 680; }
.filters label:first-child { flex: 1; min-width: min(100%, 14rem); }
input, select { min-width: 0; max-width: 100%; min-height: 2.75rem; padding: .4rem .6rem; color: var(--ink); background: #fffdfa; border: 1px solid #84656f; border-radius: .25rem; font: inherit; font-size: 1rem; font-weight: 400; }
input::placeholder { color: #79636b; }
#result-count { margin: .7rem 0; color: var(--muted); font-size: .875rem; }
.card { min-width: 0; padding: clamp(1rem, 2vw, 1.65rem); border: 1px solid var(--line); border-top: 3px solid #9c596c; border-radius: .35rem; background: #fffaf5; scroll-margin-top: 1rem; }
.card:target { outline: 2px solid var(--wine); outline-offset: 3px; }
.card h3 { margin-top: .65rem; }
.card p:last-child { margin-bottom: 0; }
.label-name { color: var(--muted); font-weight: 650; }
.related, .footer-links { display: flex; flex-wrap: wrap; gap: .55rem 1.25rem; list-style: none; padding: 0; margin-block: 0; }
.footer { margin-top: 2rem; padding-block: 2rem 2.4rem; background: var(--wine-dark); color: #f9e9e4; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.45fr; gap: 1.35rem 2.75rem; }
.footer p { max-width: 29ch; margin-bottom: 0; font-size: .875rem; }
.footer a, .footer .brand em { color: #fff3ef; }
.footer .brand-mark { background: #f7ded8; color: var(--wine-dark); }
.footer a:focus-visible { outline-color: #fff3ef; }
.footer-links { font-size: .875rem; }
.footer-links [aria-current="page"] { font-weight: 750; }
@media (max-width: 900px) {
  .shell { width: min(calc(100% - 3rem), 76rem); }
  .ingredient-link { grid-template-columns: 1fr auto; }
  .ingredient-number { display: none; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 2rem); }
  .top-inner { min-height: 3.8rem; gap: .45rem; }
  .top nav { gap: .65rem; font-size: .76rem; }
  .top nav .header-method { display: none; }
  .brand-mark { width: 1.55rem; height: 1.55rem; font-size: .8rem; }
  .hero-home, .home .article-layout, .footer-inner { grid-template-columns: 1fr; }
  .hero-home { gap: 1.45rem; }
  .hero-photo img { aspect-ratio: 3 / 2; }
  .featured-list, .cards { grid-template-columns: 1fr; }
  .ingredient-link { grid-template-columns: 2.2rem 1fr auto; }
  .ingredient-number { display: grid; }
}
