:root {
  color-scheme: light;
  --paper: #f6f2e9;
  --ink: #292820;
  --muted: #6d695e;
  --rust: #a03e25;
  --rule: #d5cdbf;
  --serif: Georgia, "Times New Roman", serif;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.6; }
a { color: inherit; text-underline-offset: .2em; }
button, input { font: inherit; }
button { cursor: pointer; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }
::selection { background: #e7c9b8; color: var(--ink); }
[hidden] { display: none !important; }
.index-page, .recipe-page { width: min(1100px, calc(100% - 96px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: 8px; left: 16px; padding: 10px 16px; background: var(--ink); color: var(--paper); transform: translateY(-180%); z-index: 1; }
.skip-link:focus { transform: translateY(0); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(3rem, 5.8vw, 5.2rem); line-height: 1.04; letter-spacing: -.055em; margin: 0; }
.index-page { max-width: 820px; padding-block: clamp(40px, 8vw, 96px) 80px; }
.search-field { position: relative; }
input[type="search"] { display: block; width: 100%; min-height: 76px; border: 1px solid #b9ac9a; border-radius: 999px; padding: 19px 72px 19px 30px; background: #fcfaf5; color: var(--ink); font-size: clamp(1.15rem, 2.5vw, 1.5rem); appearance: none; }
input[type="search"]::-webkit-search-cancel-button { display: none; }
input[type="search"]::-webkit-search-decoration { display: none; }
input::placeholder { color: #716b61; opacity: 1; }
input[aria-invalid="true"] { border-color: var(--rust); }
#clear-filter { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.8rem; line-height: 1; }
#clear-filter:hover { color: var(--rust); background: #eee5d9; }
.filter-error { color: var(--rust); font-size: .8rem; line-height: 1.6; }
.filter-error:empty { display: none; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 42px; }
.tag { border: 1px solid var(--rule); border-radius: 999px; background: transparent; padding: 9px 16px; min-height: 44px; color: var(--ink); font-size: .78rem; overflow-wrap: anywhere; }
.tag:hover { color: var(--rust); border-color: var(--rust); background: #eee5d9; }
.tag[aria-pressed="true"] { background: var(--rust); border-color: var(--rust); color: #fffaf1; }
.recipe-list { list-style: none; padding: 0; margin: 0; }
.recipe { border-bottom: 1px solid var(--rule); }
.recipe > a { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 24px 0; text-decoration: none; overflow-wrap: anywhere; min-width: 0; }
.recipe > a::after { content: "\2197"; font: 1rem/1 sans-serif; color: var(--rust); flex-shrink: 0; transition: transform .15s; }
.recipe > a:hover { color: var(--rust); }
.recipe > a:hover::after { transform: translate(2px, -2px); }
.recipe-summary { display: block; min-width: 0; }
.recipe-title { font: 1.6rem/1.3 var(--serif); letter-spacing: -.025em; }
.recipe-tags { display: flex; flex-wrap: wrap; gap: 6px 12px; font: .7rem/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; color: var(--muted); }
.recipe-tags:not(:empty) { margin-top: 10px; }
.recipe-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; margin-top: 10px; font: .88rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; color: var(--muted); white-space: normal; }
mark { background: transparent; color: var(--rust); font-weight: 700; }
#no-results { margin-block: 40px; color: var(--muted); text-align: center; }

/* Recipe pages share the same paper, type, and measured reading width. */
.recipe-page { max-width: 780px; padding-block: 32px 80px; }
.breadcrumb { color: var(--muted); font-size: .8rem; margin-bottom: 36px; }
.breadcrumb a:hover { color: var(--rust); }
.recipe-content { overflow-wrap: anywhere; }
.recipe-content h1 { font-size: clamp(2.7rem, 6vw, 4.4rem); margin: 24px 0 32px; }
.recipe-content h2 { font-size: 1.8rem; line-height: 1.2; margin: 40px 0 20px; padding-top: 23px; border-top: 1px solid var(--rule); }
.recipe-content h3 { font-size: 1.35rem; margin: 28px 0 12px; }
.recipe-content p, .recipe-content li { line-height: 1.85; }
.recipe-content ul, .recipe-content ol { padding-left: 1.5rem; }
.recipe-content li { padding-left: .35rem; margin-block: 8px; }
.recipe-content li::marker { color: var(--rust); }
.recipe-content a { color: var(--rust); }
.recipe-content img { max-width: 100%; height: auto; display: block; margin-block: 24px; }
.recipe-content blockquote { border-left: 2px solid var(--rust); margin: 24px 0; padding-left: 22px; color: var(--muted); font-style: italic; }
.recipe-content table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; }
.recipe-content th, .recipe-content td { border-bottom: 1px solid var(--rule); padding: 10px 16px 10px 0; text-align: left; }
.recipe-content pre { overflow-x: auto; padding: 16px; background: #ece6da; }
.recipe-content hr { border: 0; border-top: 1px solid var(--rule); margin-block: 32px; }
.recipe-columns > section { min-width: 0; }

@media (min-width: 900px) {
  .recipe-page:has(.recipe-columns) { max-width: 1100px; }
  .recipe-columns { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 64px; margin-top: 40px; align-items: start; }
  .recipe-columns > section > h2:first-child { margin-top: 0; }
}

@media (max-width: 850px) {
  .index-page, .recipe-page { width: calc(100% - 48px); }
}

@media (max-width: 620px) {
  .index-page, .recipe-page { width: calc(100% - 40px); }
  .index-page { padding-block: 36px 45px; }
  input[type="search"] { min-height: 66px; padding-left: 23px; }
  .tags { gap: 7px; margin-block: 18px 28px; }
  .tag { padding-inline: 13px; }
  .recipe-title { font-size: 1.4rem; }
  .recipe > a { padding-block: 20px; }
  .recipe-page { padding-top: 24px; }
}

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

@media print {
  @page { margin: 18mm; }
  :root { background: white; color: black; font-size: 11pt; }
  body { background: white; }
  .index-page, .recipe-page { width: 100%; max-width: none; }
  .skip-link, #filter-form, .tags, .breadcrumb, .recipe > a::after, .recipe-content button { display: none; }
  .recipe-content h1 { font-size: 32pt; color: black; }
  .index-page { padding: 16pt 0 0; }
  .recipe > a { padding-block: 10pt; font-size: 14pt; }
  a, .recipe-content a { color: black; }
  .recipe-page { padding: 0; }
  .recipe-columns { display: block; margin-top: 0; }
  .recipe-content h2, .recipe-content h3 { break-after: avoid; }
  .recipe-content h2 { margin-top: 20pt; padding-top: 12pt; }
  .recipe, .recipe-content li, .recipe-content img, .recipe-content blockquote { break-inside: avoid; }
  .recipe-content p { orphans: 3; widows: 3; }
  .recipe-content pre { white-space: pre-wrap; }
}
