:root {
  color-scheme: light dark;
  --bg: #f4f1ea;
  --surface: rgba(255, 255, 255, 0.58);
  --text: #171714;
  --muted: #68675f;
  --line: rgba(23, 23, 20, 0.14);
  --accent: #5e6f52;
  --accent-text: #f7f7f2;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 82% 5%, rgba(111, 132, 93, 0.16), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

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

.brand {
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.domain,
.eyebrow,
footer { color: var(--muted); }

.domain { font-size: 0.875rem; }

.hero {
  min-height: 62vh;
  display: grid;
  align-content: center;
  padding: 64px 0;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 28px;
  font-size: clamp(3.6rem, 10vw, 8rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.91;
}

.intro {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.apps { padding: 90px 0 120px; }

.section-heading { margin-bottom: 32px; }

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
}

.app-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.app-card:hover,
.app-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.app-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 1.5rem;
  font-weight: 800;
}

.app-card h3 { margin-bottom: 2px; font-size: 1.25rem; }
.app-card p { margin-bottom: 0; color: var(--muted); }
.arrow { font-size: 1.7rem; }

.page {
  min-height: calc(100vh - 176px);
  display: grid;
  place-items: center;
  padding: 64px 0;
}

.page-card {
  width: min(680px, 100%);
  padding: clamp(28px, 6vw, 56px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.page-card h1 {
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 8vw, 5rem);
}

.page-card p { color: var(--muted); }

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 32px;
}

.page-links a { text-underline-offset: 4px; }

footer {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121310;
    --surface: rgba(255, 255, 255, 0.045);
    --text: #f0eee7;
    --muted: #a7a79e;
    --line: rgba(255, 255, 255, 0.13);
    --accent: #8fa27c;
    --accent-text: #11130f;
  }
}

@media (max-width: 600px) {
  .site-header,
  main,
  footer { width: min(100% - 28px, 1120px); }
  .hero { min-height: 58vh; }
  .apps { padding: 64px 0 88px; }
  .app-card { padding: 18px; gap: 15px; }
  .app-mark { width: 52px; height: 52px; border-radius: 14px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .app-card { transition: none; }
}
