:root {
  --bg: #0a0a0a;
  --fg: #f5f5f0;
  --muted: #8a8a85;
  --page-bg: #f5f5f0;
  --page-fg: #0a0a0a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  background: var(--page-bg);
  color: var(--page-fg);
}

/* ---------- NAV ---------- */
nav.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 6vw;
  border-bottom: 1px solid #e2e2dc;
}
nav.site-nav img { height: 34px; width: auto; display: block; }
nav.site-nav .links {
  display: flex;
  gap: 2.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
nav.site-nav .links a {
  color: var(--page-fg);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}
nav.site-nav .links a:hover,
nav.site-nav .links a.active { opacity: 1; }

/* ---------- HERO (home page, dark) ---------- */
header.hero {
  background: var(--bg);
  color: var(--fg);
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6vh 6vw;
}
header.hero img { width: min(480px, 78vw); height: auto; margin-bottom: 2.2rem; }
header.hero .slogan {
  font-size: clamp(1.8rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}
header.hero .sub { color: var(--muted); font-size: clamp(1rem, 2vw, 1.25rem); max-width: 42ch; }
header.hero .scrolldown {
  margin-top: 3rem; font-size: 0.85rem; letter-spacing: 0.15em;
  color: var(--muted); text-transform: uppercase;
}

/* ---------- Simple page hero (non-home pages, light) ---------- */
header.page-hero {
  padding: 8vh 6vw 4vh;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}
header.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}
header.page-hero p.tagline {
  margin-top: 0.8rem;
  color: #565650;
  font-size: 1.1rem;
  max-width: 50ch;
}

/* ---------- CONTENT SECTIONS ---------- */
section { max-width: 760px; margin: 0 auto; padding: 4vh 6vw; }
section.about-copy p { font-size: clamp(1.05rem, 2vw, 1.3rem); margin-bottom: 1.3rem; }
section.about-copy p.lede { font-weight: 700; }
section.about-copy p.muted { color: #6b6b64; font-size: 1rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
  margin-top: 2rem;
}
.card {
  border: 1px solid #e2e2dc;
  border-radius: 10px;
  padding: 1.6rem;
  background: #fff;
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.card p { font-size: 0.95rem; color: #55554f; }

/* ---------- CONTACT FORM ---------- */
form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 480px;
  margin-top: 2rem;
}
form.contact-form label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.03em; }
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d3d3cc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}
form.contact-form textarea { min-height: 130px; resize: vertical; }
form.contact-form button {
  align-self: flex-start;
  padding: 0.8rem 1.8rem;
  background: var(--bg);
  color: var(--fg);
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
form.contact-form button:hover { opacity: 0.85; }
.contact-direct { margin-top: 2.4rem; font-size: 1rem; color: #55554f; }
.contact-direct a { color: var(--page-fg); font-weight: 700; }

/* ---------- FOOTER ---------- */
footer {
  border-top: 1px solid #e2e2dc;
  padding: 5vh 6vw 6vh;
  text-align: center;
  color: #6b6b64;
  margin-top: 2vh;
}
footer a { color: var(--page-fg); text-decoration: none; border-bottom: 1px solid #6b6b64; }
footer a:hover { border-color: var(--page-fg); }
footer .links {
  display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 1.4rem; font-size: 1rem;
}
