:root {
  --ink: #433833;
  --muted: #a29a96;
  --paper: #ffffff;
  --cream: #eee9e4;
  --berry: #e29979;
  --berry-dark: #c87d5f;
  --leaf: #a6b744;
  --line: #eeeae7;
  --white: #ffffff;
  --shadow: 0 18px 60px rgba(65, 42, 31, 0.12);
  --radius: 1.5rem;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Signika", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
textarea { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 0.65rem 1rem;
  border-radius: 999px;
}

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

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 25%);
  background: #fff;
}

.header-inner,
.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.header-inner {
  min-height: 7rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
}

.brand img { width: 145px; height: auto; }

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  padding: 0.65rem 0.85rem;
  cursor: pointer;
}

.site-nav { display: flex; gap: 0.45rem; margin-left: 11rem; }
.site-nav a { padding: 0.75rem 0.95rem; border-radius: 0.4rem; color: #a29b97; text-decoration: none; text-transform: uppercase; font-weight: 700; font-size: 0.83rem; letter-spacing: 0.02em; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--cream); color: var(--ink); }

.eyebrow { color: var(--berry); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.82rem; }

h1, h2, h3 {
  font-family: "Signika", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h1 { margin: 0.4rem 0 1.25rem; font-size: clamp(2.7rem, 7vw, 5.7rem); }
.lead { max-width: 55ch; color: var(--muted); font-size: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: var(--berry);
  color: white;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover { background: var(--berry-dark); transform: translateY(-2px); }
.button.secondary { background: var(--cream); color: var(--ink); }

.home-slider { position: relative; height: min(64vw, 51.25rem); min-height: 34rem; overflow: hidden; background: #ddd; color: white; }
.home-slide { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; background-position: center; background-size: cover; transition: opacity 700ms ease; }
.home-slide::before { content: ""; position: absolute; inset: 0; background: rgba(28, 19, 15, 0.14); }
.home-slide.active { opacity: 1; visibility: visible; }
.slide-content { position: relative; z-index: 1; width: min(1180px, calc(100% - 5rem)); text-align: center; text-shadow: 0 2px 15px rgba(0,0,0,.22); }
.slide-content .eyebrow { color: white; font-size: clamp(1rem, 1.8vw, 1.4rem); }
.slide-content h1 { max-width: none; margin: 1rem auto; color: white; font-size: clamp(3.4rem, 7.2vw, 6.8rem); font-weight: 700; line-height: 0.98; letter-spacing: -0.055em; white-space: nowrap; }
.slide-content p { margin: 1.8rem 0 2.5rem; font-family: "Noto Serif", Georgia, serif; font-size: clamp(1.1rem, 2vw, 1.45rem); font-weight: 700; }
.slider-button { min-width: 11rem; min-height: 4rem; border-radius: 0; background: var(--berry); text-transform: uppercase; font-size: 0.85rem; }
.slider-control { position: absolute; z-index: 3; top: 50%; width: 4.5rem; height: 6.2rem; border: 0; background: rgba(67,56,51,.32); color: white; font-size: 2rem; cursor: pointer; transform: translateY(-50%); }
.slider-control:hover { background: rgba(67,56,51,.62); }
.slider-control.prev { left: 0; }
.slider-control.next { right: 0; }
.slider-dots { position: absolute; z-index: 3; left: 50%; bottom: 1.2rem; display: flex; gap: 0.55rem; transform: translateX(-50%); }
.slider-dot { width: 0.65rem; height: 0.65rem; padding: 0; border: 2px solid white; border-radius: 50%; background: transparent; cursor: pointer; }
.slider-dot.active { background: white; }

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section.alt { background: var(--cream); }
.section-head { display: flex; align-items: center; flex-direction: column; gap: 0.6rem; margin-bottom: 4.5rem; text-align: center; }
.section-head::before { content: "❧"; color: var(--leaf); font-family: Georgia, serif; font-size: 2.7rem; line-height: 1; transform: rotate(-20deg); }
.section-head h2 { order: 1; margin: 0; font-size: clamp(2rem, 4vw, 2.6rem); }
.section-head .section-subtitle { order: 2; margin: 0; color: var(--berry); font-family: "Rancho", cursive; font-size: 1.8rem; font-weight: 400; text-transform: none; letter-spacing: 0; }
.text-link { color: var(--berry); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 0.25rem; }

.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.5rem 1.25rem; }
.recipe-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 10px 35px rgba(65, 42, 31, 0.07); }
.recipe-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.recipe-card-body { padding: 1.25rem; }
.recipe-card h3 { margin: 0.45rem 0 0.7rem; font-size: 1.55rem; }
.recipe-card h3 a { text-decoration: none; }
.recipe-card h3 a:hover { color: var(--berry); }
.meta { color: var(--muted); font-size: 0.88rem; }
.recipe-card p { color: var(--muted); }

.latest-post { min-height: 10rem; text-align: center; }
.latest-post h3 { max-width: 18rem; margin: 0 auto 0.8rem; font-size: 1.85rem; font-weight: 600; line-height: 1.18; }
.latest-post h3 a { text-decoration: none; }
.latest-post h3 a:hover { color: var(--berry); }
.latest-post .author { color: var(--muted); font-size: 1rem; font-weight: 600; }

.page-title {
  min-height: 13.25rem;
  display: grid;
  place-items: center;
  background: var(--cream) url('/images/uploads/2018/01/breadcrambs.jpg') center / cover no-repeat;
  text-align: center;
}
.page-title h1 { margin: 0 0 0.75rem; color: var(--ink); font-size: clamp(2.6rem, 5vw, 3.1rem); line-height: 1; }
.breadcrumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; text-transform: uppercase; font-size: 0.78rem; font-weight: 700; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs strong { color: var(--leaf); }

.content-with-sidebar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); gap: 5rem; align-items: start; }
.archive-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.2rem 3rem; }
.archive-item h2 { margin: 0 0 0.45rem; font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.archive-item h2 a { text-decoration: none; }
.archive-item h2 a:hover { color: var(--berry); }
.archive-item p { margin: 0.7rem 0 0; color: #817975; font-family: "Noto Serif", Georgia, serif; font-size: 0.95rem; line-height: 1.65; }

.sidebar { display: grid; gap: 2rem; }
.sidebar section { border-radius: 0.7rem; }
.sidebar h2 { margin: 0 0 1.4rem; font-size: 1.85rem; text-align: center; }
.search-box { padding: 3rem 2rem; background: var(--berry); }
.search-control { display: flex; align-items: center; overflow: hidden; border-radius: 0.55rem; background: white; }
.search-control input { min-width: 0; flex: 1; border: 0; padding: 1rem 1.2rem; color: var(--ink); outline: 0; }
.search-control span { padding: 0 1rem; color: var(--berry); font-size: 1.6rem; }
.about-widget, .tag-widget { padding: 1.6rem; border: 1px solid var(--line); }
.about-widget img { width: 100%; height: auto; margin: 0 auto 1rem; border-radius: 0; }
.about-widget p { color: var(--muted); }
.about-widget > a { color: var(--berry-dark); font-weight: 700; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.tag-cloud a, .recipe-tags .tag { padding: 0.35rem 0.65rem; border-radius: 0.25rem; background: var(--cream); color: var(--ink); font-size: 0.85rem; text-decoration: none; }
.tag-cloud a:hover, .recipe-tags .tag:hover { background: var(--berry); color: white; }

.pagination { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 3.5rem; }
.pagination a, .pagination span { display: grid; min-width: 2.5rem; height: 2.5rem; place-items: center; border-radius: 0.25rem; background: var(--cream); text-decoration: none; }
.pagination [aria-current="page"], .pagination a:hover { background: var(--berry); color: white; }

.recipe-article { min-width: 0; }
.featured-image { width: 100%; max-height: 42rem; margin-bottom: 2rem; object-fit: cover; }
.recipe-body { color: #655d59; font-family: "Noto Serif", Georgia, serif; font-size: 1rem; line-height: 1.75; }
.recipe-body p { margin: 0 0 1.25rem; }
.recipe-body ul, .recipe-body ol { margin: 0 0 1.8rem; padding-left: 1.5rem; }
.recipe-body li { margin-bottom: 0.45rem; }
.recipe-body h2, .recipe-body h3, .recipe-body h4 { margin: 2rem 0 1rem; color: var(--ink); font-family: "Signika", sans-serif; }
.recipe-body img { width: auto; height: auto; margin: 1.5rem auto; }
.recipe-body figure { max-width: 100%; margin: 1.5rem 0; }
.recipe-body iframe { width: 100%; max-width: 100%; }
.recipe-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

.about-page { display: grid; grid-template-columns: minmax(16rem, 0.85fr) minmax(0, 1fr); gap: clamp(2.5rem, 8vw, 7rem); align-items: center; }
.about-page > img { width: 100%; height: auto; }
.about-page h2, .contact-page h2 { margin: 0.25rem 0 1.5rem; font-size: clamp(2.3rem, 5vw, 3.4rem); }
.section-subtitle { margin: 0; color: var(--berry); font-family: "Rancho", cursive; font-size: 1.8rem; }

.contact-page { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2.5rem, 8vw, 7rem); align-items: start; }
.contact-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.contact-form label { display: grid; gap: 0.4rem; color: var(--ink); font-weight: 600; }
.contact-form label:nth-of-type(3), .contact-form .consent, .contact-form .form-status { grid-column: 1 / -1; }
.contact-form input:not([type="checkbox"]), .contact-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 0.35rem; background: #faf8f6; padding: 0.9rem 1rem; color: var(--ink); }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid color-mix(in srgb, var(--berry), transparent 72%); border-color: var(--berry); }
.contact-form .consent { grid-template-columns: auto 1fr; align-items: start; color: var(--muted); font-weight: 400; }
.contact-form .button { width: fit-content; border: 0; border-radius: 0.25rem; cursor: pointer; }
.form-status { color: var(--berry-dark); font-weight: 700; }
.not-found { text-align: center; }
.not-found h1 { font-size: 7rem; }
.back-to-top { position: fixed; right: 1.8rem; bottom: 1.2rem; display: grid; width: 2.8rem; height: 2.8rem; place-items: center; border-radius: 0.45rem; background: color-mix(in srgb, var(--berry), white 25%); color: white; text-decoration: none; }

.search-wrap { margin: 1.5rem 0 2rem; }
.search-wrap label { display: block; font-weight: 800; margin-bottom: 0.5rem; }
.search-wrap input { width: min(100%, 34rem); border: 1px solid var(--line); border-radius: 999px; background: white; padding: 0.85rem 1.1rem; color: var(--ink); }
.search-wrap input:focus { outline: 3px solid color-mix(in srgb, var(--berry), transparent 75%); border-color: var(--berry); }

.page-intro { padding: 3.5rem 0 2rem; }
.page-intro h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); }

.recipe-hero { position: relative; min-height: 28rem; display: grid; align-items: end; color: white; background-size: cover; background-position: center; }
.recipe-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25, 15, 14, 0.82), rgba(25, 15, 14, 0.1)); }
.recipe-hero .container { position: relative; padding-block: 4rem; }
.recipe-hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
.recipe-hero .lead { color: rgba(255,255,255,0.88); }

.recipe-layout { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 4rem; align-items: start; }
.recipe-section { margin-bottom: 3.5rem; }
.recipe-section h2 { margin-bottom: 1.4rem; font-size: 2.25rem; }
.recipe-columns { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 2.5rem; }
.ingredients { margin: 0; padding: 1.3rem 1.3rem 1.3rem 2.5rem; border-radius: 1.2rem; background: var(--cream); }
.steps { margin: 0; padding-left: 1.4rem; }
.steps li, .ingredients li { margin-bottom: 0.8rem; }
.recipe-aside { position: sticky; top: 7rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: 1.2rem; }
.recipe-aside strong { display: block; margin-top: 0.8rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag { padding: 0.25rem 0.65rem; border-radius: 999px; background: var(--cream); color: var(--berry-dark); font-size: 0.85rem; }

.empty-message { display: none; color: var(--muted); }
.empty-message.visible { display: block; }

.site-footer { padding: 2.2rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; }

@media (max-width: 820px) {
  .recipe-layout, .recipe-columns { grid-template-columns: 1fr; }
  .recipe-grid { grid-template-columns: repeat(2, 1fr); }
  .recipe-aside { position: static; }
  .site-nav { margin-left: auto; }
  .slide-content h1 { white-space: normal; }
  .content-with-sidebar { grid-template-columns: 1fr; gap: 3rem; }
  .sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tag-widget { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .header-inner { min-height: 4.6rem; }
  .brand img { width: 150px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 1rem; right: 1rem; top: calc(100% + 0.5rem); flex-direction: column; gap: 0; padding: 0.75rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.75rem; }
  .home-slider { height: 36rem; min-height: 0; }
  .slide-content { width: calc(100% - 3.5rem); }
  .slide-content h1 { font-size: 3rem; }
  .slider-control { width: 2.5rem; height: 4rem; }
  .recipe-grid { grid-template-columns: 1fr; }
  .archive-list, .about-page, .contact-page, .contact-form, .sidebar { grid-template-columns: 1fr; }
  .contact-form label:nth-of-type(3), .contact-form .consent, .contact-form .form-status, .tag-widget { grid-column: auto; }
  .page-title { min-height: 10rem; }
  .footer-inner, .section-head { align-items: flex-start; flex-direction: column; }
  .recipe-hero { min-height: 24rem; }
}

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