:root {
  --bg: #fbf6ee;
  --paper: #fffdf8;
  --paper-soft: #f3e8d9;
  --paper-sage: #edf3e9;
  --ink: #24201b;
  --muted: #6e6258;
  --line: #dfcfbc;
  --line-strong: #cdb89f;
  --brown: #7a4c30;
  --brown-dark: #3d281b;
  --green: #5f7f55;
  --green-dark: #2f5a3b;
  --rust: #a54a35;
  --gold: #b9853f;
  --danger: #8a2d20;
  --shadow: 0 18px 46px rgba(61, 40, 27, 0.13);
  --shadow-soft: 0 10px 28px rgba(61, 40, 27, 0.09);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--green-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(47, 90, 59, 0.35);
  outline-offset: 3px;
}

button,
input,
select,
textarea {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 0.78rem 0.85rem;
}

textarea {
  resize: vertical;
}

label {
  display: grid;
  gap: 0.38rem;
  color: var(--brown-dark);
  font-weight: 800;
}

summary {
  list-style-position: outside;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.container.narrow {
  width: min(760px, calc(100% - 32px));
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 20;
  border-radius: var(--radius);
  background: var(--green-dark);
  color: #fff;
  padding: 0.55rem 0.75rem;
}

.skip-link:focus {
  left: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 246, 238, 0.96);
  backdrop-filter: blur(12px);
}

.site-topline {
  display: none;
  border-bottom: 1px solid rgba(223, 207, 188, 0.75);
  background: var(--brown-dark);
  color: #f8ede0;
  font-size: 0.78rem;
  font-weight: 800;
}

.site-topline-inner {
  min-height: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-topline a {
  color: #f8ede0;
  margin-left: 1rem;
}

.header-inner,
.footer-grid,
.hero-grid,
.recipe-hero-grid,
.newsletter-inner {
  display: grid;
  gap: 1.5rem;
}

.header-inner {
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.72rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
}

.brand small {
  max-width: 34ch;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: none;
  grid-column: 1 / -1;
  gap: 0.35rem;
  padding: 0 0 1rem;
  font-size: 0.92rem;
  font-weight: 900;
}

.site-nav.is-open {
  display: grid;
}

.site-nav a {
  border-radius: var(--radius);
  color: var(--brown-dark);
  padding: 0.72rem 0.85rem;
}

.site-nav a:hover {
  background: #fff;
  text-decoration: none;
}

.menu-toggle,
.button,
.sidebar-logout {
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 900;
}

.menu-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  place-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--brown-dark);
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 0.72rem 1rem;
  text-decoration: none;
}

.button:hover {
  text-decoration: none;
}

.button-primary {
  background: var(--green-dark);
  color: #fff;
  box-shadow: 0 10px 22px rgba(47, 90, 59, 0.18);
}

.button-primary:hover {
  background: #24492f;
}

.button-secondary {
  border-color: var(--line-strong);
  background: #fffdf8;
  color: var(--brown-dark);
}

.button-secondary:hover {
  background: var(--paper-soft);
}

.text-link {
  color: var(--brown-dark);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.42rem;
  color: var(--rust);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
  padding: 2.1rem 0 2rem;
}

.hero-grid {
  align-items: center;
}

.hero-copy {
  max-width: 720px;
}

.hero-copy h1,
.page-hero h1,
.recipe-hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.65rem;
  line-height: 1.04;
}

.hero-lede,
.hero-copy p,
.page-hero p,
.recipe-hero-copy > p {
  max-width: 700px;
  color: var(--muted);
}

.hero-lede {
  font-size: 1.08rem;
}

.hero-actions,
.recipe-actions,
.admin-actions,
.sticky-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  align-items: center;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.05rem;
  color: var(--brown-dark);
  font-size: 0.86rem;
  font-weight: 900;
}

.hero-proof span {
  border-left: 3px solid var(--gold);
  padding-left: 0.55rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.hero-badges a {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
  color: var(--brown-dark);
  font-size: 0.9rem;
  font-weight: 900;
  padding: 0.44rem 0.78rem;
  text-decoration: none;
}

.hero-badges a:hover {
  background: #fff;
}

.hero-feature {
  min-height: 340px;
}

.hero-feature .recipe-card {
  max-width: 430px;
  margin-left: auto;
}

.fallback-hero-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section,
.page-hero,
.recipe-hero {
  padding: 3rem 0;
}

.section-tight {
  padding-top: 2.2rem;
}

.small-hero {
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
}

.page-hero .container {
  display: grid;
  gap: 0.35rem;
}

.section-warm,
.newsletter,
.intro-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
}

.section-heading,
.panel-heading,
.recipe-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.35rem;
}

.section-heading h2,
.content-section h2,
.recipe-card-full h2,
.admin-panel h2,
.author-box h2,
.empty-state h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.9rem;
  line-height: 1.16;
}

.section-heading p {
  margin-top: 0;
}

.recipe-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.recipe-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.recipe-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.recipe-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-soft);
  color: var(--brown-dark);
}

.recipe-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.recipe-card:hover .recipe-card-media img {
  transform: scale(1.035);
}

.recipe-card-badge {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  max-width: calc(100% - 1.5rem);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(61, 40, 27, 0.86);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
  overflow: hidden;
  padding: 0.34rem 0.58rem;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.recipe-card-body {
  padding: 1.05rem;
}

.recipe-card-meta,
.recipe-meta,
.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.recipe-card-meta {
  margin-bottom: 0.64rem;
}

.recipe-card-meta span,
.recipe-meta span,
.quick-facts div,
.status-pill {
  border-radius: 999px;
  background: var(--paper-sage);
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 900;
  padding: 0.32rem 0.62rem;
}

.recipe-card h3 {
  margin: 0 0 0.42rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.32rem;
  line-height: 1.2;
}

.recipe-card h3 a {
  color: var(--ink);
}

.recipe-card h3 a:hover {
  color: var(--green-dark);
}

.recipe-card p {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.recipe-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  padding-top: 0.78rem;
}

.recipe-card-footer span:last-child {
  color: var(--brown-dark);
}

.image-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 220px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 900;
  padding: 1rem;
  text-align: center;
}

.image-placeholder.large {
  min-height: 520px;
}

.intro-grid,
.feature-link-grid,
.quality-grid,
.media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.intro-grid article,
.feature-link-grid a,
.quality-grid article,
.contact-panel,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.intro-grid article,
.feature-link-grid a,
.quality-grid article,
.contact-panel {
  padding: 1.2rem;
}

.intro-grid span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--paper-sage);
  color: var(--green-dark);
  font-weight: 900;
  margin-bottom: 0.65rem;
}

.intro-grid h2,
.feature-link-grid strong,
.quality-grid h2,
.contact-panel h2 {
  display: block;
  margin: 0 0 0.38rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.18;
}

.intro-grid p,
.feature-link-grid span,
.quality-grid p,
.contact-panel p,
.empty-state p {
  margin: 0;
  color: var(--muted);
}

.feature-link-grid a {
  min-height: 126px;
  display: grid;
  align-content: space-between;
  color: var(--ink);
  text-decoration: none;
}

.feature-link-grid a:hover {
  border-color: var(--line-strong);
  background: #fff;
  box-shadow: var(--shadow);
}

.empty-state {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
  padding: 1.5rem;
}

.editorial-empty {
  max-width: 760px;
}

.newsletter {
  padding: 3rem 0;
}

.newsletter-inner {
  align-items: center;
}

.newsletter h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1.12;
}

.newsletter p {
  color: var(--muted);
}

.newsletter-form div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--green-dark);
  font-weight: 900;
}

.recipe-hero {
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
}

.recipe-hero-grid {
  align-items: center;
}

.recipe-hero-copy {
  min-width: 0;
}

.recipe-actions {
  margin: 1.2rem 0;
}

.quick-facts {
  margin: 1.1rem 0 0;
}

.quick-facts div {
  min-width: 92px;
  border-radius: var(--radius);
  background: #fffdf8;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.65rem 0.78rem;
}

.quick-facts.compact div {
  background: var(--paper-sage);
}

.quick-facts dt,
.quick-facts dd {
  margin: 0;
}

.quick-facts dt {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.quick-facts dd {
  font-weight: 900;
}

.tested-note {
  display: inline-flex;
  border-left: 4px solid var(--green-dark);
  color: var(--green-dark);
  font-weight: 900;
  padding-left: 0.75rem;
}

.recipe-hero-image {
  position: relative;
}

.recipe-hero-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pin-overlay {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  display: inline-flex;
  min-width: 54px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(61, 40, 27, 0.92);
  color: #fff;
  font-weight: 900;
}

.content-grid {
  display: grid;
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.recipe-content {
  min-width: 0;
}

.recipe-sidebar {
  display: none;
}

.recipe-sidebar nav {
  position: sticky;
  top: 128px;
  display: grid;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  padding: 0.75rem;
}

.recipe-sidebar a,
.mobile-toc a {
  border-radius: var(--radius);
  color: var(--brown-dark);
  font-weight: 900;
  padding: 0.55rem 0.65rem;
}

.recipe-sidebar a:hover,
.mobile-toc a:hover {
  background: var(--paper-sage);
  text-decoration: none;
}

.mobile-recipe-bar {
  position: sticky;
  bottom: 0;
  z-index: 7;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  background: rgba(251, 246, 238, 0.97);
  backdrop-filter: blur(10px);
}

.mobile-recipe-bar a,
.mobile-recipe-bar button {
  display: grid;
  min-height: 54px;
  place-items: center;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--green-dark);
  font-weight: 900;
  text-decoration: none;
}

.mobile-recipe-bar button {
  border-right: 0;
}

.mobile-toc {
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  padding: 0.85rem 1rem;
}

.mobile-toc summary {
  cursor: pointer;
  font-weight: 900;
}

.mobile-toc nav {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.content-section {
  margin-bottom: 2.25rem;
}

.content-section h3,
.recipe-card-full h3,
.prose h2 {
  color: var(--brown-dark);
  font-family: Georgia, "Times New Roman", serif;
}

.callout-section,
.author-box,
.recipe-card-full {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.callout-section {
  border-left: 5px solid var(--gold);
  padding: 1.25rem;
}

.ingredient-list,
.instruction-list,
.prose ul {
  padding-left: 1.35rem;
}

.ingredient-list li,
.instruction-list li {
  margin-bottom: 0.7rem;
}

.instruction-list li {
  padding-left: 0.2rem;
}

.instruction-list img {
  width: min(720px, 100%);
  margin-top: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.split-notes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.split-notes > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  padding: 1rem;
}

.faq-section details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq-section details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq-section summary {
  cursor: pointer;
  color: var(--brown-dark);
  font-weight: 900;
}

.recipe-card-full {
  margin: 2rem 0;
  padding: 1.25rem;
}

.recipe-card-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

.author-box {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin: 2rem 0;
  padding: 1.25rem;
}

.author-avatar {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  font-weight: 900;
}

.author-box p {
  margin: 0.35rem 0 0;
}

.nutrition-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--muted);
}

.filter-bar {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  padding: 1rem;
}

.category-links {
  display: grid;
  gap: 0.75rem;
}

.category-links a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--brown-dark);
  font-weight: 900;
  padding: 0.85rem 1rem;
}

.category-links a:hover {
  border-color: var(--line-strong);
  background: #fff;
  text-decoration: none;
}

.prose {
  color: var(--ink);
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.55rem;
  line-height: 1.2;
}

.prose p {
  color: var(--muted);
}

.site-footer {
  background: var(--brown-dark);
  color: #f8efe4;
  padding: 2.75rem 0;
}

.site-footer a {
  display: block;
  color: #f8efe4;
  margin: 0.35rem 0;
}

.site-footer h2 {
  margin: 0 0 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.footer-grid {
  grid-template-columns: 1fr;
}

.footer-brand {
  color: #fff;
}

.footer-brand .brand-mark {
  background: var(--green);
}

.site-footer p,
.site-footer small {
  color: #dfcdbb;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--paper-soft);
  padding: 1rem;
}

.auth-card,
.admin-panel,
.stat-card,
.category-strip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.auth-card {
  width: min(460px, 100%);
  padding: 1.5rem;
}

.auth-brand {
  margin-bottom: 1.25rem;
}

.stack-form,
.admin-form,
.repeat-list {
  display: grid;
  gap: 1rem;
}

.admin-shell {
  background: #fbf7ef;
  font-family: Arial, sans-serif;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  gap: 1rem;
  background: var(--brown-dark);
  color: #fff;
  padding: 1rem;
}

.admin-sidebar .brand,
.admin-sidebar a,
.admin-sidebar small {
  color: #fff;
}

.admin-sidebar nav {
  display: grid;
  gap: 0.35rem;
}

.admin-sidebar nav a,
.sidebar-logout {
  border: 0;
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  text-align: left;
}

.admin-sidebar nav a.is-active,
.admin-sidebar nav a:hover,
.sidebar-logout:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.sidebar-logout {
  width: 100%;
  background: transparent;
  color: #fff;
}

.admin-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.admin-topbar {
  margin-bottom: 1rem;
}

.admin-topbar h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.alert {
  border-radius: var(--radius);
  margin-bottom: 1rem;
  padding: 0.8rem 1rem;
}

.alert-success {
  background: var(--paper-sage);
  color: var(--green-dark);
}

.alert-error {
  background: #fae7e1;
  color: var(--danger);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  padding: 1rem;
}

.stat-card span,
.muted,
.admin-table small {
  color: var(--muted);
}

.stat-card strong {
  display: block;
  color: var(--brown-dark);
  font-size: 2rem;
}

.admin-panel {
  margin-bottom: 1rem;
  padding: 1rem;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--brown-dark);
  font-size: 0.84rem;
  text-transform: uppercase;
}

.form-grid,
.two-col,
.three-col,
.four-col {
  display: grid;
  gap: 1rem;
}

.form-side {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.admin-thumb {
  width: 140px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check-label {
  display: flex;
  flex-direction: row;
  gap: 0.55rem;
  align-items: center;
}

.check-label input {
  width: auto;
}

.repeat-card {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  padding: 1rem;
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin: 1rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 246, 238, 0.96);
  padding: 0.75rem;
}

.danger-form {
  margin: 1rem 0 3rem;
}

.danger-form button {
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font-weight: 900;
}

.media-card {
  display: grid;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 0.75rem;
}

.media-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (min-width: 700px) {
  .site-topline {
    display: block;
  }

  .site-nav {
    display: flex;
    grid-column: auto;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 0;
  }

  .menu-toggle {
    display: none;
  }

  .hero-grid,
  .recipe-hero-grid,
  .newsletter-inner {
    grid-template-columns: minmax(0, 1fr) 420px;
  }

  .recipe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-link-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .compact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .listing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filter-bar {
    grid-template-columns: repeat(4, 1fr) auto;
    align-items: end;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .four-col {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quality-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .hero {
    padding: 3.5rem 0 3rem;
  }

  .hero-copy h1,
  .page-hero h1,
  .recipe-hero h1 {
    font-size: 4.2rem;
  }

  .section,
  .page-hero,
  .recipe-hero {
    padding: 4rem 0;
  }

  .content-grid {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .recipe-sidebar {
    display: block;
  }

  .mobile-toc,
  .mobile-recipe-bar {
    display: none;
  }

  .split-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .admin-sidebar {
    min-height: 100vh;
    align-content: start;
  }
}

@media (max-width: 699px) {
  .brand small {
    max-width: 21ch;
  }

  .hero-copy h1,
  .page-hero h1,
  .recipe-hero h1 {
    font-size: 2.45rem;
  }

  .section-heading,
  .recipe-card-header {
    display: grid;
    align-items: start;
  }

  .hero-actions .button,
  .recipe-actions .button {
    width: 100%;
  }

  .compact-grid {
    grid-template-columns: 1fr;
  }

  .recipe-card-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }
}

@media print {
  .site-header,
  .site-footer,
  .recipe-sidebar,
  .recipe-actions,
  .content-section,
  .newsletter,
  .mobile-recipe-bar,
  .mobile-toc {
    display: none !important;
  }

  .recipe-card-full {
    border: 0;
    box-shadow: none;
  }
}
