/* The Daily - homepage (EN /, ES /es).
   Set like the front page of a small daily paper: paper, ink, rules,
   one accent color used sparingly. Other pages keep style.css. */

:root {
  --paper: #f5efe4;
  --paper-2: #ece3d3;
  --ink: #1e1813;
  --ink-2: #4a3f35;
  --ink-3: #7a6c5d;
  --rule: #cdbfa9;
  --accent: #a8431d;      /* rust, the only color */
  --night: #16110d;       /* the app's own background, for the screenshots band */
  --serif-display: "Fraunces", Georgia, serif;
  --serif-text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --col: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif-text);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: var(--col); margin: 0 auto; padding: 0 20px; }

/* ---------- top strip ---------- */
.strip {
  font-family: var(--sans); font-size: 13px; color: var(--ink-2);
  border-bottom: 1px solid var(--rule);
}
.strip .wrap { display: flex; justify-content: space-between; align-items: center; height: 40px; gap: 16px; }
.strip nav { display: flex; gap: 18px; align-items: center; }
.strip a { text-decoration: none; }
.strip a:hover { color: var(--accent); }
.strip .get { color: var(--accent); font-weight: 600; }

/* ---------- nameplate ---------- */
.nameplate { text-align: center; padding: 28px 0 0; }
.nameplate h1 {
  font-family: var(--serif-display);
  font-weight: 700;
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 1;
  font-size: clamp(64px, 13vw, 148px);
  line-height: 0.9;
  letter-spacing: -0.035em;
}
.nameplate .mark { width: 44px; height: 44px; border-radius: 10px; margin: 0 auto 14px; }
.dateline {
  margin-top: 18px;
  border-top: 3px double var(--ink);
  border-bottom: 1px solid var(--ink);
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2);
}
.dateline .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.dateline span:nth-child(2) { text-align: center; }
@media (max-width: 640px) {
  .dateline .wrap { flex-direction: column; align-items: center; gap: 2px; }
}

/* ---------- front page ---------- */
.front { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; padding: 40px 0 56px; }
@media (max-width: 860px) { .front { grid-template-columns: 1fr; gap: 32px; } }

.kicker {
  font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
}
.lead-story h2 {
  font-family: var(--serif-display); font-weight: 600;
  font-variation-settings: "opsz" 96;
  font-size: clamp(34px, 5vw, 54px); line-height: 1.04; letter-spacing: -0.02em;
  margin: 10px 0 16px;
}
.verse { border-left: 3px solid var(--accent); padding: 2px 0 2px 16px; margin: 0 0 18px; }
.verse p { font-style: italic; font-size: 20px; color: var(--ink-2); }
.verse cite { display: block; margin-top: 6px; font-style: normal; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-3); }
.declaration { font-size: 19px; margin-bottom: 22px; }
.declaration span { display: block; }
.lead-story .more { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }
.lead-story .note { margin-top: 26px; font-size: 16px; color: var(--ink-2); max-width: 34em; }

.phone-figure { margin: 0; }
.phone-figure img {
  width: 100%; max-width: 320px; margin: 0 auto;
  border-radius: 34px; border: 8px solid var(--ink);
}
.phone-figure figcaption { text-align: center; margin-top: 12px; font-size: 14px; font-style: italic; color: var(--ink-3); }

.get-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 28px; }
.get-row .badge img { height: 50px; width: auto; }
.get-row small { font-family: var(--sans); font-size: 13px; color: var(--ink-3); }

/* ---------- sections ---------- */
.section { border-top: 1px solid var(--ink); padding: 40px 0 48px; }
.section-title {
  font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 22px;
}

/* the five parts, set like a table of contents */
.toc { list-style: none; max-width: 640px; }
.toc li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px dotted var(--rule); }
.toc b { font-family: var(--serif-display); font-weight: 600; font-size: 22px; }
.toc .what { color: var(--ink-2); font-size: 16px; flex: 1; }
.toc .time { font-family: var(--sans); font-size: 13px; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 560px) { .toc li { flex-wrap: wrap; } .toc .what { flex-basis: 100%; order: 3; } }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; gap: 0; } }
.cols p { margin-bottom: 16px; }
.cols p b { font-family: var(--serif-display); font-weight: 600; }
.dropcap::first-letter {
  float: left; font-family: var(--serif-display); font-weight: 700;
  font-size: 68px; line-height: 0.85; padding: 6px 8px 0 0; color: var(--accent);
}

/* screenshots on the app's own dark background */
.night { background: var(--night); color: #efe6d8; border-top: none; }
.night .section-title { color: #d9c9b2; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 760px) {
  .shots { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .shots figure { scroll-snap-align: start; }
}
.shots figure { margin: 0; }
.shots img { border-radius: 22px; }
.shots figcaption { margin-top: 10px; font-size: 15px; color: #c9b9a2; font-style: italic; }

.price { font-size: 16px; color: var(--ink-2); max-width: 40em; }

/* ---------- closing ---------- */
.closing { text-align: center; border-top: 3px double var(--ink); padding: 48px 0 56px; }
.closing h2 { font-family: var(--serif-display); font-weight: 600; font-size: clamp(30px, 4.5vw, 44px); letter-spacing: -0.02em; line-height: 1.1; }
.closing p { margin: 10px auto 22px; color: var(--ink-2); max-width: 30em; }
.closing .actions { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; }
.closing .read {
  font-family: var(--sans); font-size: 15px; font-weight: 600; text-decoration: none;
  background: var(--ink); color: var(--paper); padding: 13px 20px; border-radius: 6px;
}
.closing .read:hover { background: var(--accent); }
.closing .badge img { height: 48px; width: auto; }

footer { border-top: 1px solid var(--rule); font-family: var(--sans); font-size: 13px; color: var(--ink-3); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 18px; padding-bottom: 28px; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--accent); }

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

@media (max-width: 600px) {
  .strip .wrap > span { display: none; }
  .strip .wrap { justify-content: center; }
  .strip nav { gap: 14px; white-space: nowrap; font-size: 12.5px; }
}
