:root {
  color-scheme: light;
  --bg: #faf9f7;
  --panel: #ffffff;
  --ink: #16161a;
  --muted: #5c5c66;
  --faint: #8a8a94;
  --rule: #e2ded7;
  --accent: #b32218;
  --accent-rgb: 179, 34, 24;
  --bg-rgb: 250, 249, 247;
  --shadow: 0 1px 2px rgba(20,20,26,.05), 0 12px 40px -18px rgba(20,20,26,.28);
  --sans: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: Futura, "Futura PT", "Century Gothic", "Trebuchet MS", var(--sans);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vh 1.25rem;
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(var(--bg-rgb), 0) 0%, rgba(var(--bg-rgb), .82) 46%, rgb(var(--bg-rgb)) 74%),
    repeating-radial-gradient(150% 120% at 50% 0%,
      rgba(var(--accent-rgb), .10) 0 4.5%,
      rgba(var(--accent-rgb), .035) 4.5% 9%,
      transparent 9% 15%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.card {
  width: 100%;
  max-width: 34rem;
  aspect-ratio: 7 / 4;
  background: var(--panel);
  border-radius: 6px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns:
    7.5% minmax(0, 1fr) 6.8% 1px 6.8% minmax(0, 1fr) 7.5%;
  grid-template-rows: 14% 1fr 14%;
  container-type: inline-size;
  align-items: center;
  position: relative;
  text-align: center;
}

.identity { grid-area: 2 / 2; }

hr { grid-area: 2 / 4; }

nav { grid-area: 2 / 6; }

.card::before {
  content: "";
  position: absolute;
  inset: clamp(5px, 1.6%, 9px);
  border: 1px solid var(--rule);
  border-radius: 3px;
  pointer-events: none;
}

h1 {
  margin: 0;
  font-family: var(--display);
  white-space: nowrap;
  font-size: clamp(1.45rem, 6.4vw, 2.05rem);
  font-size: min(clamp(1.45rem, 6.4vw, 2.05rem), 6cqi);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -.005em;
}

.role {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

hr {
  border: 0;
  border-left: 1px solid var(--rule);
  margin: 0;
  width: 1px;
  align-self: stretch;
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  display: inline-flex;
  align-items: baseline;
  gap: .5ch;
  padding: clamp(.15rem, .8vw, .22rem) 0;
  font-size: clamp(.8rem, 3.2vw, .875rem);
  font-size: min(clamp(.8rem, 3.2vw, .875rem), 6cqi);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

nav a::after {
  content: "\2197";
  font-size: .8em;
  color: var(--faint);
  transition: color .15s ease, transform .15s ease;
}

nav a:hover,
nav a:focus-visible { color: var(--accent); border-bottom-color: var(--accent); }
nav a:hover::after,
nav a:focus-visible::after { color: var(--accent); transform: translate(1px, -1px); }

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

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