/* ==========================================================================
   BEN LOVE — bnlv.com
   A broadsheet front page. No hero, no sticky bar, no stacked sections:
   everything competes on one dense multi-column sheet.
   One family (Archivo variable) doing all the work through its width and
   weight axes. Black ink on paper, with violet and mint as the two spot
   colours a small press would actually run.
   ========================================================================== */

:root {
  color-scheme: light;

  --paper:      #fbfaf8;
  --paper-2:    #f2f0ea;
  --ink:        #0f0f12;
  --ink-2:      #37373f;
  --muted:      #6e6e78;
  --rule:       #0f0f12;
  --rule-soft:  #d6d3ca;

  --violet:     #4b1a9e;
  --violet-2:   #2c0f63;
  --violet-wash:#efe9fc;
  --mint:       #93f0b5;

  --face: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --sheet: 1340px;
  --gap: clamp(1.1rem, 2vw, 1.9rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--face);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 900; line-height: 0.92; }

::selection { background: var(--mint); color: var(--ink); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }

/* Wood type: the width axis does the compressing, not a fake transform. */
.plate-name, .lead-head, .banner-head, .col-head, .reach-mail {
  font-stretch: 62%;
  font-variation-settings: "wdth" 62;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

.skip {
  position: absolute; left: 0.75rem; top: -5rem; z-index: 50;
  background: var(--ink); color: var(--paper);
  padding: 0.7rem 1rem; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  transition: top 0.16s ease;
}
.skip:focus { top: 0.75rem; }

/* The printed sheet itself. */
.sheet {
  max-width: var(--sheet);
  margin: clamp(0px, 2vw, 28px) auto;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  padding: clamp(1rem, 2.4vw, 2.25rem);
}

/* ---------------------------------------------------------- nameplate --- */

.plate { border-bottom: 4px solid var(--rule); padding-bottom: 0.5rem; }

.plate-over,
.folio {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.plate-over { border-bottom: 1px solid var(--rule); padding-bottom: 0.55rem; }

.plate-name {
  font-size: clamp(3.6rem, 17.5vw, 15rem);
  line-height: 0.78;
  text-align: center;
  padding-block: clamp(0.5rem, 1.4vw, 1.1rem);
  margin-inline: -0.02em;
}
.plate-name a { text-decoration: none; }

.folio {
  border-top: 1px solid var(--rule);
  border-bottom: 3px double var(--rule);
  padding-block: 0.55rem;
  color: var(--ink);
}
.folio-mid { color: var(--violet); font-weight: 700; letter-spacing: 0.1em; }

.inside {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.15rem;
  padding-top: 0.7rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.inside b { color: var(--violet); font-weight: 900; }
.inside a {
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-block: 4px;
  color: var(--ink-2);
}
.inside a:hover { border-bottom-color: var(--mint); color: var(--ink); }

/* ------------------------------------------------------------- shared --- */

.kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
}
.kicker-light { color: var(--mint); }

.col-head {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  padding-bottom: 0.35rem;
  border-bottom: 3px solid var(--rule);
}
.col-head-rule { color: var(--violet); }

.col-sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--rule-soft);
}

/* --------------------------------------------------------- the fold ---- */

.front {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3.4fr) minmax(0, 3.2fr);
  gap: 0 var(--gap);
  padding-top: 1.4rem;
}

/* Column rules, the way a paper separates stories. */
.dispatch, .rail {
  border-left: 1px solid var(--rule-soft);
  padding-left: var(--gap);
}

.lead     { grid-column: 1; }
.dispatch { grid-column: 2; }
.rail     { grid-column: 3; }

/* ---------------------------------------------------------- lead story -- */

.lead-head {
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  margin-top: 0.5rem;
}
.deck {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.32;
  font-weight: 500;
  color: var(--ink-2);
  margin-top: 0.9rem;
  max-width: 44ch;
}
.byline {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1rem;
  padding-block: 0.55rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.byline b { color: var(--ink); font-weight: 800; }

.lead-body {
  columns: 2;
  column-gap: var(--gap);
  column-rule: 1px solid var(--rule-soft);
  margin-top: 1.1rem;
  font-size: 0.95rem;
  color: var(--ink-2);
  text-align: justify;
  hyphens: auto;
}
.lead-body p { margin-bottom: 0.85rem; break-inside: avoid-column; }

.lead-body > p:first-child::first-letter {
  float: left;
  font-size: 4.6em;
  line-height: 0.74;
  font-weight: 900;
  font-stretch: 62%;
  font-variation-settings: "wdth" 62;
  color: var(--violet);
  padding: 0.06em 0.09em 0 0;
}

.cut { margin: 1.1rem 0 0; }
.cut img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: center 14%;
  filter: grayscale(1) contrast(1.12);
  border-bottom: 1px solid var(--rule);
}
.cut figcaption {
  font-size: 0.74rem;
  color: var(--muted);
  padding-top: 0.45rem;
  font-style: italic;
}

/* --------------------------------------------------------- dispatches --- */

.item { padding-block: 0.95rem; border-bottom: 1px solid var(--rule-soft); }
.item:last-child { border-bottom: 0; }

.stamp { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.slug {
  background: var(--violet);
  color: var(--paper);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.2rem 0.42rem;
}
.stamp time {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
.item h4 {
  font-size: 1.22rem;
  line-height: 1.06;
  margin-top: 0.5rem;
  font-stretch: 80%;
  font-variation-settings: "wdth" 80;
}
.item p:last-child { font-size: 0.88rem; color: var(--ink-2); margin-top: 0.4rem; }

/* Source line under a dispatch headline. */
.src { margin-top: 0.35rem; }
.src a {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--violet);
  text-decoration: none;
  border-bottom: 2px solid var(--mint);
  padding-block: 6px 4px;
}
.src a:hover { border-bottom-color: var(--violet); }

/* ---------------------------------------------------------- ads / rail --- */

.rail { display: flex; flex-direction: column; gap: 0.9rem; }

.ad { border: 2px solid var(--rule); padding: 0.85rem; }
.ad h4 {
  font-size: 1.3rem;
  line-height: 1.02;
  font-stretch: 80%;
  font-variation-settings: "wdth" 80;
  text-transform: uppercase;
}
.ad p { font-size: 0.85rem; color: var(--ink-2); margin-top: 0.4rem; }

.ad-book { display: flex; gap: 0.8rem; align-items: flex-start; }
.ad-book img { width: 84px; flex: 0 0 84px; border: 1px solid var(--rule); }
.ad-story img { aspect-ratio: 1; object-fit: cover; }
.ad-sub {
  font-size: 0.76rem !important;
  font-weight: 700;
  font-style: italic;
  color: var(--violet) !important;
  margin-top: 0.2rem !important;
}
.ad-meta {
  font-size: 0.64rem !important;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted) !important;
  margin-top: 0.55rem !important;
}

.ad-tag {
  font-size: 0.64rem !important;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet) !important;
  margin: 0 0 0.4rem !important;
}
.ad-hire { background: var(--violet-wash); border-color: var(--violet); }

.ad ul { margin: 0.6rem 0 0; padding: 0; list-style: none; }
.ad li {
  font-size: 0.8rem;
  color: var(--ink-2);
  padding: 0.3rem 0 0.3rem 0.85rem;
  border-top: 1px solid var(--rule-soft);
  position: relative;
}
.ad li::before {
  content: "";
  position: absolute; left: 0; top: 0.75rem;
  width: 5px; height: 5px; background: var(--violet);
}

.btn {
  display: inline-block;
  margin-top: 0.7rem;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  padding: 0.55rem 0.85rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.14s ease, color 0.14s ease;
}
.btn:hover { background: var(--violet); border-color: var(--violet); }
.btn-mint { background: var(--mint); color: var(--ink); border-color: var(--ink); }
.btn-mint:hover { background: var(--ink); color: var(--mint); }

.txt {
  display: inline-block;
  margin-top: 0.5rem;
  margin-right: 0.85rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  text-decoration: none;
  border-bottom: 2px solid var(--mint);
  padding-block: 4px 3px;
}
.txt:hover { border-bottom-color: var(--violet); }

/* ---------------------------------------------------------- projects --- */

.projects {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 3px double var(--rule);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 0.9rem;
}
.project-grid .ad { height: 100%; }

/* --------------------------------------------------------------- tape --- */

.tape {
  margin-top: 1.6rem;
  border-block: 3px double var(--rule);
  padding-block: 0.75rem;
}
.tape dl {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}
.tape div { padding-left: 0.75rem; border-left: 1px solid var(--rule-soft); }
.tape div:first-child { border-left: 0; padding-left: 0; }
.tape dt {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
.tape dd {
  margin: 0.15rem 0 0;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  font-weight: 900;
  font-stretch: 62%;
  font-variation-settings: "wdth" 62;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--violet);
}

/* ------------------------------------------------------------- banner --- */

.banner {
  margin-top: 1.6rem;
  background: var(--violet-2);
  color: #efeafd;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}
.banner-head {
  font-size: clamp(2rem, 5.4vw, 4.4rem);
  color: #fff;
  margin-top: 0.6rem;
  max-width: 22ch;
}
.banner-deck {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.4;
  max-width: 62ch;
  margin-top: 1rem;
  color: #d5cbf5;
}

.reasons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 var(--gap);
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(147, 240, 181, 0.35);
}
.reasons article { border-left: 1px solid rgba(147, 240, 181, 0.28); padding-left: var(--gap); }
.reasons article:first-child { border-left: 0; padding-left: 0; }
.reasons h3 {
  font-size: 1.18rem;
  line-height: 1.05;
  color: var(--mint);
  font-stretch: 80%;
  font-variation-settings: "wdth" 80;
  text-transform: uppercase;
}
.reasons p { font-size: 0.87rem; margin-top: 0.5rem; color: #cdc3ee; }

.banner-close {
  margin-top: 1.8rem;
  padding: 1rem 0 0;
  border-top: 3px double rgba(147, 240, 181, 0.5);
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.3;
  max-width: 52ch;
  color: #fff;
}

/* -------------------------------------------------------------- strip --- */

.strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 1.6rem;
}
.strip .ad { display: flex; flex-direction: column; align-items: flex-start; }
.strip .ad > .btn { margin-top: auto; }
.strip .ad > .txt:last-child { margin-top: auto; }

/* -------------------------------------------------------------- reach --- */

.reach { margin-top: 1.6rem; }
.reach-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 0.6rem var(--gap);
  align-items: end;
  padding-top: 0.9rem;
}
.reach-line {
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.15;
  max-width: 26ch;
}
.reach-mail {
  grid-row: 1 / span 2;
  grid-column: 2;
  font-size: clamp(1.4rem, 3.4vw, 2.6rem);
  color: var(--violet);
  text-decoration: none;
  border-bottom: 4px solid var(--mint);
  justify-self: start;
  line-height: 1.05;
}
.reach-mail:hover { border-bottom-color: var(--violet); }

.reach-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.reach-links a {
  display: inline-block;
  padding-block: 6px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-soft);
}
.reach-links a:hover { color: var(--violet); border-bottom-color: var(--violet); }

.colophon {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.25rem;
  margin-top: 1.6rem;
  padding-top: 0.7rem;
  border-top: 3px double var(--rule);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------- 404 --- */

.error-sheet { min-height: calc(100vh - 56px); }
.error-page {
  max-width: 780px;
  padding: clamp(3rem, 10vw, 8rem) 0;
}
.error-page .lead-head { font-size: clamp(2.8rem, 8vw, 6.5rem); }
.error-page .deck { max-width: 54ch; }

/* ------------------------------------------------------------ tablet ---- */

@media (max-width: 1080px) {
  .front { grid-template-columns: 1fr; }
  .lead, .dispatch, .rail { grid-column: 1; }
  .dispatch {
    border-left: 0;
    padding-left: 0;
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 3px double var(--rule);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 var(--gap);
  }
  .dispatch .col-head,
  .dispatch .col-sub { grid-column: 1 / -1; }
  .dispatch .item { padding-right: var(--gap); }
  .dispatch .item:nth-of-type(even) {
    border-left: 1px solid var(--rule-soft);
    padding-left: var(--gap);
    padding-right: 0;
  }
  /* The rail drops beneath both and runs as a horizontal row of ads. */
  .rail {
    grid-column: 1 / -1;
    border-left: 0;
    padding-left: 0;
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 3px double var(--rule);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--gap);
  }
  .rail .col-head { grid-column: 1 / -1; }
  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem var(--gap); }
  .reasons article:nth-child(3) { border-left: 0; padding-left: 0; }
  .tape dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 0.75rem; }
  .tape div:nth-child(4) { border-left: 0; padding-left: 0; }
}

/* ------------------------------------------------------------ phone ----- */

@media (max-width: 720px) {
  .sheet { margin: 0; border: 0; }
  .front { grid-template-columns: 1fr; }
  .lead, .dispatch, .rail { grid-column: 1; }
  .dispatch {
    display: block;
    border-left: 0;
    padding-left: 0;
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 3px double var(--rule);
  }
  .dispatch .item,
  .dispatch .item:nth-of-type(even) {
    border-left: 0;
    padding-left: 0;
    padding-right: 0;
  }
  /* Hyphenation earns its keep in justified columns, not ragged-right. */
  .lead-body { columns: 1; text-align: left; hyphens: none; }
  .plate-over, .folio { justify-content: flex-start; }
  .folio-mid { order: 3; flex-basis: 100%; }
  .strip { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .reasons { grid-template-columns: 1fr; }
  .reasons article { border-left: 0; padding-left: 0; }
  .tape dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tape div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .reach-grid { grid-template-columns: 1fr; align-items: start; }
  .reach-mail { grid-row: auto; grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; }
}

@media print {
  body { background: #fff; }
  .sheet { border: 0; margin: 0; max-width: none; }
  .btn, .inside { display: none; }
}
