:root {
  color-scheme: light;
  --ink: #1f211d;
  --muted: #666a60;
  --line: #d9ddd1;
  --surface: #f8f7f1;
  --panel: #ffffff;
  --accent: #2f6f5e;
  --accent-2: #9c4f2f;
  --shadow: 0 18px 48px rgba(40, 43, 34, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.page-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding: 48px clamp(20px, 5vw, 72px) 36px;
  border-bottom: 1px solid var(--line);
  background: #eeefe7;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  letter-spacing: 0;
}

.summary {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.quick-links a,
.button,
.reference-list a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  padding: 9px 13px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.quick-links a:hover,
.button:hover,
.reference-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.section {
  padding: 42px clamp(20px, 5vw, 72px);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 20px;
}

.section-heading p {
  max-width: 600px;
  margin-bottom: 0;
  color: var(--muted);
}

.version-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.version-card {
  display: grid;
  gap: 14px;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
  box-shadow: var(--shadow);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  background: #edf4ef;
  padding: 4px 9px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.pill.alt {
  background: #f5ece7;
  color: var(--accent-2);
}

.version-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.button-row {
  display: flex;
  gap: 10px;
  align-items: end;
  margin-top: auto;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.image-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(40, 43, 34, 0.08);
}

.image-card a {
  display: block;
  text-decoration: none;
}

.image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e9e7dd;
}

.image-info {
  padding: 12px;
}

.image-info strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.image-info span {
  color: var(--muted);
  font-size: 12px;
}

.reference-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 760px) {
  .page-header,
  .section-heading {
    grid-template-columns: 1fr;
    display: block;
  }

  .quick-links {
    justify-content: flex-start;
    margin-top: 22px;
  }

  .section-heading p {
    margin-top: 6px;
  }
}
