/* ==========================================================
   GROW / Drift — single stylesheet
   (replaces root.css, body.css, header.css, hero.css, and the old style.css)
   ========================================================== */

/* ---------- Tokens ---------- */
:root {
  --canvas:   #F9F7F2;
  --sand:     #EADCC6;
  --sage:     #94A68F;
  --sky:      #A9C4D8;
  --blush:    #E8C5B8;
  --ochre:    #D4B27A;
  --charcoal: #3F3F3F;

  --slate:    #5A7180;   /* logo italic, eyebrows */
  --muted:    #6B6B6B;   /* secondary text, passes AA on canvas */

  --max-width: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Lato", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 1rem; }

body {
  background: var(--canvas);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, blockquote { font-family: var(--serif); font-weight: 400; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--charcoal);
  color: var(--canvas);
  padding: .6rem 1rem;
  z-index: 10;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  text-decoration: none;
}

.logo {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: .03em;
}
.logo span, .footer-logo span { color: var(--slate); font-style: italic; }

.tagline {
  font-size: .78rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav { display: flex; gap: 2.25rem; flex-wrap: wrap; }

.main-nav a {
  text-decoration: none;
  font-size: .9rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .35rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.main-nav a:hover { border-bottom-color: var(--ochre); }

/* ---------- Shared type ---------- */
.eyebrow {
  display: block;
  font-size: .75rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 1.75rem;
}

.copy p { max-width: 34rem; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) var(--gutter) 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.hero .eyebrow, .hero h1, .hero .subhead { grid-column: 1; }

.hero h1 {
  font-size: clamp(3.4rem, 8vw, 5.5rem);
  line-height: 1;
  margin-bottom: 1rem;
}

.subhead {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  color: var(--slate);
}

.quote {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: end;
  max-width: 32rem;
}

blockquote {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.6;
  color: #4c5458;
  margin-bottom: .75rem;
}

figcaption { font-size: .95rem; color: var(--muted); }

.hero-art { margin-top: clamp(2rem, 5vw, 3.5rem); }

.hero-art img {
  width: 100%;
  mix-blend-mode: multiply;
  /* feather the edges so the paper texture melts into the page */
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 8%, #000 92%, transparent),
    linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 8%, #000 92%, transparent),
    linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-composite: intersect;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}

.section-sand {
  background: linear-gradient(to bottom, var(--canvas), rgba(234,220,198,.45) 18%, rgba(234,220,198,.45) 82%, var(--canvas));
}

.section-inner,
.section-stack {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.section-stack { text-align: center; }
.section-stack h2 { margin-bottom: 2.5rem; }

/* ---------- Artwork ---------- */
.art img {
  mix-blend-mode: multiply;
  /* soft rectangular feather: paper edges melt into the page, content stays intact */
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 7%, #000 93%, transparent),
    linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 7%, #000 93%, transparent),
    linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  mask-composite: intersect;
}

/* the eye image is small (444px wide): don't stretch it past ~1.2x */
.art-eye img   { width: 100%; max-width: 520px; margin-inline: auto; }
.art-anchor img { width: 100%; max-width: 520px; margin-inline: auto; }
.art-emps img  { width: 100%; max-width: 620px; margin-inline: auto; }

/* book cover is also small (220px wide): show it near native size */
.art-book { display: flex; justify-content: center; }
.art-book img { width: 100%; max-width: 260px; }

/* leaf wash behind the book section */
.section-leaf { position: relative; isolation: isolate; overflow: hidden; }
.section-leaf::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -6%;
  width: min(55vw, 520px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: url("images/leaf-accent.webp") center / cover no-repeat;
  opacity: .26;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse closest-side, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse closest-side, #000 40%, transparent 100%);
}


/* ---------- Subscribe ---------- */
.text-link {
  color: var(--slate);
  text-underline-offset: .25em;
  text-decoration-thickness: 1px;
}
.text-link:hover { color: var(--charcoal); }

.subscribe { max-width: 40rem; }
.subscribe h2 { margin-bottom: 1rem; }
.subscribe-lede { margin: 0 auto 2.25rem; max-width: 32rem; }

.signup {
  display: grid;
  gap: 1.25rem;
  text-align: left;
  background: rgba(249,247,242,.85);
  border: 1px solid rgba(63,63,63,.14);
  border-radius: 4px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.field { display: grid; gap: .45rem; }

.signup label {
  font-size: .9rem;
  color: var(--charcoal);
}
.optional { color: var(--muted); }

.signup input[type="email"],
.signup select {
  font: inherit;
  color: var(--charcoal);
  background: #fff;
  border: 1px solid rgba(63,63,63,.35);
  border-radius: 3px;
  padding: .8rem .9rem;
  width: 100%;
}

.signup button {
  font: inherit;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--canvas);
  background: var(--charcoal);
  border: 0;
  border-radius: 3px;
  padding: .95rem 1.25rem;
  cursor: pointer;
  transition: background .2s;
}
.signup button:hover { background: var(--slate); }

.fine-print {
  font-size: .9rem;
  color: var(--muted);
  margin-top: 1.5rem;
}


/* ---------- Content additions ---------- */
.lead { font-family: var(--serif); font-size: 1.35rem; line-height: 1.5; color: var(--charcoal); margin-bottom: 1rem; max-width: 30rem; }

.pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--slate);
  border-left: 2px solid var(--ochre);
  padding-left: 1.1rem;
  margin-top: 1.75rem;
}

.copy h3 { font-size: 1.6rem; margin: 2rem 0 .6rem; }

.art-infinity img { width: 100%; max-width: 480px; margin-inline: auto; }

.stack-lede { max-width: 38rem; margin: 0 auto 2rem; }
.stack-link { margin-top: 1.75rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: left;
  margin-top: 2.5rem;
}
.card {
  background: rgba(234,220,198,.4);
  border: 1px solid rgba(63,63,63,.12);
  border-radius: 4px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.card h3 { font-size: 1.45rem; line-height: 1.2; }
.card p { flex: 1; }
.card .meta { font-size: .85rem; color: var(--muted); }

.button {
  align-self: flex-start;
  display: inline-block;
  background: var(--charcoal);
  color: var(--canvas);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .06em;
  font-size: .95rem;
  padding: .8rem 1.4rem;
  border-radius: 3px;
  transition: background .2s;
}
.button:hover { background: var(--slate); }

.about { max-width: 42rem; }
.about-text { text-align: left; }
.about-text p { margin-bottom: 1.1rem; }
.sign { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--slate); }

.disclaimer { max-width: 42rem; margin: 1.5rem auto 0; font-size: .85rem; line-height: 1.6; }

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .art-infinity { order: 2; }
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 2rem;
  padding: 4rem var(--gutter);
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(63,63,63,.12);
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--charcoal);
  margin-bottom: .5rem;
}

.fine { font-size: .85rem; margin-top: 1.25rem; }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 900px) {
  .site-header { padding-top: 1.5rem; padding-bottom: 1rem; }
  .main-nav { gap: 1.25rem 1.75rem; }

  .hero-content { grid-template-columns: 1fr; row-gap: 0; }
  .hero .eyebrow, .hero h1, .hero .subhead, .quote { grid-column: 1; grid-row: auto; }
  .quote { margin-top: 2rem; }

  .section-inner { grid-template-columns: 1fr; }
  /* keep text above art on small screens in every section */
  .art-eye, .art-book { order: 2; }
  .copy { order: 1; }
  .art-anchor { order: 2; }
}

@media (max-width: 480px) {
  .logo { font-size: 1.7rem; }
  .tagline { letter-spacing: .18em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.copy p + p, .copy p + .pull { margin-top: 1rem; }
.copy .pull { margin-top: 1.75rem; }
