/* The Wildcat Gazette
   Newspaper bones, GeoCities clothing.

   Deliberately light-only: newsprint has one look, and a dark "newspaper" is a
   different joke. Colours are all set explicitly so the viewer's theme cannot
   half-invert it.

   Fonts are system stacks on purpose — Times, Georgia, Comic Sans and Courier
   were THE fonts of the era, they are on every machine, and depending on a font
   CDN for a page that lives on a basement server is a bad trade. */

:root {
  color-scheme: light;

  --news:      #f2ece0;   /* aged newsprint */
  --news-deep: #e6ddc9;
  --ink:       #16130e;
  --ink-soft:  #4a4234;
  --rule:      #b9ad93;

  --uk:        #0033a0;   /* Kentucky blue, straight from ESPN's team record */
  --uk-dark:   #001f66;

  --magenta:   #ff00c8;
  --cyan:      #00b8d4;
  --lime:      #2fbf20;
  --gold:      #ffd700;
  --alert:     #c8102e;

  --serif:  Georgia, "Times New Roman", Times, serif;
  --body:   "Times New Roman", Times, Georgia, serif;
  --goofy:  "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive;
  --mono:   "Courier New", Courier, monospace;
}

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

body {
  background-color: var(--news);
  /* The obligatory tiled background, kept faint enough to read over. */
  background-image:
    repeating-linear-gradient(45deg,  rgba(0,51,160,.035) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(-45deg, rgba(0,51,160,.035) 0 2px, transparent 2px 9px);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  padding-bottom: 2rem;
}

a { color: var(--uk); }
a:hover { color: var(--magenta); }

/* ── 1996 furniture ─────────────────────────────────────────────────────── */

.construction {
  background: repeating-linear-gradient(45deg,
    #ffcc00 0 14px, #1a1a1a 14px 28px);
  color: #fff;
  font-family: var(--goofy);
  font-size: .8rem;
  font-weight: bold;
  text-align: center;
  padding: .45rem;
  text-shadow: 0 0 4px #000, 1px 1px 0 #000;
  letter-spacing: .04em;
}
.cone { color: #ff6a00; -webkit-text-stroke: .5px #000; }

.ticker {
  background: var(--uk-dark);
  color: var(--gold);
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  overflow: hidden;
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: bold;
  padding: .35rem 0;
  white-space: nowrap;
}
.ticker-track {
  display: inline-block;
  padding-left: 100%;
  animation: scroll 46s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { padding: 0 1.6rem; }
.ticker-item .w { color: var(--lime); }
.ticker-item .l { color: #ff7b7b; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ── Masthead ───────────────────────────────────────────────────────────── */

.masthead {
  text-align: center;
  padding: 1.4rem 1rem .5rem;
  max-width: 76rem;
  margin: 0 auto;
}
.flourish { color: var(--uk); letter-spacing: .3em; font-size: 1rem; }

.nameplate {
  font-family: var(--serif);
  font-weight: bold;
  font-size: clamp(2.4rem, 9vw, 5.4rem);
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--uk);
  text-shadow: 3px 3px 0 var(--news-deep), 4px 4px 0 rgba(0,0,0,.35);
  margin: .1em 0;
}

.motto {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1rem;
}

.dateline {
  margin-top: .8rem;
  border-top: 3px double var(--ink);
  border-bottom: 3px double var(--ink);
  padding: .4rem .5rem;
  font-family: var(--serif);
  font-size: .72rem;
  font-weight: bold;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.1rem;
}
.dateline .price { color: var(--magenta); font-family: var(--goofy); letter-spacing: 0; }

/* ── Page body ──────────────────────────────────────────────────────────── */

.paper {
  max-width: 76rem;
  margin: 1.2rem auto 0;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr);
  gap: 1.5rem;
}
.col-side {
  border-left: 1px solid var(--rule);
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.section-head {
  font-family: var(--serif);
  font-size: .85rem;
  letter-spacing: .22em;
  text-align: center;
  text-transform: uppercase;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: .3rem 0;
  margin: 1.2rem 0 1rem;
}
.section-head .star { color: var(--gold); -webkit-text-stroke: .5px var(--ink-soft); }

/* ── Lead story ─────────────────────────────────────────────────────────── */

.lead h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4.2vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -.015em;
  margin-bottom: .4rem;
}
.lead h2 a { color: var(--ink); text-decoration: none; }
.lead h2 a:hover { color: var(--uk); text-decoration: underline; }

.lead .kicker {
  font-family: var(--serif);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--alert);
  font-weight: bold;
  margin-bottom: .3rem;
}
.lead .summary { margin-top: .5rem; font-size: 1.02rem; }
.lead .summary::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 3.3rem;
  line-height: .82;
  padding: .06em .1em 0 0;
  color: var(--uk);
  font-weight: bold;
}
.byline {
  font-family: var(--serif);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: .55rem;
}

/* ── Story columns ──────────────────────────────────────────────────────── */

.stories { columns: 2; column-gap: 1.5rem; column-rule: 1px solid var(--rule); }
.story {
  break-inside: avoid;
  padding-bottom: .8rem;
  margin-bottom: .8rem;
  border-bottom: 1px solid var(--rule);
}
.story h3 {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.22;
  margin-bottom: .2rem;
}
.story h3 a { color: var(--ink); text-decoration: none; }
.story h3 a:hover { color: var(--uk); text-decoration: underline; }
.story p { font-size: .9rem; color: var(--ink-soft); }

.new-flag {
  font-family: var(--goofy);
  font-size: .62rem;
  font-weight: bold;
  color: #fff;
  background: var(--alert);
  padding: 0 .3em;
  border-radius: 2px;
  vertical-align: .12em;
  margin-right: .3em;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: .15; } }

/* ── Boxes ──────────────────────────────────────────────────────────────── */

.box {
  border: 3px ridge var(--uk);
  background: #fffdf6;
  padding: .6rem .75rem .8rem;
}
.box-head {
  font-family: var(--serif);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: center;
  background: var(--uk);
  color: #fff;
  margin: -.6rem -.75rem .6rem;
  padding: .32rem;
}

.sport { border-bottom: 1px dotted var(--rule); padding-bottom: .5rem; margin-bottom: .5rem; }
.sport:last-child { border: 0; margin-bottom: 0; padding-bottom: 0; }
.sport h3 {
  font-family: var(--serif);
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--uk);
}
.sport .rec { font-family: var(--mono); font-size: .82rem; font-weight: bold; }
.sport .rank {
  background: var(--gold); color: #000; font-family: var(--serif);
  font-size: .66rem; font-weight: bold; padding: 0 .35em; margin-left: .3em;
}
.result { font-family: var(--mono); font-size: .84rem; margin-top: .2rem; }
.result .W { color: var(--lime); font-weight: bold; }
.result .L { color: var(--alert); font-weight: bold; }
.meta { font-size: .78rem; color: var(--ink-soft); margin-top: .15rem; }
.tba { font-style: italic; color: var(--ink-soft); }

/* ── Countdown ──────────────────────────────────────────────────────────── */

.countdown-box { border-color: var(--magenta); }
.countdown-box .box-head { background: var(--magenta); }
.countdown .opp {
  font-family: var(--serif); font-weight: bold; font-size: 1rem;
  text-align: center; line-height: 1.2;
}
.countdown .clock {
  display: flex; justify-content: center; gap: .4rem; margin: .5rem 0 .35rem;
}
.countdown .unit {
  background: #000; color: var(--lime); font-family: var(--mono); font-weight: bold;
  border: 2px inset #888; padding: .2rem .4rem; min-width: 3.1rem; text-align: center;
  line-height: 1.15;
}
.countdown .unit b { display: block; font-size: 1.15rem; }
.countdown .unit span { font-size: .55rem; color: #7fdc7a; letter-spacing: .08em; }
.countdown .where { text-align: center; font-size: .78rem; color: var(--ink-soft); }

/* ── Hit counter ────────────────────────────────────────────────────────── */

.counter-box { border-color: var(--lime); text-align: center; }
.counter-box .box-head { background: var(--lime); color: #062a04; }
.odometer { display: flex; justify-content: center; gap: 2px; }
.odometer span {
  background: #000; color: var(--gold); font-family: var(--mono); font-weight: bold;
  font-size: 1.25rem; padding: .12rem .3rem; border: 1px solid #555;
}
.counter-note { font-family: var(--goofy); font-size: .72rem; margin-top: .4rem; }

/* ── Badges ─────────────────────────────────────────────────────────────── */

.badges-box { border: 0; padding: 0; display: grid; gap: .45rem; justify-items: center; }
.badge {
  width: 88px; height: 31px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: .42rem; letter-spacing: .04em;
  text-align: center; line-height: 1.25; border: 1px outset #999;
}
.badge strong { font-size: .38rem; opacity: .85; }
.badge span { font-size: .5rem; font-weight: bold; }
.badge-netscape { background: #000; color: #b6f; border-color: #55f; }
.badge-res      { background: #000; color: var(--cyan); }
.badge-hyperm   { background: var(--uk); color: #fff; }

/* ── Rules ──────────────────────────────────────────────────────────────── */

.rule-rainbow {
  height: 6px;
  max-width: 76rem;
  margin: 1.4rem auto;
  background: linear-gradient(90deg,
    var(--alert), #ff8a00, var(--gold), var(--lime),
    var(--cyan), var(--uk), var(--magenta));
  border-top: 1px solid rgba(0,0,0,.3);
  border-bottom: 1px solid rgba(0,0,0,.3);
}

/* ── The full slate ─────────────────────────────────────────────────────── */

.fold { max-width: 76rem; margin: 0 auto; padding: 0 1rem; }
.slate { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.2rem; }
.slate table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.slate caption {
  font-family: var(--serif); font-size: .76rem; letter-spacing: .14em;
  text-transform: uppercase; text-align: left; color: #fff; background: var(--uk);
  padding: .28rem .5rem; margin-bottom: .3rem;
}
.slate th {
  text-align: left; font-family: var(--serif); font-size: .66rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
  border-bottom: 1px solid var(--ink); padding: .2rem .35rem;
}
.slate td { padding: .28rem .35rem; border-bottom: 1px dotted var(--rule); vertical-align: top; }
.slate .ha { font-family: var(--mono); font-size: .74rem; color: var(--ink-soft); }
.slate .empty { font-style: italic; color: var(--ink-soft); padding: .5rem; }

/* ── Colophon ───────────────────────────────────────────────────────────── */

.colophon {
  max-width: 76rem; margin: 2rem auto 0; padding: 1rem;
  border-top: 3px double var(--ink); text-align: center;
}
.webring {
  font-family: var(--goofy); font-size: .84rem; font-weight: bold;
  color: var(--uk); margin-bottom: .4rem;
}
.blink { color: var(--magenta); animation: blink 1.3s steps(1) infinite; }
.sign { font-family: var(--goofy); font-size: .8rem; margin-bottom: .7rem; }
.fineprint { font-size: .74rem; color: var(--ink-soft); max-width: 44rem; margin: .3rem auto; }
.stale { color: var(--alert); font-weight: bold; }

.loading { font-style: italic; color: var(--ink-soft); font-size: .88rem; }

/* ── Narrow screens ─────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .paper { grid-template-columns: 1fr; }
  .col-side { border-left: 0; padding-left: 0; border-top: 3px double var(--ink); padding-top: 1.1rem; }
  .stories { columns: 1; }
  .nameplate { text-shadow: 2px 2px 0 var(--news-deep); }
}

/* Blinking text and a scrolling marquee are the two most authentic things on
   this page and also the two most likely to make someone ill. Both stop here. */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; padding-left: 0; white-space: normal; }
  .blink, .new-flag { animation: none; }
}
