@font-face {
  font-family: Manrope;
  src: url("assets/Manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --ink: #172334;
  --muted: #59616a;
  --accent: #875b43;
  --pale: #faf6ef;
  --paper: #fff;
  --line: #e0e4e8;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.6 Manrope, Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
button, a, input, select { touch-action: manipulation; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #4167a0; outline-offset: 3px;
}
.wrap { width: calc(100% - 80px); max-width: 1200px; margin-inline: auto; }
.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; font-size: .9375rem; font-weight: 650; white-space: normal; }
.brand img { width: 104px; height: 50px; object-fit: contain; }
.brand-divider { width: 1px; height: 26px; background: var(--line); }
nav { display: flex; gap: 24px; align-items: center; font-size: .875rem; font-weight: 550; }
nav a { text-decoration: none; white-space: nowrap; padding-block: 12px; }
nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero { padding-block: 36px 40px; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 64px; align-items: start; }
.eyebrow { color: var(--accent); font-size: .75rem; font-weight: 650; letter-spacing: .04em; margin: 0 0 10px; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { font-size: 2.5rem; font-weight: 650; line-height: 1.18; letter-spacing: -.035em; margin: 0 0 14px; }
h2 { font-size: 1.75rem; font-weight: 650; line-height: 1.25; letter-spacing: -.025em; margin: 0; }
.intro { color: var(--muted); font-size: 1rem; max-width: 470px; margin: 0 0 24px; }
label { display: block; font-size: .875rem; font-weight: 650; margin: 0 0 7px; }
.ingredient-input { display: flex; align-items: center; gap: 10px; border: 1px solid #abb5c0; border-radius: 6px; padding: 0 13px; background: white; }
.ingredient-input svg { flex-shrink: 0; color: #647385; }
input { width: 100%; min-width: 0; height: 48px; border: 0; background: transparent; color: var(--ink); font-size: 1rem; }
input:focus-visible { outline-offset: 0; }
.input-help { color: var(--muted); font-size: .75rem; margin: 7px 0 10px; }
.suggestions { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.suggestions button { border: 1px solid var(--line); border-radius: 5px; padding: 7px 10px; background: white; font-size: .875rem; white-space: nowrap; min-height: 36px; }
.suggestions button:hover, .suggestions button.selected { background: var(--pale); border-color: #9eafc3; }
.select-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 14px; }
.select-grid > div { min-width: 0; }
select { width: 100%; min-width: 0; height: 46px; border: 1px solid #abb5c0; border-radius: 6px; background: white; padding: 0 10px; color: var(--ink); font-size: .875rem; }
.button, .secondary-button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 44px; border: 1px solid transparent; border-radius: 6px; text-decoration: none; padding: 11px 16px; font-size: .875rem; font-weight: 650; white-space: normal; }
.primary { background: var(--ink); color: white; }
.primary:hover { background: #2d415b; }
.secondary-button { background: white; border-color: #c5cdd6; }
.secondary-button:hover { background: var(--pale); border-color: #8598b1; }
.find-button { width: 100%; margin-top: 17px; justify-content: space-between; }
.find-button span { font-size: 1.25rem; line-height: 1; }
.hero-visual { min-width: 0; padding-top: 3px; }
.hero-photo { position: relative; aspect-ratio: 3 / 2; max-height: 300px; overflow: hidden; border-radius: 8px; background: var(--pale); }
.hero-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.daily-caption { background: #fcf8f1; border-bottom: 2px solid #cbb28f; padding: 18px 20px; margin-top: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.daily-caption .eyebrow { margin-bottom: 7px; }
.daily-caption h2 { font-size: 1.25rem; line-height: 1.35; letter-spacing: -.02em; }
.recipe-meta { color: var(--muted); font-size: .8125rem; margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.recipes-section { border-top: 1px solid var(--line); padding-top: 32px; padding-bottom: 44px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-heading > div { min-width: 0; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; flex-wrap: wrap; }
.text-button { border: 0; background: transparent; padding: 10px 0; font-size: .875rem; text-decoration: underline; text-underline-offset: 4px; }
.result-message { color: var(--muted); font-size: .875rem; margin: 16px 0 24px; max-width: 920px; }
.recipe-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px 24px; align-items: stretch; }
.recipe-card { min-width: 0; display: flex; flex-direction: column; }
.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 216px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--pale);
  flex-shrink: 0;
}
.card-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-height: 216px;
  object-fit: cover;
}
.type-cover { width: 100%; height: 100%; background: #f6f2ea; padding: 22px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.type-cover small { font-size: .75rem; color: var(--muted); }
.type-cover strong { font-size: 1.5rem; font-weight: 600; line-height: 1.25; letter-spacing: -.025em; }
.type-cover span { display: none; }
.card-content { display: flex; flex-direction: column; flex: 1; padding-top: 14px; }
.card-category { color: var(--muted); font-size: .75rem; font-weight: 550; margin: 0 0 6px; }
.card-title { font-size: 1.125rem; font-weight: 700; line-height: 1.4; letter-spacing: -.02em; margin: 0; }
.card-description { color: var(--muted); font-size: 1rem; line-height: 1.55; margin: 9px 0 16px; }
.card-bottom { border-top: 1px solid var(--line); padding-top: 12px; margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card-bottom .recipe-meta { margin: 0; }
.card-read { padding: 9px 12px; min-height: 40px; }
.empty-state { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 7px; padding: 24px; }
.empty-state h3 { font-size: 1.25rem; font-weight: 650; margin: 0 0 10px; }
.empty-state p { max-width: 640px; color: var(--muted); margin: 0 0 8px; }
.community { border-top: 1px solid var(--line); margin-bottom: 32px; padding-block: 28px 10px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 32px; align-items: center; }
.community-copy h2 { font-size: 1.375rem; }
.community-copy p:not(.eyebrow) { color: var(--muted); font-size: 1rem; margin: 10px 0 0; max-width: 540px; }
.community .eyebrow { margin-bottom: 7px; }
.channel-note { color: var(--muted); font-size: .875rem; }
footer { border-top: 1px solid var(--line); padding: 26px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: .8125rem; color: var(--muted); }
footer strong { color: var(--ink); font-size: .875rem; font-weight: 700; }
footer p { margin: 7px 0; }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer-links a, .footer-links button { font-size: .8125rem; }
.footer-small { grid-column: 1 / -1; font-size: .75rem; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 10; background: white; padding: 12px; }
.skip-link:focus { top: 16px; }
dialog { border: 1px solid var(--line); border-radius: 10px; padding: 0; width: calc(100% - 40px); max-width: 840px; max-height: 90dvh; overflow: auto; color: var(--ink); background: white; box-shadow: 0 8px 36px #17233426; }
dialog::backdrop { background: #17233480; }
.dialog-close { position: sticky; top: 12px; float: right; margin: 12px 12px -54px 0; z-index: 2; width: 42px; height: 42px; border: 1px solid #c5cdd6; border-radius: 6px; background: white; font-size: 1.125rem; }
.detail-image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; max-height: 280px; object-fit: cover; }
.dialog-body { padding: 30px 36px; }
.dialog-body h2 { font-size: 1.75rem; max-width: 680px; padding-right: 20px; }
.detail-description { color: var(--muted); font-size: 1rem; }
.detail-columns { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 32px; margin-top: 26px; }
.detail-columns h3 { font-size: 1.125rem; margin-top: 0; }
.ingredients-list { list-style: none; padding: 0; margin: 0; }
.ingredients-list li { border-bottom: 1px solid var(--line); padding: 9px 0; font-size: 1rem; }
.steps-list { padding-left: 21px; margin: 0; }
.steps-list li { font-size: 1rem; padding: 0 0 17px 7px; }
.steps-list li::marker { font-weight: 700; color: var(--accent); }
.recipe-note { border-left: 2px solid #cbb28f; padding: 10px 16px; font-size: .875rem; margin-top: 24px; }
.copy-row { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.copy-row p { font-size: .8125rem; color: var(--muted); margin: 0; max-width: 250px; }
.manual-copy { margin-top: 18px; }
.manual-copy textarea { width: 100%; height: 240px; padding: 14px; font-size: .875rem; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); background: var(--ink); color: white; padding: 13px 22px; border-radius: 6px; font-size: .875rem; z-index: 20; }
body.modal-open { overflow: hidden; }
.hero-photo > .type-cover { padding: 28px; }
.hero-photo > .type-cover strong { font-size: 1.75rem; }
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 48px); }
  .hero { gap: 32px; }
  nav { gap: 16px; }
  h1 { font-size: 2.125rem; }
  .select-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .hero-photo { max-height: 260px; }
  .recipe-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .section-heading { align-items: flex-start; }
  .section-actions { flex-shrink: 0; flex-direction: column; align-items: flex-end; gap: 8px; }
  .community { grid-template-columns: minmax(0,1fr); gap: 20px; }
}
@media (max-width: 740px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { min-height: 76px; gap: 16px; }
  .brand { gap: 10px; font-size: .875rem; }
  .brand img { width: 88px; height: 42px; }
  .brand-divider { height: 23px; }
  nav > a:not(.nav-community) { display: none; }
  nav { font-size: .875rem; }
  .hero { display: flex; flex-direction: column; padding-block: 24px 30px; gap: 28px; }
  .hero-content, .hero-visual { width: 100%; }
  .hero-visual { padding: 0; }
  h1 { font-size: 2rem; line-height: 1.2; margin-bottom: 12px; }
  .intro { margin-bottom: 20px; }
  .select-grid { grid-template-columns: minmax(0,1fr); gap: 13px; }
  select { font-size: 1rem; }
  .suggestions { gap: 6px; margin-bottom: 18px; }
  .hero-photo { max-height: 220px; }
  .daily-caption { padding: 16px; gap: 13px; }
  .daily-caption h2 { font-size: 1.1875rem; }
  h2 { font-size: 1.5rem; }
  .recipes-section { padding-block: 26px 32px; }
  .section-heading { flex-direction: column; align-items: stretch; gap: 16px; }
  .section-actions { flex-direction: row; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
  .result-message { margin-block: 15px 20px; }
  .recipe-grid { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .card-media, .card-image { max-height: 200px; }
  .card-content { padding-top: 12px; }
  .card-title { font-size: 1.1875rem; }
  .card-description { margin-block: 8px 13px; }
  .community { padding-block: 24px 0; margin-bottom: 26px; gap: 18px; }
  .community-copy h2 { font-size: 1.25rem; }
  #channel-link { gap: 0; padding-inline: 12px; max-width: 100%; font-size: .875rem; }
  footer { grid-template-columns: minmax(0,1fr); padding-top: 24px; }
  .footer-links { align-items: flex-start; margin-top: 8px; }
  dialog { width: calc(100% - 20px); max-height: 94dvh; border-radius: 8px; }
  .dialog-body { padding: 24px 20px; }
  .dialog-body h2 { font-size: 1.5rem; }
  .detail-image { max-height: 200px; }
  .detail-columns { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .copy-row { gap: 12px; }
  .copy-row p { max-width: 100%; }
  #copy-recipe { padding-inline: 12px; }
}
@media (max-width: 370px) {
  .brand-divider, .brand > span:last-child { display: none; }
  .card-bottom { gap: 8px; }
  .card-read { padding-inline: 10px; }
}
/* Text enlargement can wrap controls onto separate rows without clipping. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
