/* ============================================================
   coconutbaby.com
   Soft pastel palette. Every colour is set here at the top —
   change a hex value once and it changes across the whole site.
   ============================================================ */

:root {
  --mint:    #E9F3EC;  /* pale coconut water — page background */
  --cream:   #FDFAF5;  /* coconut flesh — cards, panels */
  --blush:   #FAE3D6;  /* soft apricot — hero, highlight panels */
  --butter:  #FBF1DC;  /* pale butter — verdict boxes */
  --sage:    #A9CBB5;  /* soft green — rules, markers */
  --frond:   #3E6B54;  /* deep leaf green — headings, links */
  --coral:   #C97A52;  /* warm accent — hover, emphasis */
  --ink:     #37423B;  /* body text */
  --ink-soft:#6F7A72;  /* captions, small print */
  --rule:    #DCE8DF;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --measure: 40rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--mint);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.12rem;
  line-height: 1.75;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.35rem;
}

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--frond);
  line-height: 1.22;
  margin: 0 0 0.65rem;
}
h1 { font-size: 2.15rem; letter-spacing: -0.01em; }
h2 { font-size: 1.55rem; margin-top: 2.6rem; }
h3 { font-size: 1.18rem; margin-top: 1.8rem; }
p  { margin: 0 0 1.15rem; }

.eyebrow {
  font-family: var(--body);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 0.7rem;
}
.eyebrow-light { color: var(--coral); }

.lede { font-size: 1.24rem; color: var(--ink); }

a { color: var(--frond); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--coral); }
a:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
  border-radius: 3px;
}

strong { font-weight: 700; }

/* ---------- Masthead ---------- */

.masthead {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  padding: 1.35rem 0;
}
.masthead > .wrap > a {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--frond);
  text-decoration: none;
}
.masthead nav {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.3rem;
  font-size: 0.9rem;
}
.masthead nav a { text-decoration: none; color: var(--ink-soft); }
.masthead nav a:hover { color: var(--coral); }

/* ---------- Hero ---------- */

.hero {
  background: var(--blush);
  padding: 3rem 0 3.2rem;
}
.hero h1 { font-size: 2.3rem; }
.hero .lede { color: var(--ink); }

/* ---------- Sections ---------- */

section.tight { padding: 2.4rem 0 0.5rem; }

/* ---------- Coir rule (signature divider) ---------- */

.coir-rule {
  border: 0;
  height: 6px;
  margin: 2.6rem 0 0;
  background-image: radial-gradient(circle, var(--sage) 1.6px, transparent 1.8px);
  background-size: 12px 6px;
  background-repeat: repeat-x;
  background-position: center;
}

/* ---------- Disclosure ---------- */

.disclosure {
  background: none;
  border: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0.7rem 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-soft);
  border-radius: 0;
  margin: 0 0 2.1rem;
}
.disclosure strong { color: var(--ink-soft); font-weight: 700; }

/* ---------- Shelf (guide index) ---------- */

.shelf { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.shelf li {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
}
.shelf h3 { margin: 0 0 0.35rem; }
.shelf h3 a { text-decoration: none; }
.shelf h3 a:hover { text-decoration: underline; }
.shelf p:last-child { margin: 0; font-size: 1.02rem; color: var(--ink-soft); }
.shelf .eyebrow { margin-bottom: 0.4rem; }

/* ---------- Verdict panel (who it is for / who should skip) ---------- */

.verdict {
  background: var(--cream);
  border: 1px solid var(--sage);
  border-radius: 12px;
  padding: 1.35rem 1.45rem;
  margin: 1.8rem 0;
}
.verdict h3 { margin-top: 0; }
.verdict p:last-child { margin-bottom: 0; }
.verdict ul { margin: 0 0 1.1rem; padding-left: 1.15rem; }
.verdict li { margin-bottom: 0.5rem; }

/* ---------- Safety panel ---------- */

.safety {
  background: var(--blush);
  border-radius: 12px;
  padding: 1.35rem 1.45rem;
  margin: 1.8rem 0;
}
.safety h3 { margin-top: 0; color: var(--coral); }
.safety p:last-child { margin-bottom: 0; }

/* ---------- Shop link ---------- */

.shop {
  display: inline-block;
  background: var(--frond);
  color: var(--cream);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.72rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  margin: 0.3rem 0 0.5rem;
}
.shop:hover { background: var(--coral); color: var(--cream); }
.shop::after { content: " \2192"; }

/* ---------- Footer ---------- */

.colophon {
  background: var(--cream);
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  padding: 2.5rem 0;
  margin-top: 3rem;
  font-size: 0.92rem;
}
.colophon p { margin: 0; }
.colophon-grid { display: grid; gap: 1.6rem; }

@media (min-width: 40rem) {
  .colophon-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2.4rem; }
  .hero h1 { font-size: 2.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Mascot ---------- */

.masthead > .wrap > a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.mascot-mark { display: block; }

.mascot-foot {
  display: block;
  margin-bottom: 0.75rem;
  opacity: 0.95;
}

/* ---------- Photography slots ----------
   Drop a JPEG into the folder, uncomment the <figure> in the page,
   and it styles itself. Images should be 1200px wide, under 200KB.
   ------------------------------------------------------------- */

figure.shot { margin: 2.2rem 0; }
figure.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: var(--cream);
}
figure.shot figcaption {
  font-size: 0.89rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
  line-height: 1.5;
}

/* ---------- Nav wrapping (nine guides) ---------- */

.masthead nav { font-size: 0.86rem; gap: 0.3rem 1.05rem; }

/* ---------- Magazine lead story ---------- */

.lead { background: var(--cream); border-bottom: 1px solid var(--rule); }
.lead-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 26rem;
  object-fit: cover;
}
.lead-body { padding: 2.2rem 1.35rem 2.6rem; }
.lead-body h1 { font-size: 2.15rem; margin-bottom: 0.9rem; }
.standfirst {
  font-size: 1.24rem;
  color: var(--ink);
  border-left: 3px solid var(--sage);
  padding-left: 1rem;
  margin-bottom: 1.4rem;
}

.continue {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--frond);
  border-bottom: 2px solid var(--coral);
  padding-bottom: 2px;
}
.continue::after { content: " \2192"; }
.continue:hover { color: var(--coral); }

/* ---------- Three questions ---------- */

ul.asked { list-style: none; padding: 0; margin: 1.2rem 0 0; }
ul.asked li {
  border-top: 1px solid var(--rule);
  padding: 0.95rem 0;
}
ul.asked li:last-child { border-bottom: 1px solid var(--rule); }
ul.asked a {
  display: block;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 0.2rem;
}
ul.asked a:hover { text-decoration: underline; }
ul.asked span { display: block; font-size: 1rem; color: var(--ink-soft); }

.grid-intro { color: var(--ink-soft); }

/* ---------- Article grid ---------- */

.grid { display: grid; gap: 1.5rem; margin-top: 1.8rem; }

.card {
  display: block;
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--sage); transform: translateY(-2px); }
.card:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.card > img {
  display: block;
  width: 100%;
  height: 11rem;
  object-fit: cover;
}

.card-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 11rem;
}
.tile-mint   { background: var(--mint); }
.tile-blush  { background: var(--blush); }
.tile-butter { background: var(--butter); }
.tile-sage   { background: #D6E7DB; }

.card-body { padding: 1.15rem 1.3rem 1.35rem; }
.card-body h3 { margin: 0 0 0.4rem; font-size: 1.12rem; color: var(--frond); }
.card-body .eyebrow { margin-bottom: 0.4rem; }
.card-body p { margin: 0; font-size: 1rem; color: var(--ink-soft); line-height: 1.6; }

@media (min-width: 44rem) {
  .grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .lead-body h1 { font-size: 2.8rem; }
  .lead-body { padding: 2.8rem 1.35rem 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none; }
}
