/* looks.css: eight editions of the same paper. Each look only sets tokens that paper.css reads.
   Same specificity as paper.css's defaults and loaded after it, so a look wins. */

/* 1. Broadsheet: cream newsprint, Fraunces, red kicker, halftone plates (paper.css defaults) */
html:root[data-look="broadsheet"] { }

/* 2. Morning: white paper, crisp Newsreader heads, navy, colour pictures */
html:root[data-look="morning"] {
  --paper: #FBFAF6; --paper-2: #EDEBE4; --ink: #121212; --ink-2: #3D3D3D; --ink-3: #727272; --rule: #D7D4CC; --rule-2: #121212;
  --accent: #1F3F6B; --f-head: "Newsreader", Georgia, serif; --f-mark: "Playfair Display", Georgia, serif; --mark-w: 900; --mark-size: 48px; --mark-ls: -.01em;
  --head-w: 600; --head-ls: -.008em; --img-filter: saturate(.92) contrast(1.04); --img-blend: normal; --halftone: 0; --grain: 0;
  --glass: rgba(251, 250, 246, .76); --box: rgba(31, 63, 107, .04);
}

/* 3. Night: the evening edition, charcoal paper, cream ink, maple */
html:root[data-look="night"] {
  color-scheme: dark;
  --paper: #171511; --paper-2: #26221C; --ink: #EEE7D7; --ink-2: #BDB3A2; --ink-3: #8A8072; --rule: #3A342B; --rule-2: #D9D0BE;
  --accent: #E8743D; --accent-ink: #171511; --img-filter: grayscale(1) contrast(1.15) brightness(.86); --img-blend: normal; --halftone: .45;
  --glass: rgba(34, 30, 25, .74); --glass-line: rgba(255, 255, 255, .12); --glass-edge: rgba(255, 255, 255, .1);
  --glass-on: rgba(238, 231, 215, .92); --glass-on-ink: #171511; --glass-shadow: 0 8px 30px rgba(0, 0, 0, .5);
  --box: rgba(255, 255, 255, .03);
}
html:root[data-look="night"] body { background-image: none; }
html:root[data-look="night"] .stamp { background: rgba(23, 21, 17, .6); mix-blend-mode: normal; }

/* 4. Sunday: the magazine, italic Fraunces, colour pictures, deep green */
html:root[data-look="sunday"] {
  --paper: #F5EFE4; --paper-2: #E9E0D0; --ink: #1E1B16; --ink-2: #4C463D; --ink-3: #807769; --rule: #D6CCBA; --rule-2: #1E1B16;
  --accent: #2F5D50; --mark-style: italic; --mark-w: 700; --mark-size: 54px; --head-style: italic; --head-w: 500; --head-scale: 1.06;
  --img-filter: saturate(1.05) contrast(1.02); --img-blend: normal; --halftone: 0; --box: rgba(47, 93, 80, .05);
}
/* Sunday keeps the headline on the first screen; its plate is a little taller than the daily's */
html:root[data-look="sunday"] .card.lead .pic.wide { aspect-ratio: 4 / 3; }

/* 5. Gazette: an 1890s town paper, blackletter mast, Old Standard, sepia plates, heavy rules */
html:root[data-look="gazette"] {
  --paper: #ECE3CC; --paper-2: #DDD1B4; --ink: #241E16; --ink-2: #4E4434; --ink-3: #7E715B; --rule: #B9AB8D; --rule-2: #241E16; --rule-w: 1.3px;
  --accent: #7A2E1D; --f-head: "Old Standard TT", Georgia, serif; --f-body: "Old Standard TT", Georgia, serif; --f-mark: "UnifrakturMaguntia", "Old Standard TT", serif;
  --mark-w: 400; --mark-size: 50px; --mark-ls: 0; --head-w: 700; --head-ls: -.005em; --head-scale: .96;
  --img-filter: grayscale(1) sepia(.45) contrast(1.2); --halftone: .6; --box: rgba(122, 46, 29, .04);
}

/* 6. Almanac: kraft paper, soft heavy Fraunces, field green, sepia */
html:root[data-look="almanac"] {
  --paper: #E3D3B3; --paper-2: #D4C19C; --ink: #2B2619; --ink-2: #514732; --ink-3: #7F7255; --rule: #B8A47D; --rule-2: #2B2619;
  --accent: #3D6A35; --mark-w: 900; --mark-tt: uppercase; --mark-size: 40px; --mark-ls: .06em; --head-w: 800;
  --img-filter: grayscale(1) sepia(.6) contrast(1.15) brightness(1.02); --halftone: .55; --box: rgba(61, 106, 53, .06);
}
html:root[data-look="almanac"] .hed, html:root[data-look="almanac"] .wordmark, html:root[data-look="almanac"] .section-title { font-variation-settings: "opsz" 72, "SOFT" 100, "WONK" 1; }

/* 7. Tabloid: condensed caps, red mast, punchy colour */
html:root[data-look="tabloid"] {
  --paper: #F6F4EF; --paper-2: #E7E3DA; --ink: #111111; --ink-2: #333333; --ink-3: #6A6A6A; --rule: #CFCAC0; --rule-2: #111111;
  --accent: #D0021B; --f-head: "Oswald", "Arial Narrow", sans-serif; --f-mark: "Oswald", "Arial Narrow", sans-serif;
  --mark-w: 700; --mark-tt: uppercase; --mark-size: 44px; --mark-ls: .01em; --mark-color: #FFFFFF; --mark-bg: #D0021B;
  --head-w: 600; --head-tt: uppercase; --head-ls: .005em; --head-scale: .94;
  --img-filter: saturate(1.25) contrast(1.12); --img-blend: normal; --halftone: 0; --grain: 0; --box: rgba(208, 2, 27, .04);
}
html:root[data-look="tabloid"] .wordmark { padding: 4px 0 2px; }
html:root[data-look="tabloid"] .line { font-family: "Libre Franklin", sans-serif; font-size: 14px; }

/* 8. Ledger: salmon paper, quiet Newsreader, teal, muted colour */
html:root[data-look="ledger"] {
  --paper: #F3E0D2; --paper-2: #E8CDBB; --ink: #262A33; --ink-2: #4A4E58; --ink-3: #7C7C82; --rule: #D9BFAD; --rule-2: #262A33;
  --accent: #0D5C63; --f-head: "Newsreader", Georgia, serif; --f-mark: "Newsreader", Georgia, serif; --mark-w: 700; --mark-tt: uppercase; --mark-size: 38px; --mark-ls: .08em;
  --head-w: 500; --head-ls: -.005em; --img-filter: saturate(.7) contrast(1.05); --img-blend: multiply; --halftone: 0; --box: rgba(13, 92, 99, .05);
}

/* Nov 19 2026: Broadsheet (the default) and Night are set in Source Serif 4 for headlines and the
   masthead and Libre Franklin for everything else. Stephen compared six faces on his own screens
   (shots/fonts/); Fraunces was the hardest to read. The other six looks keep their own type.
   ?font=fraunces shows the old setting (js/fontlab.js). */
html:root[data-look="broadsheet"], html:root[data-look="night"] {
  --f-head: "Source Serif 4", Georgia, serif; --f-mark: "Source Serif 4", Georgia, serif;
  --f-body: "Libre Franklin", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --head-w: 700; --mark-w: 800; --head-ls: -.012em; --mark-ls: -.015em;
}
/* with a sans text face the paper's italic lines (datelines, decks, counts) are set upright; real emphasis stays */
html:root:is([data-look="broadsheet"], [data-look="night"]):not([data-shell="modern"]):not([data-font="fraunces"]) :is(#main, .lookbox) *:not(em):not(.fr-word) { font-style: normal; }
