/* ============================================================
   Tundalaya — editorial private-label site
   Palette: deep teal anchor · cream surface · terracotta accent
   Type: Fraunces (display serif) + DM Sans (body)
   ============================================================ */

:root {
  /* color */
  --teal-900: #12363a;
  --teal-700: #1c4b4f;
  --teal-600: #266066;
  --cream:    #f6efe3;
  --cream-2:  #efe6d6;
  --paper:    #fbf7ef;
  --ink:      #24312f;
  --ink-soft: #4c5a57;
  --sand:     #d9c6a5;
  --terra:    #c96f4a;
  --terra-dk: #b25f3d;
  --line:     rgba(28, 75, 79, 0.16);

  /* type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  --text-xs: 0.78rem;
  --text-sm: 0.9rem;
  --text-base: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --text-lg: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --text-xl: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  --text-2xl: clamp(2.2rem, 1.6rem + 3vw, 3.6rem);
  --text-hero: clamp(2.8rem, 1.9rem + 5vw, 6rem);

  /* spacing */
  --wrap: 1200px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --radius: 14px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

::selection { background: var(--teal-700); color: var(--cream); }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--teal-700); color: var(--cream);
  padding: 0.65rem 1rem; border-radius: 0 0 8px 0;
  font-size: var(--text-sm); text-decoration: none;
}
.skip-link:focus { left: 0; }

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

/* ---------- shared type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.04; letter-spacing: -0.015em; color: var(--teal-900); }
h2 { font-size: var(--text-2xl); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 500;
  color: var(--terra-dk);
  margin-bottom: 1.1rem;
}

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem;
  border-radius: 100px;
  text-decoration: none;
  transition: background .25s ease, color .25s ease, transform .2s ease, border-color .25s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn--primary { background: var(--teal-700); color: var(--cream); }
.btn--primary:hover { background: var(--teal-900); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--teal-800, var(--teal-900)); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal-700); background: rgba(28,75,79,0.05); }
.btn--lg { padding: 1.05rem 2.2rem; font-size: var(--text-base); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled {
  background: rgba(246, 239, 227, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.15rem;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.55rem;
  text-decoration: none; color: var(--teal-900);
}
.wordmark__mark { width: 40px; height: auto; color: var(--terra); flex: none; }
.wordmark__text {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.35rem; letter-spacing: -0.01em;
}
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); }
.site-nav a {
  text-decoration: none; color: var(--ink-soft);
  font-size: var(--text-sm); font-weight: 500;
  position: relative; padding-block: 0.25rem;
  transition: color .2s ease;
}
.site-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1.5px; background: var(--terra);
  transition: width .28s ease;
}
.site-nav a:not(.nav-cta):hover { color: var(--teal-900); }
.site-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--teal-700); color: var(--cream) !important;
  padding: 0.5rem 1.1rem; border-radius: 100px;
  transition: background .25s ease;
}
.nav-cta:hover { background: var(--teal-900); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(2.5rem, 5vw, 4.5rem); padding-bottom: var(--section-y); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero-copy { max-width: 34ch; }
#hero-heading {
  font-size: var(--text-hero);
  font-weight: 500;
  margin-block: 0.3rem 1.6rem;
  font-optical-sizing: auto;
}
.hero-sub { font-size: var(--text-lg); color: var(--ink-soft); line-height: 1.5; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.hero-figure { position: relative; margin: 0; }
.hero-figure img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(18,54,58,0.5);
}
.hero-caption {
  font-family: var(--font-display); font-style: italic;
  font-size: var(--text-base); color: var(--teal-700);
  margin-top: 1rem; text-align: right;
}

/* ---------- story ---------- */
.story { background: var(--paper); }
.story-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem) clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.story-lead { grid-column: 1 / -1; max-width: 22ch; }
.story-lead h2 { margin-top: 0.3rem; }
.story-body { font-size: var(--text-lg); line-height: 1.6; color: var(--ink); }
.story-body p + p { margin-top: 1.1rem; }
.story-body em { font-family: var(--font-display); font-style: italic; color: var(--terra-dk); }
.pullquote {
  align-self: center;
  border-left: 3px solid var(--terra);
  padding-left: clamp(1.25rem, 3vw, 2.25rem);
  margin: 0;
}
.pullquote p {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 500;
  color: var(--teal-800, var(--teal-700)); line-height: 1; letter-spacing: -0.02em;
}
.pullquote cite { display: block; font-style: normal; font-size: var(--text-sm); color: var(--ink-soft); margin-top: 1rem; }

/* ---------- products ---------- */
.products-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.products-figure { margin: 0; }
.products-figure img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 26px 50px -30px rgba(18,54,58,0.45);
}
.products-copy .lede { font-size: var(--text-lg); color: var(--ink-soft); margin-top: 1.1rem; max-width: 42ch; line-height: 1.5; }
.product-list { list-style: none; padding: 0; margin: 2.2rem 0 0; border-top: 1px solid var(--line); }
.product-list li {
  display: flex; align-items: baseline; gap: 1.25rem;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--line);
  transition: padding-left .25s ease;
}
.product-list li:hover { padding-left: 0.5rem; }
.product-num {
  font-family: var(--font-body); font-size: var(--text-sm);
  color: var(--terra-dk); font-weight: 500; flex: none; width: 2ch;
  letter-spacing: 0.05em;
}
.product-name { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500; color: var(--teal-900); }
.product-note { font-family: var(--font-body); font-size: var(--text-sm); color: var(--ink-soft); font-weight: 400; }
.product-quote {
  font-family: var(--font-display); font-style: italic;
  font-size: var(--text-xl); color: var(--terra-dk);
  margin-top: 2.2rem; line-height: 1.2;
}

/* ---------- approach ---------- */
.approach { background: var(--teal-900); color: var(--cream); }
.approach h2, .approach .eyebrow { color: var(--cream); }
.approach .eyebrow { color: var(--sand); }
.approach-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.approach-quotes { margin-top: 2rem; }
.big-quote {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--text-xl); line-height: 1.32;
  color: var(--cream); max-width: 30ch;
}
.big-quote + .big-quote { margin-top: 1.6rem; }
.approach-tag {
  margin-top: 2.2rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(246,239,227,0.22);
  font-size: var(--text-lg); color: var(--sand); font-style: italic;
  font-family: var(--font-display); max-width: 34ch;
}
.approach-figure { margin: 0; }
.approach-figure img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 26px 50px -28px rgba(0,0,0,0.5);
}

/* ---------- founder ---------- */
.founder { background: var(--cream-2); }
.founder-inner { max-width: 640px; }
.founder-body { margin-top: 1.6rem; font-size: var(--text-lg); line-height: 1.6; color: var(--ink); }
.founder-body p + p { margin-top: 1rem; }
.mantra { font-family: var(--font-display); font-style: italic; color: var(--teal-700); }
.mantra strong { font-style: normal; letter-spacing: 0.02em; }
.future-note {
  margin-top: 2.4rem; padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display); font-style: italic;
  font-size: var(--text-lg); color: var(--ink-soft); max-width: 46ch;
}

/* ---------- contact ---------- */
.contact { background: var(--teal-700); color: var(--cream); text-align: center; }
.contact .eyebrow { color: var(--sand); }
.contact h2 { color: var(--cream); }
.contact-inner { max-width: 560px; margin-inline: auto; }
.contact-sub { margin-top: 1rem; font-size: var(--text-lg); color: rgba(246,239,227,0.82); }
.contact .btn--primary { background: var(--cream); color: var(--teal-900); margin-top: 2rem; }
.contact .btn--primary:hover { background: #fff; }
.contact-email { margin-top: 1.5rem; }
.contact-email a { font-family: var(--font-display); font-size: var(--text-lg); color: var(--cream); text-decoration: none; border-bottom: 1px solid rgba(246,239,227,0.4); padding-bottom: 2px; }
.contact-email a:hover { border-color: var(--cream); }
.contact-loc { margin-top: 1.2rem; font-size: var(--text-sm); letter-spacing: 0.16em; text-transform: uppercase; color: var(--sand); }

/* ---------- footer ---------- */
.site-footer { background: var(--teal-900); color: rgba(246,239,227,0.7); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.7rem; }
.wordmark--footer { color: var(--cream); }
.wordmark--footer .wordmark__mark { color: var(--sand); }
.footer-meta { font-size: var(--text-sm); color: var(--sand); }
.footer-links a { color: rgba(246,239,227,0.85); text-decoration: none; font-size: var(--text-sm); border-bottom: 1px solid transparent; transition: border-color .2s; }
.footer-links a:hover { border-color: var(--sand); }
.footer-copy { font-size: var(--text-xs); color: rgba(246,239,227,0.5); margin-top: 0.4rem; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-copy { max-width: 100%; }
  .hero-figure img { aspect-ratio: 4 / 3; }
  .hero-caption { text-align: left; }
  .story-grid { grid-template-columns: 1fr; }
  .story-lead { max-width: 100%; }
  .pullquote { border-left: none; border-top: 3px solid var(--terra); padding-left: 0; padding-top: 1.5rem; }
  .products-grid { grid-template-columns: 1fr; }
  .products-figure { order: 2; }
  .products-copy { order: 1; }
  .products-figure img { aspect-ratio: 4 / 3; }
  .approach-grid { grid-template-columns: 1fr; }
  .approach-figure { order: -1; }
  .approach-figure img { aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
  .site-nav { gap: 0.9rem; }
  .site-nav a:not(.nav-cta) { display: none; }
  .wordmark__mark { width: 34px; }
  .hero-actions .btn { flex: 1 1 auto; }
}
