/* whatsgoingaway.com
   Palette (all text pairs at or above 7:1, checked):
     Ink      #1f2a36  body text            13.7:1 on Paper
     Paper    #fbf8f2  page background
     Harbor   #0b4f57  links, buttons, the calendar band   8.7:1 on Paper; Paper on Harbor 8.7:1
     Marigold #f2c14e  "Happening now"      Ink on Marigold 8.7:1
     Sage     #e3ece4  "Done"               Ink on Sage 12.1:1
     Slate    #3f4852  secondary text       8.8:1 on Paper
   Type: Literata (headings, dates) + Atkinson Hyperlegible (everything you read). */
:root {
  --ink: #1f2a36;
  --paper: #fbf8f2;
  --harbor: #0b4f57;
  --marigold: #f2c14e;
  --sage: #e3ece4;
  --slate: #3f4852;
  --rule: #d6cdbb;
  --white: #ffffff;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", Verdana, "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.3125rem; /* 21px */
  line-height: 1.6;
}
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }
main { display: block; padding-bottom: 3rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.25; color: var(--ink); }
h1 { font-size: 2.35rem; margin: 1.5rem 0 1rem; letter-spacing: -0.01em; }
h2 { font-size: 1.65rem; margin: 2.4rem 0 0.8rem; }
h3 { font-size: 1.3rem; margin: 1.8rem 0 0.5rem; }
p, ul, ol, dl { margin: 0 0 1.1rem; }
ul, ol { padding-left: 1.6rem; }
li { margin: 0.35rem 0; }
strong { font-weight: 700; }

a { color: var(--harbor); text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.16em; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--harbor); outline-offset: 3px; border-radius: 3px;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---- Header ---- */
.site-header { border-bottom: 3px solid var(--ink); background: var(--paper); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--serif); font-weight: 700; font-size: 1.45rem; color: var(--ink); text-decoration: none; min-height: 48px; }
.brand:hover span { text-decoration: underline; }
.brand .mark { width: 2.1rem; height: 2.3rem; flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.2rem; }
.nav a { display: inline-flex; align-items: center; min-height: 48px; font-size: 1.1rem; font-weight: 700; color: var(--harbor); }
.nav a[aria-current="page"] { color: var(--ink); text-decoration-thickness: 0.16em; }

.crumb { font-size: 1.05rem; margin: 1.4rem 0 0; color: var(--slate); }
.crumb a { color: var(--harbor); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0.55rem 1.15rem; border: 2px solid var(--harbor); border-radius: 8px;
  background: var(--harbor); color: var(--white); font: 700 1.1rem/1.2 var(--sans); cursor: pointer;
}
.btn:hover { background: #083d43; border-color: #083d43; }
.btn-quiet { background: var(--white); color: var(--harbor); }
.btn-quiet:hover { background: var(--sage); color: var(--ink); }
.btn-small { font-size: 1rem; min-height: 48px; padding: 0.4rem 0.9rem; }

/* ---- Status chips (always words, never colour alone) ---- */
.status {
  display: inline-block; vertical-align: middle; white-space: nowrap; font: 700 1rem/1.3 var(--sans);
  padding: 0.15rem 0.7rem; border-radius: 999px; border: 2px solid var(--ink);
}
.status-coming { background: var(--white); color: var(--harbor); border-color: var(--harbor); }
.status-now { background: var(--marigold); color: var(--ink); border-color: #9a7414; }
.status-done { background: var(--sage); color: var(--ink); border-color: #8fa596; }

/* ---- The calendar leaf: the one detail only this subject has ---- */
.leaf {
  position: relative; flex: none; width: 5.6rem; text-align: center; background: var(--white);
  border: 2px solid var(--ink); border-radius: 7px; box-shadow: 4px 4px 0 var(--rule);
  overflow: visible; margin-top: 0.55rem;
}
.leaf::before, .leaf::after { /* the two binding rings */
  content: ""; position: absolute; top: -0.55rem; width: 0.7rem; height: 1.1rem;
  border: 2px solid var(--ink); border-radius: 0.4rem; background: var(--paper);
}
.leaf::before { left: 1.2rem; }
.leaf::after { right: 1.2rem; }
.leaf-band {
  display: block; background: var(--harbor); color: var(--white); font: 700 1rem/1 var(--sans);
  padding: 0.55rem 0.2rem 0.4rem; border-radius: 5px 5px 0 0; letter-spacing: 0.02em;
}
.leaf-day { display: block; font: 700 2.5rem/1.15 var(--serif); padding: 0.2rem 0 0.35rem; color: var(--ink); }
.leaf-word { font-size: 1.75rem; padding: 0.55rem 0 0.6rem; }
.leaf-lg { width: 7rem; }
.leaf-lg .leaf-day { font-size: 3.2rem; }
.leaf-lg .leaf-word { font-size: 2.2rem; }

/* ---- Home ---- */
.hero { padding: 0.5rem 0 0.5rem; }
.hero h1 { font-size: 2.6rem; margin-top: 2rem; }
.lede { font-size: 1.4rem; line-height: 1.55; }
.today { color: var(--slate); font-size: 1.15rem; border-left: 4px solid var(--marigold); padding: 0.2rem 0 0.2rem 0.9rem; }
.group h2, .group-any h2, .gone-short h2, .how-short h2 { border-bottom: 2px solid var(--ink); padding-bottom: 0.4rem; }
.ledger { list-style: none; padding: 0; margin: 0; }
.row { display: flex; gap: 1.25rem; align-items: flex-start; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); margin: 0; }
.row:last-child { border-bottom: 0; }
.row-body { min-width: 0; flex: 1; }
.row-body h3 { margin: 0.2rem 0 0.5rem; font-size: 1.45rem; }
.row-body p { margin: 0 0 0.45rem; }
.row-when { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.8rem; font-weight: 700; }
.when { font-family: var(--serif); font-size: 1.2rem; }
.gone-short ul { padding-left: 1.3rem; }
.gone-short li { margin: 0.7rem 0; }

/* ---- Guide ---- */
.guide-head { display: flex; gap: 1.4rem; align-items: flex-start; margin-top: 1.2rem; }
.guide-head h1 { margin: 0.5rem 0 0; flex: 1; min-width: 0; }
.glance { background: var(--white); border: 2px solid var(--ink); border-left: 8px solid var(--harbor); border-radius: 8px; padding: 1rem 1.3rem 0.4rem; margin: 1.8rem 0 1.2rem; }
.glance-h { font-size: 1.3rem; margin: 0 0 0.6rem; }
.glance dl { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.5rem 1rem; }
.glance dt { font-weight: 700; }
.glance dd { margin: 0; }
.certainty { display: inline-block; margin-top: 0.3rem; color: var(--slate); }
/* Shown once a planned last date has passed and nobody has yet confirmed it happened. */
.plan-note { display: block; margin-top: 0.4rem; padding-left: 0.7rem; border-left: 4px solid var(--marigold); color: var(--ink); }
.plan-note[hidden] { display: none; }
.unchecked { color: var(--slate); }
.print-bar { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 1.5rem; }
.print-bar[hidden], .js-only[hidden] { display: none; }
.prose { max-width: 34em; }
.prose h2 { padding-top: 0.3rem; }
.prose li { margin: 0.5rem 0; }
.aff { border: 2px dashed var(--rule); border-radius: 8px; padding: 0.9rem 1.1rem; margin: 1.4rem 0; background: var(--white); }
.aff p { margin: 0 0 0.4rem; }
.aff-note { color: var(--slate); font-size: 1.05rem; }

/* The checklist is a tear-off card: dashed edge, real tick boxes. */
.checklist-card { background: var(--white); border: 2px dashed var(--ink); border-radius: 10px; padding: 1.2rem 1.4rem 0.6rem; margin: 2.5rem 0 1rem; }
.checklist-card h2 { margin-top: 0.2rem; }
.checklist { list-style: none; padding: 0; }
.checklist li { margin: 0; border-bottom: 1px solid var(--rule); }
.checklist li:last-child { border-bottom: 0; }
.checklist label { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.6rem 0; cursor: pointer; min-height: 48px; }
.checklist input { flex: none; width: 1.6rem; height: 1.6rem; margin: 0.15rem 0 0; accent-color: var(--harbor); cursor: pointer; }
.notes-lines { display: none; }
.checklist-save { color: var(--slate); font-size: 1.05rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }

.sources { margin-top: 2.5rem; border-top: 3px solid var(--ink); }
.sources ol { padding-left: 1.6rem; }
.sources li { margin: 0.6rem 0; overflow-wrap: anywhere; }
.checked { color: var(--slate); }
.related ul { padding-left: 1.3rem; }

/* ---- Already gone ---- */
.gone-item { border-top: 2px solid var(--ink); margin-top: 2.2rem; padding-top: 0.6rem; }
.gone-head { display: flex; gap: 1.2rem; align-items: flex-start; }
.gone-head h2 { margin: 0.6rem 0 0.4rem; }

/* ---- Footer: Paper on Ink ---- */
.site-footer { background: var(--ink); color: var(--paper); padding: 2rem 0 2.5rem; font-size: 1.1rem; }
.site-footer a { color: var(--paper); }
.foot-cols { display: flex; flex-wrap: wrap; gap: 1rem 3rem; }
.foot-cols > div { flex: 1 1 15rem; }
.foot-h { font-size: 1.2rem; color: var(--paper); margin: 0 0 0.5rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-block; padding: 0.45rem 0; }
.foot-note { margin: 1rem 0 0; max-width: 40em; }
.print-url { display: none; }

/* ---- Phones ---- */
@media (max-width: 600px) {
  body { font-size: 1.25rem; }
  .wrap { padding: 0 1rem; }
  h1, .hero h1 { font-size: 1.95rem; }
  h2 { font-size: 1.5rem; }
  .lede { font-size: 1.25rem; }
  .row { gap: 0.9rem; }
  .leaf { width: 4.4rem; }
  .leaf-band { font-size: 0.95rem; padding: 0.5rem 0.1rem 0.35rem; }
  .leaf::before { left: 0.8rem; }
  .leaf::after { right: 0.8rem; }
  .leaf-day { font-size: 2rem; }
  .leaf-word { font-size: 1.35rem; }
  .guide-head { flex-direction: column; gap: 0.6rem; }
  .leaf-lg { width: 5.6rem; }
  .leaf-lg .leaf-day { font-size: 2.5rem; }
  .glance dl { grid-template-columns: 1fr; gap: 0.1rem; }
  .glance dd { margin-bottom: 0.6rem; }
  .row-body h3 { font-size: 1.3rem; }
}

/* ---- Print: black on white, big type, no nav or ads, the page's address at the foot ---- */
@media print {
  @page { margin: 1.6cm; }
  body { background: #fff; color: #000; font-size: 14pt; line-height: 1.45; }
  .site-header .nav, .site-footer, .skip, .print-bar, .js-only, .aff, .related, .crumb,
  ins.adsbygoogle, .adsbygoogle, iframe { display: none !important; }
  .site-header { border-bottom: 2px solid #000; background: #fff; }
  .site-header .wrap { padding-top: 0.2rem; padding-bottom: 0.4rem; }
  .brand { font-size: 14pt; min-height: 0; }
  .brand .mark { width: 1.4rem; height: 1.5rem; }
  .glance { border-left-width: 2px; }
  .wrap, .prose { max-width: none; padding: 0; }
  a { color: #000; }
  .prose a[href^="http"]::after, .sources a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 10pt; overflow-wrap: anywhere; }
  h1, h2, h3 { color: #000; page-break-after: avoid; break-after: avoid; }
  .glance, .checklist-card, .leaf { box-shadow: none; }
  .leaf-band { background: #000 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .status { border-color: #000; background: #fff !important; color: #000 !important; }
  .checklist li { break-inside: avoid; page-break-inside: avoid; }
  .checklist label { padding: 0.35rem 0; min-height: 0; }
  .checklist input { width: 1.1rem; height: 1.1rem; }
  .notes-lines { display: block; margin: 0.6rem 0 0.4rem; height: 4.6rem; background: repeating-linear-gradient(transparent 0 2.2rem, #000 2.2rem calc(2.2rem + 1px)); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-url { display: block; margin-top: 0.8rem; padding-top: 0.3rem; border-top: 1px solid #000; font-size: 11pt; }
  .checklist-card { padding: 0.7rem 1.1rem 0.2rem; }
  .checklist-card h2 { margin: 0 0 0.3rem; }
  .checklist-when { margin-bottom: 0.4rem; }
  /* "Print the checklist only": everything but the checklist card is left off the page. */
  html.print-checklist .guide > *:not(.checklist-section) { display: none !important; }
  html.print-checklist .checklist-card { border: 2px dashed #000; margin-top: 0; }
}
