/* ---------- Base: shared by ALL pages ---------- */
:root {
  --bg: #101010;
  --text: #e8e6e3;
  --muted: #9a968f;
  --accent: #ffffff;
  --border: #262626;
  --max-width: 85%;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;

  /* Sticky footer: footer stays at the bottom on short pages */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a { color: var(--text); text-decoration: none; transition: opacity 0.2s ease; }
a:hover { opacity: 0.6; }

h1, h2, h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---------- Header (injected by header.js) ---------- */
.site-header {
  text-align: center;
  padding: 2.5rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: inline-block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.site-nav { margin-top: 0.9rem; }

.site-nav a {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin: 0 1.1rem;
}

.site-nav a:hover { color: var(--accent); opacity: 1; }
.site-nav a.active { color: var(--accent); }

/* ---------- Page title ---------- */
.page-title {
  font-size: 2.4rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

/* ---------- Main ---------- */
.site-main {
  flex: 1;                        /* pushes the footer down when content is short */
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ---------- Footer (injected by header.js) ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .logo { font-size: 1.5rem; }

  .site-nav a {
    display: inline-block;
    margin: 0.35rem 0.7rem;       /* lets the links wrap on small screens */
  }

  .page-title { font-size: 2rem; }
}