/* Successor Kit — archival folder, not a SaaS dashboard.
   Display: Newsreader. UI/forms: Atkinson Hyperlegible.
   Accent is used once: the folder spine and a brass register mark. */

:root {
  --ink: #162028;
  --ink-soft: #3a4650;
  --paper: #f3f4ef;
  --panel: #fffcf7;
  --spine: #1c3840;
  --spine-ink: #e7ece8;
  --brass: #8c7348;
  --seal: #245e4e;
  --warn: #7a3228;
  --rule: #c6c0b3;
  --mist: #e3e6e0;
  --focus: #1c3840;
  --measure: 42rem;
  --display: "Newsreader", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --ui: "Atkinson Hyperlegible", "Segoe UI", "Avenir Next", "Helvetica Neue", sans-serif;
  font-size: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--ui);
  line-height: 1.55;
  min-height: 100vh;
}

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

a {
  color: var(--seal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { color: var(--ink); }

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

.layout {
  display: grid;
  grid-template-columns: 13.5rem minmax(0, 1fr);
  min-height: 100vh;
}

.spine {
  background: var(--spine);
  color: var(--spine-ink);
  padding: 1.6rem 1.15rem 2rem;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.mark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: #f4f1ea;
  text-decoration: none;
  line-height: 1.1;
}
.mark:hover { color: #fff; }
.mark small {
  display: block;
  font-family: var(--ui);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0;
  color: #c5d0cb;
  margin-top: 0.25rem;
}

.spine nav { display: flex; flex-direction: column; gap: 0.15rem; }
.spine nav a {
  color: #c5d0cb;
  text-decoration: none;
  padding: 0.35rem 0.4rem;
  border-left: 2px solid transparent;
}
.spine nav a:hover { color: #fff; }
.spine nav a[aria-current="page"] {
  color: #fff;
  border-left-color: var(--brass);
}

.spine .legal-note {
  margin-top: auto;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #b7c3be;
}

.main {
  padding: 2.2rem 6vw 4rem;
  max-width: 72rem;
}

.measure { max-width: var(--measure); }

h1, h2, h3, .lede {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.35rem); margin: 0 0 0.7rem; }
h2 { font-size: 1.55rem; margin: 2.4rem 0 0.7rem; }
h3 { font-size: 1.15rem; margin: 1.4rem 0 0.4rem; }

.lede {
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink-soft);
  margin: 0 0 1.2rem;
  max-width: 38rem;
}

.banner {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0.85rem 0;
  margin: 0 0 1.6rem;
  color: var(--warn);
  font-size: 0.95rem;
  max-width: 44rem;
}

.banner strong { font-weight: 700; }

.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.3rem 0 2rem; }

.btn {
  font-family: var(--ui);
  font-size: 1rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #f6f3ee;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn:hover { background: #000; color: #fff; }
.btn.secondary {
  background: transparent;
  color: var(--ink);
}
.btn.secondary:hover { background: var(--mist); color: var(--ink); }
.btn.warn {
  background: transparent;
  color: var(--warn);
  border-color: var(--warn);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.9fr);
  gap: 2.5rem;
  align-items: start;
}

.specimen {
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow: 0 1px 0 rgba(22, 32, 40, 0.04);
}
.specimen .spec-kicker {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 0 0 0.5rem;
}
.specimen h2 { margin: 0 0 0.8rem; font-size: 1.2rem; }
.specimen dl { margin: 0; }
.specimen dt {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0.55rem 0 0.1rem;
}
.specimen dd {
  margin: 0;
  border-bottom: 1px solid var(--rule);
  padding: 0.15rem 0 0.35rem;
  min-height: 1.5rem;
}
.specimen .struck {
  color: var(--warn);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.specimen footer {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.plan {
  margin-top: 2.5rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.4rem;
  max-width: 42rem;
}
.plan .price-line {
  font-family: var(--display);
  font-size: 1.4rem;
  margin: 0.4rem 0 0.8rem;
}

.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem 2rem;
  margin: 1.2rem 0 0;
  max-width: 52rem;
}
.columns h2, .columns h3 { margin-top: 0; }

.names { margin: 1.2rem 0; padding: 0; list-style: none; }
.names li { padding: 0.25rem 0; }

form .row { margin: 0 0 0.9rem; }
label, .label {
  display: block;
  font-size: 0.92rem;
  margin: 0 0 0.25rem;
}
.hint { display: block; font-size: 0.8rem; color: var(--ink-soft); margin: 0.2rem 0 0; }

input[type="text"], input[type="search"], input[type="number"], input[type="month"],
select, textarea {
  font-family: var(--ui);
  font-size: 1rem;
  width: 100%;
  max-width: 28rem;
  border: 1px solid #9aa39c;
  background: #fff;
  color: var(--ink);
  padding: 0.4rem 0.5rem;
}
textarea { min-height: 5rem; max-width: 36rem; resize: vertical; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.7rem 1rem;
  margin-bottom: 0.8rem;
}

.error {
  color: var(--warn);
  background: #f8ece9;
  border-left: 3px solid var(--warn);
  padding: 0.5rem 0.7rem;
  margin: 0.6rem 0;
}
.status {
  color: var(--seal);
  margin: 0.6rem 0;
}

.progress {
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
}
.progress-bar {
  height: 0.45rem;
  background: var(--mist);
  margin-top: 0.35rem;
  max-width: 22rem;
}
.progress-bar > span {
  display: block;
  height: 100%;
  background: var(--seal);
}

.checklist { list-style: none; padding: 0; margin: 0 0 2rem; max-width: 44rem; }
.checklist li {
  border-top: 1px solid var(--rule);
  padding: 0.85rem 0;
}
.checklist label { display: flex; gap: 0.7rem; align-items: flex-start; cursor: pointer; }
.checklist input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  accent-color: var(--seal);
  flex: 0 0 auto;
}
.checklist .title { font-weight: 700; }
.checklist p { margin: 0.25rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }

.list { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.list li {
  border-top: 1px solid var(--rule);
  padding: 0.7rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  align-items: start;
}
.list .meta { color: var(--ink-soft); font-size: 0.9rem; margin: 0.2rem 0 0; }

.guide {
  border-top: 1px solid var(--rule);
  padding: 1.1rem 0 1.3rem;
  max-width: 44rem;
}
.guide ol { padding-left: 1.2rem; }
.guide .limits {
  background: #f8ece9;
  border-left: 3px solid var(--warn);
  padding: 0.7rem 0.9rem;
  margin: 0.8rem 0 0;
}
.guide .limits ul { margin: 0.3rem 0 0; padding-left: 1.1rem; }

.state-panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: 1rem 1.1rem;
  max-width: 40rem;
  margin: 0.8rem 0 1.2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 0.6rem 0 1.2rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
  padding: 0.4rem 0.5rem 0.4rem 0;
}
th { font-weight: 700; }

.cite { font-size: 0.88rem; color: var(--ink-soft); }
.cite a { color: inherit; }

.site-foot a { color: inherit; }
.site-foot {
  margin-top: 3rem;
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 44rem;
}

#toast[hidden] { display: none; }
#toast {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: var(--ink);
  color: #f6f3ee;
  padding: 0.6rem 0.8rem;
  max-width: 20rem;
}

@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; }
  .spine {
    position: relative;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.9rem 1rem;
    gap: 0.6rem 1rem;
  }
  .spine nav { flex-direction: row; flex-wrap: wrap; gap: 0.15rem 0.8rem; }
  .spine nav a { border-left: 0; border-bottom: 2px solid transparent; padding: 0.2rem 0; }
  .spine nav a[aria-current="page"] { border-left: 0; border-bottom-color: var(--brass); }
  .spine .legal-note { display: none; }
  .main { padding: 1.4rem 1rem 3rem; }
  .hero-split { grid-template-columns: 1fr; }
  .list li { grid-template-columns: 1fr; }
}

@media print {
  .spine, .actions, .btn, nav, #toast, .no-print { display: none !important; }
  .layout { display: block; }
  body { background: #fff; font-size: 11pt; }
  .main { padding: 0; max-width: none; }
  a { color: inherit; text-decoration: none; }
  .banner, .inv-disclaimer {
    color: #000;
    border: 1px solid #000;
    padding: 0.6rem;
    page-break-inside: avoid;
  }
  table { font-size: 9.5pt; page-break-inside: auto; }
  tr { page-break-inside: avoid; }
  h1, h2 { page-break-after: avoid; }
  @page { margin: 0.7in; }
}
