/* On Gardening — mobile-first editorial. Removable with pages/garden + layouts/garden + GardenController + GardenCatalog */

:root {
  --gd-ink: #1a2416;
  --gd-body: #24301f;
  --gd-mute: #5a6754;
  --gd-paper: #f8f4ea;
  --gd-card: #fffdf8;
  --gd-line: #e2dac8;
  --gd-forest: #1b3322;
  --gd-leaf: #2f5d32;
  --gd-leaf-2: #5d8a48;
  --gd-gold: #9a7b3a;
  --gd-ad-bg: #ece6d8;
  --gd-radius: 16px;
  --gd-pad: 20px;
  --gd-max: 440px;
  --gd-serif: "Source Serif 4", "Iowan Old Style", Palatino, Georgia, serif;
  --gd-display: Fraunces, "Source Serif 4", Georgia, serif;
  --gd-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

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

.gd-body {
  min-height: 100dvh;
  background:
    radial-gradient(900px 380px at 50% -120px, #e4eed6 0%, transparent 72%),
    #e8e1d0;
  color: var(--gd-body);
  font-family: var(--gd-sans);
  font-size: 18px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
}

.gd-skip {
  position: absolute;
  left: -999px;
  top: 8px;
}

.gd-skip:focus {
  left: 8px;
  z-index: 20;
  background: #fff;
  padding: 8px 12px;
}

.gd-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  background: rgba(27, 51, 34, 0.55);
  color: #f4f8ee;
  font-family: var(--gd-sans);
  font-size: 16px;
  font-weight: 650;
}

.gd-nav-overlay[hidden] {
  display: none;
}

.gd-nav-overlay p {
  margin: 0;
  padding: 14px 22px;
  border-radius: 12px;
  background: var(--gd-forest);
}

.gd-frame {
  width: 100%;
  max-width: var(--gd-max);
  margin: 0 auto;
  min-height: 100dvh;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.45), transparent 180px),
    var(--gd-paper);
}

.gd-shell {
  padding: 0 0 40px;
}

/* —— First fold stays compact so the display unit keeps the viewport —— */
.gd-first-fold {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  min-height: 100dvh;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--gd-line);
}

.gd-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  height: calc(48px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gd-pad) 0;
  background: var(--gd-forest);
  color: #f3f7ee;
  flex-shrink: 0;
}

.gd-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.gd-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  color: #d5e8b8;
  flex-shrink: 0;
}

.gd-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.gd-brand-text strong {
  font-family: var(--gd-display);
  font-size: 16px;
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
}

.gd-brand-text em {
  font-family: var(--gd-sans);
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c5d6b4;
}

.gd-top-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #c5d6b4;
  flex-shrink: 0;
}

.gd-fold-title {
  display: block;
  padding: 12px var(--gd-pad) 10px;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
}

.gd-kicker {
  margin: 0 0 5px;
  font-family: var(--gd-sans);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--gd-leaf);
}

.gd-fold-title h1 {
  margin: 0;
  font-family: var(--gd-display);
  font-optical-sizing: auto;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--gd-ink);
  text-wrap: balance;
}

/* Display ads */
.gd-ad {
  position: relative;
  width: 100%;
  overflow: visible;
  background: var(--gd-ad-bg);
}

.gd-ad-label {
  display: block;
  padding: 4px 12px 2px;
  font-family: var(--gd-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8d8678;
}

.gd-ad ins.adsbygoogle {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

.gd-ad-fold {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
  margin: 0;
  background: #e4ddcc;
}

.gd-ad-fold ins.adsbygoogle {
  min-height: 280px !important;
  flex: 1 1 auto;
}

.gd-ad-infeed,
.gd-ad-bottom {
  margin: 28px 0;
  min-height: 250px;
}

.gd-ad-infeed ins.adsbygoogle,
.gd-ad-bottom ins.adsbygoogle {
  min-height: 250px;
}

.gd-feed .gd-ad-infeed {
  margin-left: calc(-1 * var(--gd-pad));
  margin-right: calc(-1 * var(--gd-pad));
  width: calc(100% + (2 * var(--gd-pad)));
}

.gd-prose .gd-ad-infeed {
  margin-left: calc(-1 * var(--gd-pad));
  margin-right: calc(-1 * var(--gd-pad));
  width: calc(100% + (2 * var(--gd-pad)));
}

.gd-lede {
  margin: 10px var(--gd-pad) 0;
  font-family: var(--gd-serif);
  font-size: 1.08rem;
  font-style: italic;
  color: var(--gd-mute);
  line-height: 1.45;
}

.gd-lede-fold {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
  margin-top: 10px;
}

.gd-read-cta-fold {
  flex-shrink: 0;
  margin-top: 12px;
  margin-bottom: 6px;
}

.gd-byline {
  margin: 10px var(--gd-pad) 0;
  font-family: var(--gd-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--gd-mute);
}

.gd-read-cta {
  display: block;
  margin: 12px var(--gd-pad) 6px;
  padding: 13px 16px;
  text-align: center;
  text-decoration: none;
  font-family: var(--gd-sans);
  font-weight: 700;
  font-size: 17px;
  color: #f6faf1;
  background: linear-gradient(180deg, #4d8646, var(--gd-leaf));
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(27, 51, 34, 0.16);
}

.gd-read-cta:active {
  transform: scale(0.98);
}

/* Article reading column */
.gd-article-head {
  padding: 22px var(--gd-pad) 6px;
}

.gd-standfirst {
  margin: 0;
  font-family: var(--gd-serif);
  font-optical-sizing: auto;
  font-size: 1.35rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: var(--gd-ink);
  text-wrap: pretty;
}

.gd-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--gd-line);
  font-family: var(--gd-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--gd-mute);
}

.gd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.gd-tags li {
  padding: 4px 10px;
  border: 1px solid var(--gd-line);
  border-radius: 999px;
  background: var(--gd-card);
  font-family: var(--gd-sans);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--gd-leaf);
}

.gd-list-h,
.gd-related h2,
.gd-take h2 {
  margin: 0 var(--gd-pad) 12px;
  font-family: var(--gd-display);
  font-optical-sizing: auto;
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--gd-ink);
}

.gd-archive {
  padding-top: 22px;
}

.gd-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0 var(--gd-pad);
}

.gd-card {
  display: block;
  padding: 16px 16px 14px;
  background: var(--gd-card);
  border: 1px solid var(--gd-line);
  border-radius: var(--gd-radius);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 0 rgba(26, 36, 22, 0.04);
}

.gd-card:active {
  transform: scale(0.995);
}

.gd-card-kicker {
  display: block;
  font-family: var(--gd-sans);
  font-size: 12px;
  font-weight: 650;
  color: var(--gd-leaf);
}

.gd-card-title {
  display: block;
  margin-top: 5px;
  font-family: var(--gd-display);
  font-optical-sizing: auto;
  font-size: 1.32rem;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--gd-ink);
  text-wrap: balance;
}

.gd-card-dek {
  display: block;
  margin-top: 8px;
  font-family: var(--gd-serif);
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--gd-mute);
}

.gd-card-meta {
  display: block;
  margin-top: 12px;
  font-family: var(--gd-sans);
  font-size: 13px;
  font-weight: 650;
  color: var(--gd-gold);
}

.gd-prose {
  padding: 8px var(--gd-pad) 4px;
  font-family: var(--gd-serif);
  font-optical-sizing: auto;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.74;
  color: var(--gd-body);
  hanging-punctuation: first allow-end last;
}

.gd-prose h2 {
  margin: 1.85em 0 0.55em;
  font-family: var(--gd-display);
  font-optical-sizing: auto;
  font-size: 1.42rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--gd-ink);
  text-wrap: balance;
}

.gd-prose h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin-top: 8px;
  background: var(--gd-gold);
  border-radius: 1px;
}

.gd-prose p {
  margin: 0 0 1.05em;
  text-wrap: pretty;
}

.gd-drop::first-letter {
  float: left;
  margin: 0.08em 0.1em 0 0;
  font-family: var(--gd-display);
  font-size: 3.15em;
  font-weight: 600;
  line-height: 0.82;
  color: var(--gd-leaf);
}

.gd-prose ul,
.gd-steps {
  margin: 0 0 1.2em;
  padding: 0;
  list-style: none;
}

.gd-prose ul li,
.gd-steps li {
  position: relative;
  margin: 0 0 0.75em;
  padding-left: 1.35rem;
  line-height: 1.55;
}

.gd-prose ul li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gd-leaf-2);
}

.gd-steps {
  counter-reset: gdstep;
}

.gd-steps li {
  padding: 12px 12px 12px 3rem;
  border: 1px solid var(--gd-line);
  border-radius: 12px;
  background: var(--gd-card);
}

.gd-steps li::before {
  counter-increment: gdstep;
  content: counter(gdstep);
  position: absolute;
  left: 10px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--gd-forest);
  color: #f4f8ee;
  font-family: var(--gd-sans);
  font-size: 12px;
  font-weight: 700;
}

.gd-take {
  margin: 12px var(--gd-pad) 0;
  padding: 16px 16px 8px;
  background: #eef3e3;
  border: 1px solid #d5e0c4;
  border-radius: var(--gd-radius);
}

.gd-take-kicker {
  margin: 0 0 4px;
  font-family: var(--gd-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gd-leaf);
}

.gd-take h2 {
  margin: 0 0 10px;
}

.gd-take h2::after {
  display: none;
}

.gd-take ul {
  margin: 0;
  padding: 0 0 6px;
  list-style: none;
}

.gd-take li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 1.35rem;
  font-family: var(--gd-serif);
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--gd-body);
}

.gd-take li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.55rem;
  height: 0.32rem;
  border-left: 2px solid var(--gd-leaf);
  border-bottom: 2px solid var(--gd-leaf);
  transform: rotate(-45deg);
}

.gd-related {
  padding: 8px 0 4px;
}

.gd-related ul {
  list-style: none;
  margin: 0;
  padding: 0 var(--gd-pad);
}

.gd-related li + li {
  margin-top: 10px;
}

.gd-related a {
  display: block;
  padding: 14px 15px;
  background: var(--gd-card);
  border: 1px solid var(--gd-line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
}

.gd-related a span {
  display: block;
  font-family: var(--gd-sans);
  font-size: 11px;
  font-weight: 650;
  color: var(--gd-leaf);
}

.gd-related a strong {
  display: block;
  margin-top: 4px;
  font-family: var(--gd-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  color: var(--gd-ink);
}

.gd-related a small {
  display: block;
  margin-top: 6px;
  font-family: var(--gd-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--gd-mute);
}

.gd-disc {
  margin: 22px var(--gd-pad) 8px;
  padding-top: 14px;
  border-top: 1px solid var(--gd-line);
  font-family: var(--gd-sans);
  font-size: 12px;
  line-height: 1.5;
  color: var(--gd-mute);
}

@media (min-width: 480px) {
  :root {
    --gd-max: 520px;
    --gd-pad: 24px;
  }

  .gd-fold-title h1 {
    font-size: 1.7rem;
  }

  .gd-prose {
    font-size: 1.32rem;
    line-height: 1.76;
  }
}

@media (min-width: 768px) {
  .gd-frame {
    max-width: 560px;
    box-shadow:
      0 0 0 1px rgba(27, 51, 34, 0.08),
      0 28px 60px rgba(27, 51, 34, 0.12);
  }

  .gd-prose {
    font-size: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gd-card:active,
  .gd-read-cta:active {
    transform: none;
  }
}
