:root {
  --bg: #f3f1ec;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #5f6b76;
  --line: #e4e0d8;
  --brand: #1d4e6b;
  --brand-2: #2f7a8f;
  --accent: #c9822b;
  --pin-bg: #fff7ea;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121a20;
    --card: #1b252d;
    --text: #e8edf1;
    --muted: #9aa8b3;
    --line: #2a3640;
    --brand: #173f57;
    --brand-2: #23617a;
    --accent: #e3a256;
    --pin-bg: #2a2418;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--brand-2); }

.hero {
  background: linear-gradient(160deg, var(--brand), var(--brand-2));
  color: #fff;
  text-align: center;
  padding: calc(36px + env(safe-area-inset-top)) 16px 44px;
}
.hero h1 { margin: 0; font-size: clamp(2rem, 9vw, 2.8rem); letter-spacing: -0.02em; line-height: 1.1; }
.hero p { margin: 8px auto 0; max-width: 32rem; opacity: 0.9; }
.updated {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
  font-weight: 600;
}

main {
  max-width: 640px;
  margin: -24px auto 0;
  padding: 0 16px calc(40px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card {
  display: flex;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.card.pinned { background: var(--pin-bg); border-color: var(--accent); }
.when {
  flex-shrink: 0;
  width: 58px;
  height: 64px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.when .m { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; }
.when .d { font-size: 1.6rem; font-weight: 800; margin-top: 4px; }
.content { min-width: 0; flex: 1; }
.tag { font-size: 0.75rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.card h2 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.card p { margin: 8px 0 0; overflow-wrap: anywhere; }
.card img { display: block; width: 100%; margin-top: 12px; border-radius: 10px; border: 1px solid var(--line); }

.empty { text-align: center; color: var(--muted); padding: 32px 0; }
footer { margin-top: 12px; text-align: center; color: var(--muted); font-size: 0.9rem; overflow-wrap: anywhere; }
