:root {
  --navy: #082a4a;
  --teal: #0b7d8c;
  --teal-d: #086270;
  --red: #d63b3b;
  --gold: #eaa23a;
  --paper: #f3ebe0;
  --card: #fffaf2;
  --ink: #12263b;
  --muted: #53647a;
  --line: #e3d8c8;
  --shadow: 0 10px 30px rgba(8, 42, 74, 0.14);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #cfe3f5;
    --teal: #35b9c9;
    --teal-d: #6fd0dc;
    --red: #ff7a72;
    --gold: #f2b95a;
    --paper: #0d1722;
    --card: #14222f;
    --ink: #e9eef4;
    --muted: #9fb0c3;
    --line: #25384b;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-d); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 9; }
.skip:focus { left: 8px; }

/* top bar */
.bar { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; }
.bar nav { display: flex; align-items: center; gap: 18px; }
.bar nav a.plain { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.bar nav a.plain:hover { color: var(--ink); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; text-align: center;
}
.btn.main { background: var(--navy); color: var(--paper); }
.btn.main:hover { background: var(--teal-d); color: #fff; }
.btn.alt { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.alt:hover { border-color: var(--teal); color: var(--teal-d); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn.main { color: #07121c; background: var(--navy); }
  :root:not([data-theme="light"]) .btn.main:hover { color: #07121c; background: var(--gold); }
}

/* hero */
.hero { display: grid; gap: 28px; padding-top: 18px; padding-bottom: 36px; align-items: center; }
.hero h1 { font-size: clamp(38px, 9vw, 68px); line-height: 1.02; margin: 0 0 14px; letter-spacing: -0.03em; color: var(--navy); }
.hero h1 span { color: var(--teal); display: block; }
.hero p.lede { font-size: clamp(18px, 3.4vw, 21px); color: var(--muted); margin: 0 0 22px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero small { display: block; margin-top: 14px; color: var(--muted); font-size: 14px; }
.hero .art { display: flex; justify-content: center; }
.hero .art img { width: min(340px, 78vw); filter: drop-shadow(0 18px 28px rgba(8, 42, 74, 0.25)); }
@media (min-width: 820px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; gap: 40px; padding-top: 36px; padding-bottom: 56px; }
  .hero .art img { width: 380px; }
}

/* sections */
section { padding: 44px 0; }
section.tint { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(28px, 6vw, 40px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.02em; color: var(--navy); }
.sub { color: var(--muted); margin: 0 0 28px; max-width: 38em; font-size: 18px; }

.steps { display: grid; gap: 14px; counter-reset: s; padding: 0; list-style: none; margin: 0; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 18px 64px; position: relative; box-shadow: var(--shadow); }
section.tint .steps li { background: var(--paper); }
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 16px; top: 16px; width: 36px; height: 36px; border-radius: 12px;
  background: var(--teal); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 18px;
}
.steps b { display: block; font-size: 19px; color: var(--navy); margin-bottom: 2px; }
.steps span { color: var(--muted); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.shots { display: grid; gap: 22px; justify-items: center; }
.shot { margin: 0; width: min(300px, 82vw); }
.shot img { border-radius: 26px; border: 6px solid var(--navy); box-shadow: var(--shadow); background: #fff; }
.shot figcaption { margin-top: 10px; text-align: center; color: var(--muted); font-size: 15px; }
.shot figcaption b { color: var(--ink); display: block; font-size: 17px; }
@media (min-width: 820px) { .shots { grid-template-columns: repeat(3, 1fr); align-items: start; } }

.finds { display: grid; gap: 14px; grid-template-columns: 1fr; }
.find { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.find h3 { margin: 0 0 4px; font-size: 19px; color: var(--navy); }
.find p { margin: 0; color: var(--muted); }
@media (min-width: 560px) { .finds { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .finds { grid-template-columns: repeat(4, 1fr); } }

.levels { display: grid; gap: 14px; }
.lvl { border-radius: 20px; padding: 20px; background: var(--paper); border: 2px solid var(--line); }
.lvl .n { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--teal-d); }
.lvl h3 { margin: 6px 0 4px; font-size: 20px; color: var(--navy); }
.lvl p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .levels { grid-template-columns: repeat(3, 1fr); } }

.two { display: grid; gap: 22px; align-items: center; }
@media (min-width: 820px) { .two { grid-template-columns: 1fr 1fr; gap: 48px; } }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 7px; background: var(--teal); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 9px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(40deg); }

details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; color: var(--navy); }
details p { margin: 0 0 14px; color: var(--muted); }

.closer { text-align: center; padding: 56px 0 64px; }
.closer .cta { justify-content: center; }
footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
footer a { color: var(--muted); }

/* start page */
.page { padding-top: 18px; padding-bottom: 56px; max-width: 720px; }
.page h1 { font-size: clamp(32px, 7vw, 46px); line-height: 1.05; letter-spacing: -0.02em; margin: 8px 0 12px; color: var(--navy); }
.tabs { display: flex; gap: 8px; margin: 22px 0 14px; flex-wrap: wrap; }
.tabs button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.js .how { display: none; }
.js .how.on { display: block; }
.how h3 { margin: 22px 0 6px; color: var(--navy); }
.note { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--gold); border-radius: 12px; padding: 14px 16px; margin: 22px 0; color: var(--muted); }
.note b { color: var(--ink); }
.prose h2 { font-size: 24px; margin: 30px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 22px; }

/* small screens: keep the bar to the brand and one button */
@media (max-width: 560px) {
  .bar nav a.plain { display: none; }
  .bar nav a.btn { white-space: nowrap; }
  .brand { font-size: 18px; }
}
.hero .art img { border-radius: 28px; }
