:root {
  color-scheme: light;
  --paper: #f6f4ed;
  --ink: #232521;
  --muted: #53584f;
  --line: #c9c9be;
  --accent: #2e633c;
  --panel: #e9eee2;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.shell {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  z-index: 1;
  padding: 12px 18px;
  background: var(--paper);
  transform: translateY(-150%);
}
.skip:focus { transform: translateY(0); }

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}
.site-header { border-bottom: 1px solid var(--line); }

.wordmark {
  flex: none;
  font: 700 24px/1 "IBM Plex Mono", Menlo, monospace;
  letter-spacing: -.075em;
  text-decoration: none;
}
.wordmark span { color: var(--accent); }

.top-nav { margin-left: auto; }
.top-nav a {
  font-size: 14px;
  font-weight: 600;
  text-underline-offset: 4px;
}
.top-nav a { text-decoration: none; }
.top-nav a:hover { text-decoration: underline; }

.language-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.language-switch a {
  padding: 7px 9px;
  border-radius: 4px;
  font: 600 13px/1 "IBM Plex Mono", Menlo, monospace;
  text-decoration: none;
}
.language-switch a:hover { background: var(--panel); }
.language-switch a[aria-current] { background: var(--ink); color: var(--paper); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 36px;
  padding-block: 74px 62px;
}
.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(52px, 8.25vw, 118px);
  line-height: .94;
  letter-spacing: -.075em;
}
.hero h1.slogan { font-size: clamp(43px, 8vw, 106px); }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p {
  max-width: 36ch;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
}
.hero p:last-child { margin-bottom: 0; }

.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  gap: clamp(10px, 2.25vw, 36px);
  overflow: hidden;
  border: 1px solid #d4ddce;
  border-radius: 12px;
  background-color: var(--panel);
  background-image: radial-gradient(#b1c0ac 1px, transparent 1px);
  background-size: 17px 17px;
  color: var(--accent);
}
.bracket {
  font: 400 clamp(65px, 12vw, 176px)/.8 "IBM Plex Mono", Menlo, monospace;
  transform: translateY(-.06em);
}
.orbit {
  display: grid;
  place-items: center;
  width: clamp(60px, 13vw, 164px);
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--panel);
  box-shadow: 0 0 0 8px var(--panel), 0 0 0 9px #8fa691;
  font-size: clamp(45px, 9vw, 118px);
  line-height: 1;
}
.orbit span { transform: translateY(-.04em); }

.entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.entry {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 16px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  transition: background-color .18s, border-color .18s;
}
.entry:hover { border-color: var(--accent); background: var(--panel); }
.entry-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  font: 600 20px/1 "IBM Plex Mono", Menlo, monospace;
}
.entry strong { display: block; margin-bottom: 6px; font-size: 22px; letter-spacing: -.025em; }
.entry-description { display: block; color: var(--muted); font-size: 15px; line-height: 1.45; }
.entry-arrow { color: var(--accent); font-size: 24px; line-height: 1; }

.models { padding-block: 64px 72px; }
.models h2 { margin: 0 0 24px; font-size: clamp(29px, 4vw, 45px); letter-spacing: -.055em; }
.models ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  list-style: none;
}
.models li {
  min-height: 126px;
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.model-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 9px; }
.model-heading h3 { margin: 0; font-size: 20px; letter-spacing: -.035em; }
.model-heading span { color: var(--accent); font-size: 13px; font-weight: 600; }
.models p { margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer .wordmark { color: var(--ink); }
.footer-details { display: flex; align-items: center; gap: 8px; }
.footer-icon { flex: none; }
.footer-icon img { display: block; border-radius: 4px; }

@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-block: 48px 28px; }
  .hero-art { min-height: 170px; }
  .models ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 500px) {
  .site-header, .site-footer { gap: 12px; min-height: 62px; }
  .top-nav { display: none; }
  .hero h1 { font-size: clamp(45px, 12vw, 60px); }
  .entries { grid-template-columns: 1fr; }
  .entry { padding: 16px; gap: 12px; }
  .models { padding-block: 44px; }
  .models li { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .entry { transition: none; }
}
