/* ================================================================
   THE MONITOR — SHARED STYLESHEET
   ================================================================
   Every page on the site (homepage, pitch page, every article page)
   links to this one file. To restyle the whole site — background
   shade, colors, fonts, spacing — edit the values in :root or the
   rules below, save, and every page updates on its own.

   Structure of this file:
     1. Fonts
     2. Design tokens (:root variables)
     3. Base reset
     4. Layout helpers (.wrap / .wrap-narrow)
     5. Masthead + footer (shared across every page)
     6. Homepage-only sections
     7. Article template
     8. Pitch page

   Sections 6-8 only affect pages that contain that markup, so it's
   safe for all of it to live in one file.
   ================================================================ */


/* ----------------------------------------------------------------
   1. FONTS
   ---------------------------------------------------------------- */
@font-face{
  font-family:'Abril Display';
  src:url('fonts/AbrilDisplay-Bold.otf') format('opentype');
  font-weight:700;
  font-style:normal;
}
@font-face{
  font-family:'Abril Display';
  src:url('fonts/AbrilDisplay-BoldItalic.otf') format('opentype');
  font-weight:700;
  font-style:italic;
}
@font-face{
  font-family:'Newsreader';
  src:url('fonts/Newsreader-Variable.ttf') format('truetype-variations');
  font-weight:200 900;
  font-style:normal;
}
@font-face{
  font-family:'Newsreader';
  src:url('fonts/Newsreader-Italic-Variable.ttf') format('truetype-variations');
  font-weight:200 900;
  font-style:italic;
}
@font-face{
  font-family:'Polymath Text';
  src:url('fonts/PolymathText-Bold.otf') format('opentype');
  font-weight:700;
  font-style:normal;
}


/* ----------------------------------------------------------------
   2. DESIGN TOKENS — the whole site's palette lives here.
   Change --paper to shift the background shade everywhere at once.
   ---------------------------------------------------------------- */
:root{
  --paper: #fffcf3;
  --paper-dim: #f8f3e7;
  --ink: #151212;
  --charcoal: #4a423c;
  --charcoal-soft: #756a5f;
  --rose: #7a1f22;
  --rose-dim: #601819;
  --line: #d9cba8;
  --line-dark: #151212;

  --font-display: 'Abril Display', serif;
  --font-body: 'Newsreader', serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-byline: 'Polymath Text', var(--font-display), serif;
}


/* ----------------------------------------------------------------
   3. BASE RESET
   ---------------------------------------------------------------- */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  font-optical-sizing:auto;
  -webkit-font-smoothing:antialiased;
}
a{ color:inherit; }
::selection{ background:var(--rose); color:var(--paper); }
:focus-visible{ outline:2px solid var(--rose); outline-offset:2px; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .status-eye{ animation:none; }
}


/* ----------------------------------------------------------------
   4. LAYOUT HELPERS
   .wrap        — the site's standard content width (1180px). Used
                  by the homepage's sections and by every masthead
                  and footer.
   .wrap-narrow — a column width for reading-heavy pages (760px).
                  Used by the pitch page and the article template.
   ---------------------------------------------------------------- */
.wrap{ max-width:1180px; margin:0 auto; padding:0 28px; }
.wrap-narrow{ max-width:760px; margin:0 auto; padding:0 28px; }
main > .wrap-narrow{ padding-top:48px; padding-bottom:60px; }


/* ----------------------------------------------------------------
   5. MASTHEAD + FOOTER — shared on every page.
   The homepage adds nav.top-nav + .signal-strip under the masthead,
   and uses footer.dark. Simpler pages (pitch, articles) just get
   the logo + back-link and a plain footer line — same base rules.
   ---------------------------------------------------------------- */
header.masthead{
  border-bottom:1px solid var(--line-dark);
  background:var(--paper);
  position:relative;
  z-index:5;
}
.masthead-top{
  max-width:1180px;
  margin:0 auto;
  padding:24px 28px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:nowrap;
}
.logo{
  font-family:var(--font-display);
  font-weight:900;
  font-size:clamp(1.9rem, 4vw, 2.7rem);
  letter-spacing:-0.01em;
  text-decoration:none;
  color:var(--ink);
  white-space:nowrap;
  flex-shrink:0;
}
.logo span{ color:var(--rose); }
.logo .eye-o{
  display:inline-block;
  height:0.85em;
  width:auto;
  vertical-align:-0.14em;
  margin:0 0.02em;
  transform:translateY(-2px);
}
.back-link{
  font-family:var(--font-mono);
  font-size:0.78rem;
  letter-spacing:0.03em;
  text-transform:uppercase;
  text-decoration:none;
  color:var(--charcoal);
  border-bottom:1px solid transparent;
}
.back-link:hover{ color:var(--ink); border-color:var(--ink); }

/* homepage-only: nav row + "live" status strip under the masthead */
nav.top-nav{
  display:flex;
  align-items:center;
  gap:22px;
  font-family:var(--font-mono);
  font-size:0.76rem;
  letter-spacing:0.03em;
  text-transform:uppercase;
}
nav.top-nav a{
  text-decoration:none;
  color:var(--charcoal);
  padding-bottom:2px;
  border-bottom:1px solid transparent;
  transition:border-color .15s ease, color .15s ease;
}
nav.top-nav a:hover{ color:var(--ink); border-color:var(--ink); }
nav.top-nav a.btn-submit{
  font-family:var(--font-mono);
  font-size:0.76rem;
  letter-spacing:0.03em;
  text-transform:uppercase;
  text-decoration:none;
  color:var(--paper);
  background:var(--ink);
  padding:9px 16px;
  border-radius:2px;
  border:1px solid var(--ink);
  transition:background .15s ease, color .15s ease;
}
nav.top-nav a.btn-submit:hover{
  background:var(--rose);
  border-color:var(--rose);
  color:var(--paper);
}

.mobile-status{ display:none; }

.signal-strip{
  max-width:1180px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  font-family:var(--font-mono);
  font-size:0.7rem;
  letter-spacing:0.04em;
  color:var(--charcoal-soft);
  border-top:1px solid var(--line);
  padding:8px 28px;
  flex-wrap:wrap;
}
.signal-strip .live{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--charcoal);
}
.status-eye{
  height:11px;
  width:auto;
  animation:pulse 2.2s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{ opacity:1; }
  50%{ opacity:0.35; }
}

.meta-row{
  font-family:var(--font-mono);
  font-size:0.72rem;
  letter-spacing:0.03em;
  text-transform:uppercase;
  color:var(--charcoal-soft);
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

/* footer base — plain line, used as-is by the pitch page and every
   article page */
footer{
  border-top:1px solid var(--line-dark);
  padding:30px 0 40px;
  font-family:var(--font-mono);
  font-size:0.72rem;
  color:var(--charcoal-soft);
}
footer a{ text-decoration:none; color:var(--charcoal-soft); }
footer a:hover{ color:var(--ink); }

/* footer.dark — homepage only: full-width dark band, two columns */
footer.dark{
  border-top:none;
  background:var(--ink);
  color:var(--paper);
}
footer.dark a{ color:var(--paper); opacity:0.75; }
footer.dark a:hover{ opacity:1; }
.footer-inner{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
}


/* ----------------------------------------------------------------
   6. HOMEPAGE-ONLY SECTIONS
   ---------------------------------------------------------------- */

/* HERO — full-bleed lead story */
section.hero-full{
  position:relative;
  min-height:88vh;
  display:flex;
  align-items:flex-end;
  background-color:var(--ink);
  background-size:cover;
  background-position:center;
  overflow:hidden;
}
section.hero-full::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(21,18,18,0.15) 0%, rgba(21,18,18,0.35) 45%, rgba(21,18,18,0.94) 100%),
    linear-gradient(90deg, rgba(21,18,18,0.55) 0%, rgba(21,18,18,0.05) 55%);
}
.hero-full-inner{
  position:relative;
  z-index:2;
  padding-top:64px;
  padding-bottom:56px;
  width:100%;
}
.hero-full-content{ max-width:760px; }
.hero-eyebrow{
  font-family:var(--font-mono);
  font-size:0.76rem;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:#e0a5a2;
  display:block;
  margin-bottom:16px;
}
.hero-full-content h1{
  font-family:var(--font-display);
  font-weight:900;
  font-size:clamp(2.4rem, 6vw, 4.4rem);
  line-height:1.02;
  letter-spacing:-0.01em;
  color:var(--paper);
  margin:0 0 20px;
}
.hero-full-content h1 a{ text-decoration:none; color:inherit; }
.hero-full-content h1 a:hover{ color:#e9c8c6; }
.hero-full-content p.dek{
  font-size:1.18rem;
  line-height:1.55;
  color:#d8cfc3;
  margin:0 0 20px;
  max-width:56ch;
}
.hero-full .meta-row{ color:#c9beb0; }

/* TOP STORIES — next 2 featured articles, as cards */
section.top-stories{
  padding:44px 0 40px;
  border-bottom:1px solid var(--line);
}
.top-stories h2{
  font-family:var(--font-mono);
  font-size:0.76rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--rose-dim);
  margin:0 0 22px;
}
.top-stories-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:34px;
}
@media (max-width:720px){
  .top-stories-grid{ grid-template-columns:1fr; }
}
.story-card{ display:flex; flex-direction:column; }
.story-media{
  display:block;
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  margin-bottom:14px;
}
.story-card h3{
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.4rem;
  line-height:1.18;
  margin:0 0 10px;
}
.story-card h3 a{ text-decoration:none; }
.story-card h3 a:hover{ color:var(--rose-dim); }
.story-card p{
  font-size:0.95rem;
  color:var(--charcoal);
  line-height:1.55;
  margin:0 0 10px;
  max-width:48ch;
}

/* INDEX — full article log + search */
section.index{ padding:44px 0 60px; }
.index-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:18px;
}
.index-head h2{
  font-family:var(--font-mono);
  font-size:1.05rem;
  letter-spacing:0.02em;
  text-transform:uppercase;
  margin:0;
  font-weight:500;
}
.search-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  font-family:var(--font-mono);
  font-size:0.78rem;
  color:var(--charcoal-soft);
}
#search{
  font-family:var(--font-mono);
  font-size:0.85rem;
  background:transparent;
  border:1px solid var(--line-dark);
  border-radius:2px;
  padding:8px 10px;
  width:220px;
  color:var(--ink);
}
#search::placeholder{ color:var(--charcoal-soft); }

table.log{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
}
table.log thead th:nth-child(1){ width:110px; }
table.log thead th:nth-child(3){
  width:150px;
  text-align:right;
  padding-right:10px;
}
table.log thead th{
  text-align:left;
  font-family:var(--font-mono);
  font-size:0.68rem;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--charcoal-soft);
  font-weight:500;
  padding:0 0 8px;
  border-bottom:1px solid var(--line-dark);
}
table.log td{
  padding:14px 10px 14px 0;
  border-bottom:1px solid var(--line);
  vertical-align:top;
}
table.log tr:hover td{ background:var(--paper-dim); }
td.col-date{
  font-family:var(--font-mono);
  font-size:0.78rem;
  color:var(--charcoal-soft);
  white-space:nowrap;
  width:110px;
}
td.col-title a{
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.05rem;
  text-decoration:none;
  color:var(--ink);
}
td.col-title a:hover{ color:var(--rose-dim); }
td.col-title p{
  margin:5px 0 0;
  font-size:0.88rem;
  line-height:1.55;
  color:var(--charcoal);
  max-width:78ch;
}
td.col-tag{
  font-family:var(--font-mono);
  font-size:0.7rem;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color:var(--rose-dim);
  white-space:nowrap;
  text-align:right;
  width:150px;
  overflow-wrap:break-word;
}
#empty-state{
  display:none;
  font-family:var(--font-mono);
  font-size:0.85rem;
  color:var(--charcoal-soft);
  padding:20px 0;
}

.pager{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding-top:26px;
  font-family:var(--font-mono);
  font-size:0.78rem;
}
.pager button{
  font-family:var(--font-mono);
  font-size:0.78rem;
  background:transparent;
  border:1px solid var(--line-dark);
  color:var(--ink);
  padding:7px 13px;
  border-radius:2px;
  cursor:pointer;
  transition:background .15s ease, color .15s ease;
}
.pager button:hover:not(:disabled){ background:var(--ink); color:var(--paper); }
.pager button:disabled{ opacity:0.35; cursor:default; }
.pager button.current{
  background:var(--rose);
  border-color:var(--rose);
  color:var(--paper);
  cursor:default;
}
.pager .pager-gap{ color:var(--charcoal-soft); padding:0 2px; }

/* PRINT ARCHIVE */
section.archive{ padding:44px 0; border-top:1px solid var(--line); }
section.archive h2{
  font-family:var(--font-mono);
  font-size:1.05rem;
  letter-spacing:0.02em;
  text-transform:uppercase;
  margin:0 0 18px;
  font-weight:500;
}
.archive-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));
  gap:14px;
}
.archive-item{
  display:block;
  text-decoration:none;
  border:1px solid var(--line-dark);
  padding:16px;
  color:var(--ink);
  transition:background .15s ease;
}
.archive-item:hover{ background:var(--paper-dim); }
.archive-item .issue-label{
  font-family:var(--font-display);
  font-weight:700;
  font-size:0.98rem;
  display:block;
  margin-bottom:6px;
}
.archive-item .issue-meta{
  font-family:var(--font-mono);
  font-size:0.7rem;
  letter-spacing:0.03em;
  text-transform:uppercase;
  color:var(--rose-dim);
}

/* SUBMISSIONS BAND */
section.submit-band{ background:var(--ink); color:var(--paper); padding:50px 0; }
.submit-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;
  flex-wrap:wrap;
}
.submit-inner h2{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(1.5rem,3vw,2rem);
  margin:0 0 8px;
  letter-spacing:-0.01em;
}
.submit-inner p{ color:#c9beb0; max-width:48ch; margin:0; line-height:1.5; }
.btn-submit-lg{
  font-family:var(--font-mono);
  font-size:0.82rem;
  letter-spacing:0.03em;
  text-transform:uppercase;
  text-decoration:none;
  color:var(--paper);
  background:var(--rose);
  padding:14px 22px;
  border-radius:2px;
  white-space:nowrap;
  transition:background .15s ease;
}
.btn-submit-lg:hover{ background:#8f2528; }

/* homepage mobile fixes */
@media (max-width: 640px){
  .masthead-top{ flex-wrap:wrap; row-gap:8px; }
  .logo{ white-space:nowrap; transform:translateY(4px); }
}
@media (max-width: 640px){
  #issue-line{ display:none; }
  #search{ font-size:16px; flex:1; min-width:0; }
  .search-wrap{ width:100%; }
  .mobile-status{
    display:flex;
    flex-direction:column;
    gap:3px;
    font-family:var(--font-mono);
    font-size:0.62rem;
    letter-spacing:0.03em;
    color:var(--charcoal-soft);
    text-align:right;
    margin-left:auto;
    transform:translateY(2px);
  }
  .mobile-status .live{
    display:flex;
    align-items:center;
    gap:5px;
    justify-content:flex-end;
    color:var(--charcoal);
  }
  html, body{ overflow-x:hidden; max-width:100vw; }
  .wrap{ padding:0 20px; }
  .masthead-top{ flex-wrap:wrap; row-gap:12px; }
  nav.top-nav{ flex-wrap:wrap; gap:10px 16px; font-size:0.68rem; }
  nav.top-nav a.btn-submit{ padding:8px 12px; }
  table.log, table.log thead, table.log tbody, table.log tr, table.log td{
    display:block;
    width:100%;
  }
  table.log thead{ display:none; }
  table.log tr{ border-bottom:1px solid var(--line); padding:14px 0; }
  table.log td{ border-bottom:none; padding:2px 0; width:100% !important; text-align:left !important; }
  td.col-date{ font-size:0.72rem; }
  td.col-title p{ max-width:100%; }
  td.col-tag{ font-size:0.7rem; color:var(--charcoal-soft); }
}


/* ----------------------------------------------------------------
   7. ARTICLE TEMPLATE — shared by every /articles/*.html page.
   Everything below is scoped under "article" so it can't leak into
   the homepage or pitch page.
   ---------------------------------------------------------------- */
article{ padding:48px 0 60px; }

article .article-header{
  padding-bottom:24px;
  border-bottom:1px solid var(--line);
  margin-bottom:32px;
}
article .date-kicker{
  display:block;
  font-family:var(--font-mono);
  font-size:0.74rem;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--charcoal-soft);
  margin-bottom:14px;
}
article h1{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(1.75rem, 4.2vw, 2.35rem);
  line-height:1.1;
  letter-spacing:-0.01em;
  margin:0 0 16px;
  color:var(--ink);
}
article p.dek{
  font-size:1.05rem;
  line-height:1.55;
  color:var(--charcoal);
  margin:0 0 20px;
}
article .byline-row{ margin:0; }
article .byline-row .byline{
  font-family:var(--font-byline);
  font-weight:700;
  font-size:1rem;
  color:var(--ink);
}

article .header-media{ margin-top:24px; }
article .hero-image{ display:block; width:100%; height:auto; }
article figcaption{
  font-family:var(--font-mono);
  font-size:0.72rem;
  color:var(--charcoal-soft);
  margin-top:8px;
}

@media (min-width:640px){
  article .article-header.tall-photo{
    display:grid;
    grid-template-columns:1fr 1.3fr;
    gap:32px;
    align-items:start;
  }
  article .article-header.tall-photo .header-media{
    order:-1;
    margin-top:0;
  }
}

/* Body copy: kept a little narrower than the full wrap-narrow
   column, so lines don't run all the way to the edge — and so
   there's natural room for a photo to sit beside the text via
   .figure-side (below), which floats and lets text wrap around it. */
article .body-copy{
  max-width:620px;
  font-size:1.02rem;
  line-height:1.68;
}
article .body-copy p{ margin:0 0 22px; }
article .body-copy h2{
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.3rem;
  margin:36px 0 16px;
  color:var(--ink);
}
article .body-copy a{ color:var(--rose); }
article .body-copy blockquote{
  margin:28px 0;
  padding-left:22px;
  border-left:2px solid var(--line);
  font-style:normal;
  font-size:1.02rem;
  line-height:1.68;
  color:var(--ink);
}
article .body-copy .pull-quote{
  margin:38px 0;
  padding-left:24px;
  border-left:3px solid var(--rose);
  font-family:var(--font-display);
  font-style:italic;
  font-weight:700;
  font-size:1.3rem;
  line-height:1.42;
  color:var(--ink);
}

/* SIDE PHOTO — drop this <figure> anywhere inside .body-copy (right
   before or inside the paragraph it belongs next to) and the text
   will wrap around it, cutting off a little earlier on those lines.
   Add class="left" to float it on the left instead.

     <figure class="figure-side">
       <img src="../images/whatever.jpg" alt="">
       <figcaption>Photo: credit</figcaption>
     </figure>
*/
article .figure-side{
  float:right;
  width:260px;
  max-width:42%;
  margin:6px 0 22px 28px;
}
article .figure-side.left{
  float:left;
  margin:6px 28px 22px 0;
}
article .figure-side img{ display:block; width:100%; height:auto; }
article .figure-side figcaption{
  font-family:var(--font-mono);
  font-size:0.7rem;
  color:var(--charcoal-soft);
  margin-top:6px;
  line-height:1.4;
}

@media (max-width:640px){
  article .body-copy{ max-width:none; }
  article .figure-side{
    float:none;
    width:100%;
    max-width:none;
    margin:0 0 22px;
  }
}


/* ----------------------------------------------------------------
   8. PITCH PAGE
   ---------------------------------------------------------------- */
main h1{
  font-family:var(--font-display);
  font-weight:700;
  font-size:clamp(2rem, 5vw, 2.6rem);
  line-height:1.1;
  letter-spacing:-0.01em;
  margin:0 0 14px;
}
main .intro{
  font-size:1.05rem;
  line-height:1.6;
  color:var(--charcoal);
  max-width:56ch;
  margin:0 0 36px;
}

#pitch-form{ display:flex; flex-direction:column; gap:20px; }
.form-row{ display:flex; gap:16px; }
@media (max-width:560px){
  .form-row{ flex-direction:column; gap:20px; }
}
.form-field{ flex:1; }
.form-field label{
  display:block;
  font-family:var(--font-mono);
  font-size:0.72rem;
  letter-spacing:0.05em;
  text-transform:uppercase;
  color:var(--rose-dim);
  margin-bottom:8px;
}
.form-field input,
.form-field textarea{
  width:100%;
  font-family:var(--font-body);
  font-size:1rem;
  padding:12px 14px;
  border:1px solid var(--line-dark);
  border-radius:2px;
  background:#fff;
  color:var(--ink);
}
.form-field textarea{ resize:vertical; min-height:160px; line-height:1.5; }
.form-field input:focus,
.form-field textarea:focus{ outline:2px solid var(--rose); outline-offset:1px; }

.btn-send{
  align-self:flex-start;
  font-family:var(--font-mono);
  font-size:0.82rem;
  letter-spacing:0.03em;
  text-transform:uppercase;
  color:var(--paper);
  background:var(--ink);
  border:none;
  padding:14px 26px;
  border-radius:2px;
  cursor:pointer;
  transition:background .15s ease;
}
.btn-send:hover{ background:var(--rose); }

#pitch-note{
  font-family:var(--font-mono);
  font-size:0.8rem;
  color:var(--rose-dim);
  display:none;
}
