:root {
  --paper: #e8eee6;
  --paper-deep: #dfe8dc;
  --ink: #1e2620;
  --aubergine: #55276a;
  --rule: rgb(30 38 32 / 20%);
  --muted: rgb(30 38 32 / 68%);
  --mono: "DM Mono", ui-monospace, monospace;
  --serif: "Libre Baskerville", Georgia, serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}

keith-kohlrabi { display: block; }

a { color: inherit; }

.shell {
  width: min(100% - 80px, 1080px);
  margin-inline: auto;
}

.site-header {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font: 400 10px/1 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
}

.wordmark { text-decoration: none; }

.hero {
  min-height: calc(100svh - 70px);
  padding-block: clamp(60px, 8vw, 105px) 70px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.scroll-cue,
.specimen-data,
.peel-meter,
figcaption {
  font: 400 10.5px/1.5 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--aubergine);
}

.hero h1 {
  margin: 0;
  font: 400 clamp(62px, 12.5vw, 150px)/.88 var(--serif);
  letter-spacing: -.05em;
}

.specimen-data {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  letter-spacing: .035em;
  text-transform: none;
}

.specimen-data i {
  color: var(--muted);
  font-style: normal;
}

.dek {
  max-width: 31ch;
  margin: 42px 0 0;
  font-size: clamp(21px, 2.5vw, 30px);
  line-height: 1.55;
}

.scroll-cue {
  width: fit-content;
  margin-top: 36px;
  color: var(--muted);
  text-decoration: none;
}

.peel-section {
  --plant-x: 0px;
  --cut-x: 0px;
  --cut-scale: .78;
  --cut-opacity: 0;
  --label-opacity: 0;
  height: 260svh;
  background: #e3eae1;
  border-block: 1px solid var(--rule);
}

.peel-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(45px, 8vw, 110px);
  overflow: hidden;
}

.peel-copy { max-width: 465px; }

h2 {
  margin: 0 0 24px;
  font: 400 clamp(30px, 4vw, 48px)/1.16 var(--serif);
  letter-spacing: -.035em;
  text-wrap: balance;
}

.peel-copy > p:not(.eyebrow, .peel-meter),
.story-copy > p:not(.eyebrow),
.why-columns p {
  margin: 0 0 16px;
  font-size: 16.5px;
  line-height: 1.75;
  color: rgb(30 38 32 / 85%);
}

.peel-meter {
  margin: 30px 0 0;
  color: var(--muted);
}

.peel-figure {
  position: relative;
  width: clamp(320px, 41vw, 490px);
  aspect-ratio: 560 / 650;
  flex: none;
}

.kohlrabi-specimen {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.plant-half {
  transform: translateX(var(--plant-x));
  transform-origin: 280px 430px;
  will-change: transform;
}

.stem,
.leaf-vein,
.rootlets path {
  fill: none;
  stroke-linecap: round;
}

.stem {
  stroke: #5f7c4e;
  stroke-width: 13;
}

.stem--small { stroke-width: 9; }

.leaf {
  fill: #769864;
  stroke: #405c39;
  stroke-width: 2;
}

.leaf--small { fill: #6e915d; }

.leaf-vein {
  stroke: rgb(232 238 230 / 65%);
  stroke-width: 2;
}

.bulb {
  fill: url(#bulb-light);
  stroke: #32173d;
  stroke-width: 2;
}

.bulb-highlight {
  fill: none;
  stroke: rgb(255 255 255 / 18%);
  stroke-linecap: round;
  stroke-width: 7;
}

.rootlets path {
  stroke: #4a2359;
  stroke-width: 5;
}

.cut-half {
  opacity: var(--cut-opacity);
  transform: translateX(var(--cut-x)) scale(var(--cut-scale));
  transform-origin: 283px 423px;
  will-change: opacity, transform;
}

.cut-rind {
  fill: var(--aubergine);
  stroke: #32173d;
  stroke-width: 2;
}

.cut-flesh {
  fill: url(#flesh-light);
  stroke: rgb(30 38 32 / 28%);
  stroke-width: 1.5;
}

.growth-rings {
  fill: none;
  stroke: rgb(66 87 58 / 18%);
  stroke-width: 2;
}

.growth-rings path { stroke-width: 1.5; }

.cut-core { fill: rgb(85 39 106 / 28%); }

.foliage {
  transform-origin: 280px 350px;
  transform: rotate(calc(var(--cut-opacity) * -1.5deg));
}

.figure-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font: 400 10px/1 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: var(--label-opacity);
  transition: opacity .12s linear;
}

.figure-label i {
  width: 26px;
  height: 1px;
  background: currentColor;
}

.figure-label--skin {
  left: 2%;
  bottom: 18%;
  flex-direction: row-reverse;
}

.figure-label--flesh { top: 38%; right: 0; }

.story {
  padding-block: clamp(90px, 11vw, 140px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(45px, 7vw, 80px);
  align-items: center;
}

.story--reverse { grid-template-columns: .95fr 1.05fr; }
.story--wide { grid-template-columns: .85fr 1.15fr; }

.photo { margin: 0; }

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.84) contrast(.96);
}

.photo--portrait { aspect-ratio: 4 / 5; }
.photo--square { aspect-ratio: 1; }
.photo--landscape { aspect-ratio: 3 / 2; }

figcaption {
  margin-top: 11px;
  color: var(--muted);
  font-size: 9px;
}

.dark-section {
  color: var(--paper);
  background: var(--ink);
}

.dark-section .eyebrow { color: #a9ce91; }
.dark-section .story-copy > p:not(.eyebrow) { color: rgb(232 238 230 / 84%); }
.dark-section figcaption { color: rgb(232 238 230 / 58%); }

.why { border-top: 1px solid var(--rule); }

.why .shell { padding-block: clamp(90px, 11vw, 140px); }

.why h2 {
  max-width: 22ch;
  font-size: clamp(35px, 5vw, 62px);
}

.why-columns {
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
}

blockquote {
  max-width: 37ch;
  margin: 44px 0 0;
  font-size: 21px;
  font-style: italic;
  line-height: 1.65;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 720px) {
  .shell { width: min(100% - 40px, 1080px); }
  .site-header { min-height: 60px; }
  .site-header span { display: none; }
  .hero { min-height: calc(100svh - 60px); }
  .hero h1 { font-size: clamp(52px, 18vw, 94px); }
  .specimen-data { display: grid; gap: 9px; }

  .peel-sticky {
    padding-block: 70px 62px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
    gap: 48px;
  }

  .peel-copy { align-self: end; }
  .peel-copy > p:not(.eyebrow, .peel-meter) { font-size: 14px; line-height: 1.65; }
  .peel-copy > p:nth-of-type(3) { display: none; }
  .peel-meter { margin-top: 18px; }
  .peel-figure { width: min(66vw, 310px); align-self: start; }
  .figure-label { display: none; }

  .story,
  .story--reverse,
  .story--wide,
  .why-columns {
    grid-template-columns: 1fr;
  }

  .story--reverse .photo { order: 2; }
  .story--reverse .story-copy { order: 1; }
  .story { gap: 42px; }
  .why-columns { gap: 0; }
}

@media (min-width: 721px) and (max-width: 900px) {
  .figure-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
