/* austinkeith.com
   A calm, single-column page built from translucent "glass" surfaces
   floating over a soft color field. No build step, no dependencies. */

:root {
  color-scheme: light dark;

  --bg: #eef2f9;
  --text: #0e1220;
  --text-soft: rgba(14, 18, 32, 0.66);
  --accent: #0a6cff;

  --glass-fill: rgba(255, 255, 255, 0.46);
  --glass-fill-strong: rgba(255, 255, 255, 0.62);
  --glass-edge: rgba(255, 255, 255, 0.85);
  --glass-edge-low: rgba(255, 255, 255, 0.25);
  --glass-shadow: 0 1px 1px rgba(20, 30, 60, 0.04), 0 12px 40px -12px rgba(20, 30, 60, 0.22);
  --glint: rgba(255, 255, 255, 0.55);
  --rule: rgba(14, 18, 32, 0.09);

  --orb-1: #7cc4ff;
  --orb-2: #c9a8ff;
  --orb-3: #ffc7a8;
  --orb-opacity: 0.75;

  --radius: 28px;
  --width: 44rem;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d14;
    --text: #f3f5fa;
    --text-soft: rgba(243, 245, 250, 0.68);
    --accent: #6cb2ff;

    --glass-fill: rgba(255, 255, 255, 0.07);
    --glass-fill-strong: rgba(255, 255, 255, 0.12);
    --glass-edge: rgba(255, 255, 255, 0.28);
    --glass-edge-low: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 16px 48px -12px rgba(0, 0, 0, 0.6);
    --glint: rgba(255, 255, 255, 0.14);
    --rule: rgba(255, 255, 255, 0.1);

    --orb-1: #1f6fd6;
    --orb-2: #6a3fd1;
    --orb-3: #c2562f;
    --orb-opacity: 0.5;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

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

/* ---------- Ambient backdrop ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: var(--orb-opacity);
  will-change: transform;
}

.orb-1 { width: 46vmax; height: 46vmax; top: -14vmax; left: -10vmax; background: var(--orb-1); animation: drift-a 28s ease-in-out infinite alternate; }
.orb-2 { width: 40vmax; height: 40vmax; top: 22vh; right: -14vmax; background: var(--orb-2); animation: drift-b 34s ease-in-out infinite alternate; }
.orb-3 { width: 36vmax; height: 36vmax; bottom: -16vmax; left: 18vw; background: var(--orb-3); animation: drift-c 40s ease-in-out infinite alternate; }

@keyframes drift-a { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.1); } }
@keyframes drift-b { to { transform: translate3d(-9vmax, -5vmax, 0) scale(0.92); } }
@keyframes drift-c { to { transform: translate3d(6vmax, -8vmax, 0) scale(1.08); } }

/* ---------- Glass material ---------- */

.glass {
  --mx: 50%;
  --my: 0%;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at var(--mx) var(--my), var(--glint), transparent 55%),
    linear-gradient(180deg, var(--glass-fill-strong), var(--glass-fill));
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}

/* Bright rim on top, fading toward the bottom, like light catching an edge */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(170deg, var(--glass-edge), var(--glass-edge-low) 45%, var(--glass-edge-low) 70%, var(--glass-edge));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: color-mix(in srgb, var(--bg) 88%, transparent); }
}

@media (prefers-reduced-transparency: reduce) {
  .glass {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: color-mix(in srgb, var(--bg) 94%, var(--text));
  }
}

@media (prefers-contrast: more) {
  .glass { background: var(--bg); outline: 1px solid var(--text); }
  :root { --text-soft: var(--text); }
}

/* ---------- Navigation ---------- */

.nav-wrap {
  position: sticky;
  top: max(0.75rem, env(safe-area-inset-top));
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem;
  border-radius: 999px;
}

.nav ul {
  display: flex;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: block;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.nav a:hover { background: var(--glass-fill-strong); }

.nav-brand {
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}

/* ---------- Layout ---------- */

main {
  width: min(100% - 2rem, var(--width));
  margin: 0 auto;
  padding-bottom: 2rem;
  display: grid;
  gap: 1.25rem;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.022em; line-height: 1.15; }
p { margin: 0; }

a { color: var(--accent); text-underline-offset: 0.2em; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
}
.skip-link:focus { top: 1rem; }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  padding: clamp(3.5rem, 12vh, 7rem) 0 clamp(2.5rem, 8vh, 4.5rem);
  text-align: center;
}

.avatar {
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  object-fit: cover;
  /* A glass-like ring around the portrait */
  border: 3px solid var(--glass-edge);
  box-shadow: var(--glass-shadow), 0 0 0 1px var(--glass-edge-low);
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.lede {
  max-width: 36rem;
  color: var(--text-soft);
  font-size: clamp(1.125rem, 2.4vw, 1.3125rem);
  text-wrap: balance;
}

.actions, .pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.actions { justify-content: center; margin-top: 0.5rem; }

.button, .pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.3), box-shadow 0.25s ease;
}

.button.primary {
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.35), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 88%, white), var(--accent));
  color: #fff;
}
@media (prefers-color-scheme: dark) {
  .button.primary { color: #06101f; }
}

.button:hover, .pill:hover, a.tile:hover { transform: translateY(-2px) scale(1.015); }
.button:active, .pill:active, a.tile:active { transform: scale(0.97); }

/* ---------- Cards ---------- */

.card {
  display: grid;
  gap: 0.875rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.card h2, .section-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.section-title { padding: 1rem clamp(1.5rem, 4vw, 2.25rem) 0.75rem; }

.plain, .rows {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain { gap: 0.625rem; }
.plain li { display: flex; gap: 0.75rem; align-items: baseline; }

.dot {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-0.1em);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
}

.tile {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding: 1.5rem;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

.tile h3 { font-size: 1.1875rem; font-weight: 650; }
.tile p { color: var(--text-soft); font-size: 0.9875rem; }
.meta { margin-top: 0.5rem; font-size: 0.8125rem; color: var(--text-soft); }

.rows li + li { border-top: 1px solid var(--rule); }
.rows a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.875rem 0;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}
.rows li:first-child a { padding-top: 0.25rem; }
.rows li:last-child a { padding-bottom: 0.25rem; }
.rows a:hover span { color: var(--accent); }
.rows time { flex: none; color: var(--text-soft); font-size: 0.875rem; font-variant-numeric: tabular-nums; font-weight: 400; }

/* ---------- Footer ---------- */

footer {
  padding: 2rem 1rem calc(2.5rem + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--text-soft);
  font-size: 0.875rem;
}

/* ---------- Small screens and motion ---------- */

@media (max-width: 26rem) {
  .nav a { padding: 0.5rem 0.625rem; font-size: 0.875rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orb { animation: none; }
  * { transition: none !important; }
}
