/* Personal site — GitHub Pages */
:root {
  --bg: #0f1114;
  --text: #e8eaed;
  --muted: #9aa0a6;
  --accent: #7eb8da;
  --accent-soft: rgba(126, 184, 218, 0.12);
  --card: #171a1f;
  --border: rgba(255, 255, 255, 0.08);
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --font-serif: "DM Serif Display", Georgia, serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 2rem;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(100, 140, 200, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(80, 100, 140, 0.12), transparent);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.card {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  width: 100%;
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 40%),
    var(--card);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.hero {
  padding-bottom: 1.25rem;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
}

.lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  max-width: 39rem;
}

.section {
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.section h2 {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section p {
  margin: 0;
  color: var(--muted);
}

.section p + p {
  margin-top: 0.85rem;
}

.principles ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.principles li {
  min-height: 100%;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
}

.links {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.025);
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
}

.links a:hover {
  color: var(--accent);
  border-color: rgba(126, 184, 218, 0.35);
  background: var(--accent-soft);
}

.footer {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.8rem;
}

@media (prefers-reduced-motion: reduce) {
  .links a {
    transition: none;
  }
}

@media (max-width: 640px) {
  body {
    align-items: stretch;
    padding-top: 1rem;
  }

  .card {
    border-radius: 1rem;
  }

  .principles ul {
    grid-template-columns: 1fr;
  }
}
