/* evanjbean.com - minimal holding page, broadsheet tokens from the full site */

/* ---------- fonts ---------- */

@font-face {
  font-family: "Besley";
  src: url("/assets/fonts/Besley%5Bwght%5D.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Spline Sans Mono";
  src: url("/assets/fonts/SplineSansMono%5Bwght%5D.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

/* metric-matched fallbacks (CLS = 0) */
@font-face {
  font-family: "Besley-fallback";
  src: local("Georgia");
  size-adjust: 113.66%;
  ascent-override: 109.98%;
  descent-override: 37.39%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "SplineSansMono-fallback";
  src: local("Menlo");
  size-adjust: 99.66%;
  ascent-override: 96.68%;
  descent-override: 23.73%;
  line-gap-override: 0%;
}

/* ---------- tokens ---------- */

:root {
  --paper:    #F6F2E9;
  --ink:      #1A1713;
  --ink-soft: #5B544A;
  --rule:     #CDC4B0;
  --flag:     #A23B26;

  --font-display: "Besley", "Besley-fallback", Georgia, serif;
  --font-mono: "Spline Sans Mono", "SplineSansMono-fallback", Menlo, monospace;
}

/* ---------- base ---------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-kerning: normal;
}

/* ---------- card ---------- */

.card {
  text-align: center;
  max-width: 34rem;
}

.name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.role {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(0.75rem, 2.4vw, 0.9rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.rule {
  width: 3rem;
  height: 0;
  margin: 1.75rem auto;
  border: 0;
  border-top: 2px solid var(--ink);
}

.links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.links a {
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--rule);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.links a:hover,
.links a:focus-visible {
  color: var(--flag);
  border-bottom-color: var(--flag);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
