@font-face {
  font-family: Fraunces;
  src: url("https://recipes.bryannalarcon.com/assets/fraunces.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Nunito;
  src: url("https://recipes.bryannalarcon.com/assets/nunito.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --oat: #faf7ef;
  --ink: #292923;
  --herb: #51634d;
  --fur: #c99f87;
  --gold: #e7bb47;
  --warning: #8a493b;
  --paper: #fffefa;
  --line: #d8d5c8;
  --muted: #66675b;
  --scroll-offset: 24px;
  font-family: Nunito, ui-rounded, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--oat);
}

* { box-sizing: border-box; }
html { scroll-padding-top: var(--scroll-offset); }
body { margin: 0; }
button, input, select { font: inherit; }
button, select { min-height: 44px; }
button { cursor: pointer; }
button:disabled { cursor: wait; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--herb); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
p, ul, ol, dl { margin: 0 0 1em; }
p:last-child, ul:last-child, ol:last-child, dl:last-child { margin-bottom: 0; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; line-height: 1.2; font-weight: 600; text-wrap: balance; }
h1 { margin: 0 0 20px; font-size: clamp(2.3rem, 5vw, 3.55rem); letter-spacing: -.035em; }
h2 { margin: 0 0 18px; font-size: clamp(1.55rem, 3vw, 2rem); letter-spacing: -.025em; }
h3 { margin: 0 0 10px; font-size: 1.22rem; }
strong { font-weight: 800; }
small { font-size: .82rem; }
:focus-visible { outline: 3px solid var(--warning); outline-offset: 4px; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 0; }
.icon { width: 24px; height: 24px; flex: 0 0 24px; vertical-align: middle; }
.skip { position: absolute; left: 16px; top: 10px; z-index: 10; padding: 12px 18px; background: var(--ink); color: white; border-radius: 12px; transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }

.masthead { max-width: 1180px; margin: auto; padding: 28px 30px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; font-family: Fraunces, Georgia, serif; font-size: 1.28rem; font-weight: 600; line-height: 1.2; }
.brand img { width: 62px; height: 62px; object-fit: contain; flex: 0 0 62px; }
.brand small { display: block; margin-top: 6px; font-family: Nunito, sans-serif; font-size: .77rem; font-weight: 600; color: var(--muted); }
.collection-link { display: inline-flex; min-height: 44px; align-items: center; white-space: nowrap; font-size: .9rem; font-weight: 800; }
.footer { max-width: 1120px; margin: 36px auto 0; padding: 28px 0 42px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; }

.recipe-layout { max-width: 1120px; margin: 46px auto 0; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 44px; align-items: start; }
.recipe-layout main { min-width: 0; }
.rail { position: sticky; top: 24px; font-size: .88rem; }
.rail-title { margin: 0 0 14px 12px; color: var(--muted); font-weight: 800; }
.rail nav { display: grid; gap: 5px; }
.rail nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 700; }
.rail nav a:hover { background: #eeeee3; }
.rail nav a[aria-current], .rail nav a.active { background: var(--herb); color: white; }
.awake-control { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.awake-control button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 12px; text-align: left; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; line-height: 1.35; font-size: .83rem; font-weight: 800; }
.awake-control p { font-size: .76rem; line-height: 1.45; margin: 10px 12px 0; color: var(--muted); }
button[aria-pressed="true"] { background: var(--herb); color: white; border-color: var(--herb); }
.mobile-tools { display: none; }

.recipe-intro { padding: 4px 10px 32px; }
.dish-label { margin: 0 0 14px; color: var(--herb); font-size: .86rem; font-weight: 800; }
.lede { max-width: 64ch; font-size: 1.06rem; }
.recipe-meta { display: flex; flex-wrap: wrap; gap: 20px 32px; margin-top: 24px; font-size: .86rem; font-weight: 800; line-height: 1.5; }
.recipe-meta > span { padding-left: 34px; position: relative; }
.recipe-meta .icon { position: absolute; left: 0; top: 2px; color: var(--herb); }
.recipe-meta small { color: var(--muted); font-weight: 600; }
.safety-panel { padding: 28px 30px; border: 1px solid #d4b6a5; border-radius: 24px; background: #f4e9de; }
.safety-panel h2 { display: flex; align-items: center; gap: 10px; color: var(--warning); }
.safety-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; font-size: .94rem; }
.safety-grid h3 { font-size: 1.13rem; }
.safety-bottom { border-top: 1px solid #d4b6a5; margin-top: 22px; padding-top: 18px; }
details { margin-top: 18px; }
summary { min-height: 44px; padding: 8px 0; cursor: pointer; font-size: .88rem; font-weight: 800; }
details ul { padding-left: 24px; }
details li { margin: 12px 0; }
details a, .sources a { overflow-wrap: anywhere; }
details p { font-size: .84rem; }
.reading-section { padding: 38px 10px; border-bottom: 1px solid var(--line); }
.reading-section:last-child { border: 0; }
.ingredients-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; }
.ingredients-heading h2 { margin-bottom: 10px; }
.text-button { background: none; border: none; padding: 8px 0 8px 12px; color: var(--herb); text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; font-size: .82rem; font-weight: 800; }
.section-note { color: var(--muted); font-size: .86rem; }
.onion-guide { display: flex; align-items: center; gap: 20px; margin: 24px 0; padding: 16px 20px; border-radius: 18px; background: #ebeee3; }
.onion-guide > svg { width: 185px; flex: 0 0 185px; }
.onion-guide p { font-size: .88rem; line-height: 1.5; }
.ingredients-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; list-style: none; padding: 0; margin: 0 0 22px; }
.ingredient { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 8px; align-items: start; border-bottom: 1px solid var(--line); padding: 15px 0; }
.ingredient-icon { color: var(--herb); padding-top: 9px; }
.ingredient-icon .icon { width: 30px; height: 30px; }
.ingredient label { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; cursor: pointer; font-size: .91rem; line-height: 1.5; padding-top: 7px; }
input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--herb); flex: 0 0 22px; margin: 3px 0 0; cursor: pointer; }
.ingredient:has(input:checked) label > span, .steps li:has(input:checked) > div { text-decoration: line-through; text-decoration-color: var(--herb); }
.shop-link { grid-column: 2; width: fit-content; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-left: 32px; font-size: .74rem; font-weight: 800; }
.shop-link .icon { width: 17px; height: 17px; flex-basis: 17px; }

.section-heading { display: flex; align-items: flex-start; gap: 16px; }
.stage-number { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; border-radius: 16px; color: var(--ink); background: var(--gold); font-family: Fraunces, Georgia, serif; font-size: 1.4rem; font-weight: 600; }
.section-heading h2 { margin: 0 0 8px; }
.make-when { color: var(--herb); font-size: .9rem; font-weight: 800; margin: 0; }
.timing { display: flex; align-items: flex-start; gap: 9px; width: fit-content; max-width: 100%; margin: 20px 0 26px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 18px; font-size: .82rem; line-height: 1.5; }
.timing .icon { width: 20px; height: 20px; flex-basis: 20px; margin-top: 1px; color: var(--herb); }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; margin: 0 0 24px; }
.step-check { display: flex; flex-direction: column; align-items: center; gap: 5px; min-height: 44px; cursor: pointer; }
.step-check input { margin-top: 4px; }
.step-check span { font-family: Fraunces, Georgia, serif; color: var(--herb); font-size: 1.05rem; line-height: 1.3; }
.steps li > div { padding-top: 0; }
.tip { margin: 28px 0 0; padding: 14px 18px; border-left: 4px solid var(--herb); border-radius: 0 12px 12px 0; background: #ebeee3; font-size: .9rem; }
.equipment { margin-bottom: 26px; font-size: .93rem; }
.portion-note { margin: 30px 0 24px; padding: 24px; border-radius: 20px; background: #f0e3d6; }
.portion-note p { font-size: .93rem; }
.nutrition { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 24px; margin: 24px 0 18px; }
.nutrition > div { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.nutrition dt { font-size: .8rem; color: var(--muted); }
.nutrition dd { margin: 2px 0 0; font-size: 1rem; font-weight: 800; }
.sources { font-size: .86rem; }

.chart-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 20px; padding: 20px; margin: 24px 0; background: #ebeee3; border-radius: 18px; }
.chart-controls label { display: grid; gap: 6px; font-size: .82rem; font-weight: 800; min-width: 0; }
.chart-controls input, .chart-controls select { width: 100%; max-width: 100%; min-height: 44px; background: var(--paper); border: 1px solid #858b7c; border-radius: 10px; padding: 8px 10px; color: var(--ink); }
.chart-controls input[type="number"] { width: 170px; }
.chart-controls button { padding: 8px 14px; border: 1px solid var(--herb); border-radius: 10px; background: var(--paper); color: var(--herb); font-weight: 800; }
.chart-controls button[aria-pressed="true"] { background: var(--herb); color: white; }
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 24px 0; }
.chart-panel { min-width: 0; padding: 18px 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.chart-panel h3 { margin: 0 0 10px; font-size: 1.1rem; }
.chart-panel svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-panel svg text { font-family: Nunito, sans-serif; fill: var(--ink); }
.chart-panel p { font-size: .78rem; line-height: 1.5; margin: 10px 0 0; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 20px 0; padding: 0; list-style: none; font-size: .79rem; }
.chart-legend > * { display: flex; align-items: center; gap: 7px; }
.chart-legend i, .chart-legend .swatch { display: inline-block; width: 13px; height: 13px; flex: 0 0 13px; border-radius: 4px; border: 1px solid #29292350; }
.chart-notice, .joint-summary { margin: 20px 0; padding: 18px 20px; border-radius: 16px; background: #f4e9de; font-size: .87rem; overflow-wrap: anywhere; }
.joint-summary { background: #ebeee3; border-left: 4px solid var(--herb); }
.joint-summary h3 { font-size: 1.15rem; }
.chart-table { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; margin: 24px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.chart-table table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: .8rem; }
.chart-table caption { text-align: left; padding: 14px 16px; font-weight: 800; }
.chart-table th, .chart-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.chart-table th { background: #ebeee3; font-weight: 800; }
.chart-table tr:last-child td { border-bottom: 0; }
#chart-root a { overflow-wrap: anywhere; }

.dashboard { max-width: 940px; margin: 64px auto 72px; }
.dashboard-intro { display: flex; align-items: center; gap: 42px; margin-bottom: 54px; }
.dashboard-murphy { width: 155px; height: 155px; flex: 0 0 155px; object-fit: contain; }
.dashboard-intro h1 { font-size: clamp(2.5rem, 5vw, 3.7rem); }
.dashboard-intro p:last-child { max-width: 47ch; color: var(--muted); }
.collection-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin: 0 0 20px; }
.collection-heading h2 { margin: 0; font-size: 1.6rem; }
.collection-heading > span { color: var(--muted); font-size: .86rem; white-space: nowrap; }
.recipe-card { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 32px; align-items: center; padding: 30px; border: 1px solid #c0c9b5; border-radius: 26px; background: var(--paper); color: var(--ink); text-decoration: none; }
.recipe-card:hover { border-color: var(--herb); }
.dish-art { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 8px; align-self: stretch; min-height: 210px; border-radius: 50% 50% 40% 40%; background: #e8eddd; color: var(--herb); }
.dish-art .icon { width: 62px; height: 62px; flex: 0 0 62px; stroke-width: 1.35; }
.dish-art .icon:first-child { width: 90px; height: 90px; flex-basis: 90px; color: var(--warning); }
.recipe-category { color: var(--herb); font-size: .8rem; font-weight: 800; }
.recipe-card h3 { margin: 8px 0 14px; font-size: 1.8rem; }
.recipe-card p { font-size: .94rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 18px 0; font-size: .76rem; color: var(--muted); }
.open-recipe { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 800; color: var(--herb); }
.dashboard-note { margin: 24px 0 0; text-align: center; color: var(--muted); font-size: .86rem; }

@media (max-width: 1190px) {
  .recipe-layout, .footer { margin-right: 30px; margin-left: 30px; }
  .dashboard { margin-right: 40px; margin-left: 40px; }
  .recipe-layout { gap: 30px; }
  .ingredients-list { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --scroll-offset: 104px; }
  .masthead { padding: 20px 24px; }
  .recipe-layout { display: block; margin: 0 24px; }
  .rail { display: none; }
  .mobile-tools { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 10px; position: sticky; top: 0; z-index: 5; margin: 0 -24px 28px; padding: 10px 24px 6px; border-bottom: 1px solid var(--line); background: var(--oat); }
  .mobile-tools > label { font-size: .76rem; font-weight: 800; }
  .mobile-tools select { min-width: 0; width: 100%; padding: 8px 28px 8px 10px; border: 1px solid #858b7c; border-radius: 12px; background: var(--paper); color: var(--ink); font-size: .85rem; }
  .mobile-tools button { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 10px; border: 1px solid #858b7c; border-radius: 12px; background: var(--paper); color: var(--ink); font-size: .78rem; font-weight: 800; }
  .mobile-tools button[aria-pressed="true"] { background: var(--herb); color: white; }
  .mobile-tools .icon { width: 20px; height: 20px; flex-basis: 20px; }
  .mobile-status { grid-column: 2 / 4; min-width: 0; font-size: .68rem; line-height: 1.3; padding: 4px 0 0; text-align: right; color: var(--muted); overflow-wrap: anywhere; }
  .recipe-intro { padding-top: 0; }
  .footer { margin-right: 24px; margin-left: 24px; }
  .dashboard { margin-top: 42px; }
}

@media (max-width: 600px) {
  .masthead { padding: 16px; gap: 12px; }
  .brand { gap: 9px; font-size: 1.03rem; }
  .brand small { font-size: .66rem; }
  .collection-link { font-size: .75rem; }
  .recipe-layout { margin-right: 16px; margin-left: 16px; }
  .mobile-tools { margin-right: -16px; margin-left: -16px; padding-right: 16px; padding-left: 16px; gap: 0 7px; }
  .mobile-tools > label { font-size: .7rem; }
  .mobile-tools select { font-size: .78rem; }
  .mobile-tools button { min-width: 44px; padding: 8px; }
  .mobile-tools button span { display: none; }
  .recipe-intro { padding-right: 2px; padding-left: 2px; }
  h1 { font-size: 2.35rem; }
  .lede { font-size: 1rem; }
  .recipe-meta { display: grid; gap: 16px; }
  .safety-panel { padding: 23px 20px; }
  .safety-grid { grid-template-columns: 1fr; gap: 20px; }
  .reading-section { padding: 32px 2px; }
  .ingredients-heading { align-items: flex-start; gap: 10px; }
  .ingredients-heading h2 { max-width: 10em; }
  .text-button { white-space: normal; text-align: right; line-height: 1.4; max-width: 85px; flex: 0 0 85px; }
  .onion-guide { display: block; padding: 16px; }
  .onion-guide > svg { display: block; width: 190px; margin: 0 auto 10px; }
  .ingredient label { font-size: .95rem; }
  .section-heading { gap: 12px; }
  .stage-number { width: 40px; height: 42px; flex-basis: 40px; border-radius: 14px; }
  .steps li { gap: 10px; grid-template-columns: 34px minmax(0, 1fr); }
  .step-check { width: 44px; margin-left: -5px; }
  .portion-note { padding: 20px; }
  .nutrition { grid-template-columns: repeat(2, 1fr); gap: 14px 20px; }
  .chart-grid { grid-template-columns: 1fr; gap: 16px; }
  .chart-controls { padding: 16px; gap: 14px; }
  .chart-controls > * { max-width: 100%; }
  .chart-notice, .joint-summary { padding: 16px; }
  .footer { margin-right: 16px; margin-left: 16px; padding-bottom: 26px; }
  .dashboard { margin: 32px 18px 46px; }
  .dashboard-intro { display: block; margin-bottom: 36px; }
  .dashboard-murphy { margin: 0 auto 24px; }
  .dashboard-intro h1 { font-size: 2.65rem; }
  .collection-heading h2 { font-size: 1.35rem; }
  .collection-heading > span { font-size: .75rem; }
  .recipe-card { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
  .dish-art { min-height: 140px; max-width: 220px; width: 100%; margin: auto; }
  .recipe-card h3 { font-size: 1.7rem; }
  .dashboard-note { text-align: left; }
}

@media (max-height: 500px) {
  :root { --scroll-offset: 16px; }
  .mobile-tools, .rail { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}

@media print {
  :root { font-size: 11pt; background: white; color: black; --scroll-offset: 0px; }
  body { background: white; }
  .masthead { padding: 0 0 16px; border-bottom: 1px solid #aaa; }
  .brand img { width: 44px; height: 44px; flex-basis: 44px; }
  .rail, .mobile-tools, .collection-link, .skip, .text-button, .shop-link, .footer, .chart-controls { display: none !important; }
  .recipe-layout, .dashboard { display: block; max-width: none; margin: 20px 0 0; }
  h1 { font-size: 28pt; }
  h2 { font-size: 20pt; break-after: avoid; }
  h3 { break-after: avoid; }
  .recipe-intro { padding: 0 0 20px; }
  .safety-panel, .onion-guide, .portion-note, .tip, .chart-notice, .joint-summary { background: white; border: 1px solid #aaa; }
  .safety-panel { padding: 16px; }
  .reading-section { padding: 24px 0; }
  .ingredients-list { grid-template-columns: 1fr 1fr; }
  .ingredient, .steps li, .safety-grid > div, .chart-panel { break-inside: avoid; }
  .steps li { margin-bottom: 16px; }
  .ingredient:has(input:checked) label > span, .steps li:has(input:checked) > div { text-decoration: none; }
  .timing { border: 0; padding-left: 0; }
  .chart-grid { grid-template-columns: 1fr 1fr; }
  .chart-table { overflow: visible; border-radius: 0; }
  .chart-table table { min-width: 0; font-size: 8pt; }
  .chart-table th, .chart-table td { padding: 6px; overflow-wrap: anywhere; }
  .chart-panel svg { max-height: 220px; }
  a { color: black; }
  .sources { font-size: 9pt; }
  @page { margin: 16mm; }
}
