/* =====================================================================
   CIVIL WAR HAIKU
   Class vocabulary: the picket line and the night watch, prefix .pkt-
   Palette: campaign sage paper (mid tone, not near white), green black ink,
   bronze olive accent, union blue links.
   Faces: American Typewriter (titles), Athelas (reading), Helvetica Neue (marks).
   System font stacks only. No external request of any kind.
   ===================================================================== */

:root {

  /* ---------- 1. PALETTE ---------- */
  --paper:        #c6cdb2;   /* campaign sage, mid tone: the page itself */
  --paper-sunk:   #b6bea0;   /* insets, table heads, footer */
  --paper-lift:   #d3d9c2;   /* hover, alternate rows, verse ground */
  --ink:          #191d16;   /* green black, running text */
  --ink-faint:    #4a4a3a;   /* marks, dates, service lines */
  --accent:       #5a4d18;   /* bronze olive: signposts, counts, rules */
  --accent-lit:   #2d5580;   /* hover */
  --signal:       #26436e;   /* union blue: links and cross references */
  --rule:         #9aa383;   /* hairline */
  --rule-firm:    #7f886a;   /* structural rule */
  --pick:         #b0bb95;   /* selection */

  /* ---------- 2. FACES (system stacks, never a file) ---------- */
  --face-text:    Athelas, "Hoefler Text", Constantia, "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --face-title:   "American Typewriter", "Courier New", "Nimbus Mono PS", Courier, ui-monospace, monospace;
  --face-mark:    "Helvetica Neue", Helvetica, "Arial Narrow", Arial, "Liberation Sans", sans-serif;

  /* ---------- 3. RHYTHM ---------- */
  --measure:      30rem;     /* reading column: narrow, poems are narrow */
  --rail:         14.5rem;   /* watch column */
  --frame:        66rem;     /* page maximum */
  --gutter:       3.2rem;
  --leading:      1.62;
  --step:         1.35rem;
  --radius:       2px;
  --title-weight: 600;

  /* ---------- 4. SIZES ---------- */
  --t-base:  1.02rem;
  --t-small: 0.87rem;
  --t-mark:  0.75rem;
  --t-h1:    clamp(1.9rem, 1.25rem + 2.4vw, 2.85rem);
  --t-h2:    clamp(1.22rem, 1.05rem + 0.7vw, 1.55rem);
  --t-h3:    1.06rem;
}

/* =====================================================================
   BASE
   ===================================================================== */

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

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--face-text);
  font-size: var(--t-base);
  line-height: var(--leading);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

::selection { background: var(--pick); color: var(--ink); }

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--signal); text-underline-offset: 0.15em; text-decoration-thickness: from-font; }
a:hover { color: var(--accent-lit); }

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

h1, h2, h3, h4 {
  font-family: var(--face-title);
  font-weight: var(--title-weight);
  line-height: 1.18;
  margin: 0;
  color: var(--ink);
}

p, ul, ol, dl, table, figure, blockquote { margin: 0; }

.pkt-flow > * + * { margin-top: var(--step); }
.pkt-shift { margin-top: 1.4rem; }

/* =====================================================================
   FRAME
   ===================================================================== */

.pkt-bypass {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  font-family: var(--face-title);
  z-index: 50;
}
.pkt-bypass:focus { position: fixed; left: 0.5rem; top: 0.5rem; }

.pkt-post {
  width: 100%;
  max-width: var(--frame);
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* =====================================================================
   REVEILLE (masthead)
   ===================================================================== */

.pkt-reveille {
  border-bottom: 3px double var(--ink);
  background: var(--paper);
}

.pkt-reveille__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding: 1.25rem 0 0.8rem;
}

.pkt-colors { display: block; text-decoration: none; color: inherit; }
.pkt-colors:hover .pkt-colors__name { color: var(--accent); }

.pkt-colors__name {
  font-family: var(--face-title);
  font-size: clamp(1.2rem, 1rem + 1.1vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
}

.pkt-colors__motto {
  display: block;
  font-family: var(--face-mark);
  font-size: var(--t-mark);
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  margin-top: 0.3rem;
}

.pkt-tally {
  font-family: var(--face-mark);
  font-size: var(--t-mark);
  color: var(--ink-faint);
  letter-spacing: 0.02em;
  text-align: right;
}
.pkt-tally span { display: block; }
@media (max-width: 43.99em) { .pkt-tally { text-align: left; } }

.pkt-rounds {
  border-top: 1px solid var(--rule);
  padding: 0.45rem 0 0.6rem;
}
.pkt-rounds ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 1.5rem;
}
.pkt-rounds a {
  font-family: var(--face-title);
  font-size: var(--t-small);
  letter-spacing: 0.03em;
  color: var(--ink);
  text-decoration: none;
  padding: 0.25rem 0;
  display: inline-block;
  border-bottom: 2px solid transparent;
}
.pkt-rounds a:hover,
.pkt-rounds a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

/* =====================================================================
   TRAIL (breadcrumb)
   ===================================================================== */

.pkt-trail {
  font-family: var(--face-mark);
  font-size: var(--t-mark);
  letter-spacing: 0.03em;
  color: var(--ink-faint);
  padding: 0.9rem 0 0;
}
.pkt-trail ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pkt-trail li + li::before { content: "/ "; color: var(--rule-firm); }
.pkt-trail a { color: var(--ink-faint); }

/* =====================================================================
   CAMP: reading column + watch column
   Default plan puts the watch column on the RIGHT.
   ===================================================================== */

.pkt-camp {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem var(--gutter);
  padding: 1.6rem 0 3rem;
  align-items: start;
}

.pkt-watch  { order: 2; }
.pkt-column { order: 1; }

@media (min-width: 60em) {
  .pkt-camp { grid-template-columns: minmax(0, 1fr) var(--rail); }
  .pkt-camp > .pkt-column { grid-column: 1; grid-row: 1; order: 0; }
  .pkt-camp > .pkt-watch  { grid-column: 2; grid-row: 1; order: 0; }

  .pkt-camp--left { grid-template-columns: var(--rail) minmax(0, 1fr); }
  .pkt-camp--left > .pkt-column { grid-column: 2; }
  .pkt-camp--left > .pkt-watch  { grid-column: 1; }
}

.pkt-watch {
  font-size: var(--t-small);
  color: var(--ink-faint);
  border-top: 3px double var(--ink);
  padding-top: 0.7rem;
}

@media (min-width: 60em) {
  .pkt-watch {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }
}

.pkt-watch__head {
  font-family: var(--face-mark);
  font-size: var(--t-mark);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.pkt-watch ul { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.pkt-watch li { border-bottom: 1px dotted var(--rule); }
.pkt-watch li a { display: block; padding: 0.32rem 0; color: var(--ink); text-decoration: none; }
.pkt-watch li a:hover { color: var(--accent); }

.pkt-column { max-width: 100%; }
.pkt-column--measure { max-width: var(--measure); }

/* =====================================================================
   RELIEF (a section of the page)
   ===================================================================== */

.pkt-relief { padding: 0 0 2.1rem; }
.pkt-relief + .pkt-relief { border-top: 1px solid var(--rule); padding-top: 1.7rem; }

.pkt-relief__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.3rem 1rem;
  margin-bottom: 1rem;
}

.pkt-relief__title { font-size: var(--t-h2); letter-spacing: 0.02em; }
.pkt-relief__title .pkt-count {
  font-family: var(--face-mark);
  color: var(--accent);
  margin-right: 0.5rem;
  font-weight: 400;
}

.pkt-relief__note {
  font-family: var(--face-mark);
  font-size: var(--t-mark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.pkt-lede { font-size: 1.08rem; color: var(--ink); max-width: var(--measure); }

.pkt-headpiece { padding: 0 0 1.5rem; }
.pkt-headpiece > * + * { margin-top: 0.8rem; }

.pkt-banner {
  font-family: var(--face-title);
  font-size: var(--t-h1);
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.08;
}
.pkt-banner .pkt-mark { display: block; margin-bottom: 0.5rem; }

.pkt-fineprint { font-size: var(--t-small); color: var(--ink-faint); }

/* =====================================================================
   LADDER (band of themed access points)
   ===================================================================== */

.pkt-ladder {
  border-top: 1px solid var(--rule-firm);
  border-bottom: 1px solid var(--rule-firm);
  padding: 0.6rem 0;
  margin: 0 0 1.6rem;
}
.pkt-ladder ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.35rem;
}
.pkt-ladder a,
.pkt-ladder span {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-family: var(--face-mark);
  font-size: var(--t-mark);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--rule-firm);
  border-radius: var(--radius);
}
.pkt-ladder a:hover { border-color: var(--accent); color: var(--accent); background: var(--paper-lift); }
.pkt-ladder span { color: var(--ink-faint); border-style: dashed; }

/* =====================================================================
   ROSTER (definition lists: the backbone of the site)
   ===================================================================== */

.pkt-roster { margin: 0; }

.pkt-file {
  border-top: 1px solid var(--rule);
  padding: 0.85rem 0 0.9rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.25rem 1.2rem;
}

@media (min-width: 44em) {
  .pkt-file { grid-template-columns: minmax(9.5rem, 15rem) minmax(0, 1fr); }
}

.pkt-file:hover { background: var(--paper-lift); }
.pkt-file:first-of-type { border-top: 3px double var(--ink); }

.pkt-name {
  font-family: var(--face-title);
  font-weight: 500;
  font-size: var(--t-h3);
  margin: 0;
  line-height: 1.28;
  letter-spacing: 0.01em;
}
.pkt-name a { color: var(--ink); text-decoration: none; }
.pkt-name a:hover { color: var(--accent); text-decoration: underline; }

.pkt-name__alias {
  display: block;
  font-family: var(--face-text);
  font-style: italic;
  font-weight: 400;
  font-size: var(--t-small);
  color: var(--ink-faint);
}

.pkt-gloss { margin: 0; font-size: 0.99rem; }
.pkt-gloss p + p { margin-top: 0.45rem; }

.pkt-mark {
  display: block;
  font-family: var(--face-mark);
  font-size: var(--t-mark);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.pkt-chevron {
  display: inline-block;
  font-family: var(--face-mark);
  font-size: var(--t-mark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--rule-firm);
  border-radius: var(--radius);
  padding: 0.08rem 0.45rem;
  margin-right: 0.35rem;
}

.pkt-guidon {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.8rem;
  font-family: var(--face-title);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 3px double var(--ink);
  padding: 1.7rem 0 0.3rem;
  scroll-margin-top: 1rem;
}
.pkt-guidon__count {
  font-family: var(--face-mark);
  font-size: var(--t-mark);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.pkt-guidon + .pkt-roster .pkt-file:first-of-type { border-top: 0; }

.pkt-muster {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: var(--gutter);
}
@media (min-width: 44em) { .pkt-muster { columns: 3; } }

.pkt-muster li {
  break-inside: avoid;
  border-bottom: 1px dotted var(--rule);
  padding: 0.26rem 0;
  font-size: var(--t-small);
}
.pkt-muster a { color: var(--ink); text-decoration: none; }
.pkt-muster a:hover { color: var(--accent); text-decoration: underline; }

/* =====================================================================
   VERSE: the poems themselves. This block does not exist in the
   skeleton; it carries the whole point of the site.
   ===================================================================== */

.pkt-sheaf > * + * { margin-top: 1.3rem; }

.pkt-verse {
  margin: 0;
  padding: 0.85rem 1rem 0.8rem;
  border-left: 4px solid var(--accent);
  background: var(--paper-lift);
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: var(--measure);
}

.pkt-verse p {
  font-family: var(--face-text);
  font-size: 1.16rem;
  line-height: 1.48;
  margin: 0;
}

.pkt-verse__hand {
  display: block;
  font-family: var(--face-mark);
  font-size: var(--t-mark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.6rem;
  padding-top: 0.4rem;
  border-top: 1px dotted var(--rule);
}

.pkt-verse__hand em { font-style: normal; text-transform: none; letter-spacing: 0; }

/* A verse quoted from a published source rather than written here */
.pkt-verse--quoted { border-left-color: var(--signal); }

/* =====================================================================
   RETURN (a tabulated report)
   ===================================================================== */

.pkt-return {
  overflow-x: auto;
  border: 1px solid var(--rule-firm);
  border-radius: var(--radius);
  background: var(--paper);
  max-width: 100%;
}
.pkt-return:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }

.pkt-ledger {
  border-collapse: collapse;
  width: 100%;
  min-width: 36rem;
  font-size: var(--t-small);
  font-variant-numeric: tabular-nums;
}

.pkt-ledger caption {
  caption-side: top;
  text-align: left;
  font-family: var(--face-mark);
  font-size: var(--t-mark);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--rule);
}

.pkt-ledger th,
.pkt-ledger td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

.pkt-ledger thead th {
  background: var(--paper-sunk);
  font-family: var(--face-title);
  font-size: var(--t-mark);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule-firm);
  white-space: nowrap;
}

.pkt-ledger tbody th { font-family: var(--face-title); font-weight: 500; }

.pkt-ledger tbody tr:nth-child(even) { background: var(--paper-lift); }
.pkt-ledger tbody tr:last-child th,
.pkt-ledger tbody tr:last-child td { border-bottom: 0; }

.pkt-scroll-note {
  font-family: var(--face-mark);
  font-size: var(--t-mark);
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin-top: 0.4rem;
}
@media (min-width: 44em) { .pkt-scroll-note { display: none; } }

/* =====================================================================
   CROSS REFERENCES
   ===================================================================== */

.pkt-crossref { color: var(--signal); font-style: italic; }
.pkt-crossref::before { content: "see "; font-style: normal; }

.pkt-crossrefs {
  list-style: none;
  margin: 0;
  padding: 0.85rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.3rem;
  border-top: 1px solid var(--rule);
  font-size: var(--t-small);
}
.pkt-crossrefs li::before { content: "\2192\00a0"; color: var(--rule-firm); }
.pkt-crossrefs a { color: var(--signal); text-decoration: none; }
.pkt-crossrefs a:hover { text-decoration: underline; }

/* =====================================================================
   HAVERSACK (short boxed note) and BLAZE (opening definition)
   ===================================================================== */

.pkt-haversack {
  background: var(--paper-sunk);
  border-left: 4px solid var(--signal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1.1rem;
  font-size: var(--t-small);
  max-width: var(--measure);
}
.pkt-haversack__head {
  font-family: var(--face-mark);
  font-size: var(--t-mark);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.pkt-blaze {
  font-size: 1.12rem;
  border-top: 3px double var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 0.95rem 0;
  margin: 0 0 1.5rem;
  max-width: var(--measure);
}
.pkt-blaze strong { font-family: var(--face-title); font-weight: 500; letter-spacing: 0.02em; }

/* =====================================================================
   STATION: a numbered point, its heading set out in the margin
   ===================================================================== */

.pkt-station {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--rule);
}

.pkt-station ul,
.pkt-station ol,
.pkt-gloss ul,
.pkt-haversack ul,
.pkt-haversack ol { padding-left: 1.2rem; }
.pkt-haversack ul { list-style: square; }
.pkt-station li,
.pkt-haversack li { padding: 0.14rem 0; }

.pkt-signpost {
  font-family: var(--face-mark);
  font-size: var(--t-mark);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.25rem;
}
.pkt-signpost .pkt-count { color: var(--ink-faint); }

@media (min-width: 58em) {
  .pkt-station {
    grid-template-columns: 11.5rem minmax(0, 1fr);
    gap: 0.85rem var(--gutter);
  }
  .pkt-station > *:not(.pkt-signpost) { grid-column: 2; max-width: var(--measure); }
  .pkt-station > .pkt-return,
  .pkt-station > .pkt-plate,
  .pkt-station > figure { max-width: none; }
  .pkt-signpost { grid-column: 1; grid-row: 1; text-align: right; }
}

/* =====================================================================
   PLATE (image)
   ===================================================================== */

.pkt-plate { margin: 0; }
.pkt-plate img {
  border: 1px solid var(--rule-firm);
  background: var(--paper-lift);
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.pkt-plate__caption {
  font-size: var(--t-small);
  color: var(--ink-faint);
  padding-top: 0.4rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.55rem;
}

/* =====================================================================
   RELAY (previous and next)
   ===================================================================== */

.pkt-relay {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.7rem;
  border-top: 3px double var(--ink);
  margin-top: 1.9rem;
  padding-top: 1rem;
}
@media (min-width: 44em) { .pkt-relay { grid-template-columns: 1fr 1fr; } }

.pkt-relay__link { text-decoration: none; color: var(--ink); display: block; padding: 0.45rem 0; }
.pkt-relay__link:hover .pkt-relay__name { color: var(--accent); text-decoration: underline; }
.pkt-relay__way {
  display: block;
  font-family: var(--face-mark);
  font-size: var(--t-mark);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.pkt-relay__name { font-family: var(--face-title); font-weight: 500; }
.pkt-relay__link--next { text-align: left; }
@media (min-width: 44em) { .pkt-relay__link--next { text-align: right; } }

/* =====================================================================
   TAPS (footer)
   ===================================================================== */

.pkt-taps {
  border-top: 3px double var(--ink);
  background: var(--paper-sunk);
  padding: 1.8rem 0 2.2rem;
  font-size: var(--t-small);
}

.pkt-taps__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.4rem var(--gutter);
}
@media (min-width: 44em) { .pkt-taps__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pkt-taps h2 {
  font-family: var(--face-mark);
  font-size: var(--t-mark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.pkt-taps ul { list-style: none; margin: 0; padding: 0; }
.pkt-taps li { padding: 0.18rem 0; }
.pkt-taps a { color: var(--ink); }
.pkt-taps a:hover { color: var(--accent); }

.pkt-taps__foot {
  border-top: 1px solid var(--rule-firm);
  margin-top: 1.5rem;
  padding-top: 0.9rem;
  color: var(--ink-faint);
  font-family: var(--face-mark);
  font-size: var(--t-mark);
  letter-spacing: 0.03em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.3rem;
  justify-content: space-between;
}

/* =====================================================================
   PRINT
   ===================================================================== */

@media print {
  :root { --paper: #ffffff; --paper-sunk: #ffffff; --paper-lift: #ffffff; }
  .pkt-rounds, .pkt-watch, .pkt-ladder, .pkt-relay, .pkt-bypass { display: none; }
  .pkt-camp { grid-template-columns: minmax(0, 1fr); }
  a { color: inherit; text-decoration: none; }
  .pkt-return { overflow: visible; }
  .pkt-ledger { min-width: 0; }
  .pkt-verse { border-left: 2px solid #000; }
}
