/* System Two — Styles */

/* ─── Reset & Base ─────────────────────────────────────── */

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

:root {
  --bg:          #1a3a30;
  --bg-deep:     #122b23;
  --text:        #e8e8e8;
  --text-muted:  #8aab9a;
  --accent:      #7daa98;
  --rule:        #3d6b59;
  --gold:        #c9a96e;
}

html, body {
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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


/* ─── Hero Page Layout ──────────────────────────────────── */

body.hero-page {
  background: var(--bg-deep);
}

.hero-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}


/* ─── Watermark ─────────────────────────────────────────── */

.hero-watermark {
  position: absolute;
  right: -0.08em;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 55vw;
  font-weight: 300;
  line-height: 1;
  color: var(--text);
  opacity: 0.03;
  pointer-events: none;
  user-select: none;
}


/* ─── Brand Label (top-left) ────────────────────────────── */

.hero-brand {
  padding: 2.5rem 3.5rem 0;
  flex-shrink: 0;
  font-family: 'Cormorant SC', Georgia, serif;
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(138, 171, 154, 0.45);
}


/* ─── Hero Main (logo lockup) ───────────────────────────── */

.hero-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 3.5rem 3rem;
}

/* ─── Iteration log ─────────────────────────────────────────
   v3 (2026-03-10):
   - gap 0.6rem → 0.25rem  (lockup felt like two separate elements)
   - line-height 1 → 0.82  (Cormorant 'y' descender too aggressive at lh 1)

   v4 (2026-03-10): precise x-height alignment (first attempt, rem-based, imprecise)

   v5 (2026-03-10): x-height alignment using em units — scales with font-size
     METHOD: align-items: flex-start (top-anchor) + margin-top on wordmark
     CORMORANT GARAMOND hhea metrics:
       ascender        =  0.904 × font-size above baseline
       descender       =  0.220 × font-size below baseline
       natural lh      =  1.124 × font-size
       half-leading    = (0.820 − 1.124) / 2 = −0.152em
       line-box top    =  ascender + half-leading = 0.904 − 0.152 = 0.752em above baseline
       x-height        ≈  0.420em above baseline
       x-height from line-box top = 0.752 − 0.420 = 0.332em
     CALCULATION:
       S height        =  1.4em (= 2 × cap-height, keeps cap-tops at S midpoint)
       S centre        =  0.700em from S top
       margin-top      =  0.700 − 0.332 = 0.368em → 0.37em
     CONSTRAINTS MET:
       x-height top    = S top + 0.37em + 0.332em = 0.702em ≈ S centre ✓
       descender bottom= 0.37 + 0.752 + 0.220 = 1.342em = 118px < S height 123px ✓
   ─────────────────────────────────────────────────────────── */

.hero-lockup {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
}


/* ─── Dürer S Image ─────────────────────────────────────── */

.logo-s-img {
  width: clamp(3.5rem, 7vw, 5rem);
  height: clamp(5rem, 10.5vw, 7.7rem);  /* 1.4 × wordmark font-size = 2 × cap-height */
  object-fit: contain;
  object-position: center bottom;
  filter: sepia(0.15) brightness(0.92);
  display: block;
  flex-shrink: 0;
}

.logo-wordmark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3.5rem, 7.5vw, 5.5rem);
  font-weight: 300;
  color: var(--text);
  letter-spacing: 0.04em;
  line-height: 0.82;
  /* 0.37em pushes text down so x-height top lands on S centre line (see log above) */
  margin-top: 0.37em;
}


/* ─── Accent Rule ───────────────────────────────────────── */

.hero-rule {
  flex-shrink: 0;
  margin: 0 3.5rem;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--rule) 10%,
    var(--accent) 50%,
    var(--rule) 90%,
    transparent
  );
}


/* ─── Lower (tagline) ───────────────────────────────────── */

.hero-lower {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3.5rem;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-muted);
}


/* ─── Hero Footer ───────────────────────────────────────── */

.hero-footer {
  padding: 2rem 3.5rem;
  flex-shrink: 0;
}

.hero-footer span {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(61, 107, 89, 0.7);
}


/* ─── Inner Pages ───────────────────────────────────────── */

header {
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

nav {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
}

nav a {
  margin-right: 1.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

nav a:hover {
  color: var(--accent);
}

main {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
}

h1 {
  margin-top: 0;
  color: var(--text);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
}
