/* Pure Stanza — dusk tide observatory
   One stylesheet. No web fonts, no external requests. */

:root {
  --bg: #0e2a2b;
  --text: #e9f2ef;
  --accent: #e0a458;
  --accent-2: #5aa9a3;
  --card: #143a3b;
  --rule: rgba(90, 169, 163, 0.38);
  --display: "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  --body: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", Menlo, Consolas, monospace;
  --col: 680px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
}

/* ---------- skip link ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--card);
  color: var(--text);
  padding: 10px 14px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  z-index: 50;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- depth-marker rail ---------- */

.tide-rail {
  display: none;
  position: fixed;
  top: 0;
  left: 24px;
  width: 56px;
  height: 100vh;
  color: var(--accent-2);
  opacity: 0.5;
  pointer-events: none;
}
.tide-rail svg { width: 56px; height: 100%; }

@media (min-width: 1120px) {
  .tide-rail { display: block; }
}

/* ---------- shell ---------- */

.wrap {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
}

.brand {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.22rem;
  line-height: 1.15;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand:hover { color: var(--accent); }

.menu-btn {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 7px 11px;
  cursor: pointer;
}

nav.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

nav.site-nav a {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
nav.site-nav a:hover,
nav.site-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

@media (max-width: 719px) {
  nav.site-nav {
    display: none;
    width: 100%;
    padding: 4px 0 14px;
  }
  nav.site-nav.open { display: block; }
  nav.site-nav ul { flex-direction: column; gap: 12px; }
  .bar { flex-wrap: wrap; }
}

@media (min-width: 720px) {
  .menu-btn { display: none; }
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-style: italic;
  line-height: 1.15;
  font-weight: normal;
  color: var(--text);
}

h1 { font-size: 2.1rem; margin: 0 0 14px; letter-spacing: 0.005em; }
h2 { font-size: 1.5rem; margin: 36px 0 12px; }
h3 { font-size: 1.17rem; margin: 26px 0 8px; }

@media (max-width: 420px) {
  h1 { font-size: 1.72rem; }
  h2 { font-size: 1.32rem; }
}

p { margin: 0 0 16px; }

a { color: var(--accent); }
a:hover { color: var(--text); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

main { padding: 26px 0 10px; }

.lede { font-size: 1.07rem; }

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 10px;
}

.step-indicator {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 5px 9px;
  display: inline-block;
  margin: 0 0 14px;
}

/* ---------- hero lamp glow ---------- */

.hero {
  position: relative;
  padding: 18px 0 6px;
}
.hero::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  max-width: 120%;
  height: 300px;
  background: radial-gradient(circle at 50% 40%, rgba(224, 164, 88, 0.10), rgba(224, 164, 88, 0) 68%);
  pointer-events: none;
  z-index: -1;
}

/* ---------- wave divider ---------- */

.wave {
  display: block;
  width: 100%;
  height: 16px;
  color: var(--accent-2);
  margin: 34px 0;
  opacity: 0.8;
}

/* ---------- panels ---------- */

.card,
.disclosure,
.callout,
.checklist,
.glossary,
.example {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 18px 20px;
  margin: 0 0 22px;
}

.disclosure { border-left: 3px solid var(--accent); }
.callout { border-left: 3px solid var(--accent-2); }

.disclosure p:last-child,
.callout p:last-child,
.card p:last-child,
.example p:last-child { margin-bottom: 0; }

.panel-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 10px;
}

/* ---------- affiliate link ---------- */

.aff {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
  margin: 24px 0;
}
.aff a.out {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.14rem;
}
.aff-note {
  display: block;
  margin-top: 7px;
  font-size: 0.9rem;
  color: var(--text);
}

/* ---------- lists ---------- */

ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }

ol.procedure > li { margin-bottom: 14px; }

ul.steps-list { list-style: none; padding-left: 0; }
ul.steps-list li { margin-bottom: 14px; }

ol.course { padding-left: 20px; }
ol.course li { margin-bottom: 14px; }
ol.course a { font-family: var(--display); font-style: italic; font-size: 1.1rem; }

/* printed boxes on checklists — no interactive state anywhere */

.checklist ul { list-style: none; padding-left: 0; margin: 0; }
.checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 11px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 15px;
  height: 15px;
  border: 1px solid var(--accent-2);
  border-radius: 2px;
}

/* ---------- glossary strip ---------- */

.glossary dl { margin: 0; }
.glossary dt {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 12px;
}
.glossary dt:first-child { margin-top: 0; }
.glossary dd { margin: 4px 0 0; }

/* ---------- tables ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 22px;
  font-size: 0.95rem;
}
caption {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding-bottom: 8px;
}
th, td {
  border: 1px solid var(--rule);
  padding: 9px 11px;
  text-align: left;
  vertical-align: top;
}
th { font-weight: 600; }

/* ---------- pros and cons ---------- */

.two-col { display: block; }
@media (min-width: 620px) {
  .two-col { display: flex; gap: 18px; }
  .two-col > div { flex: 1 1 0; }
}

/* ---------- print button ---------- */

.print-btn {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 10px 14px;
  cursor: pointer;
}
.print-btn:hover { background: var(--text); border-color: var(--text); }

/* ---------- step pagination ---------- */

.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  margin-top: 10px;
  font-size: 0.95rem;
}

/* ---------- contents ---------- */

.contents {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 16px 20px;
  margin: 0 0 26px;
}
.contents ol { margin: 0; padding-left: 20px; }
.contents li { margin-bottom: 6px; }

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--rule);
  margin-top: 40px;
  padding: 26px 0 46px;
  font-size: 0.92rem;
}

.anchor-glyph {
  display: block;
  width: 26px;
  height: 26px;
  color: var(--accent-2);
  margin: 0 0 16px;
}

address.pub {
  font-style: normal;
  margin: 0 0 12px;
}
address.pub span { display: block; }
address.pub .name {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.1rem;
}

.foot-links { margin: 0 0 12px; }
.foot-links a { margin-right: 6px; }

.notice { color: var(--text); margin: 0 0 10px; }
.reviewed {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  margin: 0;
}

/* ---------- print ---------- */

@media print {
  :root { --bg: #ffffff; --text: #111111; --card: #ffffff; --rule: #999999; }
  body { background: #fff; color: #111; font-size: 12pt; }
  .tide-rail, header.site, .pager, .print-btn, .wave, .hero::before { display: none !important; }
  a { color: #111; text-decoration: underline; }
  .checklist, .card, .callout, .disclosure, .glossary, .example {
    background: #fff;
    border: 1px solid #999;
    break-inside: avoid;
  }
  .checklist li::before { border: 1px solid #333; }
  h1, h2, h3 { color: #111; }
  footer.site { border-top: 1px solid #999; }
  .reviewed, .kicker, .panel-title, caption { color: #444; }
  .wrap { max-width: 100%; padding: 0; }
}
