/* Aloha.news v0. Mobile-first, single column, no JS.
   Palette and fonts from the holding page (apps/aloha/public/index.html) and the mockup
   (_archive/aloha_mockup/static/css/style.css). Fonts are self-hosted (SIL OFL, see assets/fonts/). */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/inter-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/inter-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: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/lora-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/lora-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: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/lora-italic-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/lora-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;
}

:root {
  --dark-green: #004d40;
  --lime-green: #cddc39;
  --text: #1a1a1a;
  --muted: #5f6b68;
  --line: #e6ebe9;
  --bg: #ffffff;
  --bg-soft: #f1f5f3;
  --serif: 'Lora', Georgia, serif;
  --sans: 'Inter', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.7;
}

a { color: var(--dark-green); }

header.site, main, footer.site {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---- Header ---- */

header.site {
  padding-top: 18px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--lime-green);
  font-family: var(--sans);
}

.brand { display: block; width: min(240px, 70%); }
.brand img { display: block; width: 100%; height: auto; }

header.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

header.site nav a { text-decoration: none; }

/* ---- Text ---- */

main { padding-top: 24px; padding-bottom: 48px; }

h1, h2, h3 { font-family: var(--sans); font-weight: 700; line-height: 1.25; }
h1 { font-size: 1.7rem; margin: 0.2em 0 0.4em; }
h2 { font-size: 1.3rem; margin-top: 1.8em; }

.page-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-top: 3px solid var(--lime-green);
  padding-top: 12px;
}

.kicker, .byline, time { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }
.kicker { margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.kicker a { text-decoration: none; }
.summary { font-size: 1.15rem; color: var(--muted); margin-top: 0; }
.credit { font-size: 0.95rem; font-style: italic; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 32px; }

/* ---- Images ---- */

.body img, figure img {
  display: block;
  max-width: 100%;
  height: auto;
  background: var(--bg-soft);
}

figure { margin: 1.5em 0; }
figcaption { font-size: 0.9rem; font-style: italic; line-height: 1.5; color: var(--muted); margin-top: 6px; }

/* Covers keep their box while loading or missing. */
img.cover, img.thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-soft);
}

blockquote {
  margin: 1.5em 0;
  padding-left: 16px;
  border-left: 3px solid var(--lime-green);
  color: var(--muted);
}

/* ---- Tables ---- */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5em 0;
}

table {
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.85rem;
  white-space: nowrap;
}

th, td { padding: 6px 10px; border-bottom: 1px solid var(--line); }
th { background: var(--bg-soft); text-align: left; }

/* ---- Home and lists ---- */

a.featured { display: block; text-decoration: none; color: var(--text); margin-bottom: 32px; }
a.featured h1 { color: var(--dark-green); margin-top: 0.5em; }
a.featured p { margin: 0; color: var(--muted); }

ul.list { list-style: none; padding: 0; margin: 0; }
ul.list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
ul.list li div > a { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; line-height: 1.3; text-decoration: none; display: block; }
ul.list p { margin: 4px 0 0; font-size: 1rem; line-height: 1.5; }

@media (min-width: 600px) {
  ul.list li { grid-template-columns: 160px 1fr; gap: 18px; }
}

.hub { margin-top: 40px; }

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

footer.site {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  padding-bottom: 32px;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
}

footer.site p { margin: 4px 0; }

footer.site .initiative {
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
}
