/* Phase 1 shared polish for Main + Living World */

:root {
  --p1-header-bg: linear-gradient(145deg, rgba(7, 11, 18, 0.93), rgba(13, 18, 29, 0.88));
  --p1-header-border: rgba(80, 112, 168, 0.35);
  --p1-nav-bg: rgba(10, 16, 28, 0.9);
  --p1-nav-border: rgba(104, 136, 188, 0.5);
  --p1-nav-hover: rgba(26, 38, 62, 0.95);
  --p1-text-soft: #d8e3fd;
  --p1-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

body.sorei-phase1 {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.sorei-phase1 .brand-text h1 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", serif;
  letter-spacing: 0.05em;
}

body.sorei-phase1 .brand-text span {
  font-family: "Trebuchet MS", "Gill Sans", "Segoe UI Variable Text", sans-serif;
}

body.sorei-phase1 .shell {
  max-width: 1180px;
  padding-inline: clamp(14px, 3vw, 28px);
}

body.sorei-phase1 header {
  position: sticky;
  top: 10px;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: var(--p1-header-bg);
  border-color: var(--p1-header-border);
  border-radius: 18px;
  box-shadow: var(--p1-shadow);
}

body.sorei-phase1 nav {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

body.sorei-phase1 nav::-webkit-scrollbar {
  display: none;
}

body.sorei-phase1 .nav-btn {
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 999px;
  background: var(--p1-nav-bg);
  border-color: var(--p1-nav-border);
  color: var(--p1-text-soft);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

body.sorei-phase1 .nav-btn:hover {
  background: var(--p1-nav-hover);
  transform: translateY(-1px);
}

body.sorei-phase1 .hero-title {
  font-size: clamp(1.7rem, 4.5vw, 2.75rem);
  line-height: 1.08;
}

body.sorei-phase1 .hero-sub,
body.sorei-phase1 .panel-sub {
  line-height: 1.55;
}

body.sorei-phase1 .btn,
body.sorei-phase1 .nav-btn {
  touch-action: manipulation;
}

body.sorei-phase1 .panel,
body.sorei-phase1 .hero-panel {
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.55);
}

@media (max-width: 920px) {
  body.sorei-phase1 header {
    padding: 10px;
  }

  body.sorei-phase1 nav {
    width: 100%;
  }
}

@media (max-width: 720px) {
  body.sorei-phase1 .shell {
    padding-inline: 12px;
    padding-bottom: 42px;
  }

  body.sorei-phase1 header {
    top: 6px;
    gap: 8px;
  }

  body.sorei-phase1 .brand {
    width: 100%;
    justify-content: space-between;
  }

  body.sorei-phase1 nav {
    padding-bottom: 2px;
  }

  body.sorei-phase1 .hero {
    gap: 16px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  body.sorei-phase1 .hero-panel,
  body.sorei-phase1 .panel {
    animation: p1-rise 0.4s ease both;
  }
}

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