/* The landing page: clean and quiet, the logo in the hero and living soil
   faintly in the terra preta band. Brand tokens and horizon colours are in brand.css. */
:root { --earth: #1C1612; --earth-ink: #F3E9DA; --earth-muted: #C9B59C; --wrap: 1180px; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); }
a { color: var(--olive); }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.1; }
em { font-style: italic; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; padding: 8px 12px; border-radius: 8px; background: var(--olive); color: var(--accent-ink); }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }

/* Buttons. */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border: 1px solid var(--btn-line); border-radius: 999px; background: var(--btn-bg); color: var(--btn-ink); font: 500 15px var(--sans); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -14px rgba(46, 30, 18, .6); }
.btn span { transition: transform .2s ease; }
.btn:hover span { transform: translateX(3px); }
.btn.is-ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.btn.is-ghost:hover span { transform: translateY(2px); }
.btn.is-small { padding: 8px 16px; font-size: 14px; }
.icon-btn { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); font-size: 16px; cursor: pointer; }
.icon-btn:hover { border-color: var(--olive); }

/* Top bar. */
.top { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid transparent; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: border-color .2s; }
.top.is-scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; max-width: var(--wrap); margin: 0 auto; padding: 14px 28px; }
.mark { display: flex; align-items: center; gap: 10px; font-size: 21px; text-decoration: none; }
.mark img { border-radius: 50%; }
.links { display: flex; gap: 26px; margin-left: auto; }
.links a { color: var(--muted); font-size: 14.5px; text-decoration: none; }
.links a:hover { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 10px; }

/* Shared section furniture. */
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; text-wrap: balance; color: var(--olive); font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--olive); box-shadow: 0 0 0 4px var(--olive-soft); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.section { max-width: var(--wrap); margin: 0 auto; padding: 120px 28px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 52px); letter-spacing: -.015em; }
.section-head h2 em { color: var(--olive); }
.section-head > p:last-child { margin: 18px 0 0; color: var(--muted); font-size: 17.5px; }

/* Hero. */
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); align-items: center; gap: 32px 64px; max-width: var(--wrap); margin: 0 auto; padding: 28px 28px 24px; }
/* Two lines on wide screens: the size tracks the column so "Regenerating
   Earth begins" always fits, and "beneath our feet." stays whole beneath it.
   On phones the first line balances into two. */
.hero h1 { font-size: clamp(40px, 4.4vw, 62px); font-weight: 300; line-height: 1.04; letter-spacing: -.025em; text-wrap: balance; }
.hero h1 em { display: block; color: var(--olive); white-space: nowrap; }
.lede { max-width: 640px; margin: 22px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-logo { font-size: clamp(34px, 3.6vw, 44px); }
.hero-logo .logo-mark { width: min(100%, 250px); }
.hero-logo figcaption { display: grid; justify-items: center; gap: 16px; }
.hero-logo .wordmark { line-height: 1; }

/* What Loamistry offers: four cards across the foot of the hero. */
.offer { grid-column: 1 / -1; }
.offer-head { margin: 0 0 16px; color: var(--olive); font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.offers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.offers a { display: flex; flex-direction: column; gap: 7px; height: 100%; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--edge); color: inherit; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.offers a:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--olive) 45%, var(--line)); box-shadow: var(--hover-shadow); }
.o-num { color: var(--olive); font: italic 15px var(--serif); }
.offers b { font: 400 21px/1.15 var(--serif); text-wrap: balance; }
.offers p { flex: 1; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.o-status { align-self: flex-start; margin-top: 8px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }
.o-status.is-now { border-color: transparent; background: var(--olive-soft); color: var(--olive); }
.o-status.is-open { border-color: color-mix(in srgb, var(--olive) 45%, var(--line)); color: var(--olive); }
@media (prefers-reduced-motion: reduce) { .offers a { transition: none; } }

/* The name's entry: pronunciation and definition; the roots have their own
   section (.roots). */
.etym { display: grid; gap: 8px; width: min(100%, 340px); padding-top: 14px; border-top: 1px solid var(--line); font: 14px/1.5 var(--sans); text-align: center; }
.etym-say { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .14em; }
.etym-say i { margin-left: 6px; font: italic 400 15px var(--serif); letter-spacing: 0; text-transform: none; }
.etym-def { color: var(--ink); font: italic 18px/1.35 var(--serif); }

/* The name's five roots, read left to right like a sum. */
.roots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; }
.roots li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 32px 22px 30px; }
.roots li + li { border-left: 1px solid var(--line); }
.roots li + li::before { content: "+"; position: absolute; top: 34px; left: -9px; width: 17px; background: var(--bg); color: var(--olive); font: 300 22px/1 var(--serif); text-align: center; }
.roots b { font-size: 30px; font-weight: 400; line-height: 1.1; }
.roots span { color: var(--olive); font: 600 11.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.roots p { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* Cards. */
.cards { display: grid; gap: 16px; }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--edge); transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--olive) 40%, var(--line)); box-shadow: var(--hover-shadow); }
.card h3 { font-size: 25px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.glyph { width: 56px; height: 56px; margin-bottom: 14px; }
.g-line, .g-soft { fill: none; stroke: var(--olive); stroke-width: 2; stroke-linecap: round; }
.g-soft { opacity: .5; }
.g-fill { fill: var(--olive); }
.g-char { fill: var(--brand-char); }
.g-pore { fill: var(--card); opacity: .9; }
.kicker { margin: 8px 0 -2px !important; color: var(--olive) !important; font: 600 11.5px var(--sans) !important; letter-spacing: .14em; text-transform: uppercase; }
.card.is-tall > :first-child { margin-bottom: 12px; }

/* The trial plots, the batch record and the commons. */
.plots { width: 100%; height: auto; }
.plots rect { stroke: var(--card); stroke-width: 1; }
.p-0 { fill: #DCC7AB; background: #DCC7AB; } .p-1 { fill: #B88A5C; background: #B88A5C; } .p-2 { fill: #26231F; background: #26231F; } .p-3 { fill: #5B391E; background: #5B391E; }
.key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 12.5px; }
.key li { display: flex; align-items: center; gap: 6px; }
.key i { width: 10px; height: 10px; border-radius: 3px; }
.batch { display: grid; padding: 4px 16px; border-radius: 16px; background: var(--bg); border: 1px dashed var(--line); font-size: 13px; }
.batch p { margin: 8px 0 4px; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.batch div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.batch span { color: var(--muted); }
.batch b { font-weight: 500; text-align: right; }
.commons { display: flex; flex-wrap: wrap; gap: 8px; }
.commons span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font-size: 13px; }

/* Terra preta: the black earth band, with living soil faintly in it. */
.earth { position: relative; margin-top: 130px; overflow: hidden; background: var(--earth-bg); box-shadow: var(--earth-edge); color: var(--earth-ink); }
.earth canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, .4) 45%, #000 85%); mask-image: linear-gradient(90deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, .4) 45%, #000 85%); }
.earth-in { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 120px 28px; }
.earth .eyebrow { color: var(--brand-sand); }
.earth .section-head > p:last-child { color: var(--earth-muted); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid rgba(243, 233, 218, .18); }
.stats div { padding: 28px 28px 8px 0; }
.stats div + div { padding-left: 28px; border-left: 1px solid rgba(243, 233, 218, .18); }
.stats dt { font: 300 clamp(44px, 5vw, 64px)/1 var(--serif); letter-spacing: -.02em; }
.stats dd { margin: 12px 0 0; color: var(--earth-muted); font-size: 15px; }
.stats small { display: block; margin-top: 8px; color: rgba(243, 233, 218, .5); font-size: 12px; }
.compare { max-width: 820px; margin: 64px 0 0; padding: 30px; border: 1px solid rgba(243, 233, 218, .14); border-radius: 22px; background: rgba(28, 22, 18, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.compare figcaption { font: 400 22px/1.3 var(--serif); }
.bars { display: grid; gap: 14px; margin: 24px 0 0; }
.bar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 70px; align-items: center; gap: 16px; font-size: 14px; }
.bar span { color: var(--earth-muted); }
.bar b { height: 12px; border-radius: 6px; background: rgba(243, 233, 218, .08); }
.bar b::before { content: ""; display: block; width: 0; height: 100%; border-radius: 6px; background: #D95926; transition: width 1.6s cubic-bezier(.2, .7, .2, 1); }
.bar.is-char b::before { background: linear-gradient(90deg, #4A4038, #9085E9); }
.compare.is-shown .bar b::before { width: max(var(--w), 6px); }
.bar strong { font: 400 22px var(--serif); text-align: right; }
.fine { margin: 20px 0 0; color: rgba(243, 233, 218, .6); font-size: 13px; }
.fine a { color: var(--brand-sand); }

/* The white paper. */
.paper-cta { display: grid; grid-template-columns: 360px minmax(0, 1fr); align-items: center; gap: 72px; padding: 56px; border: 1px solid var(--line); border-radius: 32px; background: linear-gradient(150deg, var(--card), var(--side)); }
.cover { position: relative; display: flex; flex-direction: column; aspect-ratio: 1 / 1.3; padding: 30px 28px 0; overflow: hidden; border-radius: 10px 18px 18px 10px; background: #FFFDF8; color: #2E1E12; text-decoration: none; box-shadow: 0 2px 0 rgba(0, 0, 0, .04), 0 30px 60px -28px rgba(46, 30, 18, .55), inset 6px 0 0 rgba(91, 57, 30, .08); transform: rotate(-2deg); transition: transform .3s ease; }
.cover:hover { transform: rotate(0) translateY(-4px); }
.cover-top { display: flex; align-items: center; gap: 10px; color: #875833; font: 600 10.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.cover-top img { border-radius: 50%; }
.cover-title { margin-top: 34px; font: 300 33px/1.05 var(--serif); letter-spacing: -.01em; }
.cover-strata { display: flex; flex-direction: column; margin: auto -28px 0; }
.cover-strata i { display: block; height: 16px; background: var(--tx), var(--c); }
.cover-strata i[data-h="b"] { height: 22px; }
.paper-copy h2 { font-size: clamp(34px, 4vw, 48px); letter-spacing: -.015em; }
.paper-copy > p:not(.eyebrow) { margin: 16px 0 0; color: var(--muted); font-size: 17px; }
.chapters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; margin: 28px 0 32px; padding: 0; list-style: none; }
.paper-copy .actions { margin-top: 0; }
.chapters a { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 15px; text-decoration: none; }
.chapters a:hover { color: var(--olive); }
.chapters i { display: grid; flex: none; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--tx), var(--c); color: var(--t); font: normal 400 15px var(--serif); }

/* Get involved and the footer. */
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.contact p { margin: 0; color: var(--muted); font-size: 14px; }
.foot { margin-top: 140px; border-top: 1px solid var(--line); background: var(--side); }
.foot-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 40px; max-width: var(--wrap); margin: 0 auto; padding: 40px 28px 48px; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { border-radius: 50%; }
.foot-brand b { display: block; font-size: 21px; line-height: 1.1; }
.foot-brand small { color: var(--muted); font: italic 13.5px var(--serif); }
.foot p { max-width: 560px; margin: 0; color: var(--muted); font-size: 13px; }
.foot-links { display: grid; justify-items: end; gap: 14px; }
.foot nav { display: flex; gap: 20px; font-size: 14px; }
.foot nav a { color: var(--ink); text-decoration: none; }
.foot nav a:hover { color: var(--olive); }
.foot-in { padding-bottom: 8px; }
.foot .ack { border-top: 1px solid var(--line); max-width: none; }

/* Reveal on scroll, unless motion is reduced. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .dot { animation: none; }
  .bar b::before { transition: none; }
  .btn, .card, .cover { transition: none; }
}

@media (max-width: 1080px) {
  .cards.four, .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paper-cta { grid-template-columns: 280px minmax(0, 1fr); gap: 48px; padding: 40px; }
  .cover-title { font-size: 27px; }
}
@media (max-width: 880px) {
  .links { display: none; }
  .top-actions { margin-left: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-top: 36px; }
  .hero h1 { font-size: min(56px, 6.6vw); }
  .hero-logo { order: 1; font-size: 42px; } /* after the offers on small screens */
  .hero-logo .logo-mark { width: min(64vw, 260px); }
  .cards.three { grid-template-columns: minmax(0, 1fr); }
  .roots { grid-template-columns: minmax(0, 1fr); }
  .roots li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 24px; padding: 24px 0; }
  .roots li + li { border-top: 1px solid var(--line); border-left: 0; }
  .roots li + li::before { display: none; }
  .roots b, .roots span { grid-column: 1; }
  .roots p { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stats div, .stats div + div { padding: 22px 0; border-left: 0; }
  .stats div + div { border-top: 1px solid rgba(243, 233, 218, .18); }
  .paper-cta { grid-template-columns: minmax(0, 1fr); padding: 32px 24px; }
  .cover { width: min(100%, 300px); justify-self: center; }
  .foot-in { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .foot-links { justify-items: start; }
}
@media (max-width: 560px) {
  .top-in { gap: 12px; padding: 12px 16px; }
  .mark { font-size: 20px; }
  .mark img { width: 30px; height: 30px; }
  .hero, .section { padding-left: 16px; padding-right: 16px; }
  .section { padding-top: 88px; }
  .hero h1 { font-size: 44px; }
  .lede { font-size: 17px; }
  .cards.four, .offers { grid-template-columns: minmax(0, 1fr); }
  .offers a { padding: 20px; }
  .card { padding: 22px; }
  .earth { margin-top: 96px; }
  .earth-in { padding: 84px 16px; }
  .compare { padding: 22px 18px; }
  .bar { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .bar b { grid-column: 1 / -1; grid-row: 2; }
  .chapters { grid-template-columns: minmax(0, 1fr); }
  .roots li { grid-template-columns: minmax(0, 1fr); }
  .roots p { grid-column: 1; grid-row: auto; margin-top: 6px; }
  .foot-in { padding: 32px 16px 40px; }
  .ack { padding: 34px 16px 40px; }
  .ack p { font-size: 15px; }
}
