/* NY Publication Desk - site v2.
   A working filing desk crossed with a newspaper legal-notice page
   and a clerk's ledger. Paper, ink, and rules.
   Serif display: Georgia stack. Labels: system mono. One accent: deep green.
   No gradients. No shadows. No rounded corners. No images. */

:root {
  --paper: #fdfcf9;
  --ink: #1b1a16;
  --ink-soft: #45423a;
  --muted: #6e6a5f;
  --accent: #20503c;
  --rule: #ddd8ca;
  --rule-dark: #b9b3a2;
  --tint: #eff2ec;
  --tint-warm: #f5f1e8;
  --serif: Georgia, "Times New Roman", Times, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.65;
}

::selection { background: var(--tint); }

.wrap {
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 1.5rem 4.5rem;
}

/* ---------- Masthead ---------- */

.masthead { padding-top: 1.1rem; }

.dateline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--ink);
}

.masthead .name {
  font-size: clamp(2.7rem, 7vw, 4.4rem);
  line-height: 1.02;
  font-weight: bold;
  letter-spacing: -0.015em;
  text-align: center;
  margin: 1.1rem 0 0.9rem;
}

.masthead .name a { color: var(--ink); text-decoration: none; }

.tagline-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-top: 1px solid var(--ink);
  border-bottom: 5px double var(--ink);
  padding: 0.45rem 0 0.55rem;
}

.tagline-row .tagline {
  font-style: italic;
  font-size: 1.02rem;
  margin: 0;
}

.tagline-row .est {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  margin: 0;
}

.notice-line {
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: center;
  margin: 0.7rem auto 0;
  max-width: 62ch;
}

/* Navigation: a ruled row of text links */

.navrow { border-bottom: 1px solid var(--ink); margin-top: 0.7rem; }

.navrow ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.navrow li + li { border-left: 1px solid var(--rule); }

.navrow a {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.6rem 1rem;
}

.navrow a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 0.25em; }

.navrow a[aria-current="page"] { color: var(--accent); font-weight: bold; }

/* ---------- Page head ---------- */

main { display: block; }

.page-head { margin: 2.6rem 0 0; max-width: 68ch; }

.kicker {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.8rem;
}

h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  line-height: 1.16;
  font-weight: bold;
  letter-spacing: -0.01em;
  margin: 0 0 1.1rem;
}

.lede { font-size: 1.18rem; line-height: 1.6; }

p { margin: 0 0 1rem; max-width: 68ch; }

a { color: var(--accent); text-underline-offset: 0.18em; }

.small { font-size: 0.9rem; color: var(--muted); max-width: 68ch; }

/* ---------- Stat row: pull figures, ruled, not cards ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin: 2.2rem 0 0.5rem;
}

.stat { padding: 1rem 1.1rem 1.1rem 0; }

.stat + .stat { border-left: 1px solid var(--rule); padding-left: 1.1rem; }

.stat .fig {
  display: block;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.05;
  font-weight: bold;
  letter-spacing: -0.01em;
}

.stat .lab {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.45rem;
}

/* ---------- Sections ---------- */

.sec { margin-top: 3rem; }

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  border-top: 2px solid var(--ink);
  padding-top: 0.9rem;
  margin-bottom: 1.2rem;
}

.sec-no {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  font-weight: bold;
}

.sec-head h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  line-height: 1.25;
  font-weight: bold;
  margin: 0;
}

h3, .qa h2 { font-size: 1.08rem; margin: 0 0 0.4rem; }

ul, ol { margin: 0 0 1rem; padding-left: 1.35rem; max-width: 68ch; }
li { margin-bottom: 0.35rem; }

/* ---------- Ledger rows (steps, clock, questions) ---------- */

.ledger { border-top: 1px solid var(--rule-dark); }

.lrow {
  display: grid;
  grid-template-columns: 15.5rem 1fr;
  gap: 0.5rem 2rem;
  padding: 1rem 0 1.1rem;
  border-bottom: 1px solid var(--rule);
}

.lkey { padding-top: 0.15rem; }

.lkey .lno {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.lkey .lname {
  display: block;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
}

.lval p { margin-bottom: 0.6rem; }
.lval p:last-child { margin-bottom: 0; }
.lval ul { margin-bottom: 0; }

/* ---------- Ledger tables ---------- */

table.ledger-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.4rem 0 1.2rem;
  font-size: 1rem;
}

.ledger-table th {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: normal;
  color: var(--muted);
  text-align: left;
  padding: 0.55rem 0.8rem 0.55rem 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.ledger-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.8rem 0.6rem 0;
  border-bottom: 1px solid var(--rule);
}

.ledger-table td.num, .ledger-table th.num {
  text-align: right;
  padding-right: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ledger-table td.lab { font-weight: bold; }

/* ---------- Specimen notice: a clipped legal notice ---------- */

.specimen {
  border: 1px solid var(--ink);
  border-top: 5px double var(--ink);
  background: #fff;
  padding: 1.4rem 1.6rem 1.5rem;
  margin: 1.4rem 0 1rem;
  max-width: 44rem;
}

.specimen .spec-tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin: 0 0 1rem;
}

.specimen .spec-name {
  font-weight: bold;
  text-align: center;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.7rem;
}

.specimen p {
  font-size: 0.86rem;
  line-height: 1.6;
  text-align: justify;
  margin: 0 0 0.6rem;
  max-width: none;
}

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

.spec-caption { font-size: 0.9rem; color: var(--muted); max-width: 62ch; }

/* ---------- Tinted ledger block, used sparingly ---------- */

.note-block {
  background: var(--tint);
  border-top: 2px solid var(--accent);
  padding: 1.2rem 1.4rem 0.4rem;
  margin: 1.6rem 0;
  max-width: 68ch;
}

.note-block .note-lab {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

/* ---------- Footnote ---------- */

.footnote {
  border-top: 1px solid var(--rule-dark);
  margin-top: 2.2rem;
  padding-top: 0.8rem;
  max-width: 62ch;
}

.footnote .fn-mark {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.footnote p { font-size: 0.92rem; color: var(--ink-soft); margin: 0.3rem 0 0; }

/* ---------- Order action: one per page ---------- */

.order-row {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin: 2.4rem 0 0.8rem;
  padding: 1.3rem 0 1.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.6rem;
}

a.order-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.7rem;
  border: 1px solid var(--accent);
  border-radius: 0;
}

a.order-btn:hover { background: var(--ink); border-color: var(--ink); }

.order-row .order-note { font-size: 0.92rem; color: var(--muted); margin: 0; max-width: 44ch; }

/* ---------- Questions page ---------- */

.qa { border-top: 1px solid var(--rule-dark); margin-top: 1.6rem; }

.qa .lrow { grid-template-columns: 4.5rem 1fr; }

.qa .qno {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: bold;
  padding-top: 0.3rem;
}

/* ---------- Colophon footer ---------- */

.colophon {
  border-top: 5px double var(--ink);
  margin-top: 3.5rem;
  padding-top: 1.3rem;
}

.colophon .col-name {
  font-size: 1.25rem;
  font-weight: bold;
  margin: 0 0 0.4rem;
}

.colophon p { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 0.45rem; max-width: 68ch; }

.colophon .col-links {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 0.9rem;
}

.colophon .col-links a { color: var(--ink-soft); text-decoration: none; }
.colophon .col-links a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 0.25em; }
.colophon .col-links span { color: var(--rule-dark); padding: 0 0.5rem; }

/* ---------- Phone width ---------- */

@media (max-width: 44rem) {
  .wrap { padding: 0 1.1rem 3.5rem; }
  .dateline { flex-direction: column; gap: 0.2rem; }
  .tagline-row { flex-direction: column; gap: 0.25rem; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
  .stat { padding-bottom: 0.9rem; }
  .lrow, .qa .lrow { grid-template-columns: 1fr; gap: 0.3rem; }
  .lkey { padding-top: 0; }
  .navrow a { padding: 0.55rem 0.7rem; }
  .specimen { padding: 1.1rem 1rem 1.2rem; }
  .ledger-table td.num, .ledger-table th.num { white-space: normal; }
}
