/* =====================================================================
   Two River Times — article page.

   This file deliberately stands alone. These pages stand in for the real
   WordPress article template, which we cannot edit. Nothing here knows about
   Ripple: the comments panel arrives later as an injected overlay, exactly as
   it will have to on their live site. If a rule in here is ever needed by the
   widget, that is a sign the widget has grown a dependency on the host page
   that production will not honour.
   ===================================================================== */

:root {
  --art-ink: #0c1b2e;
  --art-blue: #1a4fa0;
  --art-rule: #e3e6ea;
  --art-muted: #6b7787;
  --art-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --art-read: "Source Serif 4", Georgia, serif;
  --art-sans: "Open Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #fff; color: var(--art-ink);
  font-family: var(--art-sans);
  -webkit-font-smoothing: antialiased;
}

/* ---------- masthead ---------- */
.art-top {
  display: flex; align-items: center; gap: 26px;
  padding: 16px 30px; border-bottom: 1px solid var(--art-rule);
  position: sticky; top: 0; background: #fff; z-index: 20;
}
.art-burger {
  width: 34px; height: 34px; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; color: var(--art-ink); flex: none;
}
.art-burger span {
  display: block; width: 19px; height: 2px; background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}
.art-word {
  font-family: var(--art-serif); font-weight: 700; font-size: 25px;
  letter-spacing: -0.01em; white-space: nowrap; color: var(--art-ink);
  text-decoration: none; flex: none;
}
.art-nav { display: flex; gap: 22px; flex: 1; min-width: 0; overflow: hidden; }
.art-nav a {
  font-size: 13.5px; font-weight: 600; color: #33455e; text-decoration: none;
  white-space: nowrap; padding: 4px 0; border-bottom: 2px solid transparent;
}
.art-nav a:hover, .art-nav a.is-on { color: var(--art-blue); border-bottom-color: var(--art-blue); }
.art-top-right { display: flex; align-items: center; gap: 14px; flex: none; }
.art-sub {
  font-size: 13px; font-weight: 700; color: var(--art-blue); text-decoration: none;
}
.art-acct {
  width: 30px; height: 30px; border-radius: 50%; background: #eef1f5;
  display: grid; place-items: center; color: #5c6b80;
}

/* ---------- article ---------- */
.art-wrap { max-width: 820px; margin: 0 auto; padding: 34px 30px 90px; }
.art-kicker {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--art-blue); margin-bottom: 14px;
}
.art-headline {
  font-family: var(--art-serif); font-weight: 700;
  font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -0.02em;
  margin: 0 0 16px; max-width: 15ch;
}
.art-headline.is-long { max-width: 20ch; font-size: clamp(27px, 3.6vw, 38px); }

/* date on the left, the tool circles pinned right, view count under them */
.art-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.art-date { font-size: 13px; color: var(--art-muted); padding-top: 6px; }
.art-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.art-tool-row { display: flex; gap: 10px; }
.art-tool {
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--art-rule); background: #fff; color: #33455e;
  display: grid; place-items: center;
}
.art-tool:hover { background: #f4f6f9; }
.art-views {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--art-muted);
}

.art-hero { margin: 22px 0 0; }
.art-hero img { width: 100%; height: auto; display: block; border-radius: 2px; background: #eef1f5; }
.art-cap {
  margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: #4a5a70;
  font-family: var(--art-read);
}
.art-cap b { font-style: italic; }

.art-byline {
  margin: 24px 0 14px; font-size: 15px; font-weight: 700; color: var(--art-ink);
}
.art-body { font-family: var(--art-read); font-size: 17.5px; line-height: 1.62; color: #16263c; }
.art-body p { margin: 0 0 17px; }
.art-body h2 {
  font-family: var(--art-serif); font-size: 22px; font-weight: 700;
  margin: 30px 0 12px; letter-spacing: -0.01em;
}
.art-body blockquote {
  margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--art-blue);
  font-family: var(--art-serif); font-size: 20px; line-height: 1.4; font-style: italic;
}
.art-body blockquote cite {
  display: block; margin-top: 9px; font-family: var(--art-sans);
  font-size: 12.5px; font-style: normal; font-weight: 600; color: var(--art-muted);
}
.art-end {
  margin: 34px 0 0; padding-top: 18px; border-top: 1px solid var(--art-rule);
  font-size: 12.5px; color: var(--art-muted);
}

@media (max-width: 1080px) { .art-nav { display: none; } }
@media (max-width: 640px) {
  .art-top { padding: 13px 16px; gap: 14px; }
  .art-word { font-size: 20px; }
  .art-wrap { padding: 24px 18px 70px; }
  .art-headline { max-width: none; }
  .art-meta { flex-direction: column; gap: 14px; }
  .art-tools { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}
