/**
 * Global styles: reset, CSS custom properties, typography, layout shell.
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --deep: #07121e;
  --deep2: #0a1a2e;
  --deep3: #0d2038;
  --teal: #1a9bb5;
  --teal2: #7dd3e8;
  --teal3: rgba(26, 155, 181, 0.12);
  --teal-rule: rgba(26, 155, 181, 0.3);
  --ink: #0c1e2e;
  --ink-light: #2a3e45;
  --ink-faint: #4a6a75;
  --paper: #f4f0eb;
  --dk-text: #e8f0f8;
  --rule-dark: rgba(255, 255, 255, 0.07);
  --dk-text2: rgba(232, 240, 248, 0.62);
  --dk-text3: rgba(232, 240, 248, 0.35);
  --dk: #07121e;
  --rule-paper: rgba(0, 0, 0, 0.08);

  /* Category accents */
  --amber: #c9932a;
  --amber2: #e8b86a;
  --phosphor: #2dd4a0;
  --phosphor2: #7eecd0;
  --azure: #2a7fc4;
  --azure2: #a8d4f0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Crimson Pro', serif;
  background: var(--deep);
  color: #e8f0f8;
  overflow-x: hidden;
}

/* ══ SKIP LINK ══ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--teal);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  z-index: 2000;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ══ FOCUS ══ */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* ══ TOPBAR ══ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  background: rgba(7, 18, 30, 0.9);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--rule-dark);
  transition: background 0.3s;
}
.topbar.scrolled {
  background: rgba(7, 18, 30, 0.98);
}
.logo {
  font-family: 'Crimson Pro', serif;
  font-size: 26px;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.2px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo span {
  color: var(--teal);
  font-style: italic;
}
.topbar-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.topbar-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--dk-text);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s;
  white-space: nowrap;
}
.topbar-link:hover {
  color: var(--teal2);
}
.ham-btn {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.ham-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    width 0.3s ease;
  transform-origin: center;
}
.ham-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.ham-btn.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.ham-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ══ MOBILE DRAWER ══ */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 590;
  pointer-events: none;
  transition: background 0.35s;
}
.nav-overlay.open {
  background: rgba(0, 0, 0, 0.6);
  pointer-events: all;
}
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--deep2);
  z-index: 600;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--rule-dark);
  overflow-y: auto;
}
.nav-drawer.open {
  transform: translateX(0);
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--rule-dark);
  flex-shrink: 0;
}
.drawer-logo {
  font-family: 'Crimson Pro', serif;
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
}
.drawer-logo span {
  color: var(--teal);
  font-style: italic;
}
.drawer-close {
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 22px;
  line-height: 1;
  transition: all 0.2s;
}
.drawer-close:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.drawer-nav {
  padding: 1.25rem 0;
  flex: 1;
}
.drawer-link {
  display: block;
  padding: 0.9rem 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--dk-text);
  text-decoration: none;
  transition: all 0.2s;
  border-left: 2px solid transparent;
}
.drawer-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border-left-color: var(--teal);
}
.drawer-dan {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--rule-dark);
  flex-shrink: 0;
}
.drawer-dan a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--teal);
  text-decoration: none;
}
.drawer-dan a:hover {
  color: var(--teal2);
}

/* ══ NOTIFY FOOTER ══ */
.notify {
  background: var(--dk);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4rem 2rem 2rem;
}
.notify-inner {
  max-width: 860px;
  margin: 0 auto;
}
.notify-headline {
  font-family: 'Crimson Pro', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 300;
  font-style: italic;
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.notify-sub {
  font-size: 14px;
  color: var(--dk-text2);
  margin-bottom: 1.75rem;
  line-height: 1.65;
}
.notify-form {
  display: flex;
  gap: 0;
  max-width: 420px;
}
.notify-input {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-right: none;
  border-radius: 8px 0 0 8px;
  color: rgba(255, 255, 255, 0.92);
  outline: none;
  flex: 1;
}
.notify-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}
.notify-input:focus {
  border-color: rgba(26, 155, 181, 0.6);
  background: rgba(255, 255, 255, 0.1);
}
.notify-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 0 8px 8px 0;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.notify-btn:hover {
  background: var(--teal-dk);
}

.site-footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 3rem;
}
.footer-brand {
  font-family: 'Crimson Pro', serif;
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
}
.footer-brand span {
  color: var(--teal);
  font-style: italic;
}
.footer-tag {
  font-size: 12px;
  color: var(--dk-text3);
  font-style: italic;
  margin-top: 2px;
}
.footer-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.footer-links a {
  font-size: 12px;
  color: var(--dk-text3);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--dk-text);
}
.footer-dan {
  color: rgba(26, 155, 181, 0.8);
  font-weight: 500;
}
.footer-dan:hover {
  color: var(--teal) !important;
}
@keyframes dp-wave {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}
.footer-dp {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
}
.footer-dp strong {
  color: rgba(26, 155, 181, 0.85);
  font-weight: 500;
  display: inline-block;
  position: relative;
  padding-bottom: 2px;
}
.footer-dp strong::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(
    90deg,
    rgba(26, 155, 181, 0) 0%,
    rgba(26, 155, 181, 0.8) 20%,
    rgba(125, 211, 232, 1) 40%,
    rgba(26, 155, 181, 0.8) 60%,
    rgba(26, 155, 181, 0) 100%
  );
  background-size: 200% 100%;
  animation: dp-wave 2.8s linear infinite;
  border-radius: 2px;
}
.footer-copy {
  font-size: 12px;
  color: var(--dk-text3);
}

@media (max-width: 900px) {
  .topbar {
    padding: 0 1.5rem;
  }
}
@media (max-width: 768px) {
  .topbar-nav {
    display: none;
  }
  .ham-btn {
    display: flex !important;
  }
}

/* ══ GUIDE NAV THIS CSS IS USED INSIDE THE PAGES/ deep-brief ══ */
.guide-nav-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.guide-nav-wrap::-webkit-scrollbar {
  display: none;
}
.guide-nav {
  display: flex;
  min-width: max-content;
}
@media (max-width: 600px) {
  .notify {
    padding: 3rem 1.25rem 1.5rem;
  }
  .site-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
