html {
  box-sizing: border-box;
  font-size: 16px;
}

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

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #21303f;
  background: #faf8f4;
  line-height: 1.6;
}

a {
  color: #0f4c81;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e6e1d8;
  position: relative;
  z-index: 30;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #14253a;
}

.site-tagline {
  margin: 0;
  color: #66758a;
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.site-nav a {
  font-weight: 600;
}

.nav-toggle {
  display: none;
}

.search-strip {
  background: #f3ede4;
  border-bottom: 1px solid #e6e1d8;
}

.search-strip-inner {
  padding: 0.85rem 0;
}

.search-form {
  display: flex;
  gap: 0.75rem;
}

.search-form input,
.search-form button,
.stack-form input,
.stack-form textarea,
.stack-form select {
  font: inherit;
}

.search-form input,
.stack-form input,
.stack-form textarea,
.stack-form select {
  width: 100%;
  border: 1px solid #cbd3dd;
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  background: #fff;
}

.search-form button,
.button {
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  background: #0f4c81;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  display: inline-block;
}

.button-secondary {
  background: #edf3f8;
  color: #0f4c81;
}

.site-main {
  min-height: 60vh;
}

.hero {
  padding: 3rem 0;
  background: linear-gradient(180deg, #fff, #f5efe7);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #8b6f37;
  margin: 0 0 0.8rem;
}

h1, h2, h3 {
  color: #13253b;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 0 0 0.75rem;
}

.hero-copy {
  font-size: 1.05rem;
  max-width: 45rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.category-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.category-tiles a,
.method-card,
.admin-card,
.sidebar-card,
.image-preview-card {
  background: #fff;
  border: 1px solid #e6e1d8;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(19, 37, 59, 0.06);
}

.category-tiles a {
  padding: 1rem;
  font-weight: 700;
  color: #13253b;
}



.hero-note {
  margin-top: 1rem;
  color: #5c6b7d;
  max-width: 42rem;
}

.category-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.category-story-card,
.callout-card,
.about-home-card,
.author-box {
  background: #fff;
  border: 1px solid #e6e1d8;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(19, 37, 59, 0.06);
}

.category-story-card {
  padding: 1.15rem;
  color: #13253b;
}

.category-story-card h3 {
  margin: 0 0 0.55rem;
}

.category-story-card p {
  margin: 0;
  color: #5c6b7d;
}

.callout-card {
  padding: 1.6rem;
}

.callout-card h2 {
  margin-bottom: 0.75rem;
}

.callout-card p:last-child {
  margin-bottom: 0;
}

.about-home-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.25rem;
  align-items: stretch;
}

.about-home-card {
  overflow: hidden;
}

.about-home-copy {
  padding: 1.5rem;
}

.about-home-copy p:last-of-type {
  margin-bottom: 1.2rem;
}

.about-home-photo {
  background: linear-gradient(180deg, #f7efe1, #eadcc6);
  min-height: 360px;
}

.about-home-photo-inner {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.about-home-photo-inner span {
  max-width: 18rem;
  font-size: 1.25rem;
  line-height: 1.5;
  color: #5f4a22;
  font-weight: 700;
}

.author-box {
  padding: 1rem;
}

.author-box h3 {
  margin-top: 0;
}

.section {
  padding: 2.5rem 0;
}

.section-alt {
  background: #f7f2ea;
}

.section-heading {
  margin-bottom: 1.25rem;
}

.section-heading p {
  margin: 0;
  color: #5c6b7d;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.recipe-card {
  background: #fff;
  border: 1px solid #e6e1d8;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(19, 37, 59, 0.05);
}

.recipe-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

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

.recipe-card-kicker {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #8b6f37;
  font-weight: 700;
}

.recipe-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.recipe-card-meta {
  display: flex;
  gap: 1rem;
  color: #657384;
  font-size: 0.9rem;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.method-card {
  padding: 1.15rem;
}

.breadcrumbs {
  margin-bottom: 1rem;
  color: #6a7787;
  font-size: 0.92rem;
}

.breadcrumbs .sep {
  margin: 0 0.45rem;
}

.recipe-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, 0.9fr);
  gap: 2rem;
}

.recipe-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.recipe-intro {
  font-size: 1.1rem;
}

.recipe-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.1rem;
  margin: 1rem 0 1.5rem;
  background: #f3ede4;
  border-radius: 18px;
}

.recipe-hero-image,
.inline-recipe-image {
  border-radius: 22px;
  margin: 1rem 0 1.5rem;
  box-shadow: 0 10px 30px rgba(19, 37, 59, 0.07);
}

.recipe-content-block {
  margin-bottom: 1.75rem;
}

.ingredient-list,
.instruction-list,
.sidebar-list,
.footer-links,
.admin-list {
  padding-left: 1.2rem;
}

.sidebar-card {
  padding: 1rem;
  margin-bottom: 1rem;
}

.mini-recipe-list {
  display: grid;
  gap: 0.8rem;
}

.mini-recipe-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 0.8rem;
  align-items: center;
}

.mini-recipe-item img {
  width: 84px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
}

.prose-page {
  max-width: 760px;
}

.site-footer {
  background: #13253b;
  color: #fff;
  padding-top: 2.5rem;
}

.site-footer h3,
.site-footer a,
.site-footer p {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
}

.footer-links {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-links li + li {
  margin-top: 0.45rem;
}

.footer-bottom {
  padding: 1rem 0 2rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.admin-body {
  background: #f5f6f9;
}

.admin-header {
  background: #13253b;
}

.admin-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.admin-header .site-logo,
.admin-nav a {
  color: #fff;
}

.admin-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-main {
  padding: 2rem 0 3rem;
}

.admin-grid {
  display: grid;
  gap: 1rem;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}

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

.admin-card {
  padding: 1.25rem;
}

.stat-card p {
  font-size: 2rem;
  font-weight: 700;
  margin: 0.5rem 0 0;
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

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

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

.admin-table th,
.admin-table td {
  padding: 0.85rem;
  border-bottom: 1px solid #e6e1d8;
  text-align: left;
}

.notice {
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.notice-success {
  background: #eaf7ee;
  color: #215b2c;
}

.notice-error {
  background: #fff1f0;
  color: #8a1f1f;
}

.stack-form {
  display: grid;
  gap: 1rem;
}

.stack-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
}

.stack-form textarea {
  min-height: 120px;
  resize: vertical;
}

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

.full-span {
  grid-column: 1 / -1;
}

.form-section {
  padding-top: 0.25rem;
  border-top: 1px solid #e6e1d8;
}

.form-section h2 {
  margin: 0.7rem 0 0.35rem;
  font-size: 1.2rem;
}

.form-section p {
  margin: 0;
  color: #5c6b7d;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

.checkbox-label input {
  width: auto;
}

.form-actions {
  margin-top: 0.5rem;
}

.image-preview-card {
  padding: 1rem;
}

.admin-preview-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 0.8rem;
}

.admin-login-card {
  max-width: 460px;
  margin: 3rem auto;
}

.empty-state {
  background: #fff;
  border: 1px dashed #cad3df;
  border-radius: 20px;
  padding: 1.25rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .recipe-layout,
  .footer-grid,
  .dashboard-grid,
  .stats-grid,
  .method-grid,
  .recipe-grid,
  .admin-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .recipe-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccd4df;
    background: #fff;
    color: #13253b;
    border-radius: 999px;
    padding: 0.75rem 1rem;
    font-weight: 700;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    background: #fff;
    border: 1px solid #e6e1d8;
    border-radius: 18px;
    padding: 0.75rem;
    box-shadow: 0 14px 32px rgba(19, 37, 59, 0.12);
    flex-direction: column;
    align-items: stretch;
  }

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

  .header-inner {
    position: relative;
  }

  .hero-grid,
  .recipe-grid,
  .method-grid,
  .footer-grid,
  .dashboard-grid,
  .stats-grid,
  .admin-form-grid,
  .category-tiles {
    grid-template-columns: 1fr;
  }

  .search-form,
  .hero-actions,
  .table-header {
    flex-direction: column;
    align-items: stretch;
  }
}


@media (max-width: 900px) {
  .category-story-grid,
  .recipe-grid,
  .method-grid,
  .footer-grid,
  .about-home-grid,
  .recipe-layout,
  .dashboard-grid,
  .stats-grid,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}


.jump-box {
  margin: 1.2rem 0 1.5rem;
  padding: 1rem 1.1rem;
  background: #fff8ef;
  border: 1px solid #eadbc2;
  border-radius: 18px;
}

.jump-box p {
  margin: 0 0 0.6rem;
}

.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.jump-links a,
.pill-link {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dcd4c7;
  font-size: 0.95rem;
  font-weight: 700;
  color: #13253b;
}

.pill-link.active {
  background: #0f4c81;
  border-color: #0f4c81;
  color: #fff;
}

.recipe-content-block p,
.author-box p,
.comment-admin-body p,
.public-comment-card p {
  margin-top: 0;
}

.recipe-content-block ul,
.recipe-content-block ol {
  padding-left: 1.25rem;
}

.recipe-content-block li {
  margin-bottom: 0.55rem;
}

.comments-head,
.comment-admin-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.public-comments-list,
.comment-admin-list {
  display: grid;
  gap: 1rem;
}

.public-comment-card,
.comment-admin-card,
.comment-form-card {
  background: #fff;
  border: 1px solid #e6e1d8;
  border-radius: 20px;
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 30px rgba(19, 37, 59, 0.06);
}

.public-comment-card h3,
.comment-form-card h3,
.comment-admin-card h2 {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.comment-meta,
.muted-copy {
  color: #66758a;
  font-size: 0.95rem;
}

.comment-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
}

.filter-pills,
.comment-actions-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.button-danger {
  background: #8d2436;
}

.notice {
  border-radius: 16px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.notice-success {
  background: #edf8ef;
  border: 1px solid #bad9bf;
}

.notice-error {
  background: #fff0f0;
  border: 1px solid #e5b4b4;
}

@media (max-width: 800px) {
  .comment-form-grid,
  .comments-head,
  .comment-admin-top {
    grid-template-columns: 1fr;
    display: grid;
  }
}


.hero-rich {
  padding: 2.2rem 0 3.5rem;
  background: linear-gradient(180deg, #fbf6ef 0%, #f1e7d8 48%, #faf8f4 100%);
}

.hero-rich-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 1.5rem;
  align-items: stretch;
}

.hero-copy-panel,
.hero-feature-card,
.category-hero-card,
.showcase-panel,
.category-visual-card,
.category-chip-cloud a {
  background: #fff;
  border: 1px solid #e6e1d8;
  box-shadow: 0 10px 30px rgba(19, 37, 59, 0.07);
}

.hero-copy-panel {
  border-radius: 28px;
  padding: 2rem;
}

.hero-feature-card {
  border-radius: 28px;
  overflow: hidden;
  height: 100%;
}

.hero-feature-image,
.category-visual-image,
.category-hero-image,
.showcase-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-feature-image {
  aspect-ratio: 1.1 / 0.9;
}

.hero-feature-body {
  padding: 1.25rem 1.3rem 1.45rem;
}

.hero-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.hero-mini-links a,
.category-chip-cloud a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  color: #13253b;
  font-weight: 700;
  background: #fff;
  border: 1px solid #e6e1d8;
}

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

.category-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.category-visual-card {
  position: relative;
  min-height: 340px;
  border-radius: 24px;
  overflow: hidden;
  color: #fff;
}

.category-visual-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(16,28,41,0.05), rgba(16,28,41,0.84));
}

.category-visual-overlay h3,
.category-visual-overlay p,
.category-visual-overlay .recipe-card-kicker {
  color: #fff;
}

.section-heading-inline {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.text-link {
  font-weight: 700;
}

.two-panel-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.showcase-panel {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  border-radius: 24px;
  overflow: hidden;
  min-height: 310px;
  color: #13253b;
}

.showcase-copy {
  padding: 1.5rem;
}

.callout-card-wide {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: center;
}

.callout-points {
  display: grid;
  gap: 0.85rem;
}

.callout-points span {
  background: #f7f1e7;
  border: 1px solid #eadfcf;
  color: #13253b;
  border-radius: 18px;
  padding: 1rem 1.1rem;
  font-weight: 700;
}

.three-column-highlight {
  display: block;
}

.section-heading-small p {
  max-width: 42rem;
}

.category-hero-card {
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
}

.category-hero-copy {
  padding: 1.8rem;
}

.category-hero-media {
  min-height: 320px;
}

.category-chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.recipe-card {
  overflow: hidden;
}

.recipe-card-image {
  aspect-ratio: 1.2 / 0.82;
  object-fit: cover;
}

.recipe-card-body {
  padding: 1rem 1rem 1.2rem;
}

@media (max-width: 960px) {
  .hero-rich-grid,
  .category-hero-card,
  .showcase-panel,
  .callout-card-wide,
  .section-heading-inline,
  .hero-grid,
  .about-home-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .section-heading-inline {
    align-items: start;
  }

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

@media (max-width: 680px) {
  .hero-copy-panel,
  .hero-feature-body,
  .category-hero-copy,
  .showcase-copy {
    padding: 1.2rem;
  }

  .category-visual-grid,
  .category-story-grid,
  .category-tiles,
  .recipe-grid,
  .two-panel-showcase {
    grid-template-columns: 1fr;
  }

  .category-visual-card {
    min-height: 280px;
  }

  .hero-mini-links,
  .category-chip-cloud {
    gap: 0.5rem;
  }
}
