:root {
  color-scheme: dark;
  --bg: #0d0d0f;
  --line: #26262b;
  --text: #ecebe6;
  --muted: #8d8c86;
  --accent: #e0b36a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-color: var(--line);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.15s, color 0.15s;
}

a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

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

/* Atmosphere: two slow-drifting glows and a little film grain. */

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
}

body::before {
  inset: -25%;
  background:
    radial-gradient(38% 34% at 28% 22%, rgb(224 179 106 / 0.2), transparent 70%),
    radial-gradient(34% 38% at 78% 68%, rgb(92 118 190 / 0.17), transparent 70%);
  animation: drift 40s ease-in-out infinite alternate;
}

body::after {
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift {
  from {
    transform: translate3d(-4%, -3%, 0) rotate(-4deg);
  }
  to {
    transform: translate3d(5%, 4%, 0) rotate(5deg);
  }
}

.page {
  max-width: 38rem;
  margin: 0 auto;
  padding: clamp(3rem, 12vh, 7rem) 1.25rem 3rem;
}

/* Wordmark */

.greeting {
  margin: 0 0 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.wordmark {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 11vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.wordmark .dot {
  display: inline-block;
  color: var(--accent);
  padding: 0 0.08em;
  animation: breathe 5s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    text-shadow: 0 0 0 transparent;
    transform: scale(1);
  }
  50% {
    text-shadow: 0 0 0.45em rgb(224 179 106 / 0.75);
    transform: scale(1.12);
  }
}

.wordmark a {
  text-decoration: none;
}

.wordmark a:hover {
  color: inherit;
}

.tagline {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* Sections */

section {
  margin-top: 4rem;
}

h2 {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.rows {
  margin: 0;
  border-top: 1px solid var(--line);
}

.rows > div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.25s ease;
}

.rows > div:hover {
  padding-left: 0.5rem;
}

.rows > div:hover dt {
  color: var(--accent);
}

.rows dt {
  transition: color 0.25s ease;
  color: var(--muted);
  flex-shrink: 0;
}

.rows dd {
  margin: 0;
  text-align: right;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9375rem;
  background: rgb(255 255 255 / 0.02);
  transition: border-color 0.2s, transform 0.2s, color 0.2s;
}

.chips li:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

footer {
  margin-top: 5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Gentle staggered reveal on load. */

header > *,
section,
footer {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

header > :nth-child(2) { animation-delay: 0.08s; }
header > :nth-child(3) { animation-delay: 0.16s; }
section:nth-of-type(1) { animation-delay: 0.3s; }
section:nth-of-type(2) { animation-delay: 0.42s; }
footer { animation-delay: 0.55s; }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
