body{margin:0}img{max-width:100%}[hidden]{display:none!important}

/* Layout: a family recipe box. A quiet masthead, then index cards you flip through;
   opening one lays the full card on the counter (ingredients beside the steps). */
:root {
  --paper: #ffffff;
  --card: #ffffff;
  --ink: #14305c;
  --muted: #55698a;
  --line: #dbe6f2;
  --tomato: #14305c;
  --scallion: #14305c;
  --chip: #eef5fc;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Karla", "Avenir Next", "Segoe UI", sans-serif;
  color-scheme: light;
}
/* light blue washes (--t) with navy ink (--c) */
.h0, .h3 { --t: #dcebfa; --c: #14305c; }
.h1, .h4 { --t: #eaf3fc; --c: #14305c; }
.h2, .h5 { --t: #cfe2f6; --c: #14305c; }
* { box-sizing: border-box; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 20px; padding-block: 36px 64px; }
a { color: var(--tomato); }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--tomato); outline-offset: 3px; border-radius: 4px; }

/* masthead */
.mast { display: flex; flex-direction: column; gap: 10px; padding-bottom: 28px; }
.mast::after { content: ""; height: 6px; width: 96px; border-radius: 999px; margin-top: 18px; background: #9cc4ec; }
.handle { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.mast h1 { font-family: var(--body); font-weight: 700; font-size: clamp(38px, 7.5vw, 64px); line-height: 1; margin: 0; letter-spacing: -.035em; text-wrap: balance; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.topnav { display: flex; gap: 22px; }
.topnav a { color: var(--ink); font-weight: 700; font-size: 16px; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.topnav a:hover { border-bottom-color: #9cc4ec; }
.mast p { margin: 0; max-width: 56ch; color: var(--muted); font-size: 18px; }

/* controls */
.controls { display: flex; flex-direction: column; gap: 16px; padding-block: 24px; }
.search { position: relative; max-width: 460px; }
.search input { width: 100%; background: var(--chip); border: 1px solid transparent; border-radius: 999px; padding: 12px 18px 12px 44px; }
.search input::placeholder { color: var(--muted); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--chip); border: 1px solid transparent; border-radius: 999px; padding: 7px 14px; cursor: pointer; font-weight: 500; font-size: 15px; }
.chip span { color: var(--muted); font-variant-numeric: tabular-nums; margin-left: 4px; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--tomato); color: #fff; border-color: var(--tomato); }
.chip[aria-pressed="true"] span { color: inherit; opacity: .7; }

/* index cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 10px; text-align: left; background: var(--t); border: 0; border-radius: 18px; padding: 24px 24px 22px; cursor: pointer; transition: transform .15s ease; min-width: 0; }
.card:hover { transform: translateY(-4px); }
.series { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--c); }
.card h2 { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.1; margin: 0; text-wrap: balance; }
.card p { margin: 0; color: var(--ink); opacity: .8; font-size: 15px; }
.card .meta { margin-top: auto; padding-top: 8px; font-size: 14px; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card .meta b { background: var(--c); color: #fff; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.ph { width: calc(100% + 48px); max-width: none; margin: -24px -24px 8px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px 18px 0 0; display: block; }
.hero { display: block; width: auto; height: auto; max-width: 100%; max-height: 680px; border-radius: 18px; margin-top: 16px; }
.about p { font-size: 19px; line-height: 1.6; max-width: 62ch; margin: 20px 0 0; }
.about a { color: var(--ink); font-weight: 700; }
.cform { display: flex; flex-direction: column; gap: 16px; max-width: 560px; margin-top: 24px; }
.cform .hp { position: absolute; left: -9999px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 15px; }
.field input, .field textarea { width: 100%; background: var(--chip); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; color: var(--ink); }
.field textarea { resize: vertical; }
.send { align-self: flex-start; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 12px 24px; font-weight: 700; cursor: pointer; }
.cform .formnote { font-size: 15px; color: var(--muted); margin: 0; }
.aboutgrid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 24px; }
.aboutgrid p:first-child { margin-top: 0; }
.aboutgrid .me { width: 100%; border-radius: 18px; display: block; }
@media (max-width: 720px) { .aboutgrid { grid-template-columns: minmax(0, 1fr); } .aboutgrid .me { max-width: 320px; } }
footer nav { flex-wrap: wrap; }
.empty { border: 1px dashed var(--line); border-radius: 6px; padding: 36px 24px; color: var(--muted); text-align: center; }
.empty strong { display: block; font-family: var(--display); font-size: 22px; color: var(--ink); font-weight: 600; }

/* recipe view */
.back { background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--muted); font-weight: 700; margin-top: 24px; }
.back:hover { color: var(--tomato); }
.recipe header { display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 28px; margin-top: 10px; background: var(--t); border-radius: 18px; }
.recipe h2 { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 6.5vw, 54px); line-height: 1.02; margin: 0; letter-spacing: -.015em; text-wrap: balance; }
.facts { color: var(--ink); font-size: 15px; }
.posted { color: var(--muted); font-size: 14px; }
.draft { background: var(--ink); color: #fff; border-radius: 999px; padding: 2px 8px; margin-left: 6px; letter-spacing: .04em; font-size: 11px; }
.intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; margin-top: 16px; }
.intro .hero { width: 100%; max-height: none; margin-top: 0; }
.intro .story { margin-top: 0; }
@media (max-width: 720px) { .intro { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.story { font-family: var(--display); font-style: normal; font-size: 20px; line-height: 1.45; max-width: 60ch; margin: 24px 0 0; padding-left: 18px; border-left: 4px solid var(--c); }
.cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; padding-top: 28px; }
@media (max-width: 720px) { .cols { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.cols h3 { font-family: var(--display); font-weight: 600; font-size: 24px; margin: 0 0 12px; }
.cols h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--c); margin: 20px 0 8px; }
.cols h4:first-of-type { margin-top: 0; }
.ing { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ing label { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.ing input { accent-color: var(--c); width: 18px; height: 18px; margin-top: 4px; flex: none; }
.ing input:checked + span { color: var(--muted); text-decoration: line-through; }
.shop { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--t); color: var(--c); font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.shop:hover { text-decoration: underline; }
.disc { font-size: 12px; color: var(--muted); margin: 0 0 10px; line-height: 1.5; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 16px; max-width: 62ch; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.2; color: var(--c); font-variant-numeric: tabular-nums; }
.steps.cont { margin-top: 0; }
.tip { margin: 20px 0 0; max-width: 62ch; padding: 14px 16px; background: var(--t); border-radius: 12px; line-height: 1.55; }
.watch { display: inline-flex; align-self: flex-start; background: var(--c); color: #fff; text-decoration: none; font-weight: 700; padding: 10px 18px; border-radius: 999px; margin-top: 6px; }

footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }

a.card { text-decoration: none; color: inherit; }
a.back { display: inline-block; text-decoration: none; }
.mast h1 a { color: inherit; text-decoration: none; }
.mast .sitename { font-family: var(--body); font-weight: 700; font-size: clamp(38px, 7.5vw, 64px); line-height: 1; margin: 0; letter-spacing: -.035em; color: var(--ink); max-width: none; }
.mast .sitename a { color: inherit; text-decoration: none; }
.mast p.sitename { font-size: clamp(30px, 5vw, 44px); }
.recipe .rt { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 6.5vw, 54px); line-height: 1.02; margin: 0; letter-spacing: -.015em; text-wrap: balance; }
.cols .sh { font-family: var(--display); font-weight: 600; font-size: 24px; margin: 0 0 12px; }
.cols .gh { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--c); margin: 20px 0 8px; font-family: var(--body); }
.cols .gh:first-of-type { margin-top: 0; }
a.back { color: var(--muted); font-weight: 700; margin-top: 24px; padding: 6px 0; }
