:root {
  --navy: #0b1d36;
  --navy-2: #12284a;
  --ink: #1a2332;
  --cream: #f6f1e8;
  --paper: #fffdf8;
  --red: #c0392b;
  --red-dark: #9b2b21;
  --line: rgba(11, 29, 54, 0.12);
  --shadow: 0 18px 50px rgba(11, 29, 54, 0.12);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.05rem;
}

img { max-width: 100%; display: block; }

a { color: var(--navy); }

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 241, 232, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.15));
}
.nav-links {
  display: flex;
  gap: 0.35rem 1.1rem;
  flex-wrap: wrap;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--red); }

/* HERO */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #0b1d36;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,29,54,.35) 0%, rgba(11,29,54,.72) 70%, rgba(11,29,54,.92) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 5rem 1rem 4rem;
}
.hero-logo {
  width: min(280px, 68vw);
  margin: 0 auto 1.4rem;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.35));
}
.hero h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.hero .tag {
  margin: 0.9rem auto 1.8rem;
  max-width: 36rem;
  font-size: 1.15rem;
  color: #f3eadc;
}
.btns { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }

/* SECTIONS */
section { padding: 4.2rem 0; }
.section-title {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.lede { max-width: 46rem; margin-bottom: 1.6rem; color: #3a4658; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.4rem;
  box-shadow: var(--shadow);
}
.card h3 {
  font-family: Fraunces, Georgia, serif;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 1.4rem 0;
}
.photo-frame img { width: 100%; height: auto; object-fit: cover; }

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}

/* GUIDES */
.guide {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.6rem 1.5rem 1.8rem;
  margin: 1.6rem 0 2.2rem;
  box-shadow: var(--shadow);
}
.guide header { margin-bottom: 1rem; }
.steps {
  counter-reset: steg;
  display: grid;
  gap: 0.85rem;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.75rem 0.2rem;
  border-top: 1px dashed var(--line);
}
.step:first-child { border-top: 0; }
.num {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}
.tipbox, .warn {
  margin-top: 1.1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
}
.tipbox { background: #eef4ea; border-left: 4px solid #3d7a3d; }
.warn { background: #f8ece8; border-left: 4px solid var(--red); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
}
.video {
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.video iframe { width: 100%; height: 100%; border: 0; }
.video-cap {
  margin-top: 0.45rem;
  font-size: 0.92rem;
  color: #445;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: 12px;
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { background: var(--navy); color: #fff; font-weight: 600; }

footer {
  background: var(--navy);
  color: #e8e0d4;
  padding: 2.4rem 0 2rem;
  margin-top: 2rem;
}
footer a { color: #fff; }
.foot-grid {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.muted { opacity: 0.75; font-size: 0.92rem; }

.toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
  margin: 1.2rem 0 0.4rem;
}
.toc a {
  display: block;
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--navy);
}
.toc a:hover { border-color: var(--red); color: var(--red); }

.banner-logo {
  width: min(720px, 100%);
  margin: 0 auto 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
