/* Hey News site: the shared system, used by every page. Page-specific layout stays in each page. */
/* Geist (OFL, license in fonts/OFL.txt), self-hosted because the page's security policy allows only this site's own
   fonts. PP Mori was used until 2026-10-25 and removed: Rex's Pangram license doesn't cover web use. */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/geist-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: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Rex's layout, 2026-10-07: one 12-column grid, every block a box, 2 pixel rules between them. The rules are
   the ink showing through the grid's gaps, so every edge is one line. */
:root {
  --page: #ffffff;
  --ink: #000000;            /* text and every rule */
  --red: #f31313;            /* Rex's hand-drawn FREE, the drawing's own red as Extra Extra uses it */
  --blue: #1b2ce6;           /* the app icon's blue: labels, the spoken phrase and behind the screenshot */
  --font: "Geist", system-ui, -apple-system, sans-serif;
  --rule: 2px;
  --pad: clamp(20px, 2.8vw, 40px);      /* inside every box, 40 at the Figma frame's 1440 */
  --gap: clamp(20px, 3.05vw, 44px);     /* between a box's picture and its words */
  --gutter: clamp(12px, 2.8vw, 40px);   /* around the page */

  /* SemiBold is the boldest weight anywhere (Rex, 2026-10-07).
     The type system: six roles, each one size, weight and leading, every size taken from the Figma frame at
     1440 wide and scaling down with the window to a floor. Nothing on the site sets type outside these. */
  --t-label: 600 16px/1.25 var(--font);                                   /* overlines, in blue */
  --t-body: 400 16px/1.35 var(--font);                                    /* paragraphs, answers, the footer */
  --t-lede: 400 clamp(19px, 1.67vw, 24px)/1.35 var(--font);               /* the opening line, the closing line */
  --t-title: 600 clamp(24px, 2.22vw, 32px)/1.25 var(--font);              /* section and step headings */
  --t-display: 600 clamp(34px, 4.1vw, 59px)/1.15 var(--font);             /* the big statements */
  --t-small: 400 13px/1.35 var(--font);                                   /* fine print under a button (Rex, 2026-10-27) */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--page); color: var(--ink); font: var(--t-body); -webkit-font-smoothing: antialiased; padding: var(--gutter); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }

.poster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--rule); background: var(--ink); border: var(--rule) solid var(--ink); }
.box { background: var(--page); padding: var(--pad); min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s5 { grid-column: span 5; } .s6 { grid-column: span 6; }
.s7 { grid-column: span 7; } .s8 { grid-column: span 8; } .s9 { grid-column: span 9; } .s12 { grid-column: span 12; }
.label { font: var(--t-label); color: var(--blue); }
.body { font: var(--t-body); }
.text { font: var(--t-lede); }
.title { font: var(--t-title); max-width: 18ch; }
.say { font: var(--t-display); }
.say em { font-style: normal; color: var(--blue); }
.foot { display: block; font: var(--t-body); }
.right { text-align: right; }
/* Fine print, in the ink at 60 percent: 5.7 to 1 on the page. */
.small { font: var(--t-small); color: color-mix(in srgb, var(--ink) 60%, var(--page)); }

@media (hover: hover) and (pointer: fine) { .foot a:hover { color: var(--blue); } }

/* A button: an ink block with square corners like the boxes, in the label type, blue on hover (D-078; since 2026-10-29 the App Store link, "Get the app"). */
.button { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; white-space: nowrap; padding: 16px 24px; background: var(--ink); color: var(--page); font: var(--t-label); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .button { transition: background-color 200ms ease-out; } .button:hover { background: var(--blue); } }
/* The App Store link carries the Apple logo, as rainbo and File Genie do (Rex, 2026-10-31). */
.button .apple { width: 17px; height: 17px; fill: currentColor; margin-top: -2px; }
.button:focus-visible { outline: var(--rule) solid var(--blue); outline-offset: 4px; }
/* A download: the button with its fine print held close under it, so the two read as one thing. */
.download { display: grid; gap: 16px; justify-items: start; }

@media (max-width: 860px) {
  .s3, .s4, .s5, .s6, .s7, .s8, .s9 { grid-column: span 12; }
}
@media (max-width: 560px) {
  .poster > .box { grid-column: span 12 !important; }
  .right { text-align: left; }
}
