@font-face {
  font-family: "DM Sans"; src: url("fonts/dm-sans.woff2") format("woff2");
  font-style: normal; font-weight: 400 650; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif"; src: url("fonts/instrument-serif.woff2") format("woff2");
  font-style: normal; font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif"; src: url("fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic; font-weight: 400; font-display: swap;
}

:root {
  --paper: #f2f3e9;
  --ink: #23392c;
  --deep: #101f17;
  --forest: #21372a;
  --olive: #354b37;
  --soft-ink: #435648;
  --sage: #e0e9d7;
  --moss: #d8e6a7;
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 5.35vw, 5.25rem);
  --small: .9rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1rem; line-height: 1.6; }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: .94; letter-spacing: -.025em; }
h2 { font-size: clamp(3.35rem, 6.8vw, 7rem); }
h3 { font-size: clamp(2rem, 3.1vw, 3.25rem); }
::selection { background: var(--moss); color: var(--deep); }
.frame { width: min(100% - var(--gutter) * 2, 88rem); margin-inline: auto; }
.section-pad { padding-block: clamp(4.15rem, 7.7vw, 7.75rem); }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; inset: .5rem auto auto .5rem; z-index: 10; padding: .75rem 1rem; background: var(--paper); color: var(--ink); }
.text-link { text-decoration-line: underline; text-decoration-thickness: .08em; text-underline-offset: .24em; font-weight: 600; }
.text-link:hover { text-decoration-thickness: .14em; }

.site-header { background: var(--deep); color: var(--paper); }
.site-header-inner { min-height: 4.75rem; display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.25rem; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: .66rem; width: max-content; font: 2rem/.9 var(--display); letter-spacing: -.02em; text-decoration: none; }
.brand img { width: 2.25rem; height: 2.25rem; }
.site-nav, .footer-main nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(1rem, 3.3vw, 3rem); }
.site-nav a, .about-link { display: flex; align-items: center; min-height: 2.75rem; text-decoration: none; font-weight: 600; white-space: nowrap; font-size: var(--small); }
.site-nav a:hover, .about-link:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: .25em; }
.site-nav a:hover, .about-link:hover { color: var(--moss); }
.about-link { justify-self: end; }

.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(34rem, 47.5vw, 49rem); overflow: clip; background: var(--deep); color: var(--paper); }
.hero-image, .hero::after { position: absolute; inset: 0 0 0 27%; }
.hero-image { z-index: -2; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 54%; }
.hero::after {
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, var(--deep), rgb(16 31 23 / .77) 15%, rgb(16 31 23 / .15) 59%, rgb(16 31 23 / .04));
}
.hero-inner { padding-block: 4rem 4.5rem; }
.hero h1 { font-size: clamp(5.65rem, 10.3vw, 11.4rem); letter-spacing: -.029em; line-height: .83; }
.hero p { max-width: 33ch; margin-block: 1.75rem 1.85rem; font-size: clamp(1.12rem, 1.55vw, 1.33rem); }
.hero-actions { display: flex; gap: .8rem 1.42rem; align-items: center; flex-wrap: wrap; }
.button { display: inline-flex; min-height: 3.35rem; justify-content: center; align-items: center; padding: .7rem 1.25rem; color: var(--deep); text-decoration: none; font-weight: 650; font-size: var(--small); transition: background-color .2s ease, transform .2s ease; }
.button-accent { background: var(--moss); }
.button:hover { background: var(--paper); transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.hero .button:focus-visible { outline-color: var(--paper); }
.film-link { display: inline-flex; align-items: center; gap: .62rem; min-height: 3.35rem; color: var(--paper); font-size: var(--small); font-weight: 650; text-decoration: none; }
.film-link:hover { color: var(--moss); }
.play-mark { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgb(242 243 233 / .19); transition: background-color .2s ease; }
.play-mark::before { content: ""; width: .66rem; height: .76rem; margin-left: .15rem; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.film-link:hover .play-mark { background: rgb(242 243 233 / .28); }

.film-dialog { width: min(68rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); max-height: calc(100dvh - 2rem); padding: 0; border: 0; color: var(--paper); background: var(--deep); }
.film-dialog::backdrop { background: rgb(5 13 8 / .82); }
.film-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .45rem 1rem .45rem 1.3rem; }
.film-header h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); }
.film-header button { min-height: 2.75rem; border: 0; background: transparent; color: inherit; padding: .35rem .55rem; cursor: pointer; }
.film-header button:hover { color: var(--moss); }
.film-dialog video { display: block; width: 100%; max-height: calc(100dvh - 6rem); aspect-ratio: 16 / 9; background: var(--deep); }

.section-intro { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: .9rem clamp(2.25rem, 6vw, 7.5rem); margin-bottom: clamp(2.1rem, 4.2vw, 4.1rem); }
.section-intro > p { max-width: 27rem; font-size: clamp(1rem, 1.65vw, 1.21rem); margin-bottom: .16rem; }
.library-layout { display: grid; grid-template-columns: .89fr 1.12fr; align-items: start; gap: clamp(2rem, 6vw, 7rem); }
.specimen { grid-area: 1 / 1; }
.plant-index { grid-area: 1 / 2; }
.specimen img { width: 100%; height: auto; aspect-ratio: 1.18; object-position: center 48%; object-fit: cover; background: var(--olive); }
.specimen figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: .2rem 1rem; padding-top: .75rem; font-size: var(--small); }
.specimen figcaption span { font: italic 1.35rem/1.2 var(--display); }
.plant-search { position: relative; margin-bottom: 1.1rem; }
.plant-search input { display: block; width: 100%; min-height: 3.35rem; border: 0; border-radius: 0; padding: .7rem .9rem .7rem 2.7rem; color: var(--ink); background: var(--sage); }
.plant-search input::placeholder { color: var(--soft-ink); opacity: 1; }
.search-mark { position: absolute; left: 1.08rem; top: 1.03rem; width: .88rem; height: .88rem; border: 1.5px solid currentColor; border-radius: 50%; pointer-events: none; }
.search-mark::after { content: ""; position: absolute; top: .65rem; left: .64rem; width: .42rem; height: 1.5px; background: currentColor; transform: rotate(45deg); transform-origin: left; }
.plant { background: #e9eddf; }
.plant + .plant { margin-top: .32rem; }
.plant summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 1fr auto; gap: .24rem 1rem; align-items: center; min-height: 3.8rem; padding: .52rem 1rem; }
.plant summary::-webkit-details-marker { display: none; }
.plant summary:hover, .plant[open] { background: var(--sage); }
.plant-name { font: 400 clamp(1.8rem, 2.75vw, 2.75rem)/1 var(--display); letter-spacing: -.02em; }
.plant summary i { font-size: var(--small); line-height: 1.25; color: var(--soft-ink); }
.expand { display: grid; width: 2rem; height: 2rem; place-content: center; justify-self: end; }
.expand::before, .expand::after { content: ""; width: .83rem; height: 1px; background: currentColor; grid-area: 1 / 1; }
.expand::after { rotate: 90deg; transition: rotate .2s ease; }
.plant[open] .expand::after { rotate: 0deg; }
.plant:not([open]) .plant-body { display: none; }
.plant-body { padding: .08rem 1rem 1.1rem; }
.plant-body p { max-width: 54ch; margin-bottom: .75rem; }
.plant-body a { font-size: var(--small); }
.empty { padding: .8rem 1rem; background: var(--sage); }

.journal { background: var(--sage); }
.journal-layout { display: grid; grid-template-columns: 1.28fr 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.15rem, 2vw, 2.1rem); }
.story-link { display: block; height: 100%; text-decoration: none; }
.image-clip { display: block; overflow: clip; background: var(--forest); }
.story img { width: 100%; height: 100%; object-fit: cover; }
.story-caption { display: grid; align-content: center; justify-items: start; gap: .5rem; }
.story-link:hover h3 { text-decoration: underline; text-decoration-thickness: .04em; text-underline-offset: .11em; }
.story-feature { grid-row: span 2; }
.story-feature .story-link { position: relative; isolation: isolate; display: flex; align-items: end; min-height: clamp(23rem, 35vw, 35rem); color: var(--paper); }
.story-feature .image-clip, .story-feature .story-link::after { position: absolute; inset: 0; }
.story-feature .image-clip { z-index: -2; }
.story-feature .story-link::after { z-index: -1; content: ""; background: linear-gradient(0deg, rgb(12 26 18 / .97), rgb(12 26 18 / .78) 29%, transparent 72%); }
.story-feature .story-caption { padding: clamp(1.25rem, 3.1vw, 3rem); }
.story-feature h3 { font-size: clamp(2.85rem, 4.6vw, 4.8rem); }
.story-feature .text-link { margin-top: .32rem; font-size: var(--small); }
.story-small .story-link { display: grid; grid-template-columns: .88fr 1fr; background: var(--paper); }
.story-small .story-caption { padding: clamp(.9rem, 1.75vw, 1.65rem); }
.story-small h3 { font-size: clamp(1.95rem, 2.8vw, 3.1rem); }
.story-small p { max-width: 27ch; }

.store { background: var(--forest); color: var(--paper); }
.store .section-intro > p, .product p { color: #e5eddd; }
.shop-layout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.2rem, 2.55vw, 2.8rem); }
.product img { width: 100%; height: auto; aspect-ratio: 1.18; object-fit: cover; background: var(--olive); }
.product h3 { margin-block: 1rem .45rem; }
.product p { max-width: 32ch; }
.site-footer { background: var(--deep); color: var(--paper); padding-block: clamp(3.2rem, 6.3vw, 5.9rem) 1.6rem; }
.footer-name { font: 400 clamp(3.6rem, 15.2vw, 15rem)/.82 var(--display); letter-spacing: -.035em; }
.footer-main { display: grid; grid-template-columns: 1fr auto; gap: 1.25rem 2rem; align-items: start; padding-block: clamp(1.8rem, 4vw, 3.65rem); }
.footer-main > p { max-width: 34ch; font-size: clamp(1.05rem, 1.56vw, 1.32rem); }
.site-footer a { text-decoration: none; }
.footer-end { font-size: var(--small); color: var(--moss); display: flex; gap: 1rem; justify-content: space-between; }

.article-page { display: block; padding-block: clamp(2.65rem, 6vw, 6rem); }
.article-header { max-width: 67rem; margin-bottom: clamp(1.9rem, 4vw, 3rem); }
.article-header h1 { font-size: clamp(3.6rem, 8.5vw, 8.25rem); margin-block: 1.65rem .9rem; text-wrap: balance; }
.article-dek { max-width: 46ch; font-size: clamp(1.15rem, 1.95vw, 1.5rem); }
.article-image { width: 100%; height: auto; aspect-ratio: 2.08; object-fit: cover; object-position: center 55%; background: var(--sage); }
.article-copy { width: min(100%, 44rem); margin: clamp(2.25rem, 5vw, 4.75rem) auto 0; font-size: 1.08rem; }
.article-copy h2 { font-size: clamp(2.1rem, 4.5vw, 3.85rem); margin-block: 2.25rem .7rem; }
.article-copy p + p { margin-top: 1rem; }
.article-copy .sources { margin-top: 2.5rem; padding: .9rem 1.05rem; background: var(--sage); }
.article-copy .next-link { margin-top: 1.8rem; }

@keyframes drift { from { transform: scale(1.05); } to { transform: scale(1); } }
@keyframes enter { from { opacity: .64; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-image img { animation: drift 4.8s ease-out both; }
  .in-view { animation: enter .54s ease-out both; }
  .story-link img { transition: transform .4s ease; }
  .story-link:hover img { transform: scale(1.035); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}
@media (max-width: 960px) {
  .story-small .story-link { grid-template-columns: .78fr 1fr; }
  .story-small p { font-size: var(--small); }
}
@media (681px <= width <= 900px) {
  .journal-layout { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .story-feature { grid-area: 1 / 1 / 2 / -1; }
  .story-feature .story-link { min-height: clamp(21.5rem, 49vw, 29rem); }
  .story-small .story-link { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .story-small img { aspect-ratio: 1.68; height: auto; }
}
@media (max-width: 840px) {
  .library-layout { gap: 2rem; }
  .plant summary { grid-template-columns: 1fr auto; }
  .plant summary i { grid-column: 1; }
  .plant summary .expand { grid-area: 1 / 2 / 3; }
  .specimen img { aspect-ratio: .95; }
}
@media (max-width: 680px) {
  .site-header-inner { min-height: auto; grid-template-columns: 1fr auto; gap: .1rem .5rem; padding-block: .63rem .17rem; }
  .brand { font-size: 1.89rem; }
  .brand img { width: 1.95rem; height: 1.95rem; }
  .site-nav { grid-area: 2 / 1 / 3 / -1; justify-content: space-between; gap: .55rem; }
  .about-link { grid-area: 1 / 2; }
  .hero { align-items: end; min-height: clamp(32rem, 126vw, 41rem); }
  .hero-image, .hero::after { inset: 0; }
  .hero-image img { object-position: 66% 50%; }
  .hero::after { background: linear-gradient(0deg, var(--deep) 4%, rgb(16 31 23 / .82) 34%, rgb(16 31 23 / .25) 75%); }
  .hero-inner { padding-block: 3.5rem 2.45rem; }
  .hero h1 { font-size: clamp(4.4rem, 15.8vw, 6.7rem); }
  .hero p { margin-block: 1.12rem 1.1rem; }
  .hero-actions { gap: .48rem .95rem; }
  .button { min-height: 3rem; padding-inline: .9rem; }
  .play-mark { width: 2.1rem; height: 2.1rem; }
  .film-link { min-height: 3rem; gap: .46rem; }
  .section-intro, .library-layout, .journal-layout, .footer-main { grid-template-columns: 1fr; }
  .section-intro { gap: .62rem; }
  .section-intro p { margin: 0; }
  .specimen { grid-area: 2 / 1; }
  .plant-index { grid-area: 1 / 1; }
  .specimen img { aspect-ratio: 1.23; }
  .plant summary { padding: .55rem .78rem; }
  .journal-layout { grid-template-rows: auto; }
  .story-feature { grid-row: auto; }
  .story-feature .story-link { min-height: clamp(21rem, 84vw, 26rem); }
  .story-small .story-link { grid-template-columns: .76fr 1fr; }
  .story-small .story-caption { padding: .94rem; }
  .shop-layout { grid-template-columns: 1fr; gap: 2.4rem; }
  .product img { aspect-ratio: 1.25; }
  .footer-main nav { gap: .6rem 1.3rem; }
  .article-image { aspect-ratio: 1.35; }
}
@media (max-width: 350px) {
  .hero-actions { gap: .38rem .63rem; }
  .film-link { gap: .35rem; }
  .play-mark { width: 1.75rem; height: 1.75rem; }
  .button { padding-inline: .65rem; }
  .story-small .story-link { grid-template-columns: 1fr; }
  .story-small img { aspect-ratio: 1.55; height: auto; }
}

.site-nav a[aria-current="page"] { color: var(--moss); text-decoration: underline; text-underline-offset: .26em; }
.button-green { background: var(--forest); color: var(--paper); }
.button-green:hover { background: var(--olive); }
.library-preview { grid-area: 1 / 2; align-self: center; }
.library-preview > p { max-width: 30rem; margin-block: .9rem 1.1rem; font-size: clamp(1.05rem, 1.55vw, 1.25rem); }
.preview-links { display: flex; flex-wrap: wrap; gap: .45rem 1.2rem; align-items: center; list-style: none; margin: 0 0 1.55rem; padding: 0; }
.preview-links a { display: inline-flex; min-height: 2.5rem; align-items: center; font-weight: 600; text-underline-offset: .22em; }
.store-visit { margin-top: clamp(1.65rem, 3vw, 3rem); }

.inner-cover { color: var(--paper); background: var(--forest); }
.inner-cover-layout { display: grid; grid-template-columns: 1.16fr 1fr; align-items: center; gap: clamp(1.25rem, 5.25vw, 6rem); padding-block: clamp(2.9rem, 5vw, 5.2rem); }
.inner-cover h1 { font-size: clamp(4.3rem, 8.6vw, 9.35rem); }
.inner-cover-copy p { max-width: 36ch; margin-top: 1rem; font-size: clamp(1.08rem, 1.9vw, 1.32rem); }
.inner-cover-copy .button { margin-top: 1.4rem; }
.inner-cover-layout img { width: 100%; height: auto; aspect-ratio: 1.7; object-fit: cover; object-position: center 51%; }

.library-page-layout { display: grid; grid-template-columns: .6fr 1.2fr; gap: clamp(1.75rem, 5.8vw, 6rem); align-items: start; }
.library-page-layout > .plant-index { grid-area: auto; min-width: 0; }
.index-intro h2 { font-size: clamp(2.6rem, 4.5vw, 4.75rem); }
.index-intro p { margin-top: .82rem; max-width: 34ch; }
.plant-controls { margin-bottom: .75rem; }
.library-filter { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; min-inline-size: 0; }
.library-filter label span { display: flex; align-items: center; min-height: 2.65rem; padding: .4rem .9rem; background: #e9eddf; cursor: pointer; font-size: var(--small); }
.library-filter input:checked + span { background: var(--forest); color: var(--paper); }
.library-filter input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.library-count { padding-top: .65rem; color: var(--soft-ink); font-size: var(--small); }
.entry-sources { margin: .75rem 0 0; padding-left: 1.25rem; }
.entry-sources li + li { margin-top: .32rem; }

.store-cover { background: var(--deep); }
.store-cover img { object-position: center 60%; }
.store-catalog { background: var(--sage); }
.store-catalog .product-detail { margin-top: .85rem; }
.product-detail summary { min-height: 2.75rem; padding-block: .45rem; font-weight: 600; cursor: pointer; }
.product-detail p { margin-bottom: .6rem; }

@media (max-width: 680px) {
  .library-preview { grid-area: 1 / 1; }
  .inner-cover-layout, .library-page-layout { grid-template-columns: 1fr; }
  .inner-cover-layout img { aspect-ratio: 1.66; }
}
