*,
*::before,
*::after { box-sizing: border-box; }

:root {
  --ink: #141414;
  --text: #2b2b2b;
  --muted: #6f6f6f;
  --accent: #5f8f7e;
  --accent-deep: #4b7566;
  --line: #e2e2e2;
  --line-dark: #141414;
  --paper: #fff;
  --tip-bg: #f4f7f4;
  --display: "Playfair Display", Georgia, serif;
  --body: Lora, Georgia, serif;
  --sans: Manrope, "Segoe UI", Arial, sans-serif;
  --hand: "Marck Script", cursive;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: 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;
}

.shell { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }

.muted { color: var(--muted); }
.small { font-size: 0.85em; }
.center { text-align: center; }

/* ---------- header ---------- */

.microbar {
  background: #f6f6f6;
  font-family: var(--sans);
}

.microbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 30px;
}

.microlinks { display: flex; flex-wrap: wrap; gap: 0 22px; }

.microlinks a {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #333;
  line-height: 30px;
}

.microlinks a:hover { color: var(--accent-deep); }
.microlinks-admin { color: var(--accent-deep) !important; }

.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 30px 0 22px;
}

.tagline {
  margin: 0;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  gap: 7px;
  align-items: baseline;
}

.tagline em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  border-bottom: 2px solid var(--accent);
  line-height: 1;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.logo-main {
  font-family: var(--display);
  font-size: clamp(38px, 4.4vw, 62px);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
}

.logo-plus {
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 30px);
  color: var(--accent);
  margin: 0 8px 0 4px;
  transform: translateY(-4px);
}

.logo-script {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1;
  letter-spacing: -0.01em;
}

.footer-logo i { font-style: italic; }

.search {
  justify-self: end;
  display: flex;
  border: 1.5px solid var(--ink);
  height: 40px;
  width: min(100%, 210px);
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  padding: 0 10px 0 36px;
  background: transparent;
}

.search button {
  position: absolute;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.search button svg { width: 18px; height: 18px; }

.search { position: relative; }
.search button { left: 0; top: 0; }

.mainnav {
  border-top: 2.5px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--sans);
}

.mainnav-inner {
  display: flex;
  align-items: stretch;
  min-height: 50px;
}

.allrecipes { position: relative; }

.allrecipes summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  min-height: 50px;
  padding-right: 34px;
  border-right: 1px solid #bdbdbd;
  margin-right: 28px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
}

.allrecipes summary::-webkit-details-marker { display: none; }

.tri {
  width: 0; height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--ink);
  transition: transform 0.2s;
}

.allrecipes[open] .tri { transform: rotate(90deg); }

.dropdown {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--ink);
  border-top: 0;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
}

.dropdown a {
  padding: 9px 20px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.dropdown a:hover { background: #f3f3f3; color: var(--accent-deep); }

.browse-label {
  align-self: center;
  font-family: var(--display);
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
  margin-right: auto;
}

.catlinks {
  display: flex;
  align-items: center;
  gap: 0 44px;
  margin-left: auto;
}

.catlinks a {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 15px 0;
}

.catlinks a:hover,
.catlinks a[aria-current] { color: var(--accent-deep); }

/* ---------- section titles ---------- */

.section-title {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 44px 0 26px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1.05;
  color: var(--ink);
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-dark);
}

h1.section-title { margin-top: 36px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  border: 1.5px solid var(--ink);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 20px;
  cursor: pointer;
  line-height: 1;
}

.btn svg { width: 16px; height: 16px; }
.btn:hover { background: #333; border-color: #333; }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

.link {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--accent-deep);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.link:hover { text-decoration: underline; }

/* ---------- banner ---------- */

.banner {
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--ink);
  margin-bottom: 44px;
}

.banner-media {
  aspect-ratio: 16 / 6.2;
  min-height: 300px;
  background: #eee;
  overflow: hidden;
}

.banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.banner:hover img { transform: scale(1.03); }

.banner-card {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(42%, 440px);
  background: #fff;
  padding: 40px 36px;
  text-align: center;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
}

.banner-card h3 {
  margin: 10px 0 14px;
  font-family: var(--display);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 600;
  line-height: 1.15;
}

.banner-text { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text); }

.kicker {
  margin: 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker-link { text-decoration: none; }

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 28px;
}

.cards-listing { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card-link { display: block; text-decoration: none; color: var(--ink); }

.card-media {
  aspect-ratio: 1;
  overflow: hidden;
  background: #f1f1f1;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.card-link:hover img { transform: scale(1.045); }

.noimg { width: 100%; height: 100%; background: linear-gradient(135deg, #f2f2f2, #e4e4e4); }

.card .kicker { text-align: center; margin: 18px 0 6px; }

.card h3 {
  margin: 0;
  text-align: center;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.28;
  text-wrap: balance;
}

.more {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 46px 0 0;
}

.more-line { flex: 1; height: 1px; background: var(--line-dark); }

/* ---------- about ---------- */

.about { padding: 90px 0 50px; }

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.about-page { padding-bottom: 40px; }

.hello {
  margin: 0 0 6px;
  font-family: var(--hand);
  font-size: 36px;
  line-height: 1.15;
  color: var(--ink);
}

.about h2,
.about-page h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}

.about-body .rich { margin-bottom: 22px; }

.sign {
  margin: 22px 0 0;
  font-family: var(--hand);
  font-size: 50px;
  line-height: 1;
  color: var(--ink);
}

.rich p { margin: 0 0 14px; }
.rich p:last-child { margin-bottom: 0; }
.rich ul, .rich ol { margin: 0 0 14px; padding-left: 22px; }
.rich a { color: var(--accent-deep); }
.rich h3, .rich h4 { font-family: var(--display); margin: 20px 0 8px; }

/* ---------- stubs ---------- */

.stub { text-align: center; padding: 20px 0 60px; max-width: 560px; margin: 0 auto; }
.stub p { font-size: 19px; margin-bottom: 26px; }

/* ---------- recipe post ---------- */

.post { max-width: 820px; margin: 0 auto; padding-top: 36px; }

.post-head { text-align: center; }

.post-head h1 {
  margin: 10px 0 14px;
  font-family: var(--display);
  font-size: clamp(32px, 4.4vw, 50px);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink);
  text-wrap: balance;
}

.post-lead {
  margin: 0 auto;
  max-width: 640px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
}

.post-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.draft-note {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 10px;
  background: #fff4d6;
  font-family: var(--sans);
  font-size: 12px;
}

.post-photo { margin: 36px 0 0; }

.post-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 900px;
  object-fit: cover;
}

.post-photo-secondary { margin: 34px 0; }

.post-photo figcaption {
  margin-top: 8px;
  text-align: center;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}

.post-body { margin: 36px auto 0; max-width: 700px; font-size: 18px; }
.post-body .rich { margin: 0 0 24px; }

.tip {
  margin: 30px 0;
  padding: 24px 28px 24px 32px;
  background: var(--tip-bg);
  border-left: 4px solid var(--accent);
}

.tip-title {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.tip .rich { margin: 0; font-size: 17px; }

/* ---------- recipe card ---------- */

.recipe-card {
  margin: 48px 0 0;
  padding: 36px 40px 40px;
  border: 2px solid var(--ink);
}

.rc-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.rc-head h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.15;
}

.rc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 13.5px;
  color: #444;
}

.rc-meta a { color: var(--accent-deep); }

.rc-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

.rc-cook-hint {
  margin: 12px 0 0;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--accent-deep);
}

.stars { display: inline-flex; gap: 1px; color: #d7d7d7; font-size: 18px; line-height: 1; }
.stars.small { font-size: 14px; }
.star.on { color: #e4b43a; }
.star.half { background: linear-gradient(90deg, #e4b43a 50%, #d7d7d7 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.rc-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.rc-col h3 {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ingredients { list-style: none; margin: 0; padding: 0; }
.ingredients li { margin: 0 0 10px; }

.ingredients label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  line-height: 1.45;
}

.ingredients input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 4px 0 0;
  accent-color: var(--accent);
}

.ingredients input:checked + span { color: #9a9a9a; text-decoration: line-through; }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }

.steps li {
  position: relative;
  padding-left: 44px;
  margin: 0 0 16px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ---------- comments ---------- */

.comments { margin-top: 60px; padding-bottom: 60px; }
.comments .section-title { font-size: clamp(26px, 3vw, 36px); }

.notice { font-family: var(--sans); font-size: 14px; padding: 10px 14px; margin: 0 0 18px; }
.notice.ok { background: #eaf4ee; color: #2e6a4a; }
.notice.err { background: #fbeaea; color: #8c2f2f; }

.comment-form {
  padding: 26px 28px;
  background: #f8f8f8;
  margin-bottom: 40px;
}

.comment-form label { display: block; font-family: var(--sans); font-size: 13px; font-weight: 600; margin-bottom: 14px; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid #cfcfcf;
  background: #fff;
  padding: 10px 12px;
  font-family: var(--body);
  font-size: 16px;
}

.comment-form textarea { resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.hp { position: absolute; left: -9999px; }

.reply-to { font-family: var(--sans); font-size: 13px; margin: 0 0 12px; }

.rating-input { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-family: var(--sans); font-size: 13px; font-weight: 600; }
.rating-stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rating-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-stars label { font-size: 26px; line-height: 1; color: #d2d2d2; cursor: pointer; margin: 0; }
.rating-stars label:hover,
.rating-stars label:hover ~ label,
.rating-stars input:checked ~ label { color: #e4b43a; }
.rating-stars input:focus-visible + label { outline: 2px solid var(--accent); }

.comment-list, .replies { list-style: none; margin: 0; padding: 0; }
.comment { padding: 22px 0; border-top: 1px solid var(--line); }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-family: var(--sans); font-size: 13px; color: var(--muted); }
.comment-name { font-weight: 700; color: var(--ink); font-size: 15px; }
.comment-body { margin: 10px 0 10px; white-space: pre-line; }

.replies { margin-top: 10px; padding-left: 28px; border-left: 2px solid var(--line); }
.reply { border-top: 0; padding: 14px 0 8px; }

.by-author {
  background: var(--tip-bg);
  padding: 16px 20px;
  margin-top: 8px;
  border-left: 3px solid var(--accent);
}

.by-author .comment-name { color: var(--accent-deep); }

.author-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: middle;
  border-radius: 2px;
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: 40px;
  border-top: 2.5px solid var(--line-dark);
  padding: 34px 0 44px;
  text-align: center;
  font-family: var(--sans);
}

.footer-logo {
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.footer-logo span { color: var(--accent); margin: 0 4px; }
.footer-logo i { text-transform: none; letter-spacing: 0; font-size: 28px; }

.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 26px; margin: 18px 0 10px; }
.footer-links a { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; }
.footer-links a:hover { color: var(--accent-deep); }
.copy { margin: 0; font-size: 12px; color: var(--muted); }
.copy a { color: inherit; }

.legal { max-width: 720px; margin: 0 auto; padding-bottom: 50px; }
.legal li { margin-bottom: 8px; }

.consent { font-family: var(--sans); font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.consent a { color: inherit; }

a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .catlinks { gap: 0 26px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-photo { max-width: 640px; }
  .banner-card { width: min(50%, 440px); padding: 28px 24px; }
}

@media (max-width: 860px) {
  .masthead { grid-template-columns: 1fr; justify-items: center; gap: 14px; padding: 22px 0 18px; }
  .search { justify-self: center; width: min(100%, 320px); }
  .mainnav-inner { flex-wrap: wrap; }
  .browse-label { display: none; }
  .allrecipes summary { border-right: 0; margin-right: 0; padding-right: 0; }
  .catlinks { width: 100%; margin: 0; flex-wrap: wrap; gap: 0 20px; border-top: 1px solid var(--line); }
  .catlinks a { padding: 11px 0; }
  .cards-listing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .banner { margin-bottom: 36px; }
  .banner-media { aspect-ratio: 4 / 3; min-height: 0; }
  .banner-card { position: static; transform: none; width: auto; margin: -40px 16px 0; box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1); }
  .recipe-card { padding: 24px 20px 28px; }
  .rc-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 560px) {
  .shell { width: min(1200px, calc(100% - 28px)); }
  .logo { max-width: 100%; }
  .logo-main { font-size: 26px; letter-spacing: 0.16em; }
  .logo-plus { font-size: 18px; margin: 0 5px 0 2px; }
  .logo-script { font-size: 30px; }
  .tagline { font-size: 10.5px; letter-spacing: 0.14em; }
  .tagline em { font-size: 14px; }
  .microbar-inner { justify-content: center; }
  .microlinks-right { display: none; }
  .microlinks { gap: 0 14px; }
  .cards, .cards-listing { grid-template-columns: 1fr; }
  .card h3 { font-size: 23px; }
  .section-title { font-size: 30px; gap: 14px; }
  .comment-form { padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-media img, .banner-media img { transition: none; }
}
