:root {
  --ink: #14201c;
  --ink-soft: #3a4a44;
  --paper: #f3f6f4;
  --foam: #ffffff;
  --accent: #1f6f5b;
  --accent-deep: #0f3d32;
  --line: rgba(20, 32, 28, 0.12);
  --glow: rgba(31, 111, 91, 0.18);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(31, 111, 91, 0.16), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(20, 48, 72, 0.12), transparent 50%),
    linear-gradient(180deg, #e8efeb 0%, var(--paper) 45%, #eef2f0 100%);
  line-height: 1.55;
  display: flex;
  flex-direction: column;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(20, 32, 28, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 32, 28, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  animation: drift 28s linear infinite;
  opacity: 0.7;
}

@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(48px); }
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  position: relative;
  z-index: 1;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand img { display: block; }

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

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

nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.3rem;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
  animation: underline 0.45s ease both;
}

@keyframes underline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

main { flex: 1; position: relative; z-index: 1; }

.hero {
  padding: clamp(3rem, 12vh, 7rem) clamp(1.25rem, 4vw, 3rem) 4rem;
  max-width: 52rem;
  animation: rise 0.8s ease both;
}

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

.brand-hero {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  line-height: 1.02;
  color: var(--accent-deep);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero h1,
.page h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--ink);
}

.lede {
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 36rem;
  margin-bottom: 1.75rem;
}

.page {
  padding: clamp(2.5rem, 8vh, 5rem) clamp(1.25rem, 4vw, 3rem) 4rem;
  max-width: 40rem;
  animation: rise 0.7s ease both;
}

.page p + p { margin-top: 1rem; color: var(--ink-soft); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border-radius: 0.4rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: var(--foam);
  box-shadow: 0 10px 30px var(--glow);
}

.btn.primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.btn.ghost {
  color: var(--accent-deep);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

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

.muted { color: var(--ink-soft); font-size: 0.95rem; margin-top: 1.5rem; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

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

@media (max-width: 640px) {
  .site-header { flex-direction: column; align-items: flex-start; }
}
