/* ==========================================================================
   DAILY NEWS — newspaper layout
   ========================================================================== */

:root {
  --page: #ffffff;
  --ink: #111111;
  --body: #1d1d1b;
  --muted: #55554f;
  --green: #3f5230;
  --green-bar: #56673f;
  --panel: #efeee9;
  --rule: #111111;
  --hair: #c9c8c2;
  --serif: "Playfair Display", "Iowan Old Style", "Times New Roman", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --gap: 1.5rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

.section { scroll-margin-top: 1rem; }

body {
  margin: 0;
  padding: clamp(0px, 3vw, 40px);
  background: linear-gradient(160deg, #d5d7ce 0%, #c3c6bb 45%, #b6b9ad 100%);
  background-attachment: fixed;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--body);
}

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

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

.paper {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(1.25rem, 3.5vw, 3rem);
  background: var(--page);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
}

/* ----------------------------------------------------------- masthead ---- */

.topbar {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--rule);
  font-size: 12px;
}

.topbar__tag {
  flex: 1;
  padding: .6rem 1.1rem;
  background: var(--green-bar);
  color: #fff;
  letter-spacing: .01em;
}

.topbar__date {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .6rem 1.4rem;
  border-left: 1px solid var(--rule);
  white-space: nowrap;
}

.topbar__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
  flex: none;
}

.logo {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2.5rem);
  margin-top: 1.6rem;
}

.logo__issue { flex: none; }

.logo__vol {
  display: block;
  font-size: 11.5px;
  letter-spacing: .02em;
  margin-bottom: -.1em;
}

.logo__num {
  display: block;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: .95;
  color: var(--green);
}

.logo__name {
  margin: 0;
  flex: 1;
  text-align: right;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.2rem, 9.6vw, 7.6rem);
  line-height: .84;
  letter-spacing: .005em;
  text-transform: uppercase;
  color: var(--ink);
}

/* -------------------------------------------------------------- rules ---- */

.rule {
  height: 0;
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 1rem 0;
}

.rule--double {
  height: 5px;
  border-top: 4px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 1rem 0;
}

.rule--thin { margin: .75rem 0; }

/* ---------------------------------------------------------------- nav ---- */

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .35rem 1.1rem;
  padding: .15rem 0 .35rem;
  font-family: var(--serif);
  font-size: clamp(15px, 1.7vw, 20px);
  font-weight: 700;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  transition: color .15s ease;
}

.nav a:hover { color: var(--green); }

.nav__sep {
  color: #9aa08f;
  font-weight: 400;
  user-select: none;
}

/* ------------------------------------------------------------ headings --- */

.h-xl,
.h-lg,
.h-md,
.h-sm {
  font-family: var(--serif);
  font-weight: 800;
  color: var(--green);
  margin: 0 0 .5rem;
  line-height: 1.12;
  letter-spacing: -.005em;
}

.h-xl { font-size: clamp(1.75rem, 3.6vw, 2.7rem); }
.h-lg { font-size: clamp(1.4rem, 2.6vw, 1.95rem); }
.h-md { font-size: clamp(1.15rem, 1.9vw, 1.4rem); }
.h-sm { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--ink); }

.h-ink { color: var(--ink); }

/* --------------------------------------------------------------- text ---- */

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

.lede { font-size: 14px; }

.col > * + .h-lg,
.col > * + .h-md,
.col > * + .h-sm { margin-top: 1.1rem; }

/* ------------------------------------------------------------ sections --- */

.section { margin-top: 2.4rem; }

.section__label {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: .4rem;
}

.section__rule {
  height: 5px;
  border: 0;
  border-top: 4px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 0 0 1.4rem;
}

/* --------------------------------------------------------------- grid ---- */

.grid {
  display: grid;
  gap: var(--gap);
  align-items: start;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }

.stack > * + * { margin-top: 1rem; }

/* ------------------------------------------------------------- figures --- */

.figure { margin: 0; }

.figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.figure--wide img { aspect-ratio: 16 / 10; }
.figure--tall img { aspect-ratio: 3 / 4; }
.figure--sq img { aspect-ratio: 1 / 1; }
.figure--strip img { aspect-ratio: 21 / 9; }

.figure figcaption {
  margin-top: .45rem;
  font-size: 11.5px;
  color: var(--muted);
}

/* --------------------------------------------------------- panel / quote - */

.panel {
  background: var(--panel);
  padding: 1.1rem 1.2rem;
  font-size: 13px;
}

.panel--caps {
  font-family: var(--serif);
  font-size: 13.5px;
  line-height: 1.45;
}

.pull {
  background: var(--panel);
  padding: 1.2rem;
}

.pull__text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.4;
  color: var(--green);
  margin: 0;
}

.pull__line {
  height: 0;
  border: 0;
  border-top: 1px solid var(--ink);
  margin: 1rem 0;
  width: 60%;
}

/* ----------------------------------------------------------------- Q&A --- */

.qa { font-size: 13px; }

.qa__q {
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 .35em;
}

.qa + .qa { margin-top: 1rem; }

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

.footer {
  margin-top: 2.6rem;
  padding-top: 1rem;
  border-top: 4px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  font-size: 12px;
  color: var(--muted);
}

.footer__brand {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .02em;
}

/* --------------------------------------------------------- responsive ---- */

@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .span-3 { grid-column: span 2; }
}

@media (max-width: 620px) {
  body { font-size: 14px; }

  .topbar { flex-direction: column; }
  .topbar__date {
    border-left: 0;
    border-top: 1px solid var(--rule);
    justify-content: center;
  }

  .logo {
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;
  }
  .logo__name { text-align: left; }

  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }

  .span-2,
  .span-3 { grid-column: span 1; }
}

/* -------------------------------------------------------------- print ---- */

@media print {
  body { background: #fff; padding: 0; }
  .paper { box-shadow: none; max-width: none; padding: 0; }
}
