/* ── Teak desk surface ──────────────────────────────── */
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(
      ellipse 160% 90% at 50% 45%,
      rgba(165, 82, 18, 0.28) 0%,
      transparent 65%
    ),
    url('/images/wood-grain.svg');

  background-size:       cover, cover;
  background-repeat:     no-repeat, no-repeat;
  background-attachment: fixed, fixed;
  background-position:   center center, center center;
}

/* Vignette — edges worn dark from decades of use */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 45%,
    transparent 30%,
    rgba(0, 0, 0, 0.50) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: relative;
  z-index: 1;
  padding: 52px 44px 28px;
}

.site-title {
  font-family: var(--font-ibm-sans);
  font-size: var(--text-lg);
  font-weight: normal;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.site-subtitle {
  margin-top: 5px;
  font-size: var(--text-sub);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dim);
  font-family: var(--font-serif);
}

@media (max-width: 560px) {
  /* iOS Safari silently ignores background-attachment:fixed and falls back to
     scroll, which scales the grain against the full document height — wrong.
     Solution: strip the body background and use a position:fixed ::before
     pseudo-element instead, which is always viewport-sized regardless of iOS. */
  html {
    background-color: var(--bg); /* fallback while body is transparent */
  }

  body {
    background: transparent;
  }

  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-color: var(--bg);
    background-image:
      linear-gradient(to bottom, var(--bg) 0%, transparent 48px),
      radial-gradient(
        ellipse 160% 90% at 50% 45%,
        rgba(165, 82, 18, 0.28) 0%,
        transparent 65%
      ),
      url('/images/wood-grain.svg');
    background-size: auto, cover, cover;
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position: center center, center center, center center;
    pointer-events: none;
    z-index: -1;
  }

  .site-header {
    padding: 36px 14px 20px;
  }
}

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 32px 44px;
  text-align: center;
  font-size: var(--text-xl);
  color: rgba(var(--accent-rgb), 0.25);
  font-family: var(--font-serif);
  letter-spacing: 0.04em;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast);
}

.site-footer a:hover {
  color: rgba(var(--accent-rgb), 0.55);
}
