/*
  Dry Corridor — shared stylesheet
  Visual direction: a pilot's printed fathom-rule slate.
  Palette: slate gray, rule-line white, lead-line red, hull gray.
  System fonts only; no images; no external requests.
*/

:root {
  --bg: #1d2124;
  --text: #d4d7d6;
  --accent: #b0473a;
  --accent-2: #5d6568;
  --card: #23282b;
  --rule: rgba(212, 215, 214, 0.35);
  --display: "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  --body: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Courier New", "SF Mono", Menlo, Consolas, monospace;
}

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

html {
  background: var(--bg);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
  overflow-wrap: break-word;
}

/* ---------- Links and focus ---------- */

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--text);
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ---------- Header ---------- */

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

.header-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.brand {
  font-family: var(--display);
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.9em;
  margin-right: 0.55rem;
  vertical-align: -0.1em;
  background: var(--accent);
  box-shadow: none;
}

.menu-toggle {
  display: none;
  font-family: var(--mono);
  font-size: 0.875rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--text);
  border-radius: 0;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

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

.site-nav a {
  font-family: var(--mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration-thickness: 1px;
}

@media (max-width: 560px) {
  .js .menu-toggle {
    display: inline-block;
  }

  .js .site-nav {
    display: none;
    width: 100%;
  }

  .js .site-nav.is-open {
    display: block;
  }

  .js .site-nav ul {
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--rule);
  }

  .js .site-nav li {
    border-bottom: 1px solid var(--rule);
  }

  .js .site-nav a {
    display: block;
    padding: 0.6rem 0;
  }
}

/* ---------- Main column ---------- */

main {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

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

h1 {
  font-size: 2.1rem;
  margin: 0.5rem 0 1rem;
}

h2 {
  font-size: 1.5rem;
  margin: 2.25rem 0 0.75rem;
}

h3 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

code,
.mono {
  font-family: var(--mono);
}

code {
  font-size: 0.95em;
  border: 1px solid var(--rule);
  padding: 0 0.25em;
}

blockquote {
  margin: 1.5rem 0;
  padding: 0 0 0 1rem;
  border-left: 1px solid var(--rule);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

/* Lead-line bullet: a 1px plumb line ending in a 1px dot */
ul {
  padding-left: 0;
  list-style: none;
}

ul > li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.45rem;
}

ul > li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 0.35em;
  width: 5px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='14' viewBox='0 0 5 14'%3E%3Cline x1='2.5' y1='0' x2='2.5' y2='10' stroke='%23b0473a' stroke-width='1'/%3E%3Ccircle cx='2.5' cy='12' r='1' fill='%23b0473a' stroke='%23b0473a' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

.site-nav ul > li,
.footer-links li {
  padding-left: 0;
  margin: 0;
}

.site-nav ul > li::before {
  content: none;
}

ol {
  padding-left: 1.5rem;
}

ol > li {
  margin-bottom: 0.5rem;
}

/* ---------- Hero ---------- */

.hero-lede {
  font-size: 1.1rem;
}

.disclosure-box {
  border: 1px solid var(--text);
  padding: 1rem 1.1rem;
  margin: 1.5rem 0;
  background: var(--card);
  font-size: 1.0625rem;
}

.disclosure-box h2 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.disclosure-box p:last-child {
  margin-bottom: 0;
}

.course-list {
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}

.course-list li {
  margin-bottom: 0.7rem;
}

/* ---------- Fathom rows (homepage sections) ---------- */

.fathom {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--text);
  padding: 0.75rem 1.1rem 0.5rem;
  margin: 2rem 0;
}

.fathom-edge {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.fathom-count {
  color: var(--accent);
}

.fathom-lead {
  color: var(--accent-2);
}

.fathom h2 {
  margin-top: 0.25rem;
}

/* The single margin tick, used once on the homepage */
.ticked::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 2.6rem;
  width: 3px;
  height: 3rem;
  background: var(--accent);
}

/* ---------- Step pages ---------- */

.soundings {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--rule);
  padding: 0.35rem 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.soundings .mark {
  color: var(--accent);
}

.step-indicator {
  font-family: var(--mono);
  font-size: 0.9rem;
  margin: 1rem 0 0;
}

.contents {
  border: 1px solid var(--rule);
  padding: 0.75rem 1.1rem 0.25rem;
  margin: 1.5rem 0 2rem;
  background: var(--card);
}

.contents h2 {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

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

/* ---------- Body units ---------- */

.callout {
  border: 1px solid var(--rule);
  border-top: 1px solid var(--text);
  padding: 0.9rem 1.1rem 0.25rem;
  margin: 1.75rem 0;
  background: var(--card);
}

.callout-label {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.grogging {
  border: 2px solid var(--accent);
  padding: 0.9rem 1.1rem 0.25rem;
  margin: 1.75rem 0;
}

.grogging-head {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.glossary {
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--rule);
  padding: 0.75rem 0;
  margin: 1.75rem 0;
}

.glossary dt {
  font-family: var(--mono);
  font-weight: bold;
  margin-top: 0.6rem;
}

.glossary dd {
  margin: 0.1rem 0 0 0;
}

.example {
  border-left: 1px solid var(--text);
  padding-left: 1rem;
  margin: 1.75rem 0;
}

.move-on {
  border: 1px solid var(--rule);
  padding: 0.9rem 1.1rem 0.25rem;
  margin: 2rem 0;
}

.move-on h2,
.example h2,
.callout h2 {
  margin-top: 0.25rem;
}

.affiliate {
  border: 1px solid var(--rule);
  padding: 0.75rem 1rem;
  margin: 1.5rem 0;
}

.affiliate a {
  font-weight: bold;
}

.affiliate-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

/* ---------- Checklists: printed boxes, nothing stored ---------- */

.checklist {
  list-style: none;
  counter-reset: item;
  padding-left: 0;
  border-top: 1px solid var(--text);
  margin: 1rem 0 1.5rem;
}

.checklist > li {
  counter-increment: item;
  position: relative;
  padding: 0.6rem 0 0.6rem 3.4rem;
  margin: 0;
  border-bottom: 1px solid var(--rule);
}

.checklist > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--text);
}

.checklist > li::after {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 1.5rem;
  top: 0.65rem;
  font-family: var(--mono);
  font-size: 0.85rem;
}

.print-button {
  font-family: var(--mono);
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--text);
  border-radius: 0;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

/* ---------- Tables and definition lists ---------- */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
}

th,
td {
  border-bottom: 1px solid var(--rule);
  text-align: left;
  padding: 0.45rem 0.4rem;
  vertical-align: top;
}

.checked-list dt {
  font-family: var(--display);
  font-size: 1.1rem;
  margin-top: 1.1rem;
}

.checked-list dd {
  margin: 0.25rem 0 0 0;
  padding-left: 1rem;
  border-left: 1px solid var(--rule);
}

.effective {
  font-family: var(--mono);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.5rem;
}

address {
  font-style: normal;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--text);
  background: var(--bg);
  margin-top: 2rem;
}

.footer-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
  font-size: 0.95rem;
}

.footer-inner address {
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-inner address strong {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: normal;
}

.footer-links {
  margin-bottom: 1rem;
}

/* ---------- Print: checklists print cleanly on white ---------- */

@media print {
  html,
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .site-header,
  .skip-link,
  .print-button,
  .step-pager,
  .menu-toggle {
    display: none;
  }

  main {
    max-width: none;
    padding: 0;
  }

  a {
    color: #000;
    text-decoration: underline;
    text-decoration-color: #000;
  }

  .fathom,
  .callout,
  .contents,
  .disclosure-box,
  .move-on,
  .affiliate,
  .site-footer {
    background: #fff;
    color: #000;
    border-color: #000;
  }

  .checklist {
    border-top-color: #000;
  }

  .checklist > li {
    border-bottom: 1px solid #000;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .checklist > li::before {
    border: 1px solid #000;
  }

  .checklist-block {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .fathom-count,
  .fathom-lead,
  .soundings .mark {
    color: #000;
  }

  ul > li::before {
    filter: grayscale(1);
  }
}
