:root {
  --bg-1: #fef6e4;
  --bg-2: #f3d2c1;
  --ink: #2b2118;
  --ink-soft: #6b5c4d;
  --card-bg: #fffaf3;
  --accent: #f582ae;
  --accent-ink: #ffffff;
  --accent-2: #8bd3dd;
  --line: rgba(43, 33, 24, 0.12);
  --shadow: 0 20px 45px -20px rgba(43, 33, 24, 0.35);
  --radius: 22px;
  --night: #0d1a22;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg-1);
  line-height: 1.5;
}

a { color: inherit; }

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

/* ---------- Nav ---------- */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(16px, 5vw, 40px);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand-icon {
  height: 34px;
  width: auto;
}

.brand-logo {
  height: 42px;
  width: auto;
}

.site-nav nav {
  display: flex;
  gap: 20px;
}

.site-nav nav a {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.site-nav nav a:hover { text-decoration: underline; }

.brand:focus-visible,
.site-nav nav a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--night);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("assets/weevildoku-menu-bg-desktop.png") center bottom/cover no-repeat;
}

@media (max-width: 700px) {
  .hero-bg {
    background-image: url("assets/weevildoku-menu-bg-phone.png");
  }
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,26,34,0.15) 0%, rgba(13,26,34,0.55) 65%, rgba(13,26,34,0.92) 100%);
}

.hero-mascot-wrap {
  position: absolute;
  right: clamp(4%, 8vw, 12%);
  bottom: 0;
  width: fit-content;
  /* Explicit (not auto) height, matching .hero-mascot's own — required so the shadow's
     percentage `height` below actually resolves against something instead of collapsing to
     0 (percentage heights on an absolutely-positioned child are ignored/auto when the
     containing block's own height is auto, a classic CSS trap caught by inspecting the
     first render: the oval was invisible because it was rendering at 0 height). */
  height: clamp(180px, 32vw, 340px);
  z-index: 1;
}

.hero-mascot {
  display: block;
  height: clamp(180px, 32vw, 340px);
  width: auto;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.4));
}

/* Simple blurred contact-shadow oval at the mascot's feet, same technique already used for
   the curator portrait (see .curator-portrait-wrap::after). `.hero` has overflow:hidden, so
   this (or anything else here) can never visually extend past the background's bottom edge
   regardless of the exact offset chosen — kept flush with the mascot's own feet (bottom:0)
   to read as true contact with the ground rather than floating above it. */
.hero-mascot-shadow {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 55%;
  height: 7%;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  filter: blur(6px);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 clamp(20px, 6vw, 60px) clamp(40px, 8vw, 80px);
  max-width: 680px;
}

.hero-content h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  margin: 0 0 14px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.hero-sub {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  margin: 0 0 28px;
  color: rgba(255,255,255,0.92);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-weight: 700;
  border-radius: 999px;
  padding: 14px 26px;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:active { transform: scale(0.97); }

.btn:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
}

.btn-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  border-radius: 4px;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 24px -10px rgba(245, 130, 174, 0.7);
}

.btn-link {
  color: #fff;
  font-weight: 700;
  padding: 8px 0;
}

/* ---------- Sections ---------- */

.section {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) clamp(16px, 5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 42px);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.featured-card h2 {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
}

.featured-desc {
  font-size: 1.05rem;
  margin: 0 0 10px;
}

.featured-meta {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin: 0 0 22px;
}

/* ---------- Growth / flight loop ---------- */

.growth-section { padding-top: 0; }

.growth-card {
  background: linear-gradient(135deg, #10222c, #16303a);
  border-color: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
  color: #fff;
}

.growth-text {
  flex: 1 1 320px;
  min-width: 240px;
}

.growth-text .eyebrow { color: rgba(255,255,255,0.65); }

.growth-text h2 {
  font-size: clamp(1.3rem, 3.2vw, 1.7rem);
  margin: 0 0 12px;
}

.growth-text p {
  margin: 0;
  color: rgba(255,255,255,0.85);
}

.growth-media {
  flex: 0 0 auto;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.flight-loop {
  height: clamp(180px, 24vw, 320px);
  width: auto;
}

/* ---------- Curator ---------- */

.curator-section {
  background: linear-gradient(180deg, transparent, rgba(243, 210, 193, 0.35));
}

.curator-card {
  display: flex;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  flex-wrap: wrap;
}

.curator-portrait-wrap {
  position: relative;
  width: clamp(140px, 22vw, 220px);
  flex-shrink: 0;
  margin: 0 auto;
}

.curator-portrait-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1%;
  transform: translateX(-50%);
  width: 55%;
  height: 8%;
  background: rgba(0, 0, 0, 0.32);
  border-radius: 50%;
  filter: blur(6px);
  z-index: 0;
}

.curator-portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
}

.curator-text {
  flex: 1 1 320px;
  min-width: 260px;
}

.curator-quote {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-style: italic;
  margin: 0 0 14px;
  line-height: 1.45;
}

.curator-sign {
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.collection-status {
  display: inline-block;
  background: var(--accent-2);
  color: #123a3e;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0;
}

/* ---------- Principles ---------- */

.principles-section { padding-top: 0; }

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
}

.principle h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.principle p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */

.site-footer {
  text-align: center;
  padding: 32px 16px 48px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 14px;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
}

.footer-links a:hover { text-decoration: underline; }

.footer-links a:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.footer-copy { margin: 0; }

@media (max-width: 640px) {
  .curator-card { text-align: center; justify-content: center; }
  .site-nav { position: absolute; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.001ms !important; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-1: #1c1610;
    --bg-2: #33241f;
    --ink: #f6ece0;
    --ink-soft: #c9b8a6;
    --card-bg: #241c16;
    --line: rgba(246, 236, 224, 0.14);
    --accent: #f582ae;
    --accent-2: #6cc4cf;
    --shadow: 0 20px 45px -20px rgba(0, 0, 0, 0.6);
  }
  .collection-status { color: #0d2c2f; }
}
