/* inter-cyrillic-ext-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/39fbf8d2c4abc46f721f.woff2) format('woff2'), url(/818b84180553acc613f3.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* inter-cyrillic-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/89455522650c3fb3654c.woff2) format('woff2'), url(/dd21c71421d58232ef03.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* inter-greek-ext-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/f2ef63e732b18d636044.woff2) format('woff2'), url(/fc80974ec6969ee03fd2.woff) format('woff');
  unicode-range: U+1F00-1FFF;
}

/* inter-greek-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/e685387f69602567b1da.woff2) format('woff2'), url(/b412faded087fbcfa4ff.woff) format('woff');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* inter-vietnamese-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/44c9df135eec470b0ab6.woff2) format('woff2'), url(/aaa15d735e3826061950.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* inter-latin-ext-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/210fb826cb25acbd4094.woff2) format('woff2'), url(/c616205185f0d3677df9.woff) format('woff');
  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;
}

/* inter-latin-400-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/eca1e21531598d5db58f.woff2) format('woff2'), url(/2ea1079c0069eb040a52.woff) format('woff');
  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;
}
/* inter-cyrillic-ext-500-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/b2740f247d3be4a05ca0.woff2) format('woff2'), url(/e9974e820735012b025b.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* inter-cyrillic-500-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/33a76a7cbcfcb7076534.woff2) format('woff2'), url(/72f7a9db87626ca30c76.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* inter-greek-ext-500-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/4c6d520b97e3bb4ef613.woff2) format('woff2'), url(/47cc2391a7edf82cf4e1.woff) format('woff');
  unicode-range: U+1F00-1FFF;
}

/* inter-greek-500-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/e7cec4ef4f6780e90a52.woff2) format('woff2'), url(/6d34bacda2be54829b97.woff) format('woff');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* inter-vietnamese-500-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/63d02ea896a7406849b6.woff2) format('woff2'), url(/296d66c0bba9086788b9.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* inter-latin-ext-500-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/cdb4dd5dc508fe6e7398.woff2) format('woff2'), url(/2f93aaa35e870cec4704.woff) format('woff');
  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;
}

/* inter-latin-500-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/b7c27c60f848f2083f45.woff2) format('woff2'), url(/5014db633e71a7741bf5.woff) format('woff');
  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;
}
/* inter-cyrillic-ext-600-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/8c6413cdd8004fde0a19.woff2) format('woff2'), url(/d6d44e8705a633436dfe.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* inter-cyrillic-600-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fdee7b66c2d88216b75f.woff2) format('woff2'), url(/8609e1b95284125f21cb.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* inter-greek-ext-600-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/c3c138d889b8c929822c.woff2) format('woff2'), url(/c7983dac0ad6a359aef0.woff) format('woff');
  unicode-range: U+1F00-1FFF;
}

/* inter-greek-600-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/984050ecee12eabe9366.woff2) format('woff2'), url(/d8b0044cf6afdd52b07b.woff) format('woff');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* inter-vietnamese-600-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/6984cf5e8583fac83be3.woff2) format('woff2'), url(/04bb56ffa463ab55708d.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* inter-latin-ext-600-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/8148c3ae14dfaefc62ca.woff2) format('woff2'), url(/4d0d5017d71ea1750fc1.woff) format('woff');
  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;
}

/* inter-latin-600-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/69a8d1d484967aba2389.woff2) format('woff2'), url(/f10265da6bd8d66999ac.woff) format('woff');
  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;
}
/* source-serif-4-cyrillic-ext-600-normal */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/eaf8926c0b2c37855279.woff2) format('woff2'), url(/d3584ace35e496d12f00.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* source-serif-4-cyrillic-600-normal */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/2e6591e290db32d8fffd.woff2) format('woff2'), url(/bfaaeded47dc1dfbb1d3.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* source-serif-4-greek-600-normal */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/6b20dbece3ec14000565.woff2) format('woff2'), url(/b366034554ffe5e2608a.woff) format('woff');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* source-serif-4-vietnamese-600-normal */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/287fbcd86542923e3ed7.woff2) format('woff2'), url(/dfbc7221fd151832df9b.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* source-serif-4-latin-ext-600-normal */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/64d949738bc577338384.woff2) format('woff2'), url(/74b0da344967b962a56f.woff) format('woff');
  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-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* source-serif-4-latin-600-normal */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/63162eec71e4dfe248c2.woff2) format('woff2'), url(/5c18b245a5b1683b1410.woff) format('woff');
  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;
}
/* source-serif-4-cyrillic-ext-700-normal */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/74cc1401db38ef90bdf7.woff2) format('woff2'), url(/048b29dc1f44fd8a4ba2.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* source-serif-4-cyrillic-700-normal */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/18f27ddf5313c74a6ef4.woff2) format('woff2'), url(/c992bb167ccde8f5e609.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* source-serif-4-greek-700-normal */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/edfc242d7d1df02fb2f0.woff2) format('woff2'), url(/8b45d827dd64a442ffbb.woff) format('woff');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* source-serif-4-vietnamese-700-normal */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/8c00683e746dc0f0d01e.woff2) format('woff2'), url(/4d032c0f562b14748fc1.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* source-serif-4-latin-ext-700-normal */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/d7ac71a17d8707baef1d.woff2) format('woff2'), url(/29410f16725f5794157a.woff) format('woff');
  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-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* source-serif-4-latin-700-normal */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/1cccb2db5709713b908f.woff2) format('woff2'), url(/ce7233691652b8d204d6.woff) format('woff');
  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;
}
/* The one shared stylesheet for every page: fonts, colours, spacing and layout. Loaded once in index.tsx. */

/* Fonts are bundled with the app (from the @fontsource packages), so visitors' browsers never contact Google. */

/* Design tokens: named values used everywhere below. Change a colour here and every page follows. */
:root {
  --font-body: 'Inter', system-ui, sans-serif;
  --font-heading: 'Source Serif 4', Georgia, serif;

  --colour-page: #f7f5f0;        /* warm off-white page background */
  --colour-surface: #ffffff;     /* cards and the header */
  --colour-border: #e3e0d8;
  --colour-text: #1f2421;
  --colour-text-soft: #3a413d;   /* summaries */
  --colour-text-muted: #5b635e;  /* source, date and other small print */
  --colour-accent: #2f6b4f;      /* green: logo, links on hover, focus ring */
  --colour-tag-text: #24543d;
  --colour-tag-background: #e6f0ea;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;

  --radius-card: 12px;
  --content-width: 640px;
  --footer-height: 40px;
}

/* Widths include padding and borders, so boxes are exactly as wide as they say. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--colour-page);
  color: var(--colour-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

h1,
h2 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

a {
  color: inherit;
}

a:hover {
  color: var(--colour-accent);
}

/* A clear outline for keyboard users moving through links with Tab. */
:focus-visible {
  outline: 3px solid var(--colour-accent);
  outline-offset: 2px;
}

/* ---- Layout: the header and the centred column every page shares (components/Layout.tsx) ---- */

.site-header {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0 var(--space-7);
  background: var(--colour-surface);
  border-bottom: 1px solid var(--colour-border);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  /* Big enough to tap easily with a finger. */
  min-height: 44px;
}

.site-logo svg {
  color: var(--colour-accent);
}

/* The page's own content: one centred column, never wider than --content-width,
   with a 16px gap at the sides so it never touches the screen edge on a phone. */
.page {
  max-width: calc(var(--content-width) + 2 * var(--space-4));
  margin: 0 auto;
  padding: var(--space-7) var(--space-4);
}

.page-intro {
  margin-bottom: var(--space-6);
}

.page-intro h1 {
  margin: 0 0 var(--space-2);
  font-size: 36px;
}

.page-intro p {
  margin: 0;
  font-size: 17px;
  color: var(--colour-text-muted);
}

/* The footer: a slim bar that stays at the bottom of the screen while the reader scrolls. */
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--footer-height);
  padding: 0 var(--space-4);
  background: var(--colour-surface);
  border-top: 1px solid var(--colour-border);
  font-size: 13px;
  color: var(--colour-text-muted);
}

/* Room under the last story, so the footer never covers it. */
body {
  padding-bottom: var(--footer-height);
}

/* When the browser scrolls to a link (for example after Tab), it stops above the footer, not under it. */
html {
  scroll-padding-bottom: var(--footer-height);
}

.site-footer p {
  margin: 0;
}

/* The heart is an outline that fills with green when the reader points at (or taps) the footer. */
.site-footer svg {
  vertical-align: -2px;
  color: var(--colour-accent);
  fill: transparent;
  transition: fill 300ms ease;
}

.site-footer:hover svg,
.site-footer:active svg {
  fill: currentColor;
}

/* Readers who switched off animations in their device settings get the fill straight away. */
@media (prefers-reduced-motion: reduce) {
  .site-footer svg {
    transition: none;
  }
}

/* On very short screens (a phone turned sideways, or text zoomed a lot) a fixed bar would take too much room,
   so the footer goes back to the end of the page. */
@media (max-height: 500px) {
  .site-footer {
    position: static;
  }

  body {
    padding-bottom: 0;
  }

  html {
    scroll-padding-bottom: 0;
  }
}

/* ---- Story cards (pages/HomePage.tsx) ---- */

.story-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.story-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--colour-surface);
  border: 1px solid var(--colour-border);
  border-radius: var(--radius-card);
  /* A very long word or web address wraps instead of making the page scroll sideways. */
  overflow-wrap: anywhere;
}

.story-meta {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--colour-text-muted);
}

.story-headline {
  margin: 0;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.25;
}

.story-headline a {
  text-decoration: none;
}

.story-headline a:hover {
  text-decoration: underline;
}

.story-summary p {
  margin: 0;
  color: var(--colour-text-soft);
  line-height: 1.55;
}

/* "AI summary": a small label so readers know which text the AI wrote. */
.story-summary .story-summary-label {
  margin-bottom: var(--space-1);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--colour-tag-text);
}

/* Topic tags: a list shown as a row of rounded labels. */
.story-topics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-topics li {
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  background: var(--colour-tag-background);
  color: var(--colour-tag-text);
  font-size: 13px;
  font-weight: 500;
}

/* ---- Phones: screens 600px wide or less get tighter spacing and slightly smaller text ---- */

@media (max-width: 600px) {
  .site-header {
    min-height: 56px;
    padding: 0 var(--space-4);
  }

  .site-logo {
    font-size: 20px;
  }

  .page {
    padding-top: var(--space-5);
    padding-bottom: var(--space-5);
  }

  .page-intro {
    margin-bottom: var(--space-5);
  }

  .page-intro h1 {
    font-size: 28px;
  }

  .page-intro p {
    font-size: 16px;
  }

  .story-card {
    padding: 18px;
    gap: var(--space-2);
  }

  .story-headline {
    font-size: 20px;
  }

  .story-summary p {
    font-size: 15px;
  }

  .story-summary .story-summary-label {
    font-size: 12px;
  }
}

