/* Kimss Field Notes — public Brand Cascade, reading layout.
   Brief: kimss-content-agent, asked against the Agents report. */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --bg: #0a1018;
  --bg-2: #121a24;
  --surface: rgba(255, 255, 255, 0.035);
  --line: rgba(232, 238, 242, 0.1);
  --text: #e8eef2;
  --muted: #93a4b0;
  --teal: #3d9aa6;
  --cta: #1d6fdb;
  --cta-hover: #1a62c4;
  --display: "Space Grotesk", "DM Sans", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --measure: 68ch;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
}
a { color: inherit; }
img { max-width: 100%; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--cta);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
}
.skip:focus { top: 1rem; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand img { height: 36px; width: auto; }
.brand span {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.site-nav { display: flex; gap: 1.25rem; align-items: center; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a[aria-current="page"] { color: var(--text); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem 4rem; }

.kicker {
  color: var(--teal);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 0.75rem;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.15; font-weight: 600; }
.lede h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 1rem; max-width: 16ch; }
.standfirst, .dek {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 42rem;
  margin: 0;
}

.list { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2.5rem; }
.card {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 1.25rem;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  padding: 0.85rem;
}
.card img {
  width: 168px;
  height: 168px;
  object-fit: cover;
  border-radius: 12px;
  background: #05080c;
}
.card h2 { margin: 0.35rem 0 0.4rem; font-size: 1.35rem; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }
.meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}
.topic {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.article-head { max-width: var(--measure); padding-top: 0.5rem; }
.article-head h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 0.4rem 0 0.8rem; }
.byline { color: var(--muted); font-size: 0.95rem; }

.film { margin: 2rem 0 0; }
.film video {
  width: 100%;
  display: block;
  background: #05080c;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.film-portrait video { max-width: 380px; }
.film figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.55rem; }

.layout {
  display: grid;
  grid-template-columns: 200px minmax(0, var(--measure));
  gap: 2.5rem;
  margin-top: 2.5rem;
  align-items: start;
}
.toc {
  position: sticky;
  top: 1.25rem;
  font-size: 0.92rem;
}
.toc p { margin: 0 0 0.5rem; color: var(--muted); }
.toc a { color: var(--muted); text-decoration: none; display: block; margin: 0.35rem 0; }
.toc a:hover { color: var(--text); }
.toc-mobile { display: none; }

.prose h2 { font-size: 1.45rem; margin: 2.2rem 0 0.6rem; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }
.prose a { color: #8ec4e8; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: var(--bg-2);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}
.source { color: var(--muted); font-size: 0.95rem; margin-top: 2rem; }

.cta {
  margin-top: 2.5rem;
  max-width: var(--measure);
}
.cta a.button {
  display: inline-block;
  background: var(--cta);
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
}
.cta a.button:hover { background: var(--cta-hover); }
.cta p { color: var(--muted); margin: 0.75rem 0 0; font-size: 0.95rem; }

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer .wrap { padding-top: 1.5rem; padding-bottom: 2rem; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 0.6rem; }

@media (max-width: 800px) {
  .card { grid-template-columns: 1fr; }
  .card img { width: 100%; height: 180px; }
  .layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .toc-mobile {
    display: block;
    margin: 1.5rem 0 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.6rem 0.9rem;
    background: var(--surface);
  }
  .toc-mobile a { color: var(--muted); text-decoration: none; display: block; margin: 0.35rem 0; }
}
