/* PhysKit site — palette from outreach/PLAN.md §5. No external requests: system fonts only. */
:root {
  /* Phosphor scheme (outreach/PLAN.md §5). --accent is the brand teal darkened to 5.2:1 on white so it
     can carry link text; the logo itself keeps the brand teal #0f8f7e (4.0:1 — shapes only). */
  --ink: #11302b;
  --muted: #4f6661;
  --paper: #ffffff;
  --panel: #f3f8f6;
  --line: #dde7e4;
  --accent: #0b7a6b;
  --amber: #b97a00;
  --code-bg: #eef4f2;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #dff3ee;
    --muted: #9fbcb5;
    --paper: #0b1a17;
    --panel: #10241f;
    --line: #1f3a34;
    --accent: #2dd4bf;
    --amber: #fbbf24;
    --code-bg: #12302b;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 var(--sans);
}
a { color: var(--accent); text-underline-offset: 2px; }
code, pre { font-family: var(--mono); font-size: 0.9em; }
code { background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 4px; }
pre { background: var(--code-bg); padding: 14px 16px; border-radius: 8px; overflow-x: auto; line-height: 1.5; }
pre code { background: none; padding: 0; }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
section.wrap { padding-top: 28px; padding-bottom: 8px; }
h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; }
h2 { font-size: 26px; letter-spacing: -0.01em; margin: 0 0 12px; }
h3 { font-size: 18px; margin: 0 0 6px; }
h3.sub { margin-top: 26px; }

/* header */
.top { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 1; }
.bar { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 16px; }
.brand { display: flex; align-items: center; }
.brand img, .foot img { display: block; height: auto; }
nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--ink); }

/* hero */
.hero { padding-top: 44px !important; padding-bottom: 24px !important; }
.hero-logo img { display: block; width: min(440px, 100%); height: auto; margin: 0 0 28px -6px; }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 22px; }
.lede strong { color: var(--ink); font-weight: 600; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font-weight: 550; font-size: 15px;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .btn.primary { color: #08201c; } }
.btn[aria-disabled="true"] { color: var(--muted); }
.note { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* cards */
.grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .grid.two { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

table.skills { border-collapse: collapse; width: 100%; font-size: 16px; }
.skills td { border-top: 1px solid var(--line); padding: 8px 6px; vertical-align: top; }
.skills td:first-child { white-space: nowrap; width: 1%; padding-right: 16px; }

ol.layers { padding-left: 22px; }
ol.layers li { margin-bottom: 8px; }
ol.layers li::marker { color: var(--accent); font-weight: 700; }

/* FAQ */
details { border-top: 1px solid var(--line); padding: 10px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 4px; color: var(--muted); }

.ref { background: var(--panel); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 4px; }

footer { margin-top: 48px; border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 15px; color: var(--muted); }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot p { margin: 6px 0 0; }
.foot .links { display: flex; flex-direction: column; gap: 4px; }

/* how a campaign works: figure beside the text */
.split { display: grid; grid-template-columns: minmax(0, 400px) 1fr; gap: 32px; align-items: start; }
.split .figure img { display: block; width: 100%; height: auto; }
.split h3 { margin-top: 4px; }
.split p { margin: 4px 0 18px; }
@media (max-width: 700px) { .split { grid-template-columns: 1fr; } .split .figure img { max-width: 380px; margin: 0 auto; } }

/* the replay: wider than the text column, because the dashboard is text-dense */
section.wide { padding: 28px 0 8px; }
.video { margin: 8px auto 0; max-width: 1180px; padding: 0 16px; }
.video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 10px;
  background: #0b1220; border: 1px solid var(--line); }
.video figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; padding: 0; }

/* case-study pages */
.page-head { padding-top: 40px !important; }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.crumbs a { color: var(--muted); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 22px 0 6px; }
.facts > div { background: var(--panel); padding: 10px 14px; }
.facts dt { font-size: 12px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: 15.5px; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }
ol.timeline { list-style: none; padding: 0; margin: 14px 0; border-left: 2px solid var(--line); }
ol.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: baseline;
  padding: 6px 0 10px 14px; position: relative; }
ol.timeline li::before { content: ""; position: absolute; left: -6px; top: 15px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
ol.timeline .x { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
table.params { border-collapse: collapse; font-size: 16px; }
.params th { text-align: left; font-weight: 600; padding: 7px 18px 7px 0; border-top: 1px solid var(--line); white-space: nowrap; }
.params td { padding: 7px 0; border-top: 1px solid var(--line); }
a.case-card { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: center; text-decoration: none;
  color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
a.case-card:hover { border-color: var(--accent); }
a.case-card img { width: 100%; height: auto; border-radius: 8px; display: block; }
a.case-card h2 { font-size: 21px; margin: 0 0 6px; }
a.case-card p { margin: 0 0 10px; color: var(--muted); font-size: 16px; }
a.case-card .more { color: var(--accent); font-weight: 600; font-size: 15px; }
@media (max-width: 640px) { a.case-card { grid-template-columns: 1fr; } }

/* narrow screens: the nav takes its own row under the logo instead of wrapping beside it */
@media (max-width: 520px) {
  .bar { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 8px; row-gap: 6px; }
  nav { width: 100%; gap: 16px; }
  nav a { font-size: 14.5px; }
}

/* the detailed campaign figure: full text width; a light and a dark build, each on its own opaque ground */
.detail { margin: 36px 0 0; }
.detail img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.detail figcaption { font-size: 15px; color: var(--muted); margin-top: 10px; }
