:root {
  color-scheme: light;

  --primary: #568466;
  --secondary: #93bc85;
  --bg: #568466;
  --surface: #f8fbf7;
  --surface-soft: #eef5ec;
  --text: #18211b;
  --muted: #4f5f54;
  --border: #c9d8cc;

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  font-size: 15px;
  background: var(--bg);
}

.container {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

header {
  background: var(--surface);
  border-left: 4px solid var(--secondary);
  border-bottom: 1px solid var(--border);
  padding: 20px 22px;
  margin-bottom: 16px;
}

.hero {
  padding-top: 20px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  margin: 0 0 10px;
  letter-spacing: -0.04em;
  color: var(--primary);
}

h2 {
  font-size: 1.15rem;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--primary);
}

p {
  line-height: 1.5;
  margin: 0 0 10px;
}

ul {
  margin: 0;
  padding-left: 20px;
}

li {
  margin: 5px 0;
}

nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

nav a,
.button {
  display: inline-block;
  padding: 6px 10px 6px 10px;
  /* border: 1px solid var(--primary); */
  color: var(--primary);
  background: var(--surface);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

nav a:hover,
.button:hover {
  background: var(--primary);
  color: white;
}

ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

li {
  position: relative;
  margin: 6px 0;
  padding-left: 16px;
}

li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--secondary);
}

.card {
  border: 1px solid var(--border);
  border-left: 4px solid var(--secondary);
  padding: 18px 20px;
  margin: 16px 0;
  background: var(--surface);
}

.card p strong {
  display: inline-block;
  min-width: 72px;
  color: var(--muted);
}

.downloads {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.screenshot-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--secondary);
  padding: 18px 20px;
}

.gallery {
  display: grid;
  gap: 16px;
  margin: 16px 0 28px;
}

.gallery-main {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.gallery-features {
  grid-template-columns: 280px 1fr;
  align-items: start;
}

figure {
  margin: 0;
  border: 1px solid var(--border);
  background: var(--surface);
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-main img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #eef5ec;
}

.portrait-shot img {
  max-height: 420px;
  object-fit: contain;
  background: #eef5ec;
}

.wide-shot img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #eef5ec;
}

figcaption {
  padding: 9px 12px;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--muted);
  background: var(--surface-soft);
}

@media (max-width: 760px) {
  .gallery-features {
    grid-template-columns: 1fr;
  }

  .portrait-shot img {
    max-height: none;
  }
}