:root {
  --bg: #0a0d16;
  --bg-panel: #11162406;
  --panel: #10152400;
  --panel-solid: #0f1422;
  --text: #e9ebf2;
  --text-muted: #9aa2b8;
  --accent: #c9a24d;
  --accent-soft: rgba(201, 162, 77, 0.12);
  --border: rgba(255, 255, 255, 0.09);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 880px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 15% 0%, rgba(201, 162, 77, 0.06), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(80, 110, 200, 0.08), transparent 45%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

header.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 13, 22, 0.85);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand:hover {
  text-decoration: none;
}

.monogram {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

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

nav.site-nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

nav.site-nav a:hover {
  color: var(--text);
  background: var(--accent-soft);
  text-decoration: none;
}

nav.site-nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- Main content ---------- */

main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.page-header {
  margin-bottom: 40px;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  margin: 0 0 10px;
}

.page-title {
  font-family: var(--serif);
  font-size: 2.4rem;
  margin: 0;
  color: var(--text);
}

#content h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-top: 2.4em;
  margin-bottom: 0.6em;
  color: var(--text);
}

#content h2:first-child {
  margin-top: 0;
}

#content h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--accent);
  margin-top: 1.8em;
  margin-bottom: 0.4em;
}

#content p {
  color: var(--text-muted);
  margin: 0 0 1.1em;
}

#content strong {
  color: var(--text);
}

#content ul,
#content ol {
  color: var(--text-muted);
  padding-left: 1.3em;
}

#content li {
  margin-bottom: 0.5em;
}

#content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.4em 0;
}

#content blockquote {
  margin: 1.5em 0;
  padding: 0.2em 1.2em;
  border-left: 2px solid var(--accent);
  color: var(--text-muted);
  font-style: italic;
}

.loading-note {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Hero (home page) ---------- */

.hero {
  padding: 72px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.hero-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-photo {
  flex-shrink: 0;
}

.hero-photo img {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.hero .eyebrow {
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--text);
}

.hero h1 .last {
  color: var(--accent);
}

.hero .tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 60ch;
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #14100a;
}

.btn-primary:hover {
  background: #dab766;
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

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

.home-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.home-links a {
  display: block;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.home-links a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

.home-links .label {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.home-links .desc {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
}

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

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

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

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

  main {
    padding: 40px 20px 64px;
  }

  .hero-grid {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 28px;
  }

  .hero-photo img {
    width: 128px;
    height: 128px;
  }
}
