/* =========================================
   Base / Reset
   ========================================= */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth; /* smooth scroll for #top links */
}

html, body {
  background-color: #0a131e;
  color: #ECE5D3;
  margin: 0;
  padding: 0;
}
body {
  font-size: 20px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, svg, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #ECE5D3;
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: #ffffff; }
a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.center { display: block; margin-left: auto; margin-right: auto; }

/* =========================================
   Typography
   ========================================= */

h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: clamp(22px, 3vw, 28px); line-height: 1.2; margin: 20px 0 10px; }
h3 { font-size: clamp(18px, 2.5vw, 22px); line-height: 1.25; margin: 16px 0 8px; }
p  { margin: 0 0 14px; }

.prose ul ul {
  margin-top: 6px;
  margin-bottom: 6px;
  padding-left: 1.5rem;
  list-style-type: disc;
}
.prose ul ul li {
  margin: 4px 0;
  font-size: 0.95em;
}

.prose a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.prose a:hover {
  border-bottom-color: #ECE5D3;
}

/* =========================================
   Layout Helpers
   ========================================= */

.container {
  max-width: 1200px; /* widened from 72ch */
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.stack > * + * { margin-top: 14px; }

.grid { display: grid; gap: 20px; }
@media (min-width: 800px) {
  .grid.two-col {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
  }
  .section { margin-top: 60px; }
  .grid.two-col .prose { padding-top: 16px; }
}

/* =========================================
   Home Hero Image + Caption
   ========================================= */

.home-hero {
  width: 100%;
  max-width: 425px;
  margin: 0 auto;
}
@media (max-width: 700px) {
  .home-hero { max-width: 80%; }
}

.caption {
  font-size: 0.85rem;
  text-align: center;
  opacity: 0.7;
  margin: 4px 0 0;
  font-style: italic;
}

@media (max-width: 700px) {
  .section { margin: 20px 0; }
  .prose p { margin-bottom: 10px; }
}

/* =========================================
   Header Logo
   ========================================= */

.header-logo {
  display: block;
  width: 100%;
  max-width: 1200px;
  height: auto;
  margin: 20px auto 15px;
}
@media (max-width: 700px) {
  .header-logo {
    max-width: 95vw;
    margin: 14px auto 10px;
  }
}

/* =========================================
   Navigation
   ========================================= */

.nav-desktop a { color: #ECE5D3; }
.nav-desktop a:hover { color: #ffffff; }

.nav-desktop .nav-link {
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.2;
}

.nav-mobile {
  display: none;
  margin: 0 auto;
  width: 100%;
  text-align: left;
  padding: 0 12px;
}
.hamburger {
  background: #0a131e;
  color: #ECE5D3;
  border: 1px solid #ECE5D3;
  border-radius: 8px;
  padding: .45rem .6rem;
  font-size: 18px;
}
.mobile-menu {
  margin-top: .5rem;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
  background: #121b27;
}
.mobile-menu a {
  display: block;
  padding: .75rem 1rem;
  font-size: 22px;
  text-align: center;
  border-top: 1px solid #1b2635;
  color: #ECE5D3;
}
.mobile-menu a:first-child { border-top: none; }
.mobile-menu a:hover { background: #0f1823; color: #ffffff; }

@media (max-width: 700px) {
  .nav-desktop { display: none; }
  .nav-mobile  { display: flex; align-items: center; justify-content: flex-start; }
}

/* =========================================
   Footer
   ========================================= */

.footer-container {
  text-align: center;
  margin-top: 1rem;
}
.footer-icons {
  margin: 0 auto 12px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-icon {
  width: 40px;
  height: 40px;
  transition: transform 0.2s ease;
}
.footer-icon:hover { transform: scale(1.1); }
@media (min-width: 800px) {
  .footer-icon { width: 48px; height: 48px; }
}
.footer-copy {
  color: #ECE5D3;
  margin: 10px 0 24px;
  font-size: 1rem;
  font-weight: 500;
  opacity: 1;
}

/* =========================================
   Utility Layer & Variables
   ========================================= */

:root {
  --maxw: 72ch;
  --space-1: .4rem;
  --space-2: .8rem;
  --space-3: 1.2rem;
  --space-4: 1.6rem;
  --space-6: 2.4rem;
  --space-8: 3.2rem;
  --lh: 1.6;
  --lh-tight: 1.3;
  --accent: #ffcc66;
  --accent-hover: #e6b85c;
}

.about-copy {
  max-width: 65ch;
}
.about-copy p {
  line-height: 1.75;
}

/* Buttons/CTAs */
.btn {
  display:inline-block;
  padding:.7rem 1.1rem;
  border-radius:.6rem;
  border:1px solid currentColor;
  text-decoration:none;
}
.btn:hover { opacity:.9; }

.btn-secondary {
  background: #ECE5D3;
  color: #0a131e;
  border: 1px solid #ECE5D3;
}
.btn-secondary:hover {
  background: #e2dcc9;
  border-color: var(--accent);
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  transform: translateY(-1px);
}

/* Callout */
.callout {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}
@media (min-width: 800px) {
  .callout {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }
}

/* Back to Top CTA */
.back-to-top {
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 0;
}
.back-to-top a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  transition: color .2s ease;
}
.back-to-top a:hover {
  color: var(--accent-hover);
}

/* Media */
.embed-center { max-width: 700px; margin: 0 auto; }
.embed-center iframe { display:block; width:100%; }
img.responsive { max-width: 100%; height: auto; display:block; }

/* Simple responsive grid */
.grid { display:grid; gap: var(--space-4); }
@media (min-width: 800px) {
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: start; }
}
