/* Bare Axis — shared stylesheet. Naval registry ledger.
   No web fonts, no external requests, no image files. */

:root {
  --bg: #f6f2e8;
  --text: #262219;
  --accent: #1f3a5f;
  --accent-2: #a67c2e;
  --card: #fffdf7;
  --rule: #1f3a5f;
  --col: 660px;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background-color: var(--bg);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(31, 58, 95, 0.04) 0,
    rgba(31, 58, 95, 0.04) 1px,
    transparent 1px,
    transparent 28px
  );
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.68;
  -webkit-text-size-adjust: 100%;
}

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

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

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--card);
  border: 2px solid var(--accent);
  padding: 8px 14px;
  z-index: 20;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 2px solid var(--rule);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 10px;
}

.brand {
  font-family: "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  font-size: 1.22rem;
  text-decoration: none;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-2);
}

.site-nav a {
  font-family: "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  margin-left: 18px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-bottom-color: var(--accent-2);
}

.menu-btn {
  display: none;
  font-family: "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  font-size: 1rem;
  color: var(--accent);
  background: var(--card);
  border: 1px solid var(--accent);
  border-radius: 0;
  padding: 5px 12px;
  cursor: pointer;
}

@media (max-width: 560px) {
  .menu-btn { display: block; }
  .site-nav {
    display: none;
    width: 100%;
    border-top: 1px solid var(--accent);
    padding-top: 8px;
  }
  .site-nav.open { display: block; }
  .site-nav a {
    display: block;
    margin: 0 0 6px 0;
  }
}

/* ---------- Typography ---------- */

main { padding: 26px 0 40px; }

h1, h2, h3 {
  font-family: "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  color: var(--accent);
  line-height: 1.25;
  margin: 1.6em 0 0.5em;
}

h1 {
  font-size: 1.85rem;
  margin-top: 0.2em;
  border-bottom: 2px solid var(--rule);
  padding-bottom: 10px;
}

h2 { font-size: 1.35rem; border-bottom: 1px solid var(--rule); padding-bottom: 5px; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1.05em; }

.lede { font-size: 1.06rem; }

.mono {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Lists ---------- */

ul.sq {
  list-style: none;
  padding-left: 22px;
  margin: 0 0 1.1em;
}

ul.sq li {
  position: relative;
  margin-bottom: 0.5em;
}

ul.sq li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--accent-2);
}

ol { padding-left: 24px; }
ol li { margin-bottom: 0.5em; }

ol.steps-index { margin: 0 0 1.2em; }
ol.steps-index li { margin-bottom: 0.75em; }

/* ---------- Blocks ---------- */

.card {
  background: var(--card);
  border: 2px solid var(--rule);
  border-radius: 0;
  padding: 16px 18px;
  margin: 0 0 1.4em;
}

.disclosure {
  background: var(--card);
  border: 2px solid var(--rule);
  border-left-width: 8px;
  padding: 14px 18px;
  margin: 1.4em 0;
  font-size: 1rem;
}

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

.callout {
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--rule);
  padding: 14px 18px;
  margin: 0 0 1.4em;
}

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

.stamp {
  display: inline-block;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--accent-2);
  border: 1px solid var(--accent-2);
  padding: 2px 8px;
  transform: rotate(-2deg);
  margin-bottom: 8px;
}

.logentry {
  border-top: 2px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 10px 0 12px;
  margin-bottom: 22px;
}

.logentry .mono { display: block; color: var(--accent-2); margin-bottom: 6px; }
.logentry h1 { border: 0; padding: 0; margin: 0; }
.logentry .stepof {
  display: block;
  margin-top: 8px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text);
}

.contents {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 14px 18px 14px 36px;
  margin: 0 0 1.6em;
}

.contents-title {
  font-variant: small-caps;
  letter-spacing: 0.05em;
  font-family: "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  margin-left: -18px;
  display: block;
  margin-bottom: 6px;
}

.checklist {
  background: var(--card);
  border: 2px solid var(--rule);
  padding: 18px;
  margin: 0 0 1.6em;
}

.checklist ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 0.7em;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 15px;
  height: 15px;
  border: 1px solid var(--accent);
  background: transparent;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5em;
  font-size: 0.96rem;
}

thead th {
  text-align: left;
  font-family: "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  color: var(--accent);
  border-top: 2px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 8px 10px 6px;
}

thead { border-bottom: 1px solid var(--rule); }

tbody td {
  border-bottom: 1px solid rgba(31, 58, 95, 0.3);
  padding: 8px 10px;
  vertical-align: top;
}

tbody tr:last-child td { border-bottom: 2px solid var(--rule); }

.glossary {
  border-top: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
  padding: 12px 0;
  margin: 0 0 1.5em;
}

.glossary dt {
  font-variant: small-caps;
  letter-spacing: 0.05em;
  font-family: "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  color: var(--accent);
  margin-top: 8px;
}

.glossary dd { margin: 0 0 6px; }

dl.checked dt {
  font-variant: small-caps;
  letter-spacing: 0.05em;
  font-family: "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  color: var(--accent);
  margin-top: 10px;
}

dl.checked dd { margin: 0 0 4px 0; }

.aff {
  border-top: 1px solid var(--accent-2);
  border-bottom: 1px solid var(--accent-2);
  padding: 10px 0;
}

.aff-note {
  display: block;
  font-size: 0.88rem;
  margin-top: 4px;
}

.prevnext {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 2px solid var(--rule);
  padding-top: 12px;
  margin-top: 30px;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  font-family: "Palatino Linotype", "Iowan Old Style", Georgia, serif;
}

.printbtn {
  font-family: "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  font-size: 1rem;
  background: var(--card);
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 0;
  padding: 8px 16px;
  cursor: pointer;
  margin-bottom: 1.4em;
}

.rose { display: block; margin: 0 auto 18px; }

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

.site-foot {
  border-top: 2px solid var(--rule);
  background: var(--card);
  padding: 22px 0 30px;
  font-size: 0.92rem;
}

.site-foot .pub { font-style: normal; margin-bottom: 10px; }
.site-foot .pub span { display: block; }
.site-foot .pub .name {
  font-variant: small-caps;
  letter-spacing: 0.05em;
  font-family: "Palatino Linotype", "Iowan Old Style", Georgia, serif;
  color: var(--accent);
}
.site-foot .foot-links { margin: 0 0 10px; }
.site-foot .tm { margin: 0 0 10px; }
.site-foot .reviewed { margin: 0; }

/* ---------- Print ---------- */

@media print {
  html, body {
    background: #fff;
    background-image: none;
    color: #000;
    font-size: 12pt;
  }
  .site-head, .site-foot, .printbtn, .skip, .prevnext, .aff, .nonprint { display: none !important; }
  .wrap { max-width: 100%; padding: 0; }
  h1, h2, h3 { color: #000; }
  .checklist {
    background: #fff;
    border: 1px solid #000;
    page-break-inside: avoid;
  }
  .checklist li::before { border-color: #000; }
  a { color: #000; text-decoration: none; }
}
