/* Overrun site styles. Tokens first; light and dark themes. No italics anywhere. */
:root {
  --paper: #f5f3ee;
  --panel: #fbfaf7;
  --ink: #17140f;
  --ink-2: #3b362e;
  --muted: #6d665a;
  --rule: #dcd6ca;
  --signal: #c8370b;
  --shadow: 0 1px 0 rgba(23, 20, 15, 0.04), 0 12px 32px -20px rgba(23, 20, 15, 0.22);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f0e0c;
    --panel: #171512;
    --ink: #ece7dc;
    --ink-2: #cfc8ba;
    --muted: #9a9284;
    --rule: #2c2822;
    --signal: #ff6b3d;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 16px 40px -20px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #0f0e0c;
  --panel: #171512;
  --ink: #ece7dc;
  --ink-2: #cfc8ba;
  --muted: #9a9284;
  --rule: #2c2822;
  --signal: #ff6b3d;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 16px 40px -20px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

* { box-sizing: border-box; font-style: normal; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
svg { display: block; max-width: 100%; }
a { color: inherit; }
em, i, cite, dfn { font-style: normal; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}

/* header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--mono); font-weight: 500; letter-spacing: 0.08em; font-size: 15px; }
.brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--rule);
  background: transparent; color: var(--ink-2); cursor: pointer; display: grid; place-items: center;
}
.icon-btn:hover { color: var(--ink); border-color: var(--muted); }
.menu-btn { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 15px; line-height: 1;
  padding: 14px 20px; border-radius: 8px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--signal); color: #fff; }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 10px 14px; font-size: 14px; }

/* hero */
.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.05; }
.lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--ink-2); margin: 24px 0 32px; max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.glance { background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; padding: 24px 26px 10px; box-shadow: var(--shadow); }
.glance-title { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.glance dl { margin: 0; }
.glance dl > div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--rule); }
.glance dl > div:first-child { border-top: 0; }
.glance dt { font-size: 13px; color: var(--muted); font-family: var(--mono); padding-top: 2px; }
.glance dd { margin: 0; font-size: 15px; color: var(--ink); }

/* sections */
section.block { padding: clamp(56px, 8vw, 96px) 0; border-bottom: 1px solid var(--rule); }
.sec-head { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 5vw, 64px); align-items: start; margin-bottom: clamp(32px, 4vw, 48px); }
h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; }
.sec-head p { margin: 4px 0 0; color: var(--ink-2); font-size: 17px; max-width: 38em; }
h3 { font-size: 22px; line-height: 1.25; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; padding: 24px 24px 26px; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.points.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.point { padding: 24px 24px 0 0; }
.point + .point { padding-left: 24px; border-left: 1px solid var(--rule); }
.point h3 { font-size: 20px; margin-bottom: 8px; }
.point p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* contact */
.contact { padding: clamp(64px, 9vw, 112px) 0; }
.contact-box { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px; align-items: end; }
.contact h2 { font-size: clamp(34px, 4.4vw, 52px); margin-bottom: 16px; }
.contact p { color: var(--ink-2); margin: 0; font-size: 17px; max-width: 34em; }
.contact-actions { justify-self: start; }
.mail { font-family: var(--mono); font-size: 14px; color: var(--muted); margin-top: 14px; }

footer { border-top: 1px solid var(--rule); padding: 28px 0 40px; font-size: 13px; color: var(--muted); }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* responsive */
@media (max-width: 980px) {
  .hero-grid, .sec-head, .contact-box { grid-template-columns: minmax(0, 1fr); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .points.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .points.four .point:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 16px; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: 18px var(--gutter) 22px;
  }
  .menu-btn { display: grid; }
  .nav-cta .btn { display: none; }
  .grid, .points, .points.four { grid-template-columns: minmax(0, 1fr); }
  .point, .point + .point, .points.four .point:nth-child(3) { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
  .glance dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
