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

:root {
  --ink: #1a1710;
  --ink-mid: #211e15;
  --ink-deep: #14120d;
  --parchment: #f5f0e8;
  --aged: #e8e0cc;
  --rust: #8b3a1a;
  --rust-light: #c4592a;
  --mist: #6b6558;
  --road: #3d3a32;
  --compass: #c9a84c;
  --compass-dark: #8a6f2e;
  --serif: 'Playfair Display', Georgia, serif;
  --mono: 'Space Mono', monospace;
  --body: 'Libre Baskerville', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 23, 16, 0.97);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  backdrop-filter: blur(6px);
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  line-height: 1;
}
.nav-logo-text {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--compass);
  white-space: nowrap;
}

.nav-logo .nav-parent { color: var(--parchment); font-weight: 400; font-style: italic; font-size: 0.9rem; }
.nav-logo .nav-divider { color: rgba(201,168,76,0.3); font-weight: 300; }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--compass); }
.nav-links a.active { color: var(--parchment); }

.nav-cta {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--compass);
  padding: 0.5rem 1.1rem;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--compass-dark); color: var(--parchment) !important; }

/* ── SUB-NAV ── */
.sub-nav {
  background: rgba(26, 23, 16, 0.95);
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
  padding: 0 3rem;
  display: flex;
  align-items: center;
  height: 38px;
  position: sticky;
  top: 60px;
  z-index: 99;
  gap: 2rem;
}

.sub-nav a {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.35);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.sub-nav a:hover { color: var(--compass); }

.sub-nav-divider {
  width: 1px;
  height: 14px;
  background: rgba(201, 168, 76, 0.15);
  flex-shrink: 0;
}

/* ── SHARED LAYOUT ── */
.page-section { padding: 6rem 3rem; position: relative; }
.page-section.dark { background: var(--ink-deep); }
.page-section.mid { background: var(--ink-mid); }
.page-section.road { background: var(--road); }

.container { max-width: 1100px; margin: 0 auto; }

.section-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--compass);
  margin-bottom: 0.75rem;
}
.section-tag::before { content: '§ '; opacity: 0.4; }

h1, h2 { font-family: var(--serif); line-height: 1.1; }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 700; color: var(--parchment); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; color: var(--parchment); }
h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--parchment); }
em { color: var(--compass); font-style: italic; }

.section-rule { width: 48px; height: 1px; background: var(--compass); opacity: 0.5; margin: 1.5rem 0; }

.lead {
  font-size: 1rem;
  color: rgba(245, 240, 232, 0.6);
  max-width: 560px;
  line-height: 1.95;
  font-style: italic;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--compass);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-weight: 700;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--compass-dark); }

.btn-ghost {
  background: rgba(26,23,16,0.85);
  color: var(--parchment);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  border: 1px solid rgba(245, 240, 232, 0.2);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--compass); color: var(--compass); background: rgba(26,23,16,1); }

.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* ── GRID UTILITY ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2-1 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 4rem; }

/* ── DIVIDER LINE ── */
.hr-gold { border: none; border-top: 1px solid rgba(201,168,76,0.12); margin: 0; }

/* ── FOOTER ── */
footer.site-footer {
  background: var(--ink);
  border-top: 1px solid rgba(201,168,76,0.12);
  padding: 3rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(245,240,232,0.05);
}

.footer-brand-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--compass);
  margin-bottom: 0.5rem;
}

.footer-brand-sub {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 1rem;
}

.footer-brand-desc {
  font-size: 0.83rem;
  color: rgba(245,240,232,0.35);
  line-height: 1.85;
  font-style: italic;
  max-width: 320px;
}

.footer-col-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--compass);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: rgba(245,240,232,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--compass); }

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: rgba(245,240,232,0.2);
}

/* ── COMPASS ROSE SVG ── */
.compass-rose-sm { opacity: 0.07; }

/* ── BG GRID ── */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* ── FORM ── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}
.form-input, .form-select, .form-textarea {
  background: rgba(245,240,232,0.04);
  border: 1px solid rgba(245,240,232,0.08);
  color: var(--parchment);
  font-family: var(--body);
  font-size: 0.9rem;
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: rgba(201,168,76,0.4);
}
.form-select { appearance: none; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  /* Nav */
  nav { padding: 0 1.25rem; height: 56px; }
  .nav-links { gap: 1.25rem; }
  .nav-links li:not(:last-child):not(:first-child) { display: none; }
  .nav-cta { padding: 0.45rem 0.85rem; font-size: 0.58rem; }

  /* Sub-nav */
  .sub-nav { padding: 0 1.25rem; top: 56px; gap: 1.25rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sub-nav::-webkit-scrollbar { display: none; }
  .sub-nav-divider { display: none; }

  /* Sections */
  .page-section { padding: 3.5rem 1.25rem; }

  /* Typography */
  h1 { font-size: clamp(2rem, 10vw, 3rem); }
  h2 { font-size: clamp(1.6rem, 7vw, 2.2rem); }

  /* Lead text — remove max-width cap so it fills the column */
  .lead { max-width: 100%; }

  /* Buttons — stack on small screens */
  .btn-row { flex-direction: column; align-items: flex-start; }
  .btn-primary, .btn-ghost { width: 100%; text-align: center; }

  /* Grids → single column */
  .grid-2, .grid-3, .grid-2-1 { grid-template-columns: 1fr; gap: 2rem; }

  /* Form rows → single column */
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  footer.site-footer { padding: 2.5rem 1.25rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; align-items: flex-start; }
  .footer-brand-desc { max-width: 100%; }
  .footer-links a { font-size: 0.85rem; letter-spacing: 0.02em; }
}

