@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Cinzel:wght@400;500&family=DM+Mono:wght@400;500&family=DM+Serif+Display&family=Pacifico&family=Space+Grotesk:wght@400;500;600&family=Unbounded:wght@400;500&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  color-scheme: light;
  --paper: #f7f5f0;
  --ink: #20211f;
  --muted: #77746d;
  --accent: #a9875a;
  font-family: 'DM Sans', Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; }
body { background: var(--paper); color: var(--ink); }

.site-shell {
  position: relative;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(30px, 6vh, 66px) 24px 28px;
  overflow: hidden;
  isolation: isolate;
}

.site-shell::before {
  position: fixed;
  z-index: -1;
  inset: -30%;
  background:
    radial-gradient(ellipse at 27% 30%, rgb(220 192 145 / 52%), transparent 37%),
    radial-gradient(ellipse at 74% 66%, rgb(166 193 187 / 47%), transparent 40%),
    radial-gradient(ellipse at 77% 22%, rgb(229 188 170 / 43%), transparent 32%);
  content: "";
  pointer-events: none;
  animation: ambient-drift 15s ease-in-out infinite alternate, ambient-palette 31.5s linear infinite;
  will-change: transform;
}

.site-header {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: clamp(25px, 4vh, 42px);
  animation: settle-in 700ms cubic-bezier(.2,.7,.2,1) both;
}

.brand-logo { display: inline-flex; align-items: baseline; color: var(--ink); text-decoration: none; }
.logo-ra { font: 500 clamp(30px, 4.5vw, 42px)/.95 'Cinzel', Georgia, serif; letter-spacing: -.045em; }
.logo-dot { margin-inline: 1px; color: var(--accent); font: 500 clamp(33px, 4.7vw, 44px)/.8 'Space Grotesk', sans-serif; }
.logo-business { font: 500 clamp(18px, 2.5vw, 22px)/1 'Space Grotesk', sans-serif; letter-spacing: -.045em; }

.hero {
  display: flex;
  width: min(100%, 960px);
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.signal-line {
  width: 38px;
  height: 3px;
  margin-bottom: clamp(23px, 3.4vh, 34px);
  background: var(--accent);
  animation: settle-in 750ms 80ms cubic-bezier(.2,.7,.2,1) both;
}

h1 {
  margin: 0;
  color: var(--ink);
  font: 400 clamp(43px, 6.1vw, 76px)/1.03 'DM Serif Display', Georgia, serif;
  letter-spacing: -.045em;
  animation: settle-in 800ms 120ms cubic-bezier(.2,.7,.2,1) both;
}

h1 em { color: #776851; font-weight: 400; }

.hero-note {
  max-width: 440px;
  margin: clamp(13px, 2.2vh, 22px) 0 0;
  color: var(--muted);
  font-size: clamp(13px, 1.25vw, 15px);
  line-height: 1.7;
  letter-spacing: .01em;
  animation: settle-in 800ms 180ms cubic-bezier(.2,.7,.2,1) both;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: clamp(22px, 3vh, 30px);
  animation: settle-in 750ms 360ms cubic-bezier(.2,.7,.2,1) both;
}

.site-footer a {
  color: var(--muted);
  font: 500 12px/1.4 'DM Sans', sans-serif;
  letter-spacing: .04em;
  text-decoration: none;
  transition: color 180ms ease;
}
.site-footer a:hover { color: var(--accent); }
.site-footer .parent-link { font-size: 11px; letter-spacing: .02em; }
.parent-link { display: inline-flex; min-height: 16px; align-items: baseline; }
.parent-font-cycle { display: inline-grid; place-items: center; }
.parent-font-cycle > span { grid-area: 1 / 1; white-space: nowrap; opacity: 0; animation: parent-font-show 31.5s linear infinite; }
.parent-face-cinzel { font-family: 'Cinzel', Georgia, serif; animation-delay: 0s !important; letter-spacing: .12em; }
.parent-face-bungee { font-family: 'Bungee', Impact, sans-serif; animation-delay: 4.5s !important; letter-spacing: .035em; }
.parent-face-space { font-family: 'Space Grotesk', Arial, sans-serif; animation-delay: 9s !important; font-weight: 600; letter-spacing: -.06em; }
.parent-face-dm-serif { font-family: 'DM Serif Display', Georgia, serif; animation-delay: 13.5s !important; letter-spacing: .015em; }
.parent-face-pacifico { font-family: 'Pacifico', cursive; animation-delay: 18s !important; font-size: .86em; letter-spacing: .015em; }
.parent-face-unbounded { font-family: 'Unbounded', Arial, sans-serif; animation-delay: 22.5s !important; font-size: .72em; font-weight: 500; letter-spacing: -.065em; }
.parent-face-dm-mono { font-family: 'DM Mono', monospace; animation-delay: 27s !important; font-size: .83em; font-weight: 500; letter-spacing: .16em; }

@keyframes settle-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes parent-font-show {
  0% { opacity: 0; }
  2.2%, 12.8% { opacity: 1; }
  14.285%, 100% { opacity: 0; }
}

@keyframes ambient-drift {
  0% { transform: translate3d(-4%, -2.5%, 0) scale(1); }
  50% { transform: translate3d(2.5%, 3%, 0) scale(1.07); }
  100% { transform: translate3d(4%, -2%, 0) scale(1.025); }
}

@keyframes ambient-palette {
  0%, 100% { filter: hue-rotate(0deg) saturate(1.05); }
  14.285% { filter: hue-rotate(42deg) saturate(1.12); }
  28.57% { filter: hue-rotate(96deg) saturate(1.08); }
  42.855% { filter: hue-rotate(148deg) saturate(1.14); }
  57.14% { filter: hue-rotate(205deg) saturate(1.08); }
  71.425% { filter: hue-rotate(258deg) saturate(1.12); }
  85.71% { filter: hue-rotate(314deg) saturate(1.06); }
}

@media (max-width: 600px) {
  .site-shell { padding: 42px 20px 26px; }
  .site-header { margin-bottom: 26px; }
  .signal-line { margin-bottom: 22px; }
  h1 { font-size: clamp(42px, 10vw, 58px); }
  .hero-note { max-width: 320px; }
  .site-footer { margin-top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .parent-font-cycle > span { animation: none !important; opacity: 0; }
  .parent-font-cycle > span:first-child { opacity: 1; }
}
