/* ============================================================
   Woodcutleaf — brand site
   Palette is earth-toned and light-only by design: the shop
   photographs on paper stock, and the site should feel the same.
   ============================================================ */

:root {
  --paper:      #ece5d6;
  --paper-sunk: #e2d9c8;
  --ink:        #221e1a;
  --ink-soft:   #4a423a;
  --muted:      #6f6558;
  --line:       rgba(34, 30, 26, 0.13);
  --line-firm:  rgba(34, 30, 26, 0.28);

  --clay:       #b0603a;
  --clay-deep:  #8f4a2b;
  --moss:       #5c6b4c;
  --bark:       #3a2f26;

  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;

  --container: 1140px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(5rem, 10vw, 9rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* A single fixed grain plate over the whole page. `multiply` lets the
   noise darken the paper without washing out the type beneath it. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.34'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, -120%);
  z-index: 10000;
  background: var(--ink); color: var(--paper);
  padding: 0.7rem 1.2rem; border-radius: 0 0 10px 10px;
  text-decoration: none; font-size: 0.9rem;
}
.skip:focus { transform: translate(-50%, 0); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Typography helpers ─────────────────────────────────── */

.eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin: 0 0 1.1rem;
}

.section { padding-block: var(--section-y); }

.section--tint {
  background: var(--paper-sunk);
  border-block: 1px solid var(--line);
}

.section__head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__title { font-size: clamp(2rem, 4.4vw, 3.4rem); }

.section__lede {
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 38rem;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--clay-deep);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), gap 0.25s var(--ease);
}
.link svg { width: 15px; height: 15px; }
.link:hover { border-bottom-color: currentColor; gap: 0.75rem; }

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  --btn-pad-y: 0.85rem;
  --btn-pad-x: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.15s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--sm { --btn-pad-y: 0.55rem; --btn-pad-x: 1.1rem; font-size: 0.875rem; }

.btn--primary { background: var(--clay); color: #fff; }
.btn--primary:hover { background: var(--clay-deep); }

.btn--ghost { border-color: var(--line-firm); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(34, 30, 26, 0.04); }

.btn__arrow { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.btn--ghost:hover .btn__arrow { transform: translateX(3px); }

/* ── Nav ────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
              backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.brand__mark { width: 26px; height: 26px; fill: var(--moss); flex: none; }
.brand__word { font-weight: 500; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}
.nav__menu > a:not(.btn) {
  font-size: 0.925rem;
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding-block: 0.25rem;
  transition: color 0.2s var(--ease);
}
.nav__menu > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav__menu > a:not(.btn):hover { color: var(--ink); }
.nav__menu > a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-firm);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  place-items: center;
}
.nav__bars, .nav__bars::before, .nav__bars::after {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav__bars { position: relative; }
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { top: -6px; }
.nav__bars::after  { top: 6px; }

[aria-expanded="true"] .nav__bars { background: transparent; }
[aria-expanded="true"] .nav__bars::before { transform: translateY(6px) rotate(45deg); }
[aria-expanded="true"] .nav__bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  padding-block: clamp(4rem, 12vh, 8rem) clamp(5rem, 11vw, 9rem);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  will-change: transform;
}
.hero__glow--a {
  width: 42vw; height: 42vw;
  min-width: 320px; min-height: 320px;
  top: -8vw; right: -6vw;
  background: radial-gradient(circle, rgba(176, 96, 58, 0.22), transparent 68%);
}
.hero__glow--b {
  width: 34vw; height: 34vw;
  min-width: 260px; min-height: 260px;
  bottom: -12vw; left: -8vw;
  background: radial-gradient(circle, rgba(92, 107, 76, 0.20), transparent 68%);
}

.hero__inner { position: relative; z-index: 1; }

.hero__title {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 16em;
}
.hero__title em {
  font-style: italic;
  color: var(--clay-deep);
}

.hero__lede {
  margin-top: 1.75rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.5rem;
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: clamp(3.5rem, 8vw, 6rem);
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.hero__scroll-line {
  width: 56px; height: 1px;
  background: var(--line-firm);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--clay);
  animation: sweep 2.6s var(--ease) infinite;
}
@keyframes sweep {
  0%       { transform: translateX(-100%); }
  55%,100% { transform: translateX(100%); }
}

/* ── Marquee ────────────────────────────────────────────── */

.marquee {
  border-block: 1px solid var(--line);
  background: var(--paper-sunk);
  overflow: hidden;
  padding-block: 1.1rem;
}
.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: slide 42s linear infinite;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
/* Spacing lives on the items, not in `gap`. A gap would add one extra
   space between the two copies, so -50% would land 1.25rem off and the
   loop would visibly hitch once per cycle. */
.marquee__track > * { padding-inline: 1.25rem; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__dot { color: var(--clay); font-size: 0.55rem; }

/* The track holds the phrase list twice; shifting by exactly -50%
   lands the second copy where the first began, so the loop is seamless. */
@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Cards ──────────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, #fff 24%, var(--paper));
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
              border-color 0.4s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-firm);
  box-shadow: 0 22px 50px -28px rgba(58, 47, 38, 0.55);
}

.card__thumb {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(255, 255, 255, 0.55), transparent 70%),
    linear-gradient(168deg, #e8dcc6, #d8c4a2);
  border-bottom: 1px solid var(--line);
}

.art { width: 74%; height: auto; color: var(--bark); }
.art__rim, .art__body {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.art__grain {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  opacity: 0.4;
  stroke-linecap: round;
}
.card:hover .art { transform: scale(1.03); }
.art { transition: transform 0.5s var(--ease); }

.card__body { padding: 1.6rem 1.5rem 1.75rem; }
.card__title { font-size: 1.35rem; margin-bottom: 0.5rem; }
.card__text { color: var(--ink-soft); font-size: 0.95rem; }
.card__meta { font-size: 0.875rem; color: var(--muted); margin: 0; }
.card__price { color: var(--ink); font-weight: 600; }

/* ── Split (story) ──────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split__text { max-width: 34rem; color: var(--ink-soft); }
.split__text .section__title { color: var(--ink); margin-bottom: 1.5rem; }
.split__text .link { margin-top: 0.5rem; }

.panel {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14),
              0 30px 60px -40px rgba(58, 47, 38, 0.9);
  background:
    repeating-linear-gradient(92deg, rgba(0,0,0,0.055) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(92deg, rgba(0,0,0,0.035) 0 2px, transparent 2px 27px),
    linear-gradient(158deg, #cbab80, #a97f52 52%, #7f5a31);
}
.panel__leaf {
  position: absolute;
  right: -14%;
  bottom: -10%;
  width: 78%;
  fill: rgba(255, 250, 240, 0.14);
}

/* ── Steps ──────────────────────────────────────────────── */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.75rem, 3vw, 2.75rem);
  counter-reset: step;
}
.step { padding-top: 1.5rem; border-top: 1px solid var(--line-firm); }
.step__num {
  display: block;
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--clay);
  letter-spacing: 0.1em;
  margin-bottom: 0.9rem;
}
.step__title { font-size: 1.3rem; margin-bottom: 0.6rem; }
.step p { color: var(--ink-soft); font-size: 0.95rem; }

/* ── Stats ──────────────────────────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}
.stat__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ── Quote ──────────────────────────────────────────────── */

.quote-section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.quote { margin: 0; max-width: 48rem; }
.quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.1vw, 2.4rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.quote figcaption { margin-top: 1.75rem; font-size: 0.9rem; }
.quote__name { font-weight: 600; }
.quote__role { color: var(--muted); }
.quote__name::after { content: " · "; color: var(--muted); font-weight: 400; }

/* ── CTA ────────────────────────────────────────────────── */

.cta {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2.25rem, 5vw, 3.75rem);
  border-radius: 22px;
  background: linear-gradient(150deg, var(--bark), #2b231c);
  color: var(--paper);
}
.cta__title { font-size: clamp(1.75rem, 3.2vw, 2.6rem); margin-bottom: 1rem; }
.cta__text p { color: rgba(247, 242, 233, 0.66); font-size: 0.98rem; margin: 0; }

.signup { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.signup input {
  flex: 1 1 14rem;
  min-width: 0;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(247, 242, 233, 0.25);
  background: rgba(247, 242, 233, 0.07);
  color: var(--paper);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.signup input::placeholder { color: rgba(247, 242, 233, 0.42); }
.signup input:focus {
  outline: none;
  border-color: var(--clay);
  background: rgba(247, 242, 233, 0.11);
}
.signup__done {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--paper);
}

/* ── Footer ─────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line);
  background: var(--paper-sunk);
  padding-top: clamp(3rem, 6vw, 4.5rem);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.footer__tag { margin-top: 1rem; color: var(--muted); font-size: 0.9rem; }

.footer__mail {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.925rem;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line-firm);
  padding-bottom: 1px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.footer__mail:hover { color: var(--clay-deep); border-bottom-color: currentColor; }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.footer__col h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 1rem;
}
.footer__col a {
  display: block;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.925rem;
  padding-block: 0.3rem;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer__col a:hover { color: var(--clay-deep); transform: translateX(2px); }

.footer__base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.footer__base p { margin: 0; }
.footer__fine { font-style: italic; }

/* ── Reveal-on-scroll ───────────────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 900px) {
  .split, .cta, .footer__inner { grid-template-columns: 1fr; }
  .split__media { order: 2; }
  .panel { aspect-ratio: 16 / 10; }
}

@media (max-width: 760px) {
  .nav__toggle { display: grid; }

  .nav__menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    /* Collapsed by default; `is-open` swaps these three back. */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
                visibility 0.25s;
  }
  .nav__menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__menu > a:not(.btn) { padding-block: 0.85rem; border-bottom: 1px solid var(--line); }
  .nav__menu > a:not(.btn)::after { display: none; }
  .nav__menu .btn { margin-top: 1rem; }

  .footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .footer__cols { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ── Motion preferences ─────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .hero__scroll-line::after { display: none; }
  .card:hover { transform: none; }
}
