/* ---------------------------------------------------------------------
   The front page. site.css sets the type and the palette for the whole
   site; this file adds only what a front page needs and the policy
   pages do not — a masthead with corners, a lead with a photograph,
   the departments, and the figures.

   Every colour here comes from a token in site.css, so both themes
   follow without a second palette.
   --------------------------------------------------------------------- */

.front { max-width: 62rem; margin: 0 auto; }

/* ---- masthead. A paper prints its edition and its price in the
        corners of the nameplate; ours prints the platforms and the
        fact that it costs nothing to read. ---- */
.masthead { padding-top: 38px; }
.masthead-corners {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
  font-family: "Arimo", Arial, Helvetica, sans-serif;
  font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.masthead h1 {
  font-family: "Playfair Display", "Tinos", Times, serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 9vw, 4.6rem);
  letter-spacing: 0.015em;
  line-height: 0.96;
  margin: 0;
  text-align: center;
}
.masthead .rule-heavy { border-top: 3px solid var(--rule-firm); margin-top: 16px; }
.masthead .rule-hair  { border-top: 1px solid var(--rule); margin-top: 2.5px; }

/* The standing line the app itself prints under its own masthead. */
.dateline {
  display: flex; flex-wrap: wrap; gap: 6px 20px;
  justify-content: space-between; align-items: baseline;
  font-family: "Arimo", Arial, Helvetica, sans-serif;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}
.dateline .independent { color: var(--press-red); }

/* ---- the lead ---- */
.lead {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: start;
  margin-top: 36px;
}
@media (max-width: 52rem) { .lead { grid-template-columns: 1fr; gap: 28px; } }

.kicker {
  font-family: "Arimo", Arial, Helvetica, sans-serif;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--press-red);
  margin: 0 0 10px;
}
.lead h2 {
  font-family: "Playfair Display", "Tinos", Times, serif;
  font-weight: 700;
  font-size: clamp(2rem, 5.4vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -0.005em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.standfirst {
  font-style: italic;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.5;
  margin: 0 0 18px;
  max-width: 34rem;
}
.lead-body { max-width: 34rem; }
.lead-body p { margin: 0 0 13px; }

/* A real drop cap, because the app opens on a printed page and so
   should the site. */
.lead-body > p:first-of-type::first-letter {
  font-family: "Playfair Display", "Tinos", Times, serif;
  font-weight: 700;
  float: left;
  font-size: 3.5em;
  line-height: 0.78;
  padding: 0.06em 0.1em 0 0;
  color: var(--press-red);
}

/* ---- the photograph ---- */
.press { margin: 0; }
/* The screen is printed whole, never cropped — it is the argument the
   page is making. Held to a column width so it sits with the text. */
.press { max-width: 20rem; margin-inline: auto; }
.press img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--rule-firm);
  background: var(--panel);
}
.press figcaption {
  font-family: "Arimo", Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
  padding-top: 7px;
  margin-top: 7px;
  border-top: 1px solid var(--rule);
}
.press figcaption b {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

/* ---- getting it ---- */
.getit {
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: stretch;
  margin-top: 22px;
}
.badge {
  display: flex; flex-direction: column; justify-content: center;
  gap: 2px;
  text-decoration: none;
  border: 1.5px solid var(--rule-firm);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 20px;
  min-width: 10.5rem;
}
.badge .small {
  font-family: "Arimo", Arial, Helvetica, sans-serif;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.72;
}
.badge .big {
  font-family: "Tinos", Times, serif;
  font-size: 1.12rem; font-weight: 700;
  line-height: 1.15;
}
.badge:hover, .badge:focus-visible {
  background: var(--press-red);
  border-color: var(--press-red);
  color: #FFF;
}
.badge:focus-visible { outline: 2px solid var(--press-red); outline-offset: 3px; }
.getit-note {
  font-family: "Arimo", Arial, Helvetica, sans-serif;
  font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  margin: 10px 0 0;
}

/* ---- section rules ---- */
.section { margin-top: 52px; }
.section-head {
  display: flex; align-items: baseline; gap: 14px;
  border-bottom: 2.5px solid var(--rule-firm);
  padding-bottom: 7px;
  margin: 0 0 20px;
}
.section-head h3 {
  font-family: "Arimo", Arial, Helvetica, sans-serif;
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  margin: 0; color: var(--ink);
}
.section-head .aside {
  font-family: "Arimo", Arial, Helvetica, sans-serif;
  font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  margin-left: auto;
}

/* ---- departments. Six, because the app has six, and they are
        parallel departments rather than a sequence — so no numbers. ---- */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
@media (max-width: 52rem) { .dept-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 34rem) { .dept-grid { grid-template-columns: 1fr; } }
.dept {
  padding: 18px 20px 20px;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.dept:nth-child(3n) { border-right: 0; }
@media (max-width: 52rem) {
  .dept:nth-child(3n) { border-right: 1px solid var(--rule); }
  .dept:nth-child(2n) { border-right: 0; }
}
@media (max-width: 34rem) { .dept { border-right: 0 !important; } }
.dept h4 {
  font-family: "Arimo", Arial, Helvetica, sans-serif;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--press-red);
  margin: 0 0 9px;
}
.dept p { margin: 0; font-size: 0.99rem; line-height: 1.55; }

/* ---- the figures. Real counts, printed the way a paper prints a
        table of returns. ---- */
.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  border: 1px solid var(--rule-firm);
}
.fig {
  padding: 16px 18px;
  border-right: 1px solid var(--rule);
}
.fig:last-child { border-right: 0; }
@media (max-width: 46rem) { .fig { border-right: 0; border-bottom: 1px solid var(--rule); } }
.fig .n {
  font-family: "Playfair Display", "Tinos", Times, serif;
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  display: block;
}
.fig .l {
  font-family: "Arimo", Arial, Helvetica, sans-serif;
  font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 7px;
  line-height: 1.45;
}

/* ---- the plates: further screenshots, captioned. ---- */
.plates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 24px;
}
.plates figure { margin: 0; }
.plates img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--rule-firm);
  background: var(--panel);
}
.plates figcaption {
  font-family: "Arimo", Arial, Helvetica, sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid var(--rule);
}
.plates figcaption b {
  display: block;
  color: var(--press-red);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

/* ---- sources ---- */
.src-list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0 26px;
}
.src-list li {
  display: flex; justify-content: space-between; gap: 14px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.97rem;
  margin: 0;
}
.src-list .dom {
  font-family: "Arimo", Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}
.src-note {
  font-size: 0.93rem; font-style: italic;
  color: var(--muted); margin: 16px 0 0;
}

/* ---- the icon plate next to the closing call ---- */
.closing {
  display: flex; flex-wrap: wrap; align-items: center; gap: 22px;
  border: 1px solid var(--rule-firm);
  padding: 22px;
  margin-top: 52px;
  background: var(--panel);
}
.closing img {
  width: 76px; height: 76px; flex: none;
  border: 1px solid var(--rule);
}
.closing .words { flex: 1 1 16rem; }
.closing h3 {
  font-family: "Playfair Display", "Tinos", Times, serif;
  font-size: 1.5rem; font-weight: 700; margin: 0 0 6px;
  line-height: 1.15;
}
.closing p { margin: 0; color: var(--muted); font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
