/* The Remedy Guide — warm editorial cookbook, mobile-first */

:root {
  --paper: #faf4e8;
  --paper-deep: #f3ead6;
  --ink: #2b2418;
  --ink-soft: #5c5240;
  --green: #2e5641;
  --green-deep: #1f3d2d;
  --terracotta: #c2552f;
  --terracotta-deep: #a84526;
  --honey: #d99a2b;
  --honey-soft: #f2dca8;
  --cream: #fffdf7;
  --rule: #d8cbae;
  --shadow: 0 2px 14px rgba(64, 48, 16, 0.10);
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Karla', 'Avenir Next', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--green-deep);
  letter-spacing: -0.01em;
}

a { color: var(--terracotta); }

.wrap { max-width: 680px; margin: 0 auto; padding: 0 18px; }

/* ---------- header ---------- */
.site-head {
  padding: 16px 0 14px;
  background: var(--green-deep);
  border-bottom: 4px solid var(--honey);
}
.site-head .wrap { display: flex; align-items: baseline; justify-content: space-between; }
.brand {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--cream);
  text-decoration: none;
}
.site-foot .brand { color: var(--green-deep); }
.head-note {
  font-size: 0.78rem;
  color: var(--honey-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ---------- hero ---------- */
.hero { padding: 44px 0 30px; text-align: center; }
.hero h1 {
  font-size: clamp(2.1rem, 9vw, 3.1rem);
  font-weight: 900;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--terracotta);
}
.hero p.tag {
  margin: 14px auto 0;
  max-width: 30ch;
  font-size: 1.08rem;
  color: var(--ink-soft);
}
.hero .rule {
  width: 70px; height: 4px; margin: 22px auto 0;
  background: var(--honey); border-radius: 2px;
}

/* ---------- category grid ---------- */
.section-label {
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--terracotta);
  margin: 30px 0 14px;
}
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-bottom: 8px; }
.cat-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  background: var(--cream);
  box-shadow: var(--shadow);
  border: 1px solid var(--rule);
  transform: translateZ(0);
}
.cat-card .img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--paper-deep), var(--honey-soft));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
}
.cat-card .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-card .body { padding: 12px 14px 14px; }
.cat-card h3 { font-size: 1.06rem; margin-bottom: 4px; }
.cat-card p { font-size: 0.82rem; line-height: 1.45; color: var(--ink-soft); }
.cat-card:active { transform: scale(0.98); }

/* ---------- recipe list cards ---------- */
.recipe-list { display: flex; flex-direction: column; gap: 16px; padding-bottom: 10px; }
.recipe-card {
  display: block;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.recipe-card .img {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--paper-deep), var(--honey-soft));
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
}
.recipe-card .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.recipe-card .body { padding: 16px 18px 18px; }
.recipe-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.recipe-card p { font-size: 0.94rem; color: var(--ink-soft); }
.recipe-card:active { transform: scale(0.99); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  font-size: 0.78rem; font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--ink-soft);
  border: 1px solid var(--rule);
}
.chip.video { background: var(--green); color: var(--cream); border-color: var(--green); }

/* ---------- category header ---------- */
.cat-head { padding: 34px 0 22px; }
.crumb {
  font-size: 0.85rem; font-weight: 700;
  text-decoration: none; color: var(--terracotta);
  display: inline-block; margin-bottom: 14px;
}
.cat-head .emoji { font-size: 2.4rem; display: block; margin-bottom: 6px; }
.cat-head h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); font-weight: 900; }
.cat-head p.pain { margin-top: 10px; font-size: 1.05rem; color: var(--ink-soft); font-style: italic; }
.cat-head p.promise { margin-top: 6px; font-size: 1rem; color: var(--green); font-weight: 700; }

/* ---------- recipe page ---------- */
.recipe-hero { border-radius: var(--radius); overflow: hidden; margin-top: 18px; box-shadow: var(--shadow); border: 1px solid var(--rule); }
.recipe-hero .img {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--paper-deep), var(--honey-soft));
  display: flex; align-items: center; justify-content: center; font-size: 4rem;
}
.recipe-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.recipe-title { padding: 22px 0 0; }
.recipe-title h1 { font-size: clamp(1.8rem, 7.5vw, 2.5rem); font-weight: 900; }
.recipe-title .meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

.benefit {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--honey-soft);
  border-left: 5px solid var(--honey);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.02rem;
}
.benefit strong { color: var(--green-deep); }

/* ingredients */
.panel {
  margin-top: 26px;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow);
}
.panel h2 {
  font-size: 1.35rem;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 3px double var(--rule);
}
.ing { list-style: none; }
.ing li { border-bottom: 1px dashed var(--rule); }
.ing li:last-child { border-bottom: none; }
.ing input { position: absolute; opacity: 0; }
.ing label {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 2px;
  font-size: 1.02rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ing label::before {
  content: '';
  flex: 0 0 26px; height: 26px;
  border: 2px solid var(--green);
  border-radius: 8px;
  background: var(--cream);
  transition: background 0.15s;
}
.ing input:checked + label { color: var(--ink-soft); text-decoration: line-through; }
.ing input:checked + label::before {
  background: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fffdf7' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 16px; background-position: center; background-repeat: no-repeat;
}

/* steps */
.steps { list-style: none; counter-reset: step; margin-top: 4px; }
.steps > li {
  position: relative;
  padding: 0 0 22px 58px;
  counter-increment: step;
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900; font-size: 1.3rem;
  color: var(--cream);
  background: var(--terracotta);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(168, 69, 38, 0.35);
}
.steps > li::after {
  content: '';
  position: absolute; left: 20px; top: 46px; bottom: 6px;
  width: 2px;
  background: var(--rule);
}
.steps > li:last-child::after { display: none; }
.steps p { font-size: 1.04rem; }

/* product CTA card */
.product-card {
  margin-top: 14px;
  background: linear-gradient(160deg, #f6efdd, var(--honey-soft));
  border: 2px solid var(--honey);
  border-radius: var(--radius);
  padding: 16px;
}
.product-card .pc-label {
  font-size: 0.74rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--terracotta-deep);
  margin-bottom: 8px;
}
.product-card .pc-note { font-size: 0.98rem; margin-bottom: 10px; }
.product-card .pc-why {
  display: flex; gap: 8px; align-items: baseline;
  font-size: 0.9rem; font-weight: 700;
  color: var(--green-deep);
  padding: 10px 12px;
  margin-bottom: 14px;
  background: rgba(255, 253, 247, 0.65);
  border-radius: 10px;
}
.product-card .pc-why .tick { color: var(--terracotta); }
.btn-amazon {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  background: var(--green);
  color: var(--cream);
  font-family: 'Karla', sans-serif;
  font-size: 1.05rem; font-weight: 800;
  text-decoration: none;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(31, 61, 45, 0.35);
  text-align: center;
}
.btn-amazon:active { transform: translateY(1px); box-shadow: 0 1px 4px rgba(31, 61, 45, 0.3); }
.btn-amazon .arrow { font-size: 1.2rem; }
.pc-disclosure {
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-align: center;
}

/* contact form */
.form-label {
  display: block;
  font-weight: 800;
  font-size: 0.92rem;
  margin: 16px 0 6px;
  color: var(--green-deep);
}
.form-label:first-child { margin-top: 0; }
.form-hint { font-weight: 400; color: var(--ink-soft); }
.form-input {
  width: 100%;
  padding: 13px 14px;
  font-family: 'Karla', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--rule);
  border-radius: 12px;
}
.form-input:focus { outline: none; border-color: var(--green); }
textarea.form-input { resize: vertical; }
#contact-form .btn-amazon { margin-top: 20px; border: none; cursor: pointer; }

/* tip */
.tip {
  margin-top: 24px;
  padding: 16px 18px;
  background: var(--paper-deep);
  border: 1px dashed var(--green);
  border-radius: var(--radius);
  font-size: 0.98rem;
}
.tip .tip-label {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700; font-style: italic;
  color: var(--green);
  display: block; margin-bottom: 4px;
}

/* related */
.related { margin-top: 34px; }
.related h2 { font-size: 1.35rem; margin-bottom: 14px; }

/* footer */
.site-foot {
  margin-top: 50px;
  padding: 30px 0 44px;
  border-top: 3px double var(--rule);
  background: var(--paper-deep);
}
.site-foot .brand { font-size: 1.1rem; }
.site-foot p {
  margin-top: 12px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.foot-cats { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.foot-cats a { font-size: 0.82rem; }

/* load-in */
@media (prefers-reduced-motion: no-preference) {
  .hero, .cat-grid, .recipe-list, .recipe-hero, .recipe-title, .benefit, .panel {
    animation: rise 0.5s ease both;
  }
  .cat-grid { animation-delay: 0.08s; }
  .recipe-list { animation-delay: 0.08s; }
  .recipe-title { animation-delay: 0.05s; }
  .benefit { animation-delay: 0.1s; }
  .panel { animation-delay: 0.14s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}

@media (min-width: 700px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  body { font-size: 19px; }
}
