/* Brandon Carroll recipes — coastal kitchen theme */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600&family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Pinyon+Script&family=Source+Sans+3:wght@400;600;700&display=swap");

:root {
  --bg: #120f0d;
  --bg-raised: #1c1713;
  --bg-inset: #0c0a09;
  --cream: #f6efe6;
  --cream-muted: #b9ae9e;
  --fire: #4f643c;
  --fire-soft: #7a9160;
  --ember: #3a4a2e;
  --line: rgba(246, 239, 230, 0.11);
  --line-strong: rgba(246, 239, 230, 0.2);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --radius: 16px;
  --max: 48rem;
  --header-h: 4.35rem;
  --paper: #f3efe4;
  --ink: #2c3824;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--cream);
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(79, 100, 60, 0.2), transparent 55%),
    radial-gradient(900px 480px at 100% 0%, rgba(58, 74, 46, 0.18), transparent 52%),
    radial-gradient(700px 400px at 50% 100%, rgba(79, 100, 60, 0.06), transparent 60%),
    var(--bg);
}

a {
  color: var(--fire-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--fire-soft);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 15, 13, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-brand:hover { color: var(--cream); }
.site-brand:hover .site-brand-name { color: var(--fire-soft); }

.site-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(246, 239, 230, 0.18);
}

.site-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  min-width: 0;
}

.site-brand-name {
  font-family: "Pinyon Script", "Segoe Script", cursive;
  font-size: 1.72rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--cream);
}

.site-brand-sub {
  margin-top: 0.08rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

.brand-mark { display: none; }




.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}




.site-nav {
  font-size: 0.92rem;
  color: var(--cream-muted);
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.site-nav:hover {
  color: var(--cream);
  border-color: var(--line);
  background: rgba(246, 239, 230, 0.04);
}

.page {
  width: min(100% - 2rem, var(--max));
  margin: 1.5rem auto 3.5rem;
  animation: rise 0.55s var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.hrecipe,
.h-recipe {
  position: relative;
  background:
    linear-gradient(180deg, rgba(28, 23, 19, 0.97), rgba(12, 10, 9, 0.98));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2.35rem);
  overflow: hidden;
}

.hrecipe::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ember), var(--fire), var(--fire-soft));
}

.fn,
.p-name,
h1 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.6vw, 2.7rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--cream);
}

.summary,
.p-summary {
  margin: 0 0 1.2rem;
  color: var(--cream-muted);
  font-size: 1.1rem;
  max-width: 40rem;
}

.hrecipe > p:has(.author),
.hrecipe > p:has(.p-author) {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--cream-muted);
}

.author,
.p-author {
  color: var(--fire-soft);
  font-weight: 600;
}

.recipe-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.toolbar-btn,
.jump-link {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-inset);
  color: var(--cream);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), transform 0.15s var(--ease);
}

.toolbar-btn:hover,
.jump-link:hover {
  border-color: rgba(79, 100, 60, 0.5);
  background: rgba(79, 100, 60, 0.12);
  color: var(--cream);
  transform: translateY(-1px);
}

.toolbar-btn.is-success {
  border-color: rgba(122, 145, 96, 0.55);
  color: var(--fire-soft);
}

.hrecipe > p:has(.yield),
.hrecipe > p:has(.preptime),
.hrecipe > p:has(.cooktime),
.hrecipe > p:has([itemprop="totalTime"]) {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0.45rem 0.55rem 0;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(246, 239, 230, 0.03);
  color: var(--cream);
  font-size: 0.9rem;
}

.hrecipe > p:has(.yield)::before,
.hrecipe > p:has(.preptime)::before,
.hrecipe > p:has(.cooktime)::before,
.hrecipe > p:has([itemprop="totalTime"])::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--fire);
  box-shadow: 0 0 12px rgba(79, 100, 60, 0.6);
}

h2 {
  margin: 1.85rem 0 0.9rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fire-soft);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.85rem 0 0.9rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
}

.section-head h2 {
  margin: 0;
  padding: 0;
  border: 0;
}

.hrecipe ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.hrecipe ul li {
  position: relative;
  padding: 0.75rem 0.9rem 0.75rem 2.55rem;
  border-radius: 12px;
  background: rgba(246, 239, 230, 0.035);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
  user-select: none;
}

.hrecipe ul li::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 50%;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 6px;
  border: 1.5px solid rgba(246, 239, 230, 0.28);
  transform: translateY(-50%);
  background: var(--bg-inset);
}

.hrecipe ul li:hover {
  border-color: var(--line-strong);
  background: rgba(246, 239, 230, 0.055);
}

.hrecipe ul li.is-checked {
  color: var(--cream-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(185, 174, 158, 0.55);
}

.hrecipe ul li.is-checked::before {
  border-color: var(--fire);
  background:
    linear-gradient(145deg, var(--fire-soft), var(--fire)) center/60% 60% no-repeat,
    var(--bg-inset);
  box-shadow: inset 0 0 0 2px var(--bg-inset);
}

.hrecipe ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0.8rem;
}

.hrecipe ol li {
  counter-increment: step;
  position: relative;
  padding: 1rem 1.05rem 1rem 3.45rem;
  border-radius: 14px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  transition: border-color 0.15s var(--ease);
}

.hrecipe ol li:hover { border-color: var(--line-strong); }

.hrecipe ol li::before {
  content: counter(step);
  position: absolute;
  left: 0.9rem;
  top: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a120c;
  background: linear-gradient(145deg, var(--fire-soft), var(--fire));
  box-shadow: 0 0 0 3px rgba(79, 100, 60, 0.16);
}

.hrecipe ol li.is-done {
  opacity: 0.72;
  border-color: rgba(79, 100, 60, 0.35);
}

.hrecipe ol li.is-done::after {
  content: "done";
  position: absolute;
  right: 0.9rem;
  top: 1.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fire-soft);
}

.site-footer {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 2.5rem;
  color: var(--cream-muted);
  font-size: 0.88rem;
  text-align: center;
}

.back-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 30;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(28, 23, 19, 0.92);
  color: var(--cream);
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.back-top:hover { color: var(--fire-soft); border-color: rgba(79, 100, 60, 0.45); }

/* Index */
.book-index {
  width: min(100% - 2rem, 56rem);
  margin: 1.75rem auto 3.5rem;
  animation: rise 0.55s var(--ease) both;
}

.book-hero {
  margin-bottom: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(145deg, rgba(79, 100, 60, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(28, 23, 19, 0.98), rgba(12, 10, 9, 0.98));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.book-hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 40%;
  height: 80%;
  background: radial-gradient(circle, rgba(79, 100, 60, 0.2), transparent 60%);
  pointer-events: none;
}

.book-hero h1 { margin: 0 0 0.55rem; position: relative; z-index: 1; }
.book-hero p { margin: 0; color: var(--cream-muted); max-width: 38rem; position: relative; z-index: 1; }

.search-wrap {
  margin: 1.25rem 0 0;
  position: relative;
  z-index: 1;
}

.search-wrap label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-bottom: 0.4rem;
}

.search-wrap input {
  width: 100%;
  max-width: 28rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-inset);
  color: var(--cream);
  font: inherit;
}

.search-wrap input::placeholder { color: rgba(185, 174, 158, 0.7); }

.search-meta {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  color: var(--cream-muted);
  min-height: 1.2em;
}

.book-section { margin: 1.85rem 0; }
.book-section h2 {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.book-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 0.7rem;
}

.book-list a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 5.2rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(28, 23, 19, 0.92);
  color: var(--cream);
  text-decoration: none;
  transition: border-color 0.15s var(--ease), transform 0.15s var(--ease), background 0.15s var(--ease);
}

.book-list a:hover {
  border-color: rgba(79, 100, 60, 0.55);
  transform: translateY(-2px);
  background: rgba(79, 100, 60, 0.08);
  color: var(--cream);
}

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.25;
}

.card-cat {
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fire-soft);
}

.book-section.is-empty { display: none; }

@media (max-width: 640px) {
  .site-header { padding: 0.7rem 1rem; }
  .site-logo { width: 40px; height: 40px; }
  .site-brand-name { font-size: 1.45rem; }
  .site-brand-sub { font-size: 0.58rem; letter-spacing: 0.13em; }
  .recipe-toolbar { gap: 0.4rem; }
  .hrecipe ol li.is-done::after { display: none; }
}

/* Print rules live at the end of this file so they win over cook mode. */


/* Legal / copyright */
.site-footer {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
}

.footer-copy {
  margin: 0;
  color: var(--cream);
  font-weight: 600;
}

.footer-links {
  margin: 0;
  color: var(--cream-muted);
}

.footer-links a {
  color: var(--cream-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.footer-links a:hover {
  color: var(--fire-soft);
  border-bottom-color: rgba(122, 145, 96, 0.45);
}

.legal-page {
  width: min(100% - 2rem, 46rem);
}

.legal-card {
  background: linear-gradient(180deg, rgba(28, 23, 19, 0.97), rgba(12, 10, 9, 0.98));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: clamp(1.35rem, 3vw, 2.35rem);
}

.legal-card h1 {
  margin-top: 0;
}

.legal-lead {
  color: var(--fire-soft);
  font-weight: 600;
  font-size: 1.05rem;
}

.legal-card h2 {
  margin-top: 1.6rem;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.legal-card ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  color: var(--cream-muted);
}

.legal-card li {
  margin: 0.4rem 0;
}

.legal-card p {
  color: var(--cream-muted);
}

.legal-updated {
  margin-top: 1.75rem;
  font-size: 0.88rem;
  color: var(--cream-muted);
}


/* Servings, filters, cook mode, share */
.servings-control {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-inset);
}

.servings-control button {
  appearance: none;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--cream);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.servings-control button:hover {
  border-color: rgba(79, 100, 60, 0.5);
  color: var(--fire-soft);
}

.servings-control .servings-readout {
  min-width: 5.5rem;
  text-align: center;
  font-weight: 700;
}

.servings-control .servings-hint {
  font-size: 0.78rem;
  color: var(--cream-muted);
  padding-right: 0.4rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
  position: relative;
  z-index: 1;
}

.filter-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-inset);
  color: var(--cream-muted);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: var(--cream);
  border-color: rgba(79, 100, 60, 0.55);
  background: rgba(79, 100, 60, 0.12);
}

.cook-panel {
  display: none;
}

body.cook-mode .site-header,
body.cook-mode .site-footer,
body.cook-mode .recipe-toolbar,
body.cook-mode .back-top,
body.cook-mode .servings-control,
body.cook-mode .hrecipe > p:has(.author),
body.cook-mode .summary,
body.cook-mode .p-summary {
  display: none !important;
}

body.cook-mode .page {
  width: min(100% - 1.25rem, 40rem);
  margin: 1rem auto 2rem;
}

body.cook-mode .hrecipe {
  padding: 1rem 1rem var(--cook-panel-space, 7.5rem);
}

body.cook-mode .hrecipe ul {
  font-size: 1.12rem;
}

body.cook-mode .hrecipe ol li {
  opacity: 0.35;
}

body.cook-mode .hrecipe ol li.is-cook-current {
  opacity: 1;
  border-color: rgba(79, 100, 60, 0.65);
  box-shadow: 0 0 0 1px rgba(79, 100, 60, 0.25);
  font-size: 1.2rem;
}

.cook-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
  background: rgba(18, 15, 13, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

body.cook-mode .cook-panel {
  display: block;
}

.cook-panel-inner {
  width: min(100%, 40rem);
  margin: 0 auto;
  display: grid;
  gap: 0.65rem;
}

.cook-meta {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fire-soft);
}

.cook-step-text {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  line-height: 1.35;
  color: var(--cream);
  max-height: 4.8em;
  overflow: auto;
}

.cook-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 0.5rem;
}

.cook-actions button {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--cream);
  font: inherit;
  font-weight: 700;
  padding: 0.85rem 0.5rem;
  border-radius: 12px;
  cursor: pointer;
  min-height: 3.1rem;
}

.cook-actions [data-action='cook-next'] {
  background: linear-gradient(145deg, var(--fire-soft), var(--fire));
  color: #1a120c;
  border-color: transparent;
}

.cook-actions [data-action='exit-cook'] {
  grid-column: 1 / -1;
  background: transparent;
  font-weight: 600;
  color: var(--cream-muted);
  min-height: 2.4rem;
}

.cook-timers {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cook-timers[hidden] { display: none !important; }

.cook-timer-offers,
.cook-timer-active {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cook-timer-offers:empty,
.cook-timer-active:empty { display: none; }

.cook-timer,
.cook-timer-stop {
  appearance: none;
  border: 1px solid rgba(79, 100, 60, 0.5);
  background: rgba(79, 100, 60, 0.16);
  color: var(--cream);
  font: inherit;
  font-weight: 700;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  cursor: pointer;
  min-height: 3.1rem;
  min-width: 4.6rem;
  touch-action: manipulation;
}

.cook-timer:hover,
.cook-timer-stop:hover {
  border-color: var(--fire-soft);
  background: rgba(79, 100, 60, 0.28);
}

.cook-timer-run {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.1rem;
  padding: 0.25rem 0.3rem 0.25rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(79, 100, 60, 0.55);
  background: rgba(79, 100, 60, 0.22);
}

.cook-timer-time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  min-width: 3.4rem;
  color: var(--cream);
}

.cook-timer-stop {
  min-width: 4.2rem;
  background: var(--bg-inset);
  border-color: var(--line);
}

.cook-timer-run.is-complete {
  padding-right: 0.9rem;
  background: rgba(122, 145, 96, 0.38);
  border-color: var(--fire-soft);
  animation: cook-timer-flash 0.7s var(--ease);
}

.cook-timer-run.is-complete .cook-timer-time {
  min-width: 0;
  letter-spacing: 0.04em;
}

@keyframes cook-timer-flash {
  0% { box-shadow: 0 0 0 0 rgba(122, 145, 96, 0); }
  40% { box-shadow: 0 0 0 6px rgba(122, 145, 96, 0.32); }
  100% { box-shadow: 0 0 0 0 rgba(122, 145, 96, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .cook-timer-run.is-complete { animation: none; }
}


/* Splash — animated Lowcountry lockup on its paper ground */
.splash-page {
  background: var(--paper);
  color: var(--ink);
}
html:has(body.splash-page) { color-scheme: light; }

.splash-page .site-header {
  border-bottom-color: rgba(44, 56, 36, 0.12);
  background: rgba(243, 239, 228, 0.92);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.splash-page .site-brand-name { color: var(--ink); }
.splash-page .site-brand-sub,
.splash-page .site-nav { color: #5c564c; }
.splash-page .site-nav:hover { color: var(--ink); background: rgba(44, 56, 36, 0.05); }
.splash-page .site-brand:hover .site-brand-name { color: #4f643c; }
.splash-page .site-logo { box-shadow: 0 0 0 1px rgba(44, 56, 36, 0.18); }

.splash-page .site-header.is-solid {
  border-bottom-color: var(--line);
  background: rgba(18, 15, 13, 0.9);
}
.splash-page .site-header.is-solid .site-brand-name { color: var(--cream); }
.splash-page .site-header.is-solid .site-brand-sub,
.splash-page .site-header.is-solid .site-nav { color: var(--cream-muted); }
.splash-page .site-header.is-solid .site-nav:hover { color: var(--cream); background: rgba(246, 239, 230, 0.04); }
.splash-page .site-header.is-solid .site-brand:hover .site-brand-name { color: var(--fire-soft); }
.splash-page .site-header.is-solid .site-logo { box-shadow: 0 0 0 1px rgba(246, 239, 230, 0.18); }

.logo-splash {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: calc(100svh - var(--header-h));
  padding: 0.5rem 1rem 2.25rem;
  overflow: hidden;
}
.logo-splash::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, transparent 42%, rgba(90, 74, 48, 0.07) 100%);
}

.logo-lockup {
  position: relative;
  z-index: 1;
  width: min(92vw, 420px);
  aspect-ratio: 935 / 1284;
}
.logo-layer,
.logo-ring,
.sun-glow,
.water-glint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.logo-layer {
  object-fit: fill;
  pointer-events: none;
}
.logo-food,
.logo-type,
.logo-ring,
.sun-glow,
.water-glint { opacity: 0; }

.sun-glow,
.water-glint { pointer-events: none; }
.sun-glow {
  inset: auto;
  left: 49.7%;
  top: 21%;
  width: 18%;
  height: 12%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 220, 150, 0.95), rgba(255, 220, 150, 0) 68%);
  mix-blend-mode: multiply;
}
.water-glint {
  inset: auto;
  left: 18%;
  top: 30%;
  width: 64%;
  height: 14%;
  border-radius: 50%;
  background: linear-gradient(100deg, transparent 28%, rgba(255, 252, 242, 0.8) 50%, transparent 70%);
  mix-blend-mode: soft-light;
}
.logo-ring {
  overflow: visible;
  pointer-events: none;
}
.logo-ring ellipse {
  fill: none;
  stroke: #5a6844;
  stroke-width: 6;
  stroke-linecap: round;
}

.logo-splash .splash-lead,
.logo-splash .splash-actions { position: relative; z-index: 1; }
.logo-splash .splash-lead {
  margin-top: 0.35rem;
  text-align: center;
  color: #5c564c;
}
.logo-splash .splash-btn {
  color: var(--ink);
  background: transparent;
  border-color: rgba(44, 56, 36, 0.28);
}
.logo-splash .splash-btn:hover { color: var(--ink); border-color: rgba(79, 100, 60, 0.7); }
.logo-splash .splash-btn-primary {
  color: #f6f1e6;
  background: #3f4a32;
  border-color: transparent;
}
.logo-splash .splash-btn-primary:hover { color: #f6f1e6; filter: brightness(1.08); }

.splash-below {
  background: var(--bg);
  color: var(--cream);
  color-scheme: dark;
  padding: 2.4rem 0 2rem;
}
.splash-below .splash-categories,
.splash-below .site-footer {
  width: min(100% - 2rem, 40rem);
  margin-left: auto;
  margin-right: auto;
}
.splash-below .site-footer { padding-top: 0.5rem; }

@media (prefers-reduced-motion: no-preference) {
  .logo-scene {
    clip-path: ellipse(33.2% 24.4% at 49.73% 27.65%);
    animation: iris 1.7s var(--ease) both;
  }
  .logo-food {
    clip-path: inset(42% 0 29% 0);
    -webkit-mask-image: radial-gradient(ellipse 36% 27% at 49.73% 27.65%, transparent 68%, #000 80%);
    mask-image: radial-gradient(ellipse 36% 27% at 49.73% 27.65%, transparent 68%, #000 80%);
    animation: fade-in 1.05s var(--ease) 1.05s both;
  }
  .logo-type {
    clip-path: inset(69% 0 0 0);
    animation: rise-in 1.15s var(--ease) 1.7s both;
  }
  .logo-ring { animation: ring-life 2.6s ease 0.25s both; }
  .logo-ring ellipse {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw-ring 1.7s var(--ease) 0.35s forwards;
  }
  .sun-glow { animation: sun-pulse 4.8s ease-in-out 1.5s infinite; }
  .water-glint { animation: water-glint 6.5s ease-in-out 2s infinite; }
  .logo-splash .splash-lead,
  .logo-splash .splash-actions { animation: splash-in 0.7s var(--ease) 2.35s both; }
}

@keyframes splash-in {
  0% { opacity: 0; transform: translateY(10px); visibility: hidden; }
  30% { visibility: visible; }
  100% { opacity: 1; transform: none; visibility: visible; }
}
@keyframes iris {
  0% { clip-path: ellipse(0% 0% at 49.73% 21%); opacity: 0; }
  16% { opacity: 1; }
  100% { clip-path: ellipse(33.2% 24.4% at 49.73% 27.65%); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes draw-ring {
  to { stroke-dashoffset: 0; }
}
@keyframes ring-life {
  0% { opacity: 0; }
  18% { opacity: 1; }
  68% { opacity: 0.85; }
  100% { opacity: 0; }
}
@keyframes sun-pulse {
  0%, 100% { opacity: 0.28; transform: translate(-50%, -50%) scale(0.92); }
  50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.12); }
}
@keyframes water-glint {
  0%, 100% { opacity: 0; transform: translateX(-14%); }
  35% { opacity: 0.75; }
  70% { opacity: 0; transform: translateX(16%); }
}

.splash-hero {
  text-align: center;
  padding: clamp(2rem, 6vw, 3.5rem) 1rem 2rem;
}
.splash-tagline {
  margin: 0.5rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fire-soft);
}
.splash-lead {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  color: var(--cream-muted);
}
.splash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.splash-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--cream);
  background: var(--bg-raised);
}
.splash-btn-primary {
  border-color: transparent;
  color: #1a120c;
  background: linear-gradient(145deg, var(--fire-soft), var(--fire));
}
.splash-btn:hover { color: var(--cream); border-color: rgba(79, 100, 60, 0.5); }
.splash-btn-primary:hover { color: #1a120c; filter: brightness(1.05); }
.splash-categories h2 {
  text-align: center;
  border-top: none;
  margin-top: 0.5rem;
}
.splash-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fire-soft);
}
.section-more {
  margin-left: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--cream-muted);
  text-decoration: none;
}
.section-more:hover { color: var(--fire-soft); }
.category-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}
.category-jump a.filter-chip {
  text-decoration: none;
}

.splash-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--cream);
}

/* Source line for printed copies. recipe.js adds it to the footer; it only shows on paper. */
.print-source { display: none; }

/* Print — ink-friendly recipe card: black on white, no photo or controls,
   two-column ingredients, steps kept whole, copyright and source URL at the foot. */
@page { margin: 0.5in 0.55in; }

@media print {
  :root {
    --bg: #fff;
    --bg-raised: #fff;
    --bg-inset: #fff;
    --cream: #111;
    --cream-muted: #444;
    --fire: #3f4a32;
    --fire-soft: #3f4a32;
    --ember: #3f4a32;
    --line: #c9c9c9;
    --line-strong: #999;
  }

  html,
  body {
    color-scheme: light;
    background: #fff !important;
    color: #111 !important;
  }

  body {
    min-height: 0;
    font-size: 10.5pt;
    line-height: 1.4;
  }

  *,
  *::before,
  *::after {
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
    transition: none !important;
  }

  .site-header,
  .recipe-toolbar,
  .back-top,
  .servings-control,
  .cook-panel,
  .recipe-hero,
  .footer-links,
  body.cook-mode .cook-panel,
  body.cook-mode .recipe-hero {
    display: none !important;
  }

  .page,
  body.cook-mode .page {
    width: auto;
    margin: 0;
    opacity: 1;
    transform: none;
  }

  .hrecipe,
  .h-recipe,
  body.cook-mode .hrecipe {
    background: none !important;
    border: 0;
    border-radius: 0;
    padding: 0;
    overflow: visible;
    color: #111;
  }

  .hrecipe::before { display: none; }

  .fn,
  .p-name,
  h1 {
    margin: 0 0 4pt;
    font-size: 20pt;
    line-height: 1.15;
    color: #111;
    break-after: avoid;
    page-break-after: avoid;
  }

  .summary,
  .p-summary,
  body.cook-mode .summary,
  body.cook-mode .p-summary {
    display: block !important;
    margin: 0 0 6pt;
    max-width: none;
    font-size: 10.5pt;
    color: #333;
  }

  .hrecipe > p:has(.author),
  .hrecipe > p:has(.p-author),
  body.cook-mode .hrecipe > p:has(.author) {
    display: block !important;
    margin: 0 0 4pt;
    font-size: 9.5pt;
    color: #333;
  }

  .author,
  .p-author { color: #111; }

  .hrecipe > p:has(.yield),
  .hrecipe > p:has(.preptime),
  .hrecipe > p:has(.cooktime),
  .hrecipe > p:has([itemprop="totalTime"]) {
    display: inline;
    margin: 0 1.1em 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: #111;
    font-size: 9.5pt;
  }

  .hrecipe > p:has(.yield)::before,
  .hrecipe > p:has(.preptime)::before,
  .hrecipe > p:has(.cooktime)::before,
  .hrecipe > p:has([itemprop="totalTime"])::before {
    display: none;
  }

  h2 {
    margin: 10pt 0 4pt;
    padding-top: 4pt;
    border-top: 1px solid #bbb;
    font-size: 11pt;
    color: #3f4a32;
    break-after: avoid;
    page-break-after: avoid;
  }

  h3,
  .ingredient-group {
    margin: 7pt 0 2pt;
    font-size: 10.5pt;
    color: #111;
    break-after: avoid;
    page-break-after: avoid;
  }

  .hrecipe ul,
  body.cook-mode .hrecipe ul {
    display: block;
    columns: 2;
    column-gap: 0.4in;
    font-size: 10pt;
  }

  .hrecipe ul li {
    padding: 1.5pt 0 1.5pt 1.15em;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: #111;
    text-decoration: none;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Small empty box to tick on paper; checked state from the screen is not carried over. */
  .hrecipe ul li::before,
  .hrecipe ul li.is-checked::before {
    display: block;
    left: 0;
    top: 0.42em;
    width: 0.62em;
    height: 0.62em;
    border: 1px solid #666;
    border-radius: 2px;
    background: none;
    transform: none;
  }

  .hrecipe ul li.is-checked { color: #111; text-decoration: none; }

  .hrecipe ol {
    display: block;
    font-size: 10.5pt;
  }

  .hrecipe ol li,
  body.cook-mode .hrecipe ol li,
  body.cook-mode .hrecipe ol li.is-cook-current {
    margin: 0 0 4pt;
    padding: 0 0 0 1.85em;
    border: 0;
    border-radius: 0;
    background: none;
    color: #111;
    opacity: 1;
    font-size: 10.5pt;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .hrecipe ol li::before {
    left: 0;
    top: 0.05em;
    width: 1.35em;
    height: 1.35em;
    font-size: 9pt;
    color: #111;
    background: none;
    border: 1px solid #111;
  }

  .hrecipe ol li.is-done::after { display: none; }

  .hrecipe p { orphans: 3; widows: 3; }

  .hrecipe a { color: #111; }

  .site-footer,
  body.cook-mode .site-footer {
    display: block !important;
    width: auto;
    margin: 8pt 0 0;
    padding-top: 4pt;
    border-top: 1px solid #bbb;
    text-align: center;
    font-size: 8.5pt;
    color: #444;
    break-before: avoid;
    page-break-before: avoid;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .footer-copy {
    margin: 0;
    font-weight: 600;
    color: #111;
  }

  .print-source {
    display: block;
    margin: 0 0 2pt;
    color: #444;
    word-break: break-all;
  }
}

/* ==========================================================================
   Brand overrides (folded in from brand-override.css, 2026-10-12).
   Kept last so the cascade matches the old separate stylesheet.
   ========================================================================== */
/* Lowcountry seal is installed. Keep it visible if an older styles.css still hides logos. */
.site-brand .site-logo,
.logo-layer.logo-scene {
  display: block !important;
}
.site-brand .brand-mark {
  display: none !important;
}

/* Recipe hero + listing photos */
.recipe-hero {
  margin: 0 0 1.25rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-inset);
}
.recipe-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
body.cook-mode .recipe-hero { display: none; }

.book-list a {
  padding: 0 0 0.95rem;
  overflow: hidden;
}
.book-list a .card-photo {
  display: block;
  width: 100%;
  height: 9.2rem;
  object-fit: cover;
  background: var(--bg-inset);
  border-bottom: 1px solid var(--line);
}
.book-list a .card-cat,
.book-list a .card-title {
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}
.book-list a .card-cat { padding-top: 0.75rem; }

@media print {
  .recipe-hero { border: none; }
}

/* Ingredient group headings. AnyList reads these as section labels, not shopping items. */
.ingredient-group {
  margin: 1.15rem 0 0.35rem;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}
h2#ingredients + .ingredient-group {
  margin-top: 0.35rem;
}
.ingredient-group + ul {
  margin-top: 0.2rem;
}

/* WCAG 2.2 AA — skip link, reduced motion, target size, focus */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--fire-soft);
  color: #1a120c;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.skip-link:focus {
  top: 0.65rem;
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Ensure interactive controls meet 24px minimum (2.5.8) */
.toolbar-btn,
.jump-link,
.filter-chip,
.servings-control button,
.cook-actions button,
.back-top {
  min-height: 1.5rem; /* 24px */
  min-width: 1.5rem;
}

.filter-chip[aria-pressed="true"],
.filter-chip.is-active {
  border-color: rgba(79, 100, 60, 0.7);
}

/* Stronger focus for keyboard users on dark backgrounds */
:focus-visible {
  outline: 2px solid var(--fire-soft);
  outline-offset: 3px;
}
.site-header a:focus-visible,
.book-list a:focus-visible {
  outline-offset: 4px;
}
