/* LotusRush — layout: one reading column (68ch) inside a pond-coloured frame; home uses a 2–3 col card grid. */
:root {
  --paper: #F5F8F3;      /* pale leaf-white */
  --surface: #E6EEE7;    /* mist on the pond */
  --ink: #15302E;        /* deep pond water */
  --muted: #4E6661;
  --line: #CCDAD0;
  --petal: #C43A6E;      /* lotus pink, used sparingly */
  --petal-soft: #F7DCE6;
  --leaf: #2C6A4C;
  --seed: #B8860B;       /* receptacle gold */
  --f-display: "Marcellus", "Palatino Linotype", Palatino, Georgia, serif;
  --f-body: "Karla", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F1E1D; --surface: #172D2B; --ink: #E4EDE8; --muted: #A3B8B2; --line: #2A4541;
    --petal: #F27FA8; --petal-soft: #3A2030; --leaf: #86C7A2; --seed: #E2B95C; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0F1E1D; --surface: #172D2B; --ink: #E4EDE8; --muted: #A3B8B2; --line: #2A4541;
  --petal: #F27FA8; --petal-soft: #3A2030; --leaf: #86C7A2; --seed: #E2B95C; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.7;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--petal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--seed); outline-offset: 2px; border-radius: 3px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 34px; }
.brand span { font-family: var(--f-display); font-size: 1.5rem; letter-spacing: .02em; }
.brand b { color: var(--petal); font-weight: 400; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--petal); }

/* Home hero */
.hero { padding-block: 56px 40px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero > * { min-width: 0; }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--leaf); font-weight: 700; margin: 0 0 12px; }
.hero h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.08; margin: 0 0 18px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--petal); }
.hero p.lede { font-family: var(--f-serif); font-size: 1.2rem; color: var(--muted); max-width: 52ch; margin: 0 0 24px; }
.btn { display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; padding: 11px 20px; border-radius: 999px; font-weight: 600; }
.btn:hover { background: var(--petal); color: #fff; }
.hero-art { justify-self: center; width: min(100%, 360px); }

/* Bloom clock strip */
.bloom-clock { border-block: 1px solid var(--line); padding-block: 28px; }
.bloom-clock h2 { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; margin: 0 0 6px; }
.bloom-clock > p { color: var(--muted); margin: 0 0 18px; max-width: 70ch; }
.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.day { min-width: 0; }
.day strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.1rem; color: var(--petal); }
.day span { font-size: .95rem; color: var(--muted); }

/* Section headings on home */
.section { padding-block: 44px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; margin: 0; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { min-width: 0; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); transition: border-color .2s; }
.card:hover { border-color: var(--petal); }
.card .tag { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--leaf); font-weight: 700; }
.card h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; line-height: 1.25; margin: 0; text-wrap: balance; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.card .more { margin-top: auto; padding-top: 6px; color: var(--petal); font-weight: 600; font-size: .95rem; }
.card.feature { grid-column: 1 / -1; background: var(--surface); border-color: transparent; }
.card.feature h3 { font-size: 1.7rem; }

/* Fact strip */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.compare > div { padding: 22px; min-width: 0; }
.compare > div + div { border-left: 1px solid var(--line); }
.compare h3 { font-family: var(--f-display); font-weight: 400; margin: 0 0 8px; font-size: 1.25rem; }
.compare ul { margin: 0; padding-left: 1.1em; }
.compare li { margin: 4px 0; }

/* Article */
.article { max-width: 720px; margin: 0 auto; padding-block: 40px 56px; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.article h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 4.4vw, 2.9rem); line-height: 1.12; margin: 0 0 14px; text-wrap: balance; }
.byline { font-size: .92rem; color: var(--muted); display: flex; gap: 6px 16px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.botanical { font-style: italic; color: var(--leaf); }
.prose { font-family: var(--f-serif); font-size: 1.12rem; line-height: 1.75; }
.prose > p:first-of-type { font-size: 1.22rem; }
.prose h2 { font-family: var(--f-display); font-weight: 400; font-size: 1.75rem; line-height: 1.2; margin: 2.2em 0 .5em; text-wrap: balance; }
.prose h3 { font-family: var(--f-body); font-weight: 700; font-size: 1.15rem; margin: 1.7em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--petal); color: var(--muted); font-style: italic; }
.prose .table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: 8px; }
.prose table { border-collapse: collapse; width: 100%; font-family: var(--f-body); font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.prose em.sci, .prose i { color: inherit; }

.toc { background: var(--surface); border-radius: 10px; padding: 18px 22px; margin: 0 0 28px; font-family: var(--f-body); font-size: .97rem; }
.toc strong { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--leaf); margin-bottom: 6px; }
.toc ul { margin: 0; padding-left: 1.1em; }
.toc ul ul { display: none; }
.toc li { margin: 3px 0; }

.callout { font-family: var(--f-body); font-size: 1rem; background: var(--petal-soft); border-radius: 10px; padding: 16px 20px; margin: 1.6em 0; }
.callout strong:first-child { display: block; margin-bottom: 4px; }

figure { margin: 1.8em 0; }
figure svg { display: block; width: 100%; height: auto; background: var(--surface); border-radius: 10px; }
figcaption { font-family: var(--f-body); font-size: .9rem; color: var(--muted); margin-top: 8px; }

.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 1.4em 0; font-family: var(--f-body); }
.swatch { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: .88rem; }
.swatch i { display: block; height: 46px; }
.swatch span { display: block; padding: 8px 10px; }

.faq h3 { margin-top: 1.3em; }
.sources { font-family: var(--f-body); font-size: .93rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 2.6em; padding-top: 14px; }
.sources ul { padding-left: 1.1em; }

.related { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 24px; }
.related h2 { font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; margin: 0 0 14px; }
.related .grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related .card { padding: 16px; }
.related .card h3 { font-size: 1.05rem; }

/* Plain pages */
.page { max-width: 720px; margin: 0 auto; padding-block: 40px 56px; }
.page h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 4vw, 2.6rem); margin: 0 0 8px; }
.page .updated { color: var(--muted); font-size: .92rem; margin: 0 0 24px; }
.page h2 { font-family: var(--f-display); font-weight: 400; font-size: 1.4rem; margin: 1.8em 0 .4em; }
.contact-box { background: var(--surface); border-radius: 10px; padding: 20px 22px; margin: 18px 0; }
.contact-box .addr { font-family: var(--f-display); font-size: 1.35rem; user-select: all; overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--surface); margin-top: 20px; }
.site-footer .wrap { padding-block: 34px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer .wrap > * { min-width: 0; }
.site-footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--leaf); margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 5px 0; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--petal); }
.site-footer p { margin: 0 0 8px; color: var(--muted); font-size: .95rem; }
.copy { border-top: 1px solid var(--line); text-align: left; font-size: .88rem; color: var(--muted); padding-block: 14px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-block: 36px 28px; }
  .hero-art { width: min(70%, 260px); grid-row: 1; justify-self: start; }
  .grid, .related .grid { grid-template-columns: 1fr 1fr; }
  .card.feature { grid-column: 1 / -1; }
  .days { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  .grid, .related .grid { grid-template-columns: 1fr; }
  .card.feature { grid-column: auto; }
  .compare { grid-template-columns: 1fr; }
  .compare > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .prose { font-size: 1.06rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Images added from the admin panel */
.prose img { display: block; max-width: 100%; height: auto; border-radius: 10px; }
.prose figure { margin: 1.8em 0; }
.prose figure img { width: auto; margin-inline: auto; }

/* Featured images */
.featured { margin: 0 0 28px; }
.featured-img { display: block; width: 100%; height: auto; border-radius: 12px; }
.featured figcaption { margin-top: 8px; }
.card.has-img { padding-top: 0; overflow: hidden; }
.card-img { display: block; width: calc(100% + 44px); max-width: none; margin: 0 -22px 10px; aspect-ratio: 16 / 9; height: auto; object-fit: cover; background: var(--surface); }
.related .card.has-img .card-img { width: calc(100% + 32px); margin: 0 -16px 8px; }
.card.feature.has-img { display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 26px; padding: 0 22px 0 0; }
.card.feature.has-img .card-img { grid-row: 1 / span 5; width: 100%; height: 100%; margin: 0; aspect-ratio: auto; min-height: 240px; }
.card.feature.has-img .tag { margin-top: 22px; }
.card.feature.has-img .more { margin-bottom: 22px; }
@media (max-width: 560px) {
  .card.feature.has-img { display: flex; padding: 0 22px 22px; }
  .card.feature.has-img .card-img { width: calc(100% + 44px); margin: 0 -22px 10px; aspect-ratio: 16 / 9; min-height: 0; }
  .card.feature.has-img .tag { margin-top: 0; }
}
