:root {
  color-scheme: light dark;
  --bg: #f1e6d3;
  --bg-deep: #e5d5be;
  --panel: rgba(255, 248, 237, 0.7);
  --panel-strong: rgba(251, 244, 233, 0.92);
  --text: #1f1812;
  --muted: #655442;
  --accent: #9d6a27;
  --accent-soft: rgba(157, 106, 39, 0.15);
  --shadow: 0 18px 40px rgba(73, 50, 28, 0.12);
  --panel-hover: rgba(255, 251, 245, 0.98);
  --display: "Baskerville", "Iowan Old Style", "Palatino Linotype",
    "URW Palladio L", serif;
  --body: "Avenir Next", "Optima", "Trebuchet MS", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15110f;
    --bg-deep: #201915;
    --panel: rgba(33, 27, 23, 0.8);
    --panel-strong: rgba(38, 31, 26, 0.92);
    --text: #f4e7d4;
    --muted: #baa487;
    --accent: #dda64a;
    --accent-soft: rgba(221, 166, 74, 0.16);
    --shadow: 0 20px 56px rgba(0, 0, 0, 0.36);
    --panel-hover: rgba(47, 38, 33, 0.98);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 34%, rgba(190, 134, 51, 0.22), transparent 28%),
    radial-gradient(circle at 10% 85%, rgba(111, 76, 35, 0.12), transparent 30%),
    linear-gradient(180deg, var(--bg), var(--bg-deep));
  color: var(--text);
  font-family: var(--body);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(134deg, transparent 0 62%, rgba(255, 255, 255, 0.08) 62.4%, transparent 62.8%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 40%);
}

body::after {
  opacity: 0.12;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(81, 56, 29, 0.22) 0 1px,
    transparent 1px 28px
  );
}

.page {
  position: relative;
  isolation: isolate;
  width: min(100%, 1200px);
  height: 100vh;
  height: 100dvh;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 32px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(14px, 3vh, 28px);
  overflow: hidden;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  padding: clamp(20px, 4vw, 48px);
  border-radius: 32px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-copy,
.hero-mark,
.footer {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.8vh, 20px);
  min-width: 0;
}

.hero-copy > * {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal-up 720ms var(--ease) forwards;
}

.hero-copy > :nth-child(1) {
  animation-delay: 80ms;
}

.hero-copy > :nth-child(2) {
  animation-delay: 150ms;
}

.hero-copy > :nth-child(3) {
  animation-delay: 220ms;
}

.hero-copy > :nth-child(4) {
  animation-delay: 290ms;
}

.status,
.footer-note {
  font-size: 0.8rem;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.manifesto {
  display: grid;
  gap: 12px;
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 1.4;
}

.manifesto p {
  margin: 0;
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.16);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-mark {
  display: grid;
  gap: 18px;
  justify-items: center;
  opacity: 0;
  transform: translateY(18px);
  animation: reveal-up 820ms var(--ease) 220ms forwards;
}

.logo-frame {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.logo {
  position: relative;
  width: 82%;
  max-width: 340px;
  object-fit: contain;
  filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.2));
}

.side-note {
  margin: 0;
  max-width: 24ch;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.35;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 16px;
  padding: 0 4px;
  opacity: 0;
  transform: translateY(16px);
  animation: reveal-up 720ms var(--ease) 340ms forwards;
}

.footer-note {
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  transition:
    transform 160ms var(--ease),
    background-color 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  outline: none;
  background: var(--panel-hover);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.social-link svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: currentColor;
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .page {
    padding: 16px;
    gap: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 20px;
    border-radius: 24px;
  }

  .manifesto {
    font-size: 0.95rem;
    line-height: 1.38;
  }

  .hero-mark {
    gap: 14px;
  }

  .logo-frame {
    width: min(58vw, 240px);
  }

  .side-note {
    font-size: 0.82rem;
    padding: 10px 14px;
  }

  .footer {
    align-items: flex-end;
  }

  .footer-nav {
    width: 100%;
    justify-content: space-between;
  }

  .social-link {
    flex: 1 1 0;
    justify-content: center;
  }
}

@media (max-height: 760px) {
  .page {
    gap: 12px;
    padding-block: 14px;
  }

  .hero {
    padding: 18px;
  }

  .status,
  .footer-note {
    font-size: 0.72rem;
  }

  .manifesto {
    gap: 10px;
    font-size: 0.92rem;
    line-height: 1.34;
  }

  .cta {
    padding: 10px 18px;
    font-size: 0.94rem;
  }

  .logo-frame {
    width: min(36vw, 220px);
  }

  .side-note {
    display: none;
  }

  .footer-note {
    display: none;
  }

  .social-link {
    padding: 9px 12px;
  }
}

@media (max-width: 420px) {
  .manifesto {
    gap: 8px;
    font-size: 0.9rem;
  }

  .logo-frame {
    width: min(50vw, 180px);
  }

  .social-link {
    padding: 9px 10px;
    gap: 8px;
    font-size: 0.92rem;
  }
}

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

  .hero-copy > *,
  .hero-mark,
  .footer {
    opacity: 1;
    transform: none;
  }
}
