/* Shared styles for standalone case-study pages (projects/*.html). Same tokens as the rest of the site. */
:root {
  --bg: #f5f5f5;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
  --faint: #a3a3a3;
  --line: #dcdcdc;
  --card: #ffffff;
  --accent: #1f3a6b;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); font-weight: 700; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--gutter); }

header.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0;
}
.mark { font-weight: 700; font-size: 22px; color: var(--ink); letter-spacing: -0.02em; }
.back { font-size: 15px; font-weight: 700; }

.art-header { padding: 20px 0 12px; border-bottom: 1px solid var(--line); }
.kicker { margin: 0 0 10px; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
h1 { margin: 0 0 14px; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
.art-lead { margin: 0 0 20px; font-size: clamp(17px, 1.6vw, 20px); color: #3a3a3a; max-width: 62ch; }
.art-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.art-meta li { padding: 5px 13px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 700; color: var(--muted); }

.art-body { padding: 40px 0 24px; }
.art-body p {
  margin: 0 0 26px;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.78;
  color: #262626;
  max-width: 68ch;
}
.art-body code {
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: .92em;
  background: #e9e9e9;
  padding: 2px 6px;
  border-radius: 6px;
  color: #1a1a1a;
}

footer.art-foot {
  border-top: 1px solid var(--line);
  padding: 32px 0 56px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 15px;
}
footer.art-foot .foot-links { display: flex; gap: 20px; }

@media (max-width: 640px) {
  .art-header { padding-top: 8px; }
  footer.art-foot { flex-direction: column; align-items: flex-start; }
}
