:root {
  color-scheme: dark;
  --ink: #101316;
  --paper: #f4f3ef;
  --blue: #86afff;
  --muted: #b8c0cb;
  --rule: #303641;
  font: 100%/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--paper); }
a { color: inherit; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: .15em; }
:focus-visible { outline: 2px solid #5488ff; outline-offset: 5px; }
img { display: block; width: 100%; height: auto; object-fit: cover; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.04; letter-spacing: -.045em; }
h2 { font-size: clamp(2.3rem, 5.4vw, 4.3rem); }
p, dd { max-width: 65ch; }
[id] { scroll-margin-top: 1.5rem; }
.shell { width: min(1320px, calc(100% - 7rem)); margin-inline: auto; }
.skip { position: absolute; z-index: 2; left: 1rem; top: 1rem; transform: translateY(-180%); background: var(--paper); color: var(--ink); padding: .6rem 1rem; }
.skip:focus { transform: none; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 82px; border-bottom: 1px solid var(--rule); }
.wordmark { display: flex; align-items: center; gap: .75rem; font-weight: 750; white-space: nowrap; text-decoration: none; }
.wordmark span { width: .8rem; height: 1.05rem; background: #5488ff; transform: skewX(-16deg); }
nav { display: flex; flex-wrap: wrap; gap: .55rem 1.75rem; }
nav a { color: var(--muted); font-size: .92rem; text-decoration: none; }
nav a:hover { color: white; }
.hero { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(1rem, 4vw, 5rem); align-items: center; min-height: 560px; padding-block: clamp(2.5rem, 7vw, 7rem); }
.hero h1 { font-size: clamp(3.6rem, 7.5vw, 8rem); line-height: .92; letter-spacing: -.08em; }
.hero h1 span { color: var(--blue); }
.hero p { margin: 1.65rem 0 1.8rem; max-width: 36ch; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.18rem); }
.button { display: inline-block; background: var(--blue); color: #111c32; padding: .8rem 1.25rem; text-decoration: none; font-weight: 750; }
.button:hover { background: #afcaff; }
.hero-photo img { aspect-ratio: 1.47; background: #272c31; }
figcaption { display: flex; justify-content: space-between; gap: .5rem; padding-top: .65rem; font-size: .86rem; }
figcaption span { color: var(--muted); }
.models { color-scheme: light; color: var(--ink); background: var(--paper); padding-block: clamp(3.8rem, 8vw, 7rem); }
.section-heading { display: grid; grid-template-columns: 1fr .48fr; gap: 1rem 2rem; align-items: end; margin-bottom: 2.6rem; }
.section-heading p { color: #4d5665; }
.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
article { display: flex; flex-direction: column; border: 1px solid #d2d6dd; background: #fff; }
article img { aspect-ratio: 1.5; background: #d2d6dd; }
.model-copy { padding: clamp(1rem, 2vw, 1.6rem); display: flex; flex: 1; flex-direction: column; gap: .75rem; }
.year { color: #17408b; font-size: .94rem; font-weight: 720; }
.model-copy h3 { font-size: clamp(1.6rem, 2.65vw, 2.65rem); }
.model-copy a { align-self: flex-start; margin-top: auto; padding-top: .45rem; font-size: .95rem; color: #17408b; }
.engineering { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 5rem; padding-block: clamp(3.8rem, 8vw, 7rem); }
.lead { color: var(--muted); margin-top: 1.2rem; }
.engineering dl > div { padding: 1rem 0 1.2rem; border-top: 1px solid var(--rule); }
dt { color: var(--blue); font-weight: 750; margin-bottom: .35rem; }
dd { color: var(--muted); }
footer { background: #191d25; color: var(--muted); padding-block: 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
footer h2 { color: var(--paper); font-size: 1.35rem; margin-bottom: .6rem; }
footer p + p { margin-top: .55rem; }
footer ul { margin: .4rem 0 .6rem; padding-left: 1.15rem; }
@media (max-width: 960px) {
  .shell { width: calc(100% - 3rem); }
  .hero { min-height: 0; }
  .section-heading { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 2rem); }
  .bar { min-height: 0; padding-block: .9rem; gap: .55rem 1rem; flex-wrap: wrap; }
  nav { gap: .25rem .9rem; }
  .hero, .engineering, .footer-grid, .model-grid { grid-template-columns: 1fr; }
  .hero-photo { margin-top: .85rem; }
  .section-heading { margin-bottom: 1.6rem; }
  .model-grid { gap: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
}
[aria-current="page"] { color: var(--paper); text-decoration: underline; }
.subpage { padding-block: clamp(2.8rem, 7vw, 6rem); }
.subpage h1 { max-width: 18ch; font-size: clamp(3rem, 7vw, 6.4rem); }
.subpage .lead { max-width: 62ch; }
.jump-list {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-block: 2rem 3rem;
}
.jump-list a {
  padding: .45rem .72rem;
  border: 1px solid var(--rule);
  color: var(--paper);
}
.catalog-section + .catalog-section { margin-top: 3.4rem; }
.catalog-section h2 { margin-bottom: 1.3rem; }
.catalog > div {
  display: grid;
  grid-template-columns: minmax(10rem, .33fr) 1fr;
  gap: .45rem 1.4rem;
  border-top: 1px solid var(--rule);
  padding-block: 1rem;
}
.catalog > div:target { background: #1d2535; }
.catalog dt { margin: 0; }
.catalog-source { margin-top: .6rem; color: var(--blue); }
.login-page { display: grid; grid-template-columns: 1fr minmax(17rem, .75fr); gap: 2rem clamp(2rem, 6vw, 7rem); align-items: start; }
.login-photo { margin-top: 1.5rem; max-width: 40rem; }
.login-card { border: 1px solid var(--rule); padding: clamp(1rem, 3vw, 2rem); background: #191d25; }
.login-card h2 { margin-bottom: 1rem; font-size: clamp(1.6rem, 3vw, 2.5rem); }
.login-card label { display: block; color: var(--paper); margin: .8rem 0 .32rem; }
.login-card input, .login-card button { font: inherit; }
.login-card input {
  width: 100%;
  min-width: 0;
  padding: .68rem .7rem;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid #596575;
}
.login-card input[readonly] { color: var(--muted); }
.login-card input[aria-invalid="true"] { border-color: #ffaa98; }
.login-card button { cursor: pointer; }
.login-card button:disabled { cursor: default; opacity: .55; }
.login-card button:not(.button) { border: 1px solid #596575; color: var(--paper); background: #272e39; padding: .6rem .7rem; }
.login-card .button { margin-top: 1rem; border: 0; font-weight: 750; }
.captcha-row { display: grid; grid-template-columns: minmax(3rem, 1fr) auto; gap: .55rem; }
#captcha-question { color: var(--blue); padding-left: .3rem; }
#login-status { min-height: 1.5rem; margin-top: .7rem; color: var(--blue); }
.reading-list { padding-left: 1.2rem; margin-block: 1.25rem; }
.reading-list li + li { margin-top: .6rem; }
@media (max-width: 780px) {
  .hero, .login-page { grid-template-columns: 1fr; }
  .login-card { width: min(100%, 34rem); }
}
@media (max-width: 640px) {
  .catalog > div { grid-template-columns: 1fr; }
  .subpage h1 { font-size: clamp(2.6rem, 10vw, 3.8rem); }
}
