:root {
  --bg: #FCFBF9;
  --text: #1F2937;
  --text-muted: rgba(31, 41, 55, 0.58);
  --text-soft: rgba(31, 41, 55, 0.55);
  --accent: #A67C5B;
  --hairline: rgba(31, 41, 55, 0.10);
  --stroke: rgba(31, 41, 55, 0.30);

  --nav-inactive-size: 20px;
  --nav-active-size: 28px;
  --nav-inactive-weight: 450;
  --nav-active-weight: 650;
  --nav-inactive-opacity: 0.70;
  --nav-inactive-tracking: 0.02em;
  --nav-active-tracking: -0.005em;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.scroll-scene {
  height: 220vh;
}

.sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 48px);
  max-width: 780px;
  margin: 0 auto;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

/* Language toggle */
.lang-toggle {
  position: fixed;
  top: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  background: none;
  border: none;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-soft);
  cursor: pointer;
  display: flex;
  gap: 0.4em;
  padding: 0.5em;
}

.lang-option {
  transition: color 0.2s, font-weight 0.2s;
}

.lang-option.active {
  color: rgba(31, 41, 55, 0.92);
  font-weight: 600;
}

.lang-separator {
  opacity: 0.5;
}

/* Gravitational lens */
@keyframes lens-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lens-container {
  width: min(90vw, 600px);
  height: auto;
  transition: opacity 0.1s linear;
  animation: lens-fade-in 2s ease-out both;
}

.lens-container svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Tagline */
.tagline {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
  text-align: center;
}

.subtitle {
  font-size: clamp(0.9375rem, 2.25vw, 1.125rem);
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.01em;
  text-align: center;
}

/* Navigation */
.nav-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-soft);
  font-size: var(--nav-inactive-size);
  font-weight: var(--nav-inactive-weight);
  opacity: var(--nav-inactive-opacity);
  letter-spacing: var(--nav-inactive-tracking);
  transition: none;
  position: relative;
}

.nav-indicator {
  width: 2px;
  height: 0;
  background: var(--accent);
  transition: height 0.1s linear;
  border-radius: 1px;
}

.nav-item:focus {
  outline: 2px solid rgba(166, 124, 91, 0.4);
  outline-offset: 4px;
}

/* Social links */
.social-links {
  position: fixed;
  bottom: clamp(16px, 3vw, 32px);
  display: flex;
  gap: 1.25rem;
}

.social-links a {
  color: var(--text-soft);
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--accent);
}

.social-links svg {
  width: 24px;
  height: 24px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-scene {
    height: auto;
  }

  .sticky-container {
    position: relative;
    min-height: 100vh;
  }

  .lens-container {
    opacity: 0.5 !important;
  }

  .nav-item {
    font-size: 21px !important;
    font-weight: 550 !important;
    opacity: 0.85 !important;
    letter-spacing: 0.01em !important;
  }

  .nav-item:hover,
  .nav-item:focus {
    color: var(--accent);
  }

  .nav-indicator {
    display: none;
  }
}

/* Mobile */
@media (max-width: 520px) {
  :root {
    --nav-active-size: 26px;
    --nav-inactive-size: 18px;
  }

  .scroll-scene {
    height: 200vh;
  }

  .lens-container {
    width: min(78vw, 400px);
  }
}

/* ============================================================
   Subpage Common Styles
   ============================================================ */

.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 4vw, 48px);
  max-width: 780px;
  margin: 0 auto;
}

.page-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

.page-header .back-link {
  justify-self: start;
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

.page-header .back-link:hover {
  color: var(--accent);
}

.page-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.page-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
