/* Elderfrost Nursery — editorial long-form + catalog.
   Decide/Learn surface with an Explore grid at the end. */

:root {
  --paper:     #f8f5ef;
  --paper-2:   #f1ece2;
  --surface:   #fffdf9;
  --ink:       #191713;
  --ink-soft:  #5c554a;
  --ink-faint: #8b8377;
  --rule:      #e0d9cc;
  --rule-dark: #3a3a30;

  --green:     #3f5a2e;
  --green-dp:  #22301b;
  --clay:      #a4501f;

  --wrap: 1140px;
  --gap: 28px;
  --radius: 3px;

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino,
                  "Book Antiqua", Georgia, serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
             "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.62;
  text-wrap: pretty;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.012em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem); line-height: 1.14; margin: 0 0 18px; }
h3 { font-size: 1.22rem; line-height: 1.25; margin: 0 0 10px; }
p { margin: 0 0 1.05em; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 40; background: var(--ink);
  color: var(--paper); padding: 10px 14px; border-radius: var(--radius); }

/* ── masthead ─────────────────────────────────────────── */
.masthead {
  position: sticky; top: 0; z-index: 20;
  background: rgba(248,245,239,.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.masthead__inner {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; padding-block: 15px;
}
.wordmark {
  font-family: var(--font-display); font-size: clamp(1.05rem, .95rem + .6vw, 1.3rem);
  text-decoration: none; white-space: nowrap; letter-spacing: -0.01em;
}
.masthead__nav { display: flex; align-items: baseline; gap: 20px; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.masthead__nav a { text-decoration: none; color: var(--ink-soft); }
.masthead__nav a:hover, .masthead__nav a:focus-visible { color: var(--ink); }
.masthead__cta { color: var(--green) !important; border-bottom: 1px solid var(--green); padding-bottom: 1px; }

/* ── hero ─────────────────────────────────────────────── */
.hero { padding: clamp(52px,7vw,104px) 0 clamp(44px,5vw,72px); border-bottom: 1px solid var(--rule); }
.hero__inner { max-width: 780px; }
.eyebrow {
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 16px;
}
.hero h1 {
  font-size: clamp(2.1rem, 1.4rem + 3.6vw, 4rem);
  line-height: 1.03; margin: 0 0 26px; letter-spacing: -0.026em;
}
.hero__lede { font-size: clamp(1.04rem, .98rem + .5vw, 1.24rem); color: #322d25; max-width: 62ch; }
.hero__lede--sub { color: var(--ink-soft); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-block; padding: 14px 26px; min-height: 46px;
  background: var(--green-dp); color: #f3f1ea; text-decoration: none;
  border-radius: var(--radius); font-size: .9rem; letter-spacing: .02em;
  border: 1px solid var(--green-dp); transition: background-color .14s ease;
}
.btn:hover { background: #172112; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { background: var(--paper-2); }
.btn:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

/* ── facts band ───────────────────────────────────────── */
.band { background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.facts__list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
  gap: 22px 24px; margin: 0; padding: 30px 0;
}
.facts__list > div { margin: 0; }
.facts__list dt {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 4px;
}
.facts__list dd { margin: 0; font-size: .95rem; }

/* ── sections ─────────────────────────────────────────── */
.section { padding: clamp(56px,7vw,104px) 0; }
.section__inner { max-width: 860px; }
.section--tint { background: var(--paper-2); }
.section--dark { background: var(--green-dp); color: #eceade; }
.section--dark h2, .section--dark h3 { color: #f2f0e4; }
.section--dark .eyebrow { color: #97a184; }
.section--dark .section__lede { color: #c4c8b5; }
.section--shop { background: var(--surface); border-top: 1px solid var(--rule); }
/* long-form copy stays narrow; the product grid gets the full measure */
.section--shop .section__inner { max-width: var(--wrap); }
.section--shop .section__lede { max-width: 62ch; }
.section__lede { font-size: 1.06rem; color: var(--ink-soft); max-width: 60ch; margin-bottom: 34px; }

.prose { max-width: 66ch; }
.prose h3 { margin: 34px 0 10px; }
.prose p { color: #2b2721; }
.section--dark .prose p { color: #d8dac9; }

/* ── duo ──────────────────────────────────────────────── */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 40px; margin-bottom: 52px; }
.duo--tight { gap: 40px; margin-bottom: 0; }
.duo__item { border-top: 2px solid #55663f; padding-top: 20px; }
.duo__item h3 { display: flex; align-items: baseline; gap: 12px; }
.num { font-family: var(--font-ui); font-size: .8rem; color: #8d9a72; letter-spacing: .1em; }
.duo__punch { font-family: var(--font-display); font-size: 1.08rem; color: #f0eee0; margin-top: 16px; }
.duo__item p:not(.duo__punch) { color: #cfd2c0; }

/* ── fix blocks ───────────────────────────────────────── */
.fix { margin-bottom: 48px; }
.fix__head {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  font-family: var(--font-ui); color: #97a184; margin-bottom: 16px;
}

.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th {
  text-align: left; font-family: var(--font-ui); font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint);
  padding: 0 14px 10px 0; border-bottom: 1px solid currentColor; font-weight: 500;
}
.section--dark .table th { color: #97a184; }
.table td { padding: 14px 14px 14px 0; border-bottom: 1px solid rgba(255,255,255,.13); vertical-align: top; color: #d8dac9; }
.table td:first-child { white-space: nowrap; padding-right: 20px; }
.table--wide td:first-child { white-space: normal; }
.section--dark .table td { border-bottom-color: rgba(255,255,255,.14); }
.section:not(.section--dark) .table td { color: var(--ink-soft); border-bottom-color: var(--rule); }
.section:not(.section--dark) .table td strong { color: var(--ink); }
.tablewrap { overflow-x: auto; }

/* ── checklist ────────────────────────────────────────── */
.checklist { list-style: none; margin: 0; padding: 0; max-width: 74ch; }
.checklist li {
  position: relative; padding: 0 0 16px 30px; color: #cfd2c0;
}
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 9px; height: 9px; border: 1.5px solid #8d9a72; border-radius: 50%;
}
.checklist strong { color: #f0eee0; }

/* ── steps ────────────────────────────────────────────── */
.steps { display: grid; gap: 44px; }
.step { border-top: 1px solid var(--rule); padding-top: 24px; }
.step h3 { font-size: 1.35rem; }
.spec { list-style: none; margin: 0 0 18px; padding: 0; max-width: 66ch; }
.spec li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.spec span { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); padding-top: 3px; }
.spec b { font-weight: 400; color: var(--ink); }
.step__note {
  border-left: 2px solid var(--green); padding: 2px 0 2px 16px;
  font-size: .94rem; color: var(--ink-soft); max-width: 62ch;
}

/* ── cards-3 ──────────────────────────────────────────── */
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 30px 34px; margin: 34px 0 40px; }
.cards-3 article { border-top: 1px solid var(--rule); padding-top: 16px; }
.cards-3 h3 { font-size: 1.05rem; }
.cards-3 p { font-size: .94rem; color: var(--ink-soft); margin: 0; }

.callout {
  background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--clay);
  padding: 20px 22px; font-size: .95rem; color: var(--ink-soft); max-width: 72ch;
}
.callout strong { color: var(--ink); }

/* ── plain lists ──────────────────────────────────────── */
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: .95rem; color: var(--ink-soft); }
.plain li:last-child { border-bottom: 0; }
.plain strong { color: var(--ink); font-weight: 600; }

.fineprint { font-size: .8rem; color: var(--ink-faint); margin-top: 14px; }

/* ── shop toolbar + grid ──────────────────────────────── */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: .8rem; letter-spacing: .01em; padding: 9px 15px; min-height: 38px;
  background: transparent; color: var(--ink-soft); border: 1px solid var(--rule);
  border-radius: 999px; cursor: pointer; transition: border-color .12s, color .12s, background-color .12s;
}
.chip:hover { color: var(--ink); border-color: #c6bfb0; }
.chip:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.count { margin: 0; font-size: .8rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

.grid {
  list-style: none; margin: 0; padding: 36px 0 8px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 30px;
}
.card { display: flex; }
.card--error { color: var(--ink-soft); font-size: .9rem; }
.card__link { display: flex; flex-direction: column; width: 100%; text-decoration: none; color: inherit; }
.card__media {
  position: relative; display: block; aspect-ratio: 4 / 3; background: var(--paper-2);
  border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden;
  transition: border-color .14s ease;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 3.4rem; color: #cec6b5; user-select: none;
  background: repeating-linear-gradient(45deg, transparent 0 12px, var(--paper-2) 12px 24px);
}
.badge {
  position: absolute; top: 10px; left: 10px; background: var(--green); color: #f3f1ea;
  font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 2px;
}
.card__link:hover .card__media, .card__link:focus-visible .card__media { border-color: #bab19f; }
.card__link:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; }
.card__cat { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.card__name { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.28; }
.card__note { font-size: .87rem; color: var(--ink-soft); line-height: 1.5; }
.card__foot { display: flex; align-items: baseline; gap: 10px; padding-top: 6px; }
.card__price { font-variant-numeric: tabular-nums; font-size: 1rem; font-weight: 600; }
.card__unit { font-size: .78rem; color: var(--ink-faint); }
.card__cta {
  font-size: .82rem; color: var(--clay); padding-top: 4px;
  opacity: 0; transform: translateY(-2px); transition: opacity .14s ease, transform .14s ease;
}
.card__link:hover .card__cta, .card__link:focus-visible .card__cta { opacity: 1; transform: none; }

.empty { padding: 40px 0 8px; color: var(--ink-soft); font-size: .9rem; }
.shipnote { margin-top: 34px; font-size: .84rem; color: var(--ink-faint); }

/* ── footer ───────────────────────────────────────────── */
.footer { border-top: 1px solid var(--rule); background: var(--paper-2); }
.footer__inner {
  padding-block: 44px 56px; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
}
.footer__brand { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 2px; }
.footer__meta, .footer__note { margin: 0; font-size: .86rem; color: var(--ink-soft); }
.footer__note a { color: var(--clay); }

/* ── responsive ───────────────────────────────────────── */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .masthead__nav { gap: 14px; font-size: .72rem; }
  .masthead__nav a[href="#varieties"], .masthead__nav a[href="#companions"] { display: none; }
  .spec li { grid-template-columns: 1fr; gap: 2px; }
  .spec span { padding-top: 0; }
  .duo { gap: 34px; }
}
@media (max-width: 520px) {
  .masthead__nav a[href="#honest"] { display: none; }
  .grid { grid-template-columns: 1fr; gap: 30px; }
  .card__cta { opacity: 1; transform: none; }
  .table td:first-child { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .card__cta { opacity: 1; transform: none; }
}
