/* ====== Base ====== */
:root {
  --maxw: 980px;
  --navh: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: #f2f2f2;
  background: #0b0b0b;
  font-family: "Lora", Georgia, "Times New Roman", Times, serif;
  line-height: 1.7;
}

/* Make anchor jumps account for the fixed nav */
section { scroll-margin-top: calc(var(--navh) + 16px); }

a { color: #ffffff; text-decoration: underline; }
a:hover { opacity: 0.9; }

.container {
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
}

.row { display: flex; justify-content: center; }
.col { width: 100%; }
.col-wide { max-width: 920px; }
.col-narrow { max-width: 760px; }

/* ====== Nav ====== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 10; }
.nav {
  height: var(--navh);
  display: flex;
  align-items: center;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-inner {
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  font-family: "Cabin", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 10px;
  text-transform: none;
}

.nav-links {
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a {
  font-family: "Cabin", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 10px;
}

/* ====== Hero / Masthead ====== */
.masthead {
  min-height: 100vh;
  padding-top: var(--navh);
  display: flex;
  align-items: center;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.55), rgba(0,0,0,0.85)),
    url("./assets/intro-bg.jpg") center / cover no-repeat;
}

.intro-body { width: 100%; padding: 28px 0 48px; }
.intro-box { text-align: center; margin-top: 18px; padding: 14px 14px 18px; border-radius: 14px; }

.improve-contrast-box {
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
}

/* Responsive YouTube iframe */
.videowrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.videowrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Scroll button */
.btn-circle {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(0,0,0,0.35);
  margin-top: 12px;
  text-decoration: none;
}
.btn-circle svg { width: 22px; height: 22px; fill: #fff; }

/* ====== Sections ====== */
.content-section {
  padding: 64px 0;
  background: #0b0b0b;
}

.prose { text-align: center; }

.prose h1, .prose h2 {
  font-family: "Cabin", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  margin: 0.6em 0 0.2em;
}

/* Larger, more readable body text in the content sections */
.content-section .prose p {
  font-size: clamp(18px, 1.25vw, 20px);
  line-height: 1.75;
}

.prose p {
  text-align: left;
  margin: 0.9em 0;
}

.prose h1 { font-size: clamp(26px, 4vw, 40px); }
.prose h2 { font-size: clamp(18px, 2.6vw, 26px); }

/* ====== Social ====== */
.social {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: inline-flex;
  gap: 14px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  text-decoration: none;
  font-family: "Cabin", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255,255,255,0.04);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

/* ====== Footer ====== */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: #070707;
  text-align: center;
  color: rgba(255,255,255,0.8);
}

/* ====== Mobile ====== */
@media (max-width: 680px) {
  :root { --navh: 72px; }

  .nav-inner { align-items: flex-start; padding-top: 10px; padding-bottom: 10px; }
  .nav-links { margin-left: 0; width: 100%; }
  .prose { text-align: left; }
  .prose p { text-align: left; }
}
