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

:root {
  --bg: #f5f0eb;
  --text: #2c2420;
  --accent: #c4704b;
  --muted: #8a8778;
  --divider: #d6cec4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1917;
    --text: #e8e0d6;
    --accent: #d4856a;
    --muted: #9a9488;
    --divider: #3a3530;
  }
}

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Noise texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  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");
  background-repeat: repeat;
  background-size: 256px 256px;
  z-index: 999;
}

main {
  width: 100%;
  max-width: 860px;
  padding: 3rem 2rem;
}

/* Header */

header {
  text-align: center;
  margin-bottom: 3rem;
}

h1 {
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-size: 2.75rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h1 em {
  font-style: italic;
  font-weight: 600;
}

.divider {
  width: 3rem;
  height: 2px;
  background: var(--accent);
  margin: 1.5rem auto 0;
  border-radius: 1px;
}

/* Column layout */

.columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.columns-centered {
  grid-template-columns: 1fr;
  justify-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.columns-centered .person {
  width: 100%;
  max-width: 340px;
}

@media (max-width: 640px) {
  .columns {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Person sections */

.person h2 {
  font-family: "DM Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.links a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--divider);
  transition: color 0.2s ease, transform 0.2s ease;
}

.links li:last-child a {
  border-bottom: none;
}

.links a:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.links a svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.links a:hover svg {
  opacity: 1;
}

.links a span {
  font-size: 0.925rem;
  font-weight: 400;
}

.links a .arrow {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.links a:hover .arrow {
  color: var(--accent);
  transform: translateX(2px);
}

/* Footer */

footer {
  margin-top: 3.5rem;
  text-align: center;
}

footer p {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* Staggered fade-up animation */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  opacity: 0;
  animation: fade-up 0.6s ease-out forwards;
  animation-delay: calc(var(--delay) * 0.12s);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate {
    opacity: 1;
    animation: none;
  }
}
