:root {
  color-scheme: light;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #182822;
  background: #f5f4ee;
  --line: #d8ddd2;
  --accent: #2d624d;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }

.shell {
  width: min(1160px, calc(100% - clamp(32px, 9vw, 120px)));
  margin-inline: auto;
}

.masthead {
  display: flex;
  align-items: center;
  min-height: 70px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 760;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: conic-gradient(#264e40 0 25%, #b4d489 0 50%, #264e40 0 75%, #b4d489 0);
}

main { padding-block: clamp(40px, 6vw, 84px) 64px; }
.intro { margin-bottom: clamp(28px, 4vw, 48px); }

h1 {
  margin: 0 0 12px;
  font-size: clamp(2.5rem, 5.7vw, 4.625rem);
  line-height: 1.12;
  letter-spacing: -.045em;
}

.intro p {
  margin: 0;
  color: #4c5c54;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.7;
}

.demos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.demo {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffef9;
  color: inherit;
  text-decoration: none;
  transition: border-color .18s, box-shadow .18s;
}

.demo:hover {
  border-color: #709581;
  box-shadow: 0 6px 20px rgb(36 66 53 / .1);
}

a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.rover { background: #e6e9dc; }
.pendulum { background: #172724; }
.driving { background: #14243b; }

.copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(17px, 2.25vw, 26px);
}

.copy p {
  margin: 0;
  color: #4c5c54;
  font-size: .9375rem;
  line-height: 1.7;
}

.copy .type {
  color: var(--accent);
  font-size: .8125rem;
  font-weight: 650;
}

.copy h2 {
  margin: 7px 0 9px;
  font-size: clamp(1.2rem, 2.35vw, 1.625rem);
  line-height: 1.35;
}

.enter {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 21px;
  color: var(--accent);
  font-weight: 680;
}

@media (max-width: 800px) {
  .demos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  .masthead { min-height: 60px; }
  .demos { grid-template-columns: 1fr; }
}

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