:root {
  --ink: #0b0e14;
  --ink-soft: #2a3140;
  --muted: #6b7383;
  --paper: #f2f4f7;
  --paper-deep: #e6eaf0;
  --accent: #fdb813;
  --accent-soft: rgba(253, 184, 19, 0.22);
  --line: rgba(11, 14, 20, 0.1);
  --shadow: rgba(11, 14, 20, 0.08);
  --font-sans: "Outfit", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.glow {
  position: absolute;
  left: 50%;
  top: clamp(4rem, 14vh, 8rem);
  width: min(42rem, 120vw);
  height: min(42rem, 120vw);
  transform: translate(-50%, -35%);
  background:
    radial-gradient(circle at center, var(--accent-soft) 0%, transparent 42%),
    radial-gradient(circle at 50% 55%, rgba(255, 255, 255, 0.75) 0%, transparent 55%);
  filter: blur(8px);
  animation: pulse 8s var(--ease) infinite;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: multiply;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(42rem, calc(100% - 3rem));
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: center;
  gap: clamp(2.5rem, 6vh, 4rem);
  padding: clamp(3.5rem, 10vh, 6.5rem) 0 clamp(2rem, 5vh, 3rem);
}

.brand {
  display: flex;
  justify-content: center;
  animation: rise 900ms var(--ease) both;
}

.logo {
  display: block;
  width: min(13.5rem, 52vw);
  height: auto;
  filter: drop-shadow(0 18px 40px var(--shadow));
}

.intro {
  animation: rise 1000ms var(--ease) 120ms both;
}

.lede {
  margin: 0;
  font-size: clamp(1.125rem, 2.4vw, 1.35rem);
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  animation: rise 1000ms var(--ease) 220ms both;
}

.places {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.mail {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.975rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-bottom: 1px solid transparent;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}

.mail:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

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

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

@keyframes pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: translate(-50%, -35%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -35%) scale(1.06);
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 2rem, 42rem);
    gap: 2.25rem;
  }

  .lede {
    font-size: 1.05rem;
    line-height: 1.75;
  }

  .places {
    letter-spacing: 0.05em;
    max-width: 18rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .intro,
  .meta,
  .glow {
    animation: none;
  }
}
