:root {
  color-scheme: light dark;

  --bg: #fff8ed;
  --bg-accent: #ffe0b5;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-border: rgba(179, 105, 0, 0.2);
  --text: #2d1b00;
  --muted: #5f4d32;
  --headline: #4f2f00;
  --link: #b64f00;
  --shadow: 0 18px 36px rgba(132, 84, 15, 0.2);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141104;
    --bg-accent: #3a2f09;
    --surface: rgba(34, 28, 10, 0.82);
    --surface-border: rgba(244, 174, 74, 0.25);
    --text: #ffecc9;
    --muted: #e7c98a;
    --headline: #ffe2aa;
    --link: #ffbf5f;
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Fraunces", Georgia, serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 15%, var(--bg-accent), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(255, 182, 91, 0.3), transparent 35%),
    linear-gradient(145deg, var(--bg) 0%, color-mix(in hsl, var(--bg) 75%, #f7c066) 100%);
  line-height: 1.6;
  padding: 2.25rem 1.2rem 2rem;
  overflow-x: hidden;
}

.orb {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  filter: blur(1.5px);
  animation: drift 10s ease-in-out infinite alternate;
}

.orb-one {
  width: 270px;
  aspect-ratio: 1;
  right: -70px;
  top: 10%;
  border-radius: 41% 59% 56% 44% / 50% 47% 53% 50%;
  background: color-mix(in hsl, var(--link) 70%, white 30%);
  opacity: 0.18;
}

.orb-two {
  width: 220px;
  aspect-ratio: 1;
  left: -60px;
  bottom: 9%;
  border-radius: 60% 40% 45% 55% / 48% 52% 43% 57%;
  background: color-mix(in hsl, var(--headline) 72%, yellow 28%);
  opacity: 0.15;
  animation-duration: 14s;
}

.site-header,
main,
.site-footer {
  width: min(980px, 100%);
  margin: 0 auto;
}

.site-header {
  text-align: center;
  margin-bottom: 1.7rem;
  animation: rise-in 700ms ease-out;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.84rem;
}

h1,
h2 {
  font-family: "Baloo 2", "Trebuchet MS", sans-serif;
  line-height: 1.1;
  color: var(--headline);
}

h1 {
  margin: 0.2rem 0 0.6rem;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: 0.01em;
}

.subtitle {
  max-width: 62ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.02rem, 2.3vw, 1.25rem);
}

main {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 1.1rem 1.15rem;
  backdrop-filter: blur(7px);
  animation: rise-in 650ms ease-out;
}

.intro {
  grid-column: span 7;
}

.highlights {
  grid-column: span 5;
}

.projects-teaser {
  grid-column: span 12;
}

.cta {
  grid-column: span 12;
}

h2 {
  margin-top: 0.2rem;
  margin-bottom: 0.45rem;
  font-size: clamp(1.4rem, 3vw, 1.95rem);
}

p {
  margin: 0.2rem 0;
}

ul {
  margin: 0.4rem 0 0;
  padding-left: 1.18rem;
}

li + li {
  margin-top: 0.35rem;
}

a {
  color: var(--link);
  font-weight: 700;
  text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
  text-decoration-thickness: 3px;
}

.button-link {
  display: inline-block;
  margin-top: 0.55rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  text-decoration: none;
  background: color-mix(in hsl, var(--surface) 80%, var(--bg-accent));
}

.button-link:hover,
.button-link:focus-visible {
  transform: translateY(-1px);
}

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

.page-nav {
  width: min(980px, 100%);
  margin: 0 auto 1rem;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.project-item {
  grid-column: span 12;
}

.meta-line {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer {
  text-align: center;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@keyframes rise-in {
  from {
    transform: translateY(14px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes drift {
  from {
    transform: translateY(0) rotate(0deg);
  }

  to {
    transform: translateY(-18px) rotate(4deg);
  }
}

@media (max-width: 760px) {
  body {
    padding-inline: 0.85rem;
  }

  .intro,
  .highlights,
  .projects-teaser,
  .cta {
    grid-column: span 12;
  }

  .card {
    border-radius: 18px;
    padding: 0.95rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  .orb {
    animation: none !important;
  }
}
