@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --ink: #10221e;
  --ink-soft: #2c4540;
  --muted: #5d716c;
  --line: #d5e3de;
  --bg: #f3f8f6;
  --paper: #fbfffd;
  --deep: #0f2e2a;
  --deep-2: #163c36;
  --mint: #7dffc3;
  --mint-ink: #0d3d34;
  --accent: #1f7a66;
  --display: "Fraunces", "Source Serif 4", Georgia, serif;
  --sans: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --shadow: 0 24px 60px rgba(16, 34, 30, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 85% -8%, rgba(125, 255, 195, 0.18), transparent 55%),
    radial-gradient(700px 360px at 0% 20%, rgba(31, 122, 102, 0.08), transparent 50%),
    linear-gradient(180deg, #eef6f3 0%, var(--bg) 38%, #e7f1ed 100%);
  line-height: 1.65;
  min-height: 100vh;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--deep); }

.wrap {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 248, 246, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(213, 227, 222, 0.8);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand img,
.brand svg {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-text small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

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

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
}

/* —— Home hero: one composition —— */
.hero-plane {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f4fffa;
  background: var(--deep);
}

.hero-plane::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 31, 28, 0.15) 0%, rgba(11, 31, 28, 0.55) 48%, rgba(11, 31, 28, 0.92) 100%),
    url("/studio/assets/hero-desk.svg") center / cover no-repeat;
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-plane::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0 72px;
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-brand {
  font-family: var(--display);
  font-size: clamp(3rem, 9vw, 5.6rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  max-width: 12ch;
}

.hero-brand span {
  display: inline-block;
  color: var(--mint);
  animation: mintPulse 3.2s ease-in-out infinite;
}

.hero-plane h1 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 500;
  line-height: 1.35;
  max-width: 22ch;
  margin-bottom: 14px;
  color: #e8f7f1;
}

.hero-plane .lede {
  color: rgba(232, 247, 241, 0.78);
  font-size: 1.05rem;
  max-width: 40ch;
  margin-bottom: 28px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn.primary {
  background: var(--mint);
  color: var(--mint-ink);
}

.btn.primary:hover {
  background: #b6ffe0;
  color: var(--mint-ink);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(232, 247, 241, 0.35);
  color: #f4fffa;
}

.btn.ghost:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.btn.solid {
  background: var(--deep);
  color: #f4fffa;
}

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

.btn.outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn.outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.section {
  padding: 56px 0 24px;
}

.section h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-lede {
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 48ch;
}

.topic-list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.topic-list li {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 18px 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.topic-list strong {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.topic-list span {
  color: var(--muted);
  font-size: 0.98rem;
}

.tone {
  padding: 8px 0 72px;
}

.tone h2 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.tone p {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.tone strong { color: var(--ink); }

.page {
  padding: 48px 0 72px;
  animation: riseIn 0.55s ease both;
}

.page h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.page p,
.page li {
  color: var(--ink-soft);
  margin-bottom: 14px;
  max-width: 62ch;
}

.page ul {
  padding-left: 1.2rem;
  margin-bottom: 18px;
}

.page-cta { margin-top: 28px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover { color: var(--accent); }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroDrift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.04) translate3d(-1.2%, -0.8%, 0); }
}

@keyframes mintPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

@media (max-width: 720px) {
  .wrap { width: min(100% - 28px, 1080px); }
  .nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
    min-height: 0;
  }
  .hero-inner { padding: 96px 0 56px; }
  .topic-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
