@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/eb-garamond-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #efe9dc;
  --ink: #211f1c;
  --accent: #7c2129;
  --brass: #b08d57;
  --mute: #56534d;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'EB Garamond', Georgia, serif;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(28px, 5vh, 58px) clamp(28px, 6vw, 86px);
  position: relative;
}

/* Brass frame — decorative */
.page::before {
  content: "";
  position: absolute;
  inset: clamp(12px, 1.6vw, 20px);
  border: 1px solid var(--brass);
  opacity: 0.38;
  pointer-events: none;
  animation: dcoFade 1s ease 0.5s both;
}

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  animation: dcoRise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both;
}

.locus,
.role-title {
  font-variant-caps: all-small-caps;
  font-size: clamp(13px, 1.55vw, 19px);
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.role { text-align: right; }

.role-sub {
  margin-top: 2px;
  font-variant-caps: all-small-caps;
  font-size: clamp(10px, 1.1vw, 13px);
  letter-spacing: 0.08em;
  line-height: 1.3;
  color: var(--mute);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.name {
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.03em;
  animation: dcoRise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.28s both;
}

.name-given {
  font-variant-caps: all-small-caps;
  font-size: clamp(24px, 3.4vw, 42px);
  letter-spacing: 0.05em;
}

.name-initial {
  font-size: clamp(30px, 4.6vw, 58px);
  letter-spacing: 0.02em;
}

.name-rest {
  font-variant-caps: all-small-caps;
  font-size: clamp(30px, 4.6vw, 58px);
  letter-spacing: 0.02em;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(14px, 2.2vh, 22px);
}

.divider-rule {
  width: clamp(20px, 4vw, 44px);
  height: 1px;
  background: var(--brass);
  animation: dcoDraw 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s both;
}

.divider-rule--left { transform-origin: right; }
.divider-rule--right { transform-origin: left; }

.divider-mark {
  width: 4px;
  height: 4px;
  background: var(--accent);
  transform: rotate(45deg);
  animation: dcoFade 0.5s ease 0.68s both;
}

.tagline {
  margin-top: clamp(12px, 2vh, 20px);
  font-variant-caps: all-small-caps;
  font-size: clamp(14px, 1.7vw, 22px);
  letter-spacing: 0.14em;
  color: var(--mute);
  animation: dcoRise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.42s both;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 1.4vw, 18px);
  animation: dcoRise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.8s both;
}

.contact-link {
  font-variant-caps: all-small-caps;
  font-size: clamp(12px, 1.45vw, 18px);
  letter-spacing: 0.07em;
  padding: 4px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}

.contact-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.contact-sep {
  width: 3px;
  height: 3px;
  background: var(--brass);
  transform: rotate(45deg);
  flex: none;
}

@keyframes dcoDraw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dcoRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes dcoFade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
  }
}
