:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --panel: #111827;
  --muted-panel: #17202d;
  --ink: #f8fafc;
  --muted: #9ca3af;
  --line: #263244;
  --accent: #38bdf8;
  --hot: #f97316;
  --ok: #22c55e;
  --danger: #fb7185;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 14px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 20, 0.92);
  backdrop-filter: blur(16px);
}

.topbar h1,
.lead h2,
.section-title h2,
.post h3 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: clamp(20px, 4vw, 30px);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.status {
  min-width: 112px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
}

.shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 24px clamp(14px, 4vw, 28px) 56px;
}

.lead {
  display: grid;
  min-height: 260px;
  align-items: end;
  padding: clamp(22px, 5vw, 46px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(11, 15, 20, 0.96), rgba(11, 15, 20, 0.7)),
    url("/generated/daily-ai-security-watch.png");
  background-position: center;
  background-size: cover;
}

.lead-copy {
  max-width: 740px;
}

.lead h2 {
  max-width: 820px;
  font-size: clamp(28px, 6vw, 56px);
  line-height: 1.03;
}

.lead p:last-child {
  max-width: 680px;
  color: #d1d5db;
  font-size: 16px;
  line-height: 1.6;
}

.feed {
  padding-top: 28px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title h2 {
  font-size: 22px;
}

button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
}

button:hover {
  border-color: var(--accent);
}

.posts {
  display: grid;
  gap: 18px;
}

.post {
  display: grid;
  grid-template-columns: minmax(240px, 38%) 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.post-media {
  min-height: 280px;
  background: linear-gradient(135deg, #111827, #164e63);
  background-position: center;
  background-size: cover;
}

.post-body {
  padding: 22px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.tag {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #cbd5e1;
}

.tag.hot {
  border-color: rgba(249, 115, 22, 0.7);
  color: #fed7aa;
}

.post h3 {
  font-size: clamp(21px, 3vw, 32px);
  line-height: 1.12;
}

.summary {
  color: #d1d5db;
  line-height: 1.55;
}

.priority {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding-left: 22px;
}

.priority li {
  color: #e5e7eb;
  line-height: 1.45;
}

.solutions {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.solution-group {
  display: grid;
  gap: 8px;
}

.solution-group h4 {
  margin: 0;
  color: #f8fafc;
  font-size: 14px;
  letter-spacing: 0;
}

.solution-row {
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}

.solution-group.protected .solution-row {
  border-color: var(--ok);
}

.solution-group.partial .solution-row {
  border-color: var(--accent);
}

.solution-group.backlog .solution-row {
  border-color: var(--hot);
}

.solution-row strong {
  display: block;
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.35;
}

.solution-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

a {
  color: #7dd3fc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

details {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 700;
}

.items {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.empty {
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--muted-panel);
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .status {
    width: 100%;
    text-align: left;
  }

  .lead {
    min-height: 420px;
    align-items: end;
  }

  .post {
    grid-template-columns: 1fr;
  }

  .post-media {
    min-height: 220px;
  }
}
