:root {
  --background: #f8f7f2;
  --surface: #fffdf8;
  --surface-border: rgba(17, 24, 39, 0.08);
  --text: #141414;
  --muted: #626262;
  --link: #171717;
  --link-hover: #000000;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.95), transparent 42%),
    var(--background);
}

img {
  display: block;
  max-width: 100%;
}

.landing {
  position: fixed;
  inset: 0;
}

.hero-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(70vw, 360px);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.hero-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.footer-nav {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  z-index: 2;
}

.footer-nav a,
.back-link {
  color: var(--link);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.4;
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.back-link:hover,
.back-link:focus-visible {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.overlay {
  position: fixed;
  inset: 0;
  display: none;
  background: var(--surface);
  z-index: 10;
}

.overlay.is-open {
  display: block;
}

.overlay-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.overlay-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 20px 24px 16px;
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface-border);
}

.overlay-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.panel {
  display: none;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.panel.is-active {
  display: block;
}

.panel h1,
.panel h2,
.panel h3 {
  letter-spacing: -0.02em;
}

.panel h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.panel h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.2;
}

.panel h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1rem;
  line-height: 1.3;
}

.panel p,
.panel li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.panel strong {
  color: var(--text);
}

.panel ul,
.panel ol {
  padding-left: 1.25rem;
}

@media (max-width: 640px) {
  .hero-mark {
    width: min(76vw, 280px);
  }

  .footer-nav {
    gap: 0.8rem 1rem;
    bottom: 20px;
  }

  .overlay-header {
    min-height: 64px;
    padding: 18px 18px 14px;
  }

  .panel {
    padding: 28px 18px 64px;
  }
}
