/* ===================================================
   YaadWine — Design Tokens
   Color:  wine (deep green) #1F4A3B, parchment/white #FBFAF6,
           gold (sage accent) #7A8F5C, ink #1C2420, route-teal #4E6B5C
   Type:   Fraunces (display) + Inter (body/utility)
=================================================== */

:root {
  --wine: #1F4A3B;
  --wine-deep: #12332A;
  --parchment: #FBFAF6;
  --parchment-dim: #E9EAE4;
  --gold: #7A8F5C;
  --ink: #1C2420;
  --route-teal: #4E6B5C;
  --white: #FFFFFF;

  --font-display: "Fraunces", serif;
  --font-body: "Inter", sans-serif;

  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--wine-deep);
  margin: 0;
  font-weight: 500;
}

/* subtle paper grain overlay for warmth without being a stock texture */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===================== HEADER ===================== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 32px 0;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--wine-deep);
  font-feature-settings: "liga" 0, "dlig" 0, "calt" 0;
  font-variant-ligatures: none;
}

.wordmark.small { font-size: 18px; }

.main-nav { display: flex; gap: 32px; }

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.75;
  transition: opacity 0.2s ease;
  position: relative;
}

.main-nav a:hover { opacity: 1; }

.main-nav a.active { opacity: 1; }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--gold);
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 90px 32px 60px;
  overflow: hidden;
}

.route-line {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#routePath {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw-route 2.6s ease-out 0.3s forwards;
}

.route-dot {
  opacity: 0;
  animation: dot-in 0.4s ease-out forwards;
}
.route-dot:nth-child(2) { animation-delay: 0.9s; }
.route-dot:nth-child(3) { animation-delay: 1.6s; }
.route-dot:nth-child(4) { animation-delay: 2.1s; }
.route-dot:nth-child(5) { animation-delay: 2.5s; }

@keyframes draw-route {
  to { stroke-dashoffset: 0; }
}
@keyframes dot-in {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  #routePath { animation: none; stroke-dashoffset: 0; }
  .route-dot { animation: none; opacity: 1; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.eyebrow, .section-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}

.hero h1 {
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 19px;
  color: var(--ink);
  opacity: 0.8;
  max-width: 500px;
  margin: 24px 0 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--wine-deep);
  color: var(--white);
}
.btn-primary:hover { background: var(--wine); }

.btn-ghost {
  border: 1.5px solid var(--wine-deep);
  color: var(--wine-deep);
}
.btn-ghost:hover { background: var(--wine-deep); color: var(--white); }

/* ===================== THESIS FLIP ===================== */
.thesis {
  max-width: 780px;
  margin: 40px auto 100px;
  padding: 0 32px;
  text-align: center;
}

.thesis-line {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.45;
  margin: 0 0 20px;
}

.thesis-strike {
  color: var(--ink);
  opacity: 0.4;
  text-decoration: line-through;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1.5px;
}

.thesis-answer {
  color: var(--wine-deep);
  font-style: italic;
  font-weight: 500;
}

/* ===================== WHY YAADWINE ===================== */
.why {
  max-width: 640px;
  margin: 0 auto 100px;
  padding: 0 32px;
  text-align: center;
}

.why-text {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  opacity: 0.82;
  margin: 0 0 18px;
}

.why-text:last-child { margin-bottom: 0; }

/* ===================== PILLARS ===================== */
.pillars {
  background: var(--white);
  padding: 100px 32px;
  border-top: 1px solid var(--parchment-dim);
  border-bottom: 1px solid var(--parchment-dim);
}

.pillars, .featured, .believe, .closing {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.pillars h2, .featured h2 {
  font-size: 36px;
  margin-bottom: 48px;
  max-width: 520px;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.pillar-card {
  border-top: 2px solid var(--gold);
  padding-top: 24px;
}

.pillar-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}

.pillar-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.pillar-card p {
  font-size: 15.5px;
  opacity: 0.78;
  margin: 0;
}

/* ===================== FEATURED / SIGNATURE SERIES ===================== */
.featured { padding: 100px 32px; }

.featured-card {
  background: var(--wine-deep);
  color: var(--white);
  padding: 48px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.featured-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.featured-card h3 {
  color: var(--white);
  font-size: 30px;
  max-width: 560px;
  margin-bottom: 16px;
}

.featured-card p {
  max-width: 560px;
  opacity: 0.85;
  margin: 0;
}

/* ===================== BELIEVE LIST ===================== */
.believe { padding: 40px 32px 100px; }

.believe-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
}

.believe-list li {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--wine-deep);
  padding-left: 24px;
  position: relative;
  border-left: 2px solid var(--gold);
}

/* ===================== CLOSING ===================== */
.closing {
  text-align: center;
  padding: 60px 32px 120px;
}

.closing-line {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--wine-deep);
  margin: 0 0 32px;
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--wine-deep);
  color: var(--parchment);
  padding: 60px 32px 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.footer-inner p {
  opacity: 0.7;
  margin: 8px 0 24px;
}

.footer-links { display: flex; gap: 28px; justify-content: center; font-size: 14px; }
.footer-links a { opacity: 0.8; }
.footer-links a:hover { opacity: 1; }

/* ===================== KEYBOARD FOCUS ===================== */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 860px) {
  .hero h1 { font-size: 44px; }
  .pillar-grid { grid-template-columns: 1fr; gap: 32px; }
  .believe-list { grid-template-columns: 1fr; }
  .main-nav { gap: 14px 20px; flex-wrap: wrap; justify-content: flex-end; }
  .thesis-line { font-size: 21px; }
}

@media (max-width: 500px) {
  .site-header { padding: 24px 20px 0; }
  .hero { padding: 60px 20px 40px; }
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 17px; }
  .why { margin-bottom: 70px; }
  .pillars, .featured, .believe, .closing { padding-left: 20px; padding-right: 20px; }
  .featured-card { padding: 32px 24px; }
  .closing-line { font-size: 24px; }
}
