/* The Carving Hour — landing. Palette from brand/tokens.json (extracted from
   Miguel's photos). Fonts arrive via CSS vars set in index.html (type trial). */

:root {
  --font-display: 'Literata', serif;
  --font-body: 'Karla', sans-serif;

  --paper: oklch(0.88 0.006 95);        /* #DADBD4 tinted toward brand */
  --paper-deep: oklch(0.84 0.009 95);
  --ink: oklch(0.17 0.005 80);          /* #141312 */
  --bark: oklch(0.3 0.012 105);         /* #323229 */
  --forest: oklch(0.38 0.014 110);      /* #49483D */
  --moss: oklch(0.44 0.012 110);
  --walnut: oklch(0.49 0.028 65);       /* #716050 */
  --accent: oklch(0.62 0.105 75);  /* larch — locked by Miguel */
  --wood: oklch(0.65 0.035 60);         /* #A48D77 */
  --stone: oklch(0.74 0.01 75);
  --mist: oklch(0.83 0.02 240);

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  --measure: 62ch;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* paper grain: fixed overlay, composited once instead of repainting on scroll */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.19 0 0 0 0 0.16 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; max-width: var(--measure); text-wrap: pretty; }

a { color: var(--accent); }
a:hover { color: var(--bark); }

/* header */
.site-head {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--space-lg) clamp(1.25rem, 4vw, 3rem);
  color: oklch(0.92 0.008 95);
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.01em;
}
.head-link {
  color: oklch(0.85 0.012 95);
  text-decoration: none;
  font-size: 0.9375rem;
}
.head-link:hover { color: oklch(0.97 0.005 95); text-decoration: underline; }

/* hero */
.hero {
  min-height: 88svh;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(to top, oklch(0.14 0.008 95 / 0.55), transparent 55%),
    url("assets/hero-evening.jpg") center 35% / cover no-repeat;
  color: oklch(0.93 0.006 95);
}
.hero-inner {
  padding: var(--space-4xl) clamp(1.25rem, 4vw, 3rem) var(--space-3xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 44rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: oklch(0.96 0.005 95);
}
.hero-lead {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.75;
  color: oklch(0.89 0.01 95);
  max-width: 46ch;
}

/* CTA */
.cta-row {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-top: var(--space-sm);
}
.cta {
  display: inline-block;
  background: var(--accent);
  color: oklch(0.95 0.008 90);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  padding: 0.9rem 1.9rem;
  border-radius: 3px;
  transition: background 160ms cubic-bezier(0.22, 1, 0.36, 1), transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}
.cta:hover { background: var(--bark); color: oklch(0.95 0.008 90); transform: translateY(-1px); }
.cta:active { transform: translateY(0); }
.cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cta-note { font-size: 0.9375rem; opacity: 0.85; }

/* sections shared */
main > section { padding: var(--space-4xl) clamp(1.25rem, 4vw, 3rem); }
.section-head { display: flex; flex-direction: column; gap: var(--space-md); margin-bottom: var(--space-2xl); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: var(--bark); }
h3 {
  font-size: 1.0625rem;
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--moss);
}

/* ladder */
.ladder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: var(--space-2xl) var(--space-3xl);
}
.ladder-group { display: flex; flex-direction: column; gap: var(--space-lg); }
.pattern-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.pattern-list li {
  display: grid;
  grid-template-columns: 10rem auto;
  grid-template-areas: "name diff" "note note";
  row-gap: var(--space-xs);
  padding: var(--space-md) 0;
  border-top: 1px solid oklch(0.78 0.01 95);
}
.p-name { grid-area: name; font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); }
.p-diff { grid-area: diff; justify-self: end; align-self: center; color: var(--accent); letter-spacing: 0.2em; font-size: 0.8rem; }
.p-time { grid-area: note; font-size: 0.875rem; color: var(--moss); letter-spacing: 0.01em; }

/* guides + gift: photo/text pairs */
.guides, .gift {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-2xl);
  align-items: center;
}
.guides { background: oklch(0.31 0.012 105); color: oklch(0.88 0.01 95); }
.guides h2 { color: oklch(0.93 0.006 95); }
.guides p { color: oklch(0.85 0.012 95); line-height: 1.75; }
.guides-text { display: flex; flex-direction: column; gap: var(--space-lg); max-width: 38rem; }
.guides-photo, .gift-photo { margin: 0; }
.guides-photo img, .gift-photo img {
  width: 100%;
  height: min(56vh, 34rem);
  object-fit: cover;
  display: block;
  border-radius: 2px;
}
.gift-text { display: flex; flex-direction: column; gap: var(--space-lg); max-width: 38rem; }
.gift .cta-note { color: var(--forest); }

/* faq */
.faq { background: var(--paper-deep); }
.faq h2 { margin-bottom: var(--space-2xl); }
.faq dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: var(--space-xl) var(--space-3xl);
  max-width: 72rem;
}
.faq-item { display: flex; flex-direction: column; gap: var(--space-sm); }
.faq dt { font-family: var(--font-display); font-size: 1.15rem; color: var(--bark); }
.faq dd { margin: 0; font-size: 0.9688rem; color: var(--forest); line-height: 1.7; }

/* footer */
.site-foot {
  background: var(--ink);
  color: oklch(0.72 0.01 95);
  padding: var(--space-3xl) clamp(1.25rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.site-foot .wordmark { color: oklch(0.9 0.008 95); }
.site-foot p { font-size: 0.9375rem; max-width: 52ch; }
.foot-handles { color: oklch(0.6 0.015 95); }

@media (max-width: 640px) {
  .hero { min-height: 92svh; }
  .hero-inner { padding-bottom: var(--space-2xl); }
  .pattern-list li { grid-template-columns: auto auto; }
  main > section { padding-top: var(--space-3xl); padding-bottom: var(--space-3xl); }
}

@media (prefers-reduced-motion: reduce) {
  .cta { transition: none; }
}


/* free pattern offer */
.free { background: var(--bark); color: oklch(0.9 0.008 95); padding-block: clamp(5rem, 10vw, 8rem); }
.free-inner { display: flex; flex-direction: column; gap: var(--space-xl); max-width: 54rem; }
.free h2 { color: oklch(0.94 0.006 95); font-size: clamp(2.1rem, 4.6vw, 3.1rem); }
.free p { color: oklch(0.86 0.012 95); line-height: 1.7; font-size: 1.125rem; }
.free-form { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.free-form input {
  flex: 1 1 18rem;
  font: inherit;
  font-size: 1.0625rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid oklch(0.5 0.012 95);
  border-radius: 3px;
  background: oklch(0.93 0.006 95);
  color: var(--ink);
}
.free-form .cta { font-size: 1.0625rem; padding: 1.1rem 1.75rem; }
.free-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.free-form .cta { border: none; cursor: pointer; }
.free-note { font-size: 0.9375rem; color: oklch(0.72 0.015 95); }
.p-free {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-left: 0.5rem;
}
