/*
Theme Name: GTA The 6ix
Description: Satirical crime news from the Greater Toronto Area, reported by a fictional station. Articles live as files in the theme's content folder and are published from Tools > Sync articles.
Version: 0.3.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: gta-the-6ix
License: GPL-2.0-or-later
*/

@font-face { font-family: "Big Shoulders Display"; src: url("fonts/big-shoulders-display-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-latin-wght-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --sky-top: #5a6ed8;
  --sky-mid: #8f78dc;
  --sky-low: #d488cf;
  --sky-glow: #f7a6bd;
  --horizon: #ffcaa8;
  --indigo: #2b1f63;
  --ink: #2a2150;
  --ink-soft: #675d8c;
  --card: #fdfbff;
  --lilac: #efe8ff;
  --rule: #ddd2f5;
  --pink: #e0338a;
  --teal: #12a39b;
  --aqua: #7fe9df;
  --sun: #ffb02e;
  --violet: #6a35d6;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Source Serif 4", Georgia, serif;
  --wrap: 72rem;
  --measure: 40rem;
  --lift: 0 1.5rem 3.5rem rgba(43, 31, 99, 0.32);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #6f63c4; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
}
/* The skyline stays put while the page scrolls. Positioned so the tower and the dome
   stay in view on the left at every screen shape; the gradient shows until it loads. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background:
    url("assets/gtathe6ix.jpg") var(--sky-x, 24%) center / cover no-repeat,
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 32%, var(--sky-low) 64%, var(--sky-glow) 86%, var(--horizon) 100%);
}
main { flex: 1; width: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-underline-offset: 0.18em; }
a:hover { color: var(--pink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 0.5rem; left: 0.5rem; z-index: 10; width: auto; height: auto; clip: auto;
  background: var(--sun); color: var(--ink); padding: 0.5rem 1rem;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

/* Masthead sits directly on the sky */
.masthead .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 2rem; padding-top: 1.4rem; padding-bottom: 0.6rem; }
.brand { font-family: var(--display); font-weight: 900; font-size: 2.6rem; line-height: 1; text-decoration: none; text-transform: uppercase; color: #fff;
  text-shadow: 0 0.06em 0 rgba(43, 31, 99, 0.45), 0 0 1.2em rgba(255, 255, 255, 0.45); }
.brand span { color: #ffe680; }
.brand:hover { color: #fff; }
.tagline { margin: 0; color: #fff; font-size: 1rem; font-style: italic; opacity: 0.9; }
.masthead nav { margin-left: auto; }
.masthead nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.masthead nav a { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: #fff; text-decoration: none; text-shadow: 0 0.06em 0 rgba(43, 31, 99, 0.4); }
.masthead nav a:hover, .masthead nav .current-menu-item a, .masthead nav .current-cat a { color: #ffe680; }

/* Shared story furniture */
.mission { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--pink); margin: 0; }
.heat { white-space: nowrap; letter-spacing: 0.12em; color: var(--sun); }
.heat .off { color: var(--rule); }
.hud { display: flex; flex-wrap: wrap; gap: 0.3rem 1.5rem; margin: 0; padding: 0; list-style: none; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--ink-soft); }
.hud a { color: inherit; }
.pin::before { content: ""; display: inline-block; width: 0.6em; height: 0.6em; margin-right: 0.45em; background: var(--teal); transform: rotate(45deg); }

/* Lead story: a postcard from the city, set slightly crooked */
.lead { margin: 2rem 0.5rem 3.5rem; padding: 0.9rem; background: #fff; box-shadow: var(--lift); transform: rotate(-1.2deg); }
.lead-inner { position: relative; min-height: 26rem; display: flex; flex-direction: column; justify-content: flex-end; padding: 2.5rem 2.5rem 2.25rem; color: #fff;
  background: linear-gradient(180deg, #4f8fe6 0%, #74b6f0 38%, #9fe0e6 62%, #3fc7c2 100%) center / cover; }
.lead-inner.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,31,99,0) 25%, rgba(43,31,99,0.72) 100%); }
.lead-inner > * { position: relative; max-width: 46rem; }
.lead .mission { color: #ffe680; font-size: 1.5rem; text-shadow: 0 0.08em 0 rgba(43, 31, 99, 0.5); }
.lead h2 { font-family: var(--display); font-weight: 900; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 0.98; margin: 0.4rem 0 1rem; text-wrap: balance;
  text-shadow: 0 0.05em 0 rgba(43, 31, 99, 0.55), 0 0 0.6em rgba(43, 31, 99, 0.35); }
.lead h2 a { color: #fff; text-decoration: none; }
.lead h2 a:hover { color: #ffe680; }
.lead p { margin: 0 0 1.25rem; font-size: 1.25rem; font-style: italic; max-width: 38rem; text-shadow: 0 1px 0.5em rgba(43, 31, 99, 0.6); }
.lead .hud { color: #fff; text-shadow: 0 1px 0.4em rgba(43, 31, 99, 0.6); }
.lead .heat { color: #ffe680; }
.lead .heat .off { color: rgba(255, 255, 255, 0.45); }
.lead .pin::before { background: var(--aqua); }

/* Mission log */
.log-title { font-family: var(--display); font-weight: 900; font-size: 2.2rem; margin: 0 0 0.75rem; color: #fff; text-shadow: 0 0.06em 0 rgba(43, 31, 99, 0.7), 0 0 0.8em rgba(43, 31, 99, 0.8); }
.log { list-style: none; margin: 0 0 3rem; padding: 0.5rem 1.75rem; background: var(--card); box-shadow: var(--lift); }
.log li { display: grid; grid-template-columns: 7rem 1fr auto; gap: 0.25rem 1.5rem; align-items: baseline; padding: 1.2rem 0; border-top: 2px solid var(--rule); }
.log li:first-child { border-top: 0; }
.log time { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--teal); }
.log .mission { font-size: 1.05rem; }
.log h3 { font-family: var(--display); font-weight: 800; font-size: 1.75rem; line-height: 1.08; margin: 0.1rem 0 0.25rem; text-wrap: balance; }
.log h3 a { color: var(--ink); text-decoration: none; }
.log h3 a:hover { color: var(--violet); }
.log .where { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.log .heat { font-size: 1.1rem; }

.pager { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 3rem; font-family: var(--display); font-weight: 800; font-size: 1.4rem; }
.pager a { color: #fff; text-shadow: 0 0 0.6em rgba(43, 31, 99, 0.9); }
.page-head { margin: 2.5rem 0 1.5rem; color: #fff; }
.page-head h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; margin: 0 0 0.5rem; text-shadow: 0 0.06em 0 rgba(43, 31, 99, 0.7), 0 0 0.8em rgba(43, 31, 99, 0.8); }
.page-head p { margin: 0; max-width: var(--measure); }
.empty { max-width: var(--measure); margin: 3rem 0; color: #fff; }
.empty a { color: #ffe680; }

/* Article: a clean card against the sky */
.story { max-width: 46rem; margin: 2rem 0 4rem; padding: 2.75rem 3rem 2.5rem; background: var(--card); box-shadow: var(--lift); }
.story > * { max-width: var(--measure); }
.story .mission { font-size: 1.6rem; }
.story h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2.3rem, 5.5vw, 4rem); line-height: 1; margin: 0.3rem 0 1.1rem; text-wrap: balance; color: var(--indigo); }
.story > .hud { padding-bottom: 1.25rem; border-bottom: 2px solid var(--rule); }
.story .thumb { margin: 1.5rem 0 0; }
.ident { font-style: italic; font-size: 1.3rem; line-height: 1.45; color: var(--violet); margin: 1.75rem 0 0; }
.story .body { margin-top: 1.25rem; }
.story .body p { margin: 0 0 1.2rem; }
.story .body h2 { font-family: var(--display); font-weight: 800; font-size: 1.8rem; line-height: 1.1; margin: 2rem 0 0.6rem; }

.objectives { margin: 2.25rem 0; padding: 1.25rem 1.5rem; background: var(--lilac); border-left: 6px solid var(--teal); }
.objectives h2 { font-family: var(--display); font-weight: 800; font-size: 1.5rem; margin: 0 0 0.5rem; color: var(--indigo); }
.objectives ul { list-style: none; margin: 0; padding: 0; }
.objectives li { display: flex; justify-content: space-between; gap: 1.5rem; padding: 0.45rem 0; border-top: 1px solid var(--rule); }
.objectives li:first-child { border-top: 0; }
.objectives .status { font-family: var(--display); font-weight: 800; font-size: 1.15rem; text-align: right; color: #0b7f79; }
.objectives .status.is-open { color: #a85d00; }
.objectives .status.is-failed { color: var(--pink); }

.sponsor { margin: 2.25rem 0; padding: 1rem 0; border-top: 2px dashed var(--rule); border-bottom: 2px dashed var(--rule); font-style: italic; color: var(--ink-soft); }
.sponsor small { display: block; font-style: normal; font-size: 0.85rem; margin-top: 0.3rem; }

.outcome { margin: 2.25rem 0; font-family: var(--display); font-weight: 900; font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.08; color: var(--pink); text-wrap: balance; }
.outcome span { color: var(--indigo); }

/* The Facts: night falls. The one dark surface on the site, so the real part is unmistakable. */
.facts { margin: 2.5rem 0 0; padding: 1.5rem 1.6rem 1.4rem; background: var(--indigo); color: #f4efff; font-size: 1.05rem; line-height: 1.6; }
.facts h2 { font-family: var(--display); font-weight: 900; font-size: 1.7rem; margin: 0 0 0.5rem; color: #fff; }
.facts p { margin: 0 0 0.8rem; }
.facts ul { margin: 0 0 0.8rem; padding-left: 1.2rem; }
.facts a { color: var(--aqua); }
.facts a:hover { color: #ffe680; }
.facts .asof { margin: 0; font-size: 0.92rem; color: #c9bdf0; }

.label-satire { margin: 1.25rem 0 0; font-size: 0.95rem; color: var(--ink-soft); }
.story-nav { display: flex; justify-content: space-between; gap: 2rem; margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 2px solid var(--rule); font-family: var(--display); font-weight: 800; font-size: 1.25rem; line-height: 1.2; }
.story-nav a { text-decoration: none; }
.story-nav .next { text-align: right; margin-left: auto; }

/* Footer */
.footer { background: var(--indigo); padding: 2rem 0 2.5rem; font-size: 0.98rem; color: #c9bdf0; }
.footer p { max-width: 46rem; margin: 0 0 0.75rem; }
.footer strong { color: #fff; }

/* On wide screens the content sits in a column on the right, leaving the tower and dome clear on the left. */
@media (min-width: 64rem) {
  body::before { --sky-x: 60%; }
  main.wrap > * { max-width: 46rem; margin-left: auto; }
  .lead-inner { min-height: 22rem; padding: 2rem 2rem 1.75rem; }
  .lead h2 { font-size: 3.2rem; }
  .log li { grid-template-columns: 5rem 1fr auto; }
}
@media (max-width: 40rem) {
  body { font-size: 1.0625rem; }
  .masthead nav { margin-left: 0; width: 100%; }
  .brand { font-size: 2.2rem; }
  .lead { margin: 1.25rem 0 2.5rem; padding: 0.6rem; transform: rotate(-0.8deg); }
  .lead-inner { min-height: 20rem; padding: 1.5rem 1.25rem; }
  .log { padding: 0.25rem 1.1rem; }
  .log li { grid-template-columns: 1fr; }
  .story { padding: 1.75rem 1.25rem; margin-top: 1.25rem; }
  .objectives li { flex-direction: column; gap: 0; }
  .objectives .status { text-align: left; }
}
@media (prefers-reduced-motion: no-preference) {
  .lead { animation: six-in 0.7s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes six-in { from { opacity: 0; transform: rotate(-4deg) translateY(1.5rem); } }
}
