/* Shared look for the case study and brief pages; same colours and type as index.html */
:root {
  --ink: #f2f4fa;
  --soft: #b9c2dc;
  --muted: #7c86a3;
  --accent: #7fa2ff;
  --yellow: #fdd303;
  --pill: rgba(22, 32, 58, .72);
  --pill-hover: rgba(46, 64, 110, .9);
  --card: rgba(14, 22, 44, .55);
  --line: rgba(140, 160, 220, .14);
  --gutter: clamp(16px, 4vw, 60px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink);
  font-family: "Instrument Sans", system-ui, sans-serif;
  background-color: #03050c;
  background-image:
    radial-gradient(ellipse 80% 60% at 12% 0%, rgba(30, 58, 138, .5), transparent 60%),
    radial-gradient(ellipse 90% 60% at 30% 110%, rgba(12, 30, 80, .6), transparent 60%),
    linear-gradient(180deg, #050a1a 0%, #02030a 55%, #040817 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
a { color: inherit; }
.serif { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; letter-spacing: -.01em; }

header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 24px var(--gutter); }
.logo { font-family: "Instrument Serif", serif; font-style: italic; font-size: 30px; text-decoration: none; }
.pill {
  display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 999px;
  background: var(--pill); border: 1px solid var(--line); font-size: 14px; font-weight: 600; text-decoration: none; transition: background .3s;
}
.pill:hover { background: var(--pill-hover); }

main { max-width: 860px; margin: 0 auto; padding: 24px var(--gutter) 100px; }
.kicker { font-size: 13px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 14px 0 16px; font-size: clamp(36px, 6vw, 64px); line-height: 1; letter-spacing: -.035em; font-weight: 700; }
.lede { margin: 0 0 36px; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.35; color: var(--soft); letter-spacing: -.01em; }
h2 { margin: 56px 0 14px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; line-height: 1.15; }
h2 .num { color: var(--muted); font-weight: 400; margin-right: 8px; }
h3 { margin: 28px 0 8px; font-size: 18px; }
p, li { font-size: 17px; color: var(--soft); }
p b, li b, td b { color: var(--ink); }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }

/* The one-glance summary at the top of every page */
.glance { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.glance div { background: #070c1c; padding: 14px 16px; }
.glance span { display: block; font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.glance b { font-size: 16px; font-weight: 600; line-height: 1.35; }
.glance .wide { grid-column: 1 / -1; }

/* Tables scroll inside their own box so the page never scrolls sideways on a phone */
.table { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--soft); }
th { color: var(--muted); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; background: rgba(14, 22, 44, .7); }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }

blockquote { margin: 18px 0; padding: 16px 20px; border-left: 3px solid var(--yellow); background: var(--card); border-radius: 0 12px 12px 0; }
blockquote p { margin: 0; color: var(--ink); font-size: 18px; }
blockquote cite { display: block; margin-top: 8px; font-style: normal; font-size: 14px; color: var(--muted); }

.why { margin: 16px 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.why p { margin: 0; }
.why b:first-child { color: var(--accent); }

figure { margin: 24px 0; }
figure img, figure video { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); }
figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.pair figure { margin: 0; }
.narrow { max-width: 360px; }

.note { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 56px; padding-top: 18px; }
.next { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

@media (max-width: 640px) {
  .glance, .pair { grid-template-columns: 1fr; }
  p, li { font-size: 16px; }
}
