/* DeadlineScan site v1
   Direction: a two-colour print job. Ink on faintly green stock, one spot red used only where
   a date is final, machine output set as greenbar continuous-form paper. Monospace is reserved
   for things a machine said or a machine must be told; prose is a system sans. */

:root {
  color-scheme: light dark;

  --paper: #f1f3ee;
  --surface: #ffffff;
  --bar: #e6ece0;
  --rule: #c4ccbe;
  --rule-soft: #dde2d7;
  --ink: #1e2522;
  --ink-2: #59635b;
  --spot: #9b2226;
  --spot-face: #f7e7e5;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --measure: 42rem;
  --line: 21px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101512;
    --surface: #171d19;
    --bar: #1e2620;
    --rule: #313b34;
    --rule-soft: #262f29;
    --ink: #dde4dd;
    --ink-2: #97a29a;
    --spot: #e8646b;
    --spot-face: #2a1a1b;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}

.masthead .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.wordmark {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.wordmark::before {
  content: "";
  width: 3px;
  height: 1.1em;
  background: var(--spot);
  display: inline-block;
}

.masthead nav {
  margin-left: auto;
  font-size: 0.9375rem;
}

.masthead nav a {
  margin-left: 1.1rem;
}

.masthead nav a:first-child {
  margin-left: 0;
}

/* ---------- type ---------- */

h1,
h2,
h3 {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.7rem, 1.15rem + 2.2vw, 2.4rem);
  margin-top: 2.75rem;
}

h2 {
  font-size: 1.25rem;
  margin-top: 3rem;
  padding-top: 0.85rem;
  border-top: 2px solid var(--ink);
}

h3 {
  font-size: 1.0625rem;
  margin-top: 2rem;
}

p,
ul,
ol,
dl,
table,
figure {
  margin: 0 0 1.1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.35rem;
}

.lede {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink);
}

.note {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

a {
  color: var(--ink);
  text-decoration-color: var(--spot);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1.5px;
}

a:hover {
  color: var(--spot);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--spot);
  outline-offset: 3px;
}

code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--bar);
  padding: 0.1em 0.3em;
  border-radius: 2px;
}

strong {
  font-weight: 650;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  position: static;
  display: inline-block;
  padding: 0.5rem 1rem;
}

/* ---------- machine output: greenbar continuous-form paper ---------- */

pre {
  font-family: var(--mono);
  font-size: 13px;
  line-height: var(--line);
  margin: 0 0 1.25rem;
  padding: var(--line) 1rem;
  overflow-x: auto;
  background-color: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ink);
  tab-size: 4;
}

/* Greenbar stripes track the line box exactly: 13px/21px type, 21px block padding.
   The clip list is per-layer — the image is clipped to the content box, the background
   colour (always the last value) keeps the whole border box. */
pre.greenbar {
  background-image: repeating-linear-gradient(
    to bottom,
    var(--bar) 0,
    var(--bar) var(--line),
    transparent var(--line),
    transparent calc(var(--line) * 2)
  );
  background-origin: content-box;
  background-clip: content-box, border-box;
}

/* A <code> inside a <pre> must not carry the inline-code chip styling: it would paint a
   solid block over the stripes and add a second layer of padding. */
pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

pre b {
  font-weight: 600;
  color: var(--spot);
}

figure {
  margin-inline: 0;
}

figcaption {
  font-size: 0.875rem;
  color: var(--ink-2);
  margin-top: -0.6rem;
}

/* ---------- the deadline rule ---------- */

.rule-strip {
  list-style: none;
  padding: 0;
  margin: 2rem 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 1.25rem;
}

.rule-strip li {
  position: relative;
  margin: 0;
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
}

.rule-strip li.runway {
  border-top-style: dashed;
}

.rule-strip li.final {
  border-top-color: var(--spot);
}

.rule-strip li::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--ink);
}

.rule-strip li.final::before {
  background: var(--spot);
}

.rule-strip time {
  display: block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.35rem;
}

.rule-strip li.final time {
  color: var(--spot);
}

.rule-strip p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-2);
}

@media (max-width: 40rem) {
  .rule-strip {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .rule-strip li {
    padding-top: 0;
    padding-left: 1rem;
    border-top: 0;
    border-left: 2px solid var(--ink);
  }

  .rule-strip li.runway {
    border-left-style: dashed;
  }

  .rule-strip li.final {
    border-left-color: var(--spot);
  }

  .rule-strip li::before {
    top: 0;
    left: -6px;
  }
}

/* How to obtain the tool: the one instruction on the page a reader may need before any other. */
.getit {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ink);
}

/* ---------- verbatim product law ---------- */

.law {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--spot);
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.6;
}

.law p {
  margin: 0 0 0.6rem;
}

.law p:last-child {
  margin-bottom: 0;
}

/* ---------- tables ---------- */

.scroller {
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
  margin-bottom: 0;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid var(--rule-soft);
}

thead th {
  border-bottom: 2px solid var(--ink);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.8125rem;
}

td.num,
th.num {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  padding-right: 0;
}

/* ---------- services ---------- */

.offer {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--rule);
}

.offer h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.price {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--spot);
  display: block;
  margin-bottom: 0.75rem;
}

.offer .description {
  font-size: 1.0625rem;
}

.btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.7rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--ink);
}

.btn:hover {
  background: var(--paper);
  color: var(--ink);
}

.caption {
  margin: 0.6rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-2);
}

/* ---------- sources ---------- */

.sources {
  font-size: 0.9375rem;
}

.sources li {
  margin-bottom: 0.6rem;
}

.sources a {
  word-break: break-word;
}

/* ---------- footer: the report footer, as the tool prints it ---------- */

.report-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--rule);
  background: var(--surface);
  padding: 2rem 0 3rem;
}

.report-footer .candor {
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0 0 0.9rem;
  padding-left: 1rem;
  border-left: 3px solid var(--spot);
}

.report-footer p {
  font-size: 0.9375rem;
}

.report-footer nav {
  font-size: 0.9375rem;
}

.report-footer nav a {
  display: inline-block;
  margin: 0 1.1rem 0.35rem 0;
}

main {
  padding-bottom: 1rem;
}
