/* ==========================================================================
   The Pickering Post — navy chrome
   pickeringpost.ca

   The Broadsheet design system, cut for a daily: a grey utility strip, the
   tile lockup in the masthead, a solid band-navy nav under it, a hero
   photograph carrying the lead, a filled rail down the right, and a navy
   footer closing the page.

   The package's rules, kept:
   - Everything is set in Source Serif 4, declared below. The woff2 files are
     already in the release (Turtle Island brought them), so this paper adds
     no font FILES — but it must still declare the face itself, because an
     @font-face only applies to pages that load the stylesheet carrying it.
   - Every blue is a step of the system's cyan ramp. Cyan is the tile, the
     buttons, the links and the section slugs; at running-text size it drops
     to the 700 step for contrast.
   - Magenta is Breaking and Live only, and never appears in the same
     component as cyan.
   - Process yellow prints in photographs and plates. It never sets type or
     chrome.
   - Newsprint grey is the only grey fill — the utility strip and the rail
     modules. Standing copy is never greyed and never centred.
   - Body copy sets to a 58-character measure.
   ========================================================================== */

/* The face has to be declared in a stylesheet THIS PAPER LOADS. The woff2
   files live in the release because Turtle Island brought them, but an
   @font-face in turtleisland.css is invisible to a page that never links it,
   and naming the family in a font stack does not fetch anything. Without
   this block the masthead silently falls back to Liberation Serif. */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 200 900;              /* variable — one file carries 400 and 600 */
  font-display: swap;
  src: url('/assets/fonts/source-serif-4-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url('/assets/fonts/source-serif-4-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

body.t-pickering {
  /* --- Ink ---------------------------------------------------------------- */
  --paper:    #F3F2F2;   /* newsprint: the reading ground, and type on navy */
  --surface:  #EAE9E9;   /* newsprint grey: utility strip + filled rail only */
  --ink:      #201E1D;   /* headlines and body — never greyed down */
  --navy:     #004961;   /* band navy: section nav, and the hero's wash */
  --navy-900: #0A303E;   /* footer navy: the darkest thing on the page */
  --cyan:     #0088B0;   /* tile, buttons, links, section slugs */
  --cyan-700: #006786;   /* the same cyan at running-text size */
  --magenta:  #D6006C;   /* Breaking and Live. Nothing else. */
  --yellow:   #EDBB00;   /* plates and photographs only */

  --n-400:    #BAB6B6;
  --n-700:    #605D5D;
  --quiet:    color-mix(in srgb, var(--ink) 70%, transparent);
  --rule:     color-mix(in srgb, var(--ink) 16%, transparent);

  --serif: 'Source Serif 4', Charter, Georgia, 'Times New Roman', serif;
  --col:   1160px;       /* the page column */
  --r:     2px;          /* Broadsheet's radius — not a pill */

  background: var(--n-400);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.t-pickering a { color: var(--cyan-700); text-decoration: none; }
.t-pickering a:hover { color: var(--cyan); text-decoration: underline; }
.t-pickering ::selection { background: color-mix(in srgb, var(--cyan) 22%, transparent); }
.t-pickering :focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.t-pickering img { max-width: 100%; display: block; }
.t-pickering h1, .t-pickering h2, .t-pickering h3, .t-pickering h4 {
  font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; margin: 0;
  text-wrap: balance;
}

/* --- The page column ------------------------------------------------------ */

.pk-page {
  max-width: var(--col); margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 3px 10px color-mix(in srgb, #2d2b2b 16%, transparent);
}
.pk-pad { padding: 56px clamp(16px, 3vw, 28px); }

/* --- Utility strip: the only grey fill besides the rail ------------------- */

.pk-util {
  background: var(--surface);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px 28px;
  padding: 8px clamp(16px, 3vw, 28px);
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--quiet);
}
.pk-util a { color: inherit; }
.pk-util a:hover { color: var(--ink); text-decoration: none; }
.pk-util .grp { display: flex; flex-wrap: wrap; gap: 18px; }

/* --- Masthead: the tile lockup ------------------------------------------- */

.pk-mast {
  background: var(--paper);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px 42px;
  padding: 24px clamp(16px, 3vw, 28px);
}
.pk-lock { display: flex; align-items: center; gap: 16px; color: inherit; }
.pk-lock:hover { text-decoration: none; }
/* A cyan tile carrying the initial in the headline face — 2px radius, the
   system's own, never a pill. It holds down to 28px for a favicon. */
.pk-tile {
  width: 48px; height: 48px; flex: none;
  background: var(--cyan); border-radius: var(--r);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600; font-size: 32px;
  line-height: 1; color: var(--paper);
}
.pk-name { font-weight: 600; font-size: 34px; line-height: 1; letter-spacing: -0.025em; }
.pk-mast .sub {
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--quiet);
}
/* Specificity note: `.t-pickering a` is (0,1,1) and would otherwise beat a
   bare `.pk-btn` (0,1,0), painting the label cyan-on-cyan. */
.t-pickering .pk-btn {
  display: inline-block; font-family: var(--serif);
  font-size: 15px; font-weight: 600; padding: 10px 20px;
  border: 0; border-radius: var(--r);
  background: var(--cyan); color: var(--paper); cursor: pointer;
}
.t-pickering .pk-btn:hover { background: var(--cyan-700); color: var(--paper); text-decoration: none; }

/* --- The navy section band ----------------------------------------------- */

.pk-nav {
  background: var(--navy);
  display: flex; flex-wrap: wrap;
  gap: 0 clamp(18px, 2.6vw, 32px);
  padding: 0 clamp(16px, 3vw, 28px);
}
.pk-nav a {
  color: color-mix(in srgb, var(--paper) 82%, transparent);
  font-size: 15px; padding: 14px 0;
}
.pk-nav a:hover { color: var(--paper); text-decoration: none; }
.pk-nav a[aria-current] {
  color: var(--paper);
  box-shadow: inset 0 -2px 0 var(--paper);
}

/* --- The hero: photograph under a directional navy wash ------------------ */

.pk-hero { position: relative; min-height: 460px; display: grid; background: var(--navy-900); }
.pk-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pk-hero .wash {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg,
    color-mix(in srgb, var(--navy-900) 88%, transparent) 0%,
    color-mix(in srgb, var(--navy-900) 62%, transparent) 48%,
    color-mix(in srgb, var(--navy-900) 28%, transparent) 100%);
}
.pk-hero .in {
  position: relative; align-self: center;
  padding: 42px clamp(16px, 3vw, 28px); max-width: 640px;
}
.pk-hero .slug {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 82%, transparent); margin: 0 0 12px;
}
.pk-hero h1 { font-size: clamp(30px, 4vw, 44px); color: var(--paper); }
.pk-hero .standfirst {
  font-style: italic; font-size: 19px; line-height: 1.5;
  color: color-mix(in srgb, var(--paper) 88%, transparent);
  margin: 18px 0 28px; max-width: 48ch;
}
.pk-hero .more {
  display: inline-block; font-size: 15px; font-weight: 600;
  padding: 10px 20px; border-radius: var(--r);
  background: var(--cyan); color: var(--paper);
}
.pk-hero .more:hover { background: var(--cyan-700); color: var(--paper); text-decoration: none; }

/* --- The body: main well beside the filled rail --------------------------- */

.pk-main {
  background: var(--paper);
  display: flex; flex-wrap: wrap; gap: 56px;
  padding: 56px clamp(16px, 3vw, 28px);
  align-items: flex-start;
}
.pk-well { flex: 1 1 560px; min-width: min(100%, 320px); }
.pk-rail { flex: 0 1 300px; min-width: min(100%, 260px); }

/* Section heads: a slug, then a hairline. Desks share one cyan tint, so no
   section owns a colour of its own. */
.pk-sechead {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; margin: 0 0 24px; border-bottom: 1px solid var(--rule); padding-bottom: 10px;
}
.pk-sechead h2 { font-size: 22px; }
.pk-sechead a { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

.pk-slug {
  display: inline-block; font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--cyan-700); margin: 0 0 8px;
}
.pk-slug--opinion {
  color: var(--ink); padding: 2px 8px;
  box-shadow: inset 0 0 0 1px var(--rule); border-radius: var(--r);
}
.pk-slug--obit { color: var(--quiet); }
.pk-slug--breaking { color: var(--paper); background: var(--magenta); padding: 2px 8px; border-radius: var(--r); }

/* Items anchor to the top of their row, so a text-only story beside a
   picture story reads as a short item rather than a stretched one. */
.pk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 42px 42px; align-items: start; }
.pk-item h3 { font-size: 21px; margin: 0 0 8px; }
.pk-item p { font-size: 16px; line-height: 1.6; margin: 0; max-width: 54ch; }
.pk-item .by {
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--quiet); margin: 10px 0 0;
}
/* The shot is an <a>, and an inline element ignores aspect-ratio and
   overflow — the image would render at its natural ratio and blow the grid
   row out. It has to be block. */
.pk-item .shot { display: block; margin: 0 0 14px; aspect-ratio: 16/10; overflow: hidden; background: var(--navy-900); }
.pk-item .shot img { width: 100%; height: 100%; object-fit: cover; }

/* Events read as a dated list rather than cards. */
.pk-events { display: flex; flex-direction: column; gap: 20px; margin: 48px 0 0; }
.pk-events .ev h3 { font-size: 18px; margin: 0 0 4px; }
.pk-events .ev p { font-size: 15px; color: var(--ink); margin: 0; max-width: 58ch; }

/* Community Spotlight — the one feature that runs wide under the columns. */
.pk-spot { margin: 56px 0 0; padding: 32px 0 0; border-top: 1px solid var(--rule); }
.pk-spot .in { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.pk-spot .shot { display: block; flex: 0 1 340px; aspect-ratio: 1; overflow: hidden; background: var(--navy-900); border-radius: var(--r); }
.pk-spot .shot img { width: 100%; height: 100%; object-fit: cover; }
.pk-spot .txt { flex: 1 1 320px; }
.pk-spot h3 { font-size: 26px; margin: 8px 0 12px; }
.pk-spot p { font-size: 17px; line-height: 1.7; max-width: 52ch; margin: 0 0 14px; }

/* --- The filled rail ------------------------------------------------------ */

.pk-mod { margin: 0 0 28px; }
.pk-mod .hd {
  background: var(--surface); padding: 8px 14px;
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--quiet);
}
.pk-mod .bd { background: var(--surface); padding: 14px; }

.pk-search { display: flex; gap: 10px; }
.pk-search input {
  flex: 1; min-width: 0; font-family: var(--serif); font-size: 15px;
  padding: 9px 12px; border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--paper); color: var(--ink);
}

.pk-sub { background: var(--navy-900); padding: 20px; border-radius: var(--r); }
.pk-sub h3 { font-size: 20px; color: var(--paper); margin: 0 0 8px; }
.pk-sub p { font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--paper) 82%, transparent); margin: 0 0 14px; }
.pk-sub form { display: flex; flex-direction: column; gap: 10px; }
.pk-sub input {
  font-family: var(--serif); font-size: 15px; padding: 9px 12px;
  border: 0; border-radius: var(--r); background: var(--paper); color: var(--ink);
}
.pk-sub button {
  font-family: var(--serif); font-size: 15px; font-weight: 600;
  padding: 10px 16px; border: 0; border-radius: var(--r);
  background: var(--cyan); color: var(--paper); cursor: pointer;
}
.pk-sub button:hover { background: var(--cyan-700); }
.pk-sub .done { font-size: 15px; color: var(--paper); }

/* Latest: a timestamped list, the clock flush left. */
.pk-latest .bd { padding: 0; }
.pk-latest .it {
  display: flex; gap: 14px; padding: 12px 14px;
  border-bottom: 1px solid var(--rule); color: var(--ink);
}
.pk-latest .it:last-child { border-bottom: 0; }
.pk-latest .it:hover { text-decoration: none; background: color-mix(in srgb, var(--cyan) 6%, transparent); }
.pk-latest .when {
  flex: none; width: 46px; font-size: 13px; letter-spacing: .04em;
  color: var(--cyan-700); padding-top: 2px;
}
.pk-latest .ttl { font-size: 15px; line-height: 1.4; }

/* --- Article -------------------------------------------------------------- */

.pk-art .head { max-width: 58ch; }
.pk-art h1 { font-size: clamp(30px, 3.6vw, 42px); margin: 6px 0 0; }
.pk-art .standfirst {
  font-style: italic; font-size: 21px; line-height: 1.5;
  max-width: 46ch; margin: 18px 0 28px;
}
.pk-art .byrow {
  display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center;
  padding: 0 0 28px; border-bottom: 1px solid var(--rule);
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--quiet);
}
.pk-art .byrow strong { color: var(--ink); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 15px; }
.pk-art figure { margin: 28px 0 0; }
.pk-art figcaption {
  font-size: 13px; color: var(--quiet); margin: 8px 0 0; line-height: 1.5;
  max-width: 58ch;
}
.pk-body {
  display: flex; flex-direction: column; gap: 20px;
  max-width: 58ch; font-size: 17px; line-height: 1.75; margin: 28px 0 0;
}
.pk-body p { margin: 0; }
.pk-body h2 { font-size: 24px; margin: 12px 0 0; }
.pk-body a { color: var(--cyan-700); text-decoration: underline; text-underline-offset: 2px; }
.pk-body img { margin: 8px 0; }
.pk-body blockquote {
  margin: 8px 0; padding: 0 0 0 22px;
  border-left: 3px solid var(--cyan);
  font-style: italic; font-size: 21px; line-height: 1.5;
}
.pk-body blockquote p { margin: 0 0 8px; }
.pk-body blockquote cite {
  display: block; font-style: normal; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--quiet);
}
.pk-note { font-size: 14px; color: var(--quiet); margin: 28px 0 0; max-width: 58ch; }
.pk-note a { color: var(--cyan-700); text-decoration: underline; }

/* --- Section front: the centred nameplate treatment ---------------------- */

/* Caps, centred, the desk set small between two hairlines. This is the one
   symmetrical thing in the system, and nothing below it centres. */
.pk-sectop { text-align: center; padding: 40px clamp(16px, 3vw, 28px) 32px; background: var(--paper); }
/* A <span> is inline, so width/height would be ignored and the hairline would
   render at 0x0. The package is explicit that the desk sits between two of
   them, so they have to be block. */
.pk-sectop .rule { display: block; height: 1px; width: 72px; background: var(--ink); margin: 0 auto; }
.pk-sectop h1 {
  font-size: clamp(28px, 3.4vw, 40px); letter-spacing: .06em;
  text-transform: uppercase; margin: 18px 0;
}
.pk-sectop p {
  font-size: 16px; line-height: 1.6; color: var(--ink);
  max-width: 58ch; margin: 18px auto 0; text-align: left;
}

/* --- Footer --------------------------------------------------------------- */

.pk-foot { background: var(--navy-900); color: var(--paper); }
.pk-foot .cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px; padding: 42px clamp(16px, 3vw, 28px) 28px;
}
.pk-foot h4 {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 70%, transparent); margin: 0 0 12px;
}
.pk-foot a { color: var(--paper); display: block; font-size: 15px; margin: 0 0 8px; }
.pk-foot a:hover { color: var(--paper); text-decoration: underline; }
.pk-foot .lock { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
.pk-foot .lock .pk-tile { width: 36px; height: 36px; font-size: 24px; }
.pk-foot .lock .nm { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.pk-foot .base {
  border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
  padding: 18px clamp(16px, 3vw, 28px);
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 82%, transparent);
}

.pk-empty { padding: 56px 0; font-size: 17px; color: var(--ink); }
.pk-empty a { color: var(--cyan-700); text-decoration: underline; }

.pk-pag { display: flex; gap: 8px; margin: 42px 0 0; font-size: 15px; }
.pk-pag a, .pk-pag span { padding: 8px 14px; border-radius: var(--r); }
.pk-pag span[aria-current] { background: var(--cyan); color: var(--paper); }

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 900px) {
  .pk-main { gap: 42px; padding: 42px clamp(16px, 3vw, 28px); }
  .pk-hero { min-height: 340px; }
  .pk-spot .in { gap: 24px; }
}
@media (max-width: 620px) {
  .pk-page { box-shadow: none; }
  .pk-util { font-size: 12px; padding: 8px 16px; }
  .pk-util > span:first-child { display: none; }   /* the dateline crowds the links */
  .pk-mast { padding: 18px 16px; gap: 14px; }
  .pk-name { font-size: 26px; }
  .pk-tile { width: 40px; height: 40px; font-size: 27px; }
  .pk-nav { gap: 0 20px; overflow-x: auto; padding: 0 16px; }
  .pk-hero { min-height: 260px; }
  .pk-hero .in { align-self: end; padding: 20px 16px; }
  .pk-main { padding: 24px 16px; }
  .pk-grid { grid-template-columns: 1fr; gap: 32px; }
  .pk-body { font-size: 16px; }
}
