/* NetSim Analytics - one stylesheet for every page. Colours as NetSimR's site:
   the logo's blue, 7.3:1 on white; a light tint of it in dark mode. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --text: #1a1d23;
  --muted: #545b66;
  --line: #dde2ea;
  --brand: #305595;
  --brand-ink: #ffffff;
  --brand-soft: #e8eef8;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 16px rgba(16, 24, 40, .06);
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1218;
    --bg-soft: #161b23;
    --text: #e8ebf0;
    --muted: #a7afbc;
    --line: #2a313c;
    --brand: #a3b8dc;
    --brand-ink: #0f1218;
    --brand-soft: #1c2533;
    --card: #161b23;
    --shadow: none;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 750; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, "JetBrains Mono", Consolas, monospace; font-size: .9em; }
pre { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 1rem;
      overflow-x: auto; line-height: 1.5; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: var(--brand-ink);
        padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--text); text-decoration: none;
         font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: .25rem 1.1rem; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 719px) {
  .site-header { position: static; }
  .site-header .wrap { padding-top: .6rem; padding-bottom: .6rem; }
  .nav { margin-left: 0; width: 100%; }
}

.btn { display: inline-flex; align-items: center; gap: .45rem; padding: .62rem 1.1rem; border-radius: 10px;
       font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent; line-height: 1.2; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--brand); }
.nav .btn { color: var(--brand-ink); }
.nav .btn:hover { color: var(--brand-ink); }
.btn svg { width: 1em; height: 1em; }

/* Sections */
section { padding: 4.5rem 0; }
section + section { border-top: 1px solid var(--line); }
.section-soft { background: var(--bg-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 650;
           color: var(--brand); margin-bottom: .6rem; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 46rem; }
.muted { color: var(--muted); }

.hero { padding: 5rem 0 4rem; }
.hero h1 { max-width: 20ch; }
.hero .actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }

.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.4rem;
        box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.ticks li { padding-left: 1.7rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: .95rem; height: .95rem; border-radius: 50%;
                    background: var(--brand-soft); border: 2px solid var(--brand); }

.split { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.shot { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }

.project { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: start; }
@media (min-width: 720px) { .project { grid-template-columns: 96px 1fr; } }
.project img.logo { width: 96px; }
.links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

.callout { border-left: 4px solid var(--brand); background: var(--bg-soft); border-radius: 10px; padding: 1rem 1.2rem; }

/* Long text (the privacy page) */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1rem 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .65rem; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
