/* Information Echo — shared base styles */
:root {
  --bg: #050a14;
  --bg-2: #07101e;
  --ink: #f4ede1;
  --ink-soft: #cfc6b8;
  --ink-mid: #a89f91;
  --orange: #ff5a14;
  --orange-glow: #ff6a1f;
  --rule: rgba(255, 255, 255, 0.08);
  --nav: rgba(244, 237, 225, 0.92);
  --max: 1600px;
  --pad-x: clamp(28px, 4.5vw, 72px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-feature-settings: "ss01", "cv11";
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

/* Background gradient subtle */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(1200px 800px at 80% 55%, rgba(255, 90, 20, 0.05), transparent 60%),
    linear-gradient(180deg, #060c17 0%, #04080f 100%);
  z-index: -2;
  pointer-events: none;
}

.page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  position: relative;
}

/* Header */
header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: clamp(28px, 3.4vw, 44px);
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  line-height: 0;
}
.logo img {
  display: block;
  height: clamp(19px, 1.65vw, 24px);
  width: auto;
}
footer.site .logo img { height: clamp(17px, 1.5vw, 22px); }

/* Nav */
nav.primary {
  display: flex;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
nav.primary a {
  color: var(--nav);
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 400;
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 2px;
  transition: color .2s ease;
}
nav.primary a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
nav.primary a:hover { color: var(--ink); }
nav.primary a:hover::after { transform: scaleX(1); }
nav.primary a[aria-current="page"] { color: var(--ink); }
nav.primary a[aria-current="page"]::after { transform: scaleX(1); }

/* Keyboard focus */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Mobile hamburger button */
.menu-btn {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  margin-right: -10px;
  cursor: pointer;
  color: var(--ink);
  position: relative;
  z-index: 60;
}
.menu-btn .bar {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 1px;
  transition: transform .25s ease, opacity .25s ease;
}
.menu-btn[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 20, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50;
  display: none;
  flex-direction: column;
  padding: 100px 32px 40px;
  gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--ink);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

/* Footer */
footer.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(20px, 2.4vw, 32px) 0 clamp(22px, 2.4vw, 32px);
  border-top: 1px solid var(--rule);
  color: var(--ink-mid);
  font-size: clamp(13px, 0.95vw, 15px);
  font-weight: 400;
}
footer.site .copy { letter-spacing: 0.01em; color: var(--ink-soft); }

/* Shared responsive */
@media (max-width: 1024px) {
  nav.primary { gap: clamp(20px, 3vw, 36px); }
  nav.primary a { font-size: 14px; }
}
@media (max-width: 720px) {
  nav.primary { display: none; }
  .menu-btn { display: block; }
  footer.site {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
    padding: 22px 0 28px;
  }
  footer.site .copy { font-size: 13px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}
