/* Fonts are self-hosted (no third-party requests). */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #140e0a;            /* espresso */
  --text: #f6efe7;          /* steamed milk */
  --text-muted: rgba(246, 239, 231, 0.76);
  --text-soft: rgba(246, 239, 231, 0.6);
  --accent: #e3a96b;        /* crema */
  --accent-strong: #f1c48f;
  --glass: rgba(255, 240, 225, 0.055);
  --glass-hover: rgba(255, 240, 225, 0.1);
  --glass-border: rgba(255, 235, 215, 0.16);
  --shadow: rgba(0, 0, 0, 0.35);
  --serif: "Fraunces", ui-serif, Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: 3rem 1.25rem 1.5rem;
  overflow: hidden;
  isolation: isolate;
}

/* Background: warm glows + film grain. Swap for a photo later if wanted. */
.backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 50% 120%, rgba(120, 62, 28, 0.35), transparent 60%),
    radial-gradient(90% 70% at 50% -10%, rgba(60, 36, 22, 0.6), transparent 70%),
    var(--bg);
}
.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: drift 28s ease-in-out infinite alternate;
}
.glow-1 { width: 42vmax; height: 42vmax; left: -12vmax; top: -10vmax; background: #6b3518; }
.glow-2 { width: 36vmax; height: 36vmax; right: -10vmax; bottom: -12vmax; background: #a0582a; opacity: 0.4; animation-delay: -9s; }
.glow-3 { width: 22vmax; height: 22vmax; left: 55%; top: 18%; background: #3d2617; opacity: 0.7; animation-delay: -18s; }

/* Photo background (sunset over the mountains) with a warm espresso shade on top. */
.backdrop.has-photo { background: var(--bg); }
.photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 40%;
  transform: scale(1.04);
  animation: settle 2.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 50% 48%, rgba(20, 14, 10, 0.62) 0%, rgba(20, 14, 10, 0.35) 70%, rgba(20, 14, 10, 0.2) 100%),
    linear-gradient(to bottom, rgba(20, 14, 10, 0.35) 0%, rgba(20, 14, 10, 0.25) 35%, rgba(20, 14, 10, 0.78) 100%);
}
@keyframes settle {
  from { opacity: 0; transform: scale(1.1); }
  to   { opacity: 1; transform: scale(1.04); }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vmax, 3vmax, 0) scale(1.12); }
}

/* Hero */
.hero {
  width: 100%;
  max-width: 40rem;
  text-align: center;
}
.hero > * {
  animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero > :nth-child(2) { animation-delay: 60ms; }
.hero > :nth-child(3) { animation-delay: 140ms; }
.hero > :nth-child(4) { animation-delay: 200ms; }
.hero > :nth-child(5) { animation-delay: 240ms; }
.hero > :nth-child(6) { animation-delay: 300ms; }
.hero > :nth-child(7) { animation-delay: 380ms; }
.hero > :nth-child(8) { animation-delay: 460ms; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.handle {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}

.name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 450;
  font-size: clamp(2.5rem, 9vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.rule {
  display: block;
  width: 3rem;
  height: 2px;
  margin: 1.4rem auto 1.3rem;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.role {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  text-wrap: balance;
}

.location {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  color: var(--text-soft);
}
.location svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.bio {
  margin: 1.6rem auto 0;
  max-width: 30rem;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* Link pills */
.links {
  display: grid;
  gap: 0.7rem;
  margin: 2.2rem auto 0;
  max-width: 22rem;
}
.link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  box-shadow: 0 14px 30px var(--shadow);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.link svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--accent);
}
.link svg.fill { fill: currentColor; stroke: none; }
.link .arrow {
  margin-left: auto;
  color: var(--text-soft);
  transition: transform 160ms ease, color 160ms ease;
}
.link:hover,
.link:focus-visible {
  transform: translateY(-2px);
  background: var(--glass-hover);
  border-color: rgba(241, 196, 143, 0.55);
}
.link:hover .arrow,
.link:focus-visible .arrow {
  transform: translateX(3px);
  color: var(--accent-strong);
}
.link:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}
.link-accent {
  border-color: rgba(227, 169, 107, 0.45);
  background: rgba(227, 169, 107, 0.1);
}

.tagline {
  margin: 2.4rem 0 0;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--text-soft);
}

.footer {
  padding-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .page { padding-top: 2.5rem; }
  .links { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
