/* Shared styling for the landing page and briefing archive index pages.
   Individual issue pages are self-contained (Cowork inlines their own CSS),
   so this file only styles the site chrome. */

:root {
  --ink: #1a1c22;
  --muted: #5c6470;
  --accent: #0f7b6c;
  --rule: #e4e7ec;
  --bg: #ffffff;
  --page: #f4f5f7;
  --card: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9ecf1;
    --muted: #9aa3b0;
    --accent: #4fd1bd;
    --rule: #2a2e37;
    --bg: #14161b;
    --page: #0d0f13;
    --card: #191c22;
  }
}
:root[data-theme="light"] {
  --ink: #1a1c22; --muted: #5c6470; --accent: #0f7b6c;
  --rule: #e4e7ec; --bg: #ffffff; --page: #f4f5f7; --card: #ffffff;
}
:root[data-theme="dark"] {
  --ink: #e9ecf1; --muted: #9aa3b0; --accent: #4fd1bd;
  --rule: #2a2e37; --bg: #14161b; --page: #0d0f13; --card: #191c22;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.site-head { margin-bottom: 48px; }

.site-head a.home {
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 12px;
}

h1 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.lede {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 8px;
  max-width: 60ch;
}

/* Briefing cards on the landing page */
.cards { display: grid; gap: 20px; margin-top: 40px; }

.card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 28px 28px 24px;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.01em; }
.card p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.card .latest { font-size: 13px; color: var(--accent); font-weight: 600; }

/* RSS link under a briefing header */
.feed-link { margin: 16px 0 0; }
.feed-link a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.feed-link a::before { content: "\1F4E1  "; }

/* Archive list on a briefing index */
.issues { list-style: none; padding: 0; margin: 32px 0 0; }
.issues li { border-top: 1px solid var(--rule); }
.issues li:last-child { border-bottom: 1px solid var(--rule); }
.issues a {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: inherit;
  padding: 18px 4px;
}
.issues a:hover .issue-title { color: var(--accent); }

.thumb {
  flex: 0 0 auto;
  width: 104px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--page);
  border: 1px solid var(--rule);
}
.thumb--empty { display: block; }

.row-text { display: flex; flex-direction: column; min-width: 0; }
.issue-date {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 5px;
}
.issue-title { font-size: 18px; font-weight: 600; margin: 0; letter-spacing: -0.01em; line-height: 1.3; }

@media (max-width: 480px) {
  .thumb { width: 76px; height: 54px; }
  .issue-title { font-size: 16px; }
}

.empty {
  margin-top: 40px;
  padding: 32px;
  border: 1px dashed var(--rule);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

footer.site-foot {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 13px;
}
footer.site-foot a { color: var(--accent); text-decoration: none; }
