:root {
  --bg: #f6f1e8;
  --ink: #1f2430;
  --ink-soft: #4e5462;
  --panel: rgba(255, 255, 255, 0.8);
  --line: rgba(31, 36, 48, 0.12);
  --brand: #c6513d;
  --brand-dark: #9f3e2f;
  --teal: #1f7a79;
  --gold: #d79a2d;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow: 0 26px 48px rgba(31, 36, 48, 0.14);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Space Grotesk", "Avenir Next", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 6%, rgba(199, 81, 61, 0.2), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(31, 122, 121, 0.2), transparent 26%),
    linear-gradient(165deg, #f8f4ec 0%, #f3ecdf 45%, #eee6da 100%);
  line-height: 1.55;
}

.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      115deg,
      rgba(31, 122, 121, 0.04),
      rgba(31, 122, 121, 0.04) 8px,
      rgba(199, 81, 61, 0.04) 8px,
      rgba(199, 81, 61, 0.04) 16px
    );
  opacity: 0.55;
  z-index: -1;
}

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(9px);
  background: rgba(246, 241, 232, 0.85);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  text-decoration: none;
  font-family: var(--font-display);
  color: var(--brand-dark);
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.top-nav a {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  padding: 0.4rem 0.78rem;
  font-size: 0.92rem;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  border-color: var(--brand);
  color: var(--brand-dark);
  transform: translateY(-1px);
}

main {
  padding: 36px 0 54px;
}

.hero {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 2vw + 1rem, 2.4rem);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -60px -90px auto;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 154, 45, 0.2), transparent 70%);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--teal);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.1;
}

h1 {
  margin: 0.5rem 0 0.85rem;
  font-size: clamp(2.1rem, 6vw, 4rem);
  color: #1b2130;
}

h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3.2vw, 2.45rem);
  color: #1c2231;
}

h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 1.95rem);
}

.lead {
  margin: 0;
  color: var(--ink-soft);
  max-width: 68ch;
  font-size: clamp(1rem, 1.2vw + 0.72rem, 1.15rem);
}

.chip-row {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.chip {
  border-radius: 999px;
  border: 1px solid rgba(31, 122, 121, 0.32);
  background: rgba(31, 122, 121, 0.1);
  color: #1f5958;
  padding: 0.4rem 0.76rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.section-card {
  margin-top: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 1.1vw + 0.9rem, 2rem);
}

.checklist {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.checklist li {
  margin: 0.45rem 0;
}

.passions-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.passion-card {
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
    radial-gradient(circle at top right, rgba(199, 81, 61, 0.13), transparent 40%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.1rem 1rem;
  box-shadow: 0 16px 30px rgba(31, 36, 48, 0.1);
}

.passion-card p {
  margin: 0.8rem 0 0;
  color: var(--ink-soft);
}

.passion-card-wide {
  grid-column: 1 / -1;
}

.physics-link {
  border-top: 1px dashed rgba(31, 122, 121, 0.3);
  padding-top: 0.62rem;
  color: #294b5c;
}

.section-intro {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
}

.sources {
  margin: 0.9rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.7rem;
}

.sources li {
  color: var(--ink-soft);
}

.sources a {
  color: var(--brand-dark);
  font-weight: 600;
  text-underline-offset: 3px;
}

.sources a:hover,
.sources a:focus-visible {
  color: var(--teal);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 1rem;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
}

th,
td {
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  padding: 0.9rem;
}

th {
  background: rgba(31, 122, 121, 0.12);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 18px 0 28px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 680ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.passion-card:nth-child(1) {
  animation-delay: 80ms;
}

.passion-card:nth-child(2) {
  animation-delay: 140ms;
}

.passion-card:nth-child(3) {
  animation-delay: 200ms;
}

.passion-card:nth-child(4) {
  animation-delay: 260ms;
}

.passion-card:nth-child(5) {
  animation-delay: 320ms;
}

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

@media (max-width: 860px) {
  .passions-grid {
    grid-template-columns: 1fr;
  }

  .passion-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
