@font-face {
  font-family: Inter;
  src: url('/_afg/case-studies/assets/InterLatin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #f6f6f9;
  --surface: #ffffff;
  --wash: #f0eff9;
  --text: #252639;
  --muted: #626373;
  --accent: #585ba5;
  --accent-hover: #464988;
  --input-line: #858699;
  --on-accent: #ffffff;
  --line: #e2e2ea;
  font-size: 13px;
  line-height: 1.5;
  font-family: Inter, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --page: #171820;
  --surface: #21222d;
  --wash: #2d2d46;
  --text: #eeeef5;
  --muted: #b0b1c2;
  --accent: #b4b6f1;
  --accent-hover: #cbcafa;
  --on-accent: #202137;
  --line: #373848;
  --input-line: #7f8099;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; min-width: 320px; background: var(--page); color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; }
button:hover { background: var(--wash); border-color: var(--accent); }
button:disabled { opacity: .5; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; letter-spacing: 0; }
p, dd { line-height: 1.6; }
button, input, select { min-height: 44px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 8px; left: 20px; z-index: 100; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link:focus { width: auto; height: auto; padding: 12px; clip-path: none; background: var(--accent); color: var(--on-accent); }
.site-header { border-bottom: 1px solid var(--line); background: var(--page); }
.header-inner { max-width: 1120px; margin: auto; min-height: 72px; padding: 12px 28px; }
.header-inner, nav { display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
nav { gap: 10px; font-size: 13px; }
nav a, .quiet-button { padding: 12px 16px; border-radius: 8px; }
.nav-active { color: var(--accent); background: var(--wash); font-weight: 600; }
.quiet-button { border: 0; color: var(--muted); background: transparent; }
main { max-width: 1120px; margin: auto; padding: 28px 28px 0; }
.eyebrow { font-size: 12px; color: var(--muted); font-weight: 550; margin-bottom: 24px; }
.case-list { display: grid; gap: 20px; }
.case-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.case-copy { padding: 28px; }
.case-index { color: var(--accent); font-size: 12px; display: flex; gap: 12px; margin: 0 0 24px; font-weight: 600; }
.case-index span { color: var(--muted); font-weight: 450; }
.case-index strong { font-weight: 700; }
.case-story { margin: 0; display: grid; gap: 16px; }
.case-story dt { font-size: 12px; font-weight: 650; margin-bottom: 5px; }
.case-story dd { margin: 0; font-size: 13px; color: var(--muted); }
.tools-label { font-size: 12px; color: var(--muted); margin: 22px 0 9px; }
.tool-list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.tool-list li { font-size: 11px; padding: 5px 9px; background: var(--page); border: 1px solid var(--line); border-radius: 6px; }
.primary-button { color: var(--on-accent); background: var(--accent); border-color: var(--accent); padding: 12px 16px; font-size: 13px; font-weight: 550; }
.primary-button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.primary-button span { margin-left: 18px; }
footer { margin-top: 32px; border-top: 1px solid var(--line); padding: 24px 32px; display: flex; justify-content: center; font-size: 11px; color: var(--muted); }

@media (max-width: 950px) {
  .case-copy { padding: 28px; }
}

@media (max-width: 700px) {
  .header-inner { padding: 10px 18px; min-height: 64px; gap: 10px; }
  nav { gap: 0; font-size: 11px; }
  nav a, .quiet-button { padding: 10px; }
  main { padding: 18px 16px 0; }
  .case-copy { padding: 22px; }
  footer { flex-wrap: wrap; padding: 22px 18px; }
}

@media (max-width: 370px) {
  .header-inner { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
