/* Simmer — warm, cozy recipe blog */
:root {
  --cream: #fbf5ec;
  --paper: #fffdf9;
  --ink: #2e211b;
  --muted: #7a6558;
  --terracotta: #c4552d;
  --terracotta-dark: #9e3f1d;
  --sage: #7d8f69;
  --mustard: #e3a72f;
  --line: #ead9c6;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}
a { color: var(--terracotta-dark); }
a:hover { color: var(--terracotta); }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--ink); }

/* Top strip + header */
.topstrip {
  background: var(--ink);
  color: #f4e6d6;
  font-size: 13px;
  text-align: center;
  padding: 6px 12px;
  letter-spacing: .02em;
}
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.logo-mark {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e9784f, var(--terracotta) 60%, var(--terracotta-dark));
  display: grid; place-items: center;
  font-size: 24px;
  box-shadow: 0 3px 0 var(--terracotta-dark);
}
.logo-text { font-family: var(--serif); font-size: 32px; font-style: italic; font-weight: 700; letter-spacing: -.01em; }
.logo-tag { display: block; font-family: var(--sans); font-size: 11px; font-style: normal; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: -4px; }
.main-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active { border-color: var(--terracotta); color: var(--terracotta-dark); }
.search-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  background: var(--cream);
}

/* Ads */
.ad-wrap {
  margin: 0 auto;
  text-align: center;
}
.ad-label {
  display: block;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #a89383;
  margin-bottom: 4px;
}
.ad-top { padding: 14px 20px 6px; min-height: 90px; }
.ad-in-recipe { margin: 34px auto; min-height: 280px; padding: 10px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.ad-side { margin-bottom: 26px; }
.ad-side.rect { min-height: 250px; }
.ad-side.sky { min-height: 600px; position: sticky; top: 16px; }
.ad-mobile { display: none; min-height: 100px; padding: 10px 0; }

/* Layout */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.layout {
  max-width: 1180px;
  margin: 26px auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
}
.sidebar { font-size: 15px; }
.side-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 26px;
}
.side-card h3 { margin: 0 0 10px; font-size: 20px; }
.about-avatar {
  width: 92px; height: 92px; border-radius: 50%;
  background: linear-gradient(135deg, var(--mustard), var(--terracotta));
  display: grid; place-items: center; font-size: 44px;
  margin: 0 auto 12px;
  border: 4px solid var(--cream);
  box-shadow: 0 0 0 2px var(--line);
}
.side-card.center { text-align: center; }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.side-list li:last-child { border-bottom: 0; }
.side-list a { text-decoration: none; color: var(--ink); font-weight: 600; }
.side-list .em { font-size: 22px; }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(227,167,47,.35), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(125,143,105,.35), transparent 45%),
    linear-gradient(120deg, #f6e3cf, #f9ece0);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: 1180px; margin: 0 auto; padding: 56px 20px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--terracotta-dark); }
.hero h1 { font-size: 52px; margin: 10px 0 16px; letter-spacing: -.02em; }
.hero p { font-size: 19px; color: #5a463b; max-width: 520px; }
.btn {
  display: inline-block;
  background: var(--terracotta);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--terracotta-dark);
}
.btn:hover { background: var(--terracotta-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); margin-left: 10px; }
.hero-plate {
  aspect-ratio: 1;
  max-width: 400px;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #c43a1a 0 34%, transparent 35%),
    radial-gradient(circle at 50% 50%, #fff 0 46%, #eee5da 47% 52%, #fff 53% 60%, transparent 61%);
  position: relative;
  box-shadow: 0 30px 50px -20px rgba(80,40,20,.45);
  display: grid; place-items: center;
  font-size: 64px;
}
.hero-plate span { position: absolute; }

/* Cards */
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 10px 0 18px; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.section-title h2 { margin: 0; font-size: 28px; }
.section-title a { font-size: 14px; font-weight: 700; text-decoration: none; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--paper);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -12px rgba(80,40,20,.35); color: var(--ink); }
.thumb { aspect-ratio: 4/3; display: grid; place-items: center; font-size: 58px; }
.t1 { background: radial-gradient(circle, #d8492b 0 30%, #f1c79c 31% 100%); }
.t2 { background: radial-gradient(circle at 50% 55%, #a3542a 0 32%, #f3dcc0 33% 100%); }
.t3 { background: linear-gradient(135deg, #a9c18e, #e7efd9); }
.t4 { background: linear-gradient(135deg, #f2b84b, #fbe7b8); }
.t5 { background: linear-gradient(135deg, #8a4f7d, #e9c9df); }
.t6 { background: linear-gradient(135deg, #5c7c8a, #cfe0e6); }
.card-body { padding: 14px 18px 18px; }
.card-cat { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }
.card h3 { margin: 6px 0 8px; font-size: 21px; }
.card-meta { font-size: 13px; color: var(--muted); }

.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 18px 0 40px; }
.cat {
  text-align: center; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14px;
}
.cat .bubble {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; font-size: 36px;
  background: var(--paper); border: 2px solid var(--line); margin-bottom: 8px;
  transition: border-color .15s;
}
.cat:hover .bubble { border-color: var(--terracotta); }

.newsletter {
  background: var(--sage);
  color: #fff;
  border-radius: 14px;
  padding: 22px;
}
.newsletter h3 { color: #fff; margin: 0 0 6px; }
.newsletter input {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 0; margin: 10px 0 8px; font: inherit;
}
.newsletter button {
  width: 100%; padding: 10px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 700; font: inherit; cursor: pointer;
}

/* Recipe post */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.post-title { font-size: 44px; margin: 6px 0 14px; letter-spacing: -.015em; }
.byline { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.byline .mini { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--mustard), var(--terracotta)); display: grid; place-items: center; font-size: 20px; }
.stars { color: var(--mustard); letter-spacing: 2px; }
.jump {
  display: inline-flex; align-items: center; gap: 8px; margin: 18px 0;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; padding: 10px 20px; border-radius: 999px; font-size: 15px;
}
.jump:hover { background: var(--terracotta); color: #fff; }
.post-hero { border-radius: 16px; aspect-ratio: 16/9; display: grid; place-items: center; font-size: 110px; margin: 10px 0 24px; }
.post-hero.shak { background: radial-gradient(circle at 50% 50%, #c63b1c 0 30%, #2d2421 31% 37%, #f0d7b8 38% 100%); }
.post-hero.ramen { background: radial-gradient(circle at 50% 50%, #d99a4a 0 30%, #1f1a18 31% 37%, #cfe0d0 38% 100%); }
.story p:first-of-type::first-letter { font-family: var(--serif); float: left; font-size: 64px; line-height: .9; padding: 6px 10px 0 0; color: var(--terracotta); }
.story h2 { font-size: 26px; margin-top: 30px; }
.tip { background: #fff6dc; border-left: 4px solid var(--mustard); padding: 14px 18px; border-radius: 0 10px 10px 0; font-size: 16px; }

.recipe-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 30px;
  box-shadow: 8px 8px 0 var(--terracotta);
  margin: 10px 0 40px;
  scroll-margin-top: 20px;
}
.recipe-card h2 { font-size: 32px; margin: 0 0 6px; }
.recipe-card .lede { color: var(--muted); margin: 0 0 18px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 24px; }
.facts div { padding: 12px; text-align: center; border-right: 1px solid var(--line); background: var(--cream); }
.facts div:last-child { border-right: 0; }
.facts b { display: block; font-family: var(--serif); font-size: 20px; }
.facts small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.recipe-card h3 { font-size: 22px; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-top: 26px; }
.ingredients { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 30px; }
.ingredients li { padding: 6px 0 6px 28px; position: relative; break-inside: avoid; }
.ingredients li::before { content: ""; position: absolute; left: 0; top: 11px; width: 14px; height: 14px; border: 2px solid var(--terracotta); border-radius: 4px; }
.ingredients .group { padding-left: 0; font-weight: 700; color: var(--sage); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.ingredients .group::before { display: none; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 4px 0 18px 54px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%; background: var(--terracotta); color: #fff;
  font-weight: 700; display: grid; place-items: center; font-family: var(--serif);
}
.notes { background: var(--cream); border-radius: 12px; padding: 4px 20px; }
.nutrition { border: 2px solid var(--ink); border-radius: 10px; padding: 12px 18px; margin-top: 22px; max-width: 360px; font-size: 14px; }
.nutrition h4 { margin: 0 0 6px; font-family: var(--sans); font-size: 18px; font-weight: 900; border-bottom: 6px solid var(--ink); padding-bottom: 4px; }
.nutrition table { width: 100%; border-collapse: collapse; }
.nutrition td { padding: 4px 0; border-bottom: 1px solid var(--line); }
.nutrition td:last-child { text-align: right; font-weight: 700; }
.nutrition .fine { font-size: 11px; color: var(--muted); margin: 8px 0 0; }

.comments h2 { font-size: 28px; }
.comment { display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment .av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: #f0e1cf; }
.comment .who { font-weight: 700; }
.comment .when { font-size: 13px; color: var(--muted); margin-left: 6px; font-weight: 400; }
.comment p { margin: 4px 0 0; }
.comment.reply { margin-left: 60px; }
.comment.reply .av { background: linear-gradient(135deg, var(--mustard), var(--terracotta)); }
.comment-form textarea { width: 100%; min-height: 110px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font: inherit; background: var(--paper); }
.comment-form button { margin-top: 10px; border: 0; cursor: pointer; font: inherit; }

/* Footer */
.site-footer { background: var(--ink); color: #d9c7b7; padding: 44px 20px 30px; font-size: 14px; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 18px; }
.site-footer a { color: #f1b597; text-decoration: none; display: block; padding: 3px 0; }
.site-footer .legal { max-width: 1180px; margin: 30px auto 0; border-top: 1px solid #4a3a31; padding-top: 16px; font-size: 12px; color: #a08a7b; }

/* Responsive */
@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; }
  .ad-side.sky { position: static; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .ad-desktop { display: none !important; }
  .ad-mobile { display: block; }
  .hero-inner { grid-template-columns: 1fr; padding: 34px 20px; }
  .hero h1 { font-size: 36px; }
  .hero-plate { max-width: 240px; }
  .post-title { font-size: 32px; }
  .grid { grid-template-columns: 1fr; }
  .ingredients { columns: 1; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(2) { border-right: 0; }
  .recipe-card { padding: 20px; box-shadow: 5px 5px 0 var(--terracotta); }
  .footer-inner { grid-template-columns: 1fr; }
  .main-nav { gap: 14px; }
  .search-pill { display: none; }
  .comment.reply { margin-left: 24px; }
}
