/* ArsenalVision News — patron site
   Aesthetic: vintage broadsheet. Aged newsprint, heavy rules, blackletter masthead,
   Arsenal red used like a printer's second ink. Financial-section styling for stocks. */

:root {
  --paper: #f2eee3;
  --paper-deep: #e9e3d3;
  --ink: #1c1814;
  --ink-soft: #5b544b;
  --ink-faint: #8a8177;
  --rule: #2a251f;
  --rule-soft: #c9c1af;
  --red: #b5121b;
  --red-bright: #db0007;
  --rise: #1d6b3a;
  --fall: #a31621;
  --gold: #9a7b2d;
  --shadow: 0 2px 4px rgba(28, 24, 20, .14), 0 12px 28px -12px rgba(28, 24, 20, .35);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Libre Franklin", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  /* subtle newsprint grain */
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.5), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .11 0 0 0 0 .09 0 0 0 0 .08 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ============ MASTHEAD ============ */
.masthead { text-align: center; padding: 28px 0 0; }

.masthead .ears {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-soft);
  border-bottom: 1px solid var(--rule); padding-bottom: 6px;
}

.masthead h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 7.5vw, 5.2rem);
  letter-spacing: -.015em;
  line-height: 1.02;
  padding: 18px 0 6px;
}

/* The blackletter A, lifted straight from the newspapers' own masthead
   (assets/masthead-a.png is an alpha mask cropped from page 1). */
.masthead h1 .blackletter {
  display: inline-block;
  width: .98em; height: .99em;
  background-color: var(--red);
  -webkit-mask: url("masthead-a.png") no-repeat center / contain;
  mask: url("masthead-a.png") no-repeat center / contain;
  color: transparent;
  vertical-align: -.13em;
  margin-right: -.04em;
}

.season-row { display: flex; justify-content: center; padding: 12px 0 0; }

.masthead .dateline {
  display: flex; justify-content: center; gap: 14px; align-items: baseline;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-soft);
  border-top: 3px double var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 7px 0; margin-top: 10px;
}

.masthead .dateline .sep { color: var(--red); }

/* ============ NAV ============ */
.section-nav {
  display: flex; justify-content: center; gap: 4px;
  border-bottom: 3px solid var(--rule);
  padding: 10px 0; flex-wrap: wrap;
}

.section-nav a {
  font-family: var(--font-body); font-weight: 700; font-size: 13.5px;
  letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; padding: 6px 18px; position: relative;
}

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

.section-nav a.current { color: var(--red); }
.section-nav a.current::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: -3px;
  height: 3px; background: var(--red);
}

.section-nav a + a::before {
  content: "◆"; position: absolute; left: -6px; top: 50%;
  transform: translateY(-50%); font-size: 6px; color: var(--rule-soft);
}

/* ============ NEWSSTAND ============ */
.stand-controls {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center;
  padding: 22px 0 6px;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.chip {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em;
  text-transform: uppercase; cursor: pointer;
  background: transparent; color: var(--ink-soft);
  border: 1px solid var(--rule-soft); border-radius: 999px;
  padding: 5px 14px; transition: all .15s ease;
}

.chip:hover { border-color: var(--ink); color: var(--ink); }

.chip.on {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}

.chip.on.comp-pl { background: var(--red); border-color: var(--red); }

.stand-meta {
  text-align: center; font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-faint); letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 0 8px;
}

.month-block { padding: 14px 0 8px; }

.month-head {
  display: flex; align-items: center; gap: 16px; margin: 18px 0 18px;
}

.month-head::before, .month-head::after {
  content: ""; flex: 1; border-top: 1px solid var(--rule);
}

.month-head h2 {
  font-family: var(--font-display); font-weight: 700; font-style: italic;
  font-size: 1.5rem; white-space: nowrap;
}

.month-head .count {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint);
  letter-spacing: .1em;
}

.edition-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 26px 22px;
}

.edition {
  text-decoration: none; display: block; position: relative;
  transition: transform .18s ease;
}

.edition:nth-child(3n+1) { transform: rotate(-.5deg); }
.edition:nth-child(3n+2) { transform: rotate(.4deg); }

.edition:hover { transform: rotate(0deg) translateY(-5px); z-index: 2; }

.edition .paper-stack { position: relative; }

.edition .paper-stack::before, .edition .paper-stack::after {
  content: ""; position: absolute; inset: 0; background: var(--paper-deep);
  border: 1px solid var(--rule-soft); z-index: -1;
}

.edition .paper-stack::before { transform: rotate(1.4deg) translate(3px, 2px); }
.edition .paper-stack::after { transform: rotate(-1deg) translate(-2px, 3px); }

.edition img {
  width: 100%; display: block; border: 1px solid var(--rule-soft);
  box-shadow: var(--shadow); filter: sepia(.08) contrast(1.02);
}

.edition:hover img { box-shadow: 0 4px 8px rgba(28,24,20,.18), 0 22px 44px -14px rgba(28,24,20,.45); }

.edition .ed-info { padding: 10px 2px 0; }

.edition .ed-match {
  font-family: var(--font-display); font-weight: 700; font-size: 15.5px;
  line-height: 1.25;
}

.edition .ed-score { white-space: nowrap; }

.edition .ed-sub {
  display: flex; justify-content: space-between; align-items: baseline; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-faint); padding-top: 3px;
}

.result-pip {
  display: inline-block; width: 17px; height: 17px; border-radius: 50%;
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  line-height: 17px; text-align: center; color: #f6f3ea;
  margin-right: 6px; vertical-align: 1px;
}

.result-W { background: var(--rise); }
.result-D { background: var(--gold); }
.result-L { background: var(--fall); }

/* ============ SHARED FOOTER ============ */
.colophon {
  margin-top: 56px; border-top: 3px double var(--rule);
  padding: 18px 0 42px; text-align: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint);
  letter-spacing: .08em; text-transform: uppercase;
}

.colophon .fist { color: var(--red); }

/* ============ READER ============ */
body.reader-body {
  background: #17140f;
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(120, 100, 70, .18), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .8 0 0 0 0 .75 0 0 0 0 .65 0 0 0 .04 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  color: #d8d2c4;
  overflow: hidden; height: 100dvh;
}

.reader-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase;
  background: linear-gradient(rgba(23,20,15,.92), rgba(23,20,15,0));
}

.reader-top a { color: #d8d2c4; text-decoration: none; }
.reader-top a:hover { color: #fff; }

.reader-title { text-align: center; flex: 1; padding: 0 12px; color: #b5ac99; }
.reader-title strong { color: #f0ead9; font-weight: 600; }

.book {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  perspective: 2600px; padding: 54px 74px 68px;
}

.leaf {
  position: relative; height: 100%; max-height: 92vh;
  aspect-ratio: 340 / 510; max-width: calc(100vw - 148px);
}

.leaf img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; border-radius: 2px;
  box-shadow: 0 6px 14px rgba(0,0,0,.5), 0 30px 70px -20px rgba(0,0,0,.7);
  background: #f2eee3;
}

.leaf .under { z-index: 1; }

.leaf .flipper {
  position: absolute; inset: 0; z-index: 3;
  transform-style: preserve-3d;
  transform-origin: left center;
  will-change: transform;
}

.leaf .flipper .face {
  position: absolute; inset: 0; backface-visibility: hidden;
}

.leaf .flipper .face.back { transform: rotateY(180deg); }

.leaf .flipper.animating { transition: transform .65s cubic-bezier(.45,.05,.28,1); }

@media (prefers-reduced-motion: reduce) {
  .leaf .flipper.animating { transition: none; }
}

.reader-nav-btn {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 15;
  background: rgba(242,238,227,.06); color: #d8d2c4;
  border: 1px solid rgba(216,210,196,.25); border-radius: 50%;
  width: 46px; height: 46px; font-size: 19px; cursor: pointer;
  transition: all .15s ease; line-height: 1;
}

.reader-nav-btn:hover { background: rgba(242,238,227,.16); color: #fff; }
.reader-nav-btn:disabled { opacity: .2; cursor: default; }
.reader-nav-btn.prev { left: 14px; }
.reader-nav-btn.next { right: 14px; }

.reader-bottom {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 14px; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: #b5ac99;
  background: linear-gradient(rgba(23,20,15,0), rgba(23,20,15,.92));
}

.reader-bottom .pager { color: #f0ead9; }

/* ============ STOCKS / FINANCIAL SECTION ============ */
.fin-banner {
  border-bottom: 3px double var(--rule); background: var(--paper-deep);
  overflow: hidden; white-space: nowrap; position: relative;
}

.ticker-track {
  display: inline-block; padding: 8px 0;
  animation: tickerScroll 90s linear infinite;
}

.fin-banner:hover .ticker-track { animation-play-state: paused; }

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

.tick {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .03em;
  margin: 0 18px; color: var(--ink-soft);
}

.tick b { color: var(--ink); font-weight: 600; }
.tick .up { color: var(--rise); }
.tick .down { color: var(--fall); }

.fin-head { text-align: center; padding: 26px 0 4px; }

.fin-head .kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--red);
}

.fin-head h2 {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(1.9rem, 4.5vw, 3rem);
  letter-spacing: -.01em; padding: 4px 0 2px;
}

.fin-head .sub {
  font-family: var(--font-display); font-style: italic; color: var(--ink-soft);
  font-size: 1.02rem;
}

.fin-controls {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
  padding: 18px 0 10px;
}

.panel {
  border: 1px solid var(--rule-soft); background: rgba(255,255,255,.34);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset;
  padding: 18px; margin: 14px 0;
}

.panel-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  border-bottom: 2px solid var(--rule); padding-bottom: 8px; margin-bottom: 14px;
  flex-wrap: wrap;
}

.panel-head h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
}

.panel-head .note {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint);
  letter-spacing: .08em; text-transform: uppercase;
}

.chart-scroll { overflow-x: auto; }

.stock-chart { width: 100%; min-width: 640px; display: block; }

.stock-chart .gridline { stroke: var(--rule-soft); stroke-width: .5; stroke-dasharray: 2 3; }
.stock-chart .axis-label { font-family: var(--font-mono); font-size: 9.5px; fill: var(--ink-faint); }
.stock-chart .zero-line { stroke: var(--ink-soft); stroke-width: 1; }

.stock-line {
  fill: none; stroke-width: 1.6; opacity: .82;
  transition: opacity .15s ease, stroke-width .15s ease;
  cursor: pointer;
}

.stock-chart.has-focus .stock-line { opacity: .10; }
.stock-chart.has-focus .stock-line.focus { opacity: 1; stroke-width: 2.6; }

.stock-line-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  cursor: pointer; opacity: .9;
}

.stock-chart.has-focus .stock-line-label { opacity: .12; }
.stock-chart.has-focus .stock-line-label.focus { opacity: 1; }

.player-chips { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 12px; }

.pchip {
  font-family: var(--font-mono); font-size: 11px; cursor: pointer;
  border: 1px solid var(--rule-soft); background: transparent;
  border-radius: 999px; padding: 4px 12px; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .12s ease;
}

.pchip .swatch { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pchip:hover { border-color: var(--ink); color: var(--ink); }
.pchip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.lb-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

table.ledger { width: 100%; border-collapse: collapse; }

table.ledger caption {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .18em;
  text-transform: uppercase; text-align: left; padding-bottom: 8px;
  color: var(--red); font-weight: 600;
}

table.ledger th {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint); font-weight: 500;
  text-align: right; border-bottom: 1px solid var(--rule); padding: 3px 6px;
}

table.ledger th:first-child, table.ledger td:first-child { text-align: left; }

table.ledger td {
  font-family: var(--font-mono); font-size: 12.5px; text-align: right;
  padding: 5px 6px; border-bottom: 1px dotted var(--rule-soft);
}

table.ledger td.name { font-family: var(--font-body); font-weight: 600; font-size: 13px; cursor: pointer; }
table.ledger td.name:hover { color: var(--red); }
table.ledger .up { color: var(--rise); font-weight: 600; }
table.ledger .down { color: var(--fall); font-weight: 600; }

/* player detail */
.detail-games { display: grid; gap: 4px; padding-top: 8px; }

.dgame {
  display: flex; gap: 10px; align-items: baseline;
  font-size: 13px; padding: 6px 8px; border-bottom: 1px dotted var(--rule-soft);
  text-decoration: none;
}

.dgame:hover { background: rgba(255,255,255,.5); }

.dgame .dir { font-family: var(--font-mono); font-weight: 700; width: 16px; }
.dgame .dir.up { color: var(--rise); }
.dgame .dir.down { color: var(--fall); }
.dgame .match { flex: 1; }
.dgame .when { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); white-space: nowrap; }

/* special mentions wall — classifieds */
.classifieds {
  columns: 3; column-gap: 22px; column-rule: 1px solid var(--rule-soft);
}

@media (max-width: 900px) { .classifieds { columns: 2; } }
@media (max-width: 620px) { .classifieds { columns: 1; } }

.ad {
  break-inside: avoid; border-bottom: 1px dotted var(--rule-soft);
  padding: 9px 2px; text-decoration: none; display: block;
}

.ad:hover { background: rgba(255,255,255,.5); }

.ad .ad-dir {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 700;
}

.ad .ad-dir.up { color: var(--rise); }
.ad .ad-dir.down { color: var(--fall); }

.ad .ad-text { font-family: var(--font-display); font-style: italic; font-size: 15px; line-height: 1.3; }

.ad .ad-src { font-family: var(--font-mono); font-size: 10px; color: var(--ink-faint); padding-top: 2px; }

/* per-game ledger */
.game-picker { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

select.news-select {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule-soft);
  padding: 6px 10px; border-radius: 2px;
}

.game-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 6px; }

@media (max-width: 640px) { .game-cols { grid-template-columns: 1fr; } }

.game-col h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; padding-bottom: 6px; border-bottom: 2px solid;
}

.game-col.rising h4 { color: var(--rise); border-color: var(--rise); }
.game-col.falling h4 { color: var(--fall); border-color: var(--fall); }

.game-col ul { list-style: none; padding-top: 6px; }

.game-col li {
  font-size: 14px; padding: 5px 2px; border-bottom: 1px dotted var(--rule-soft);
}

.game-col li .special-tag {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em;
  color: var(--gold); text-transform: uppercase; margin-left: 6px;
}

/* utility */
.hidden { display: none !important; }

@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .masthead .ears { font-size: 9px; }
  .edition-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 14px; }
  .book { padding: 50px 8px 62px; }
  .leaf { max-width: calc(100vw - 16px); }
  .reader-nav-btn.prev { left: 6px; }
  .reader-nav-btn.next { right: 6px; }
}
