:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --text: #16181d;
  --muted: #5b6270;
  --line: #e4e6ea;
  --accent: #2f5bd8;
  --radius: 10px;
  --maxw: 62rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101216;
    --bg-soft: #171a20;
    --text: #e8eaee;
    --muted: #9aa2b1;
    --line: #262a32;
    --accent: #7fa2ff;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* header */

header {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.logo {
  font-weight: 650;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo span { color: var(--accent); }

nav { display: flex; gap: 1.4rem; font-size: 0.94rem; }
nav a { color: var(--muted); }
nav a.on { color: var(--text); font-weight: 550; }

/* hero */

.hero { padding: 4.5rem 0 3.5rem; }

h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  line-height: 1.18;
  letter-spacing: -0.022em;
  font-weight: 660;
  margin: 0 0 1.1rem;
  max-width: 20ch;
}

.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 2rem;
}

.cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.72rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 550;
  font-size: 0.97rem;
}
.cta:hover { text-decoration: none; opacity: 0.9; }

@media (prefers-color-scheme: dark) {
  .cta { color: #0f1115; }
}

/* sections */

section { padding: 3.2rem 0; border-top: 1px solid var(--line); }

h2 {
  font-size: 1.42rem;
  letter-spacing: -0.015em;
  font-weight: 620;
  margin: 0 0 0.5rem;
}

.sub {
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 56ch;
}

h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

/* grids */

.grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.35rem;
}

.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.card .tag {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 0.55rem;
  font-weight: 600;
}

/* plain list */

dl.models { margin: 0; display: grid; gap: 1.6rem; }
dl.models dt { font-weight: 600; margin-bottom: 0.25rem; }
dl.models dd { margin: 0; color: var(--muted); }

/* contact */

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.contact-list li { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.contact-list .k { color: var(--muted); min-width: 6.5rem; }

/* footer */

footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* misc */

.center { text-align: center; padding: 6rem 0; }
.center h1 { margin-inline: auto; max-width: none; }
