:root {
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #161815;
  background: #f7f7f2;
  --muted: #5c6056;
  --line: #dbddd2;
  --accent: #e7f86d;
  --dark: #1d211a;
}

* { box-sizing: border-box; }

body { margin: 0; }

a { color: inherit; }

a:focus-visible { outline: 3px solid #63851f; outline-offset: 5px; }

img { display: block; max-width: 100%; }

h1, h2, h3, p, figure { margin: 0; }

.wrap { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }

.header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand, nav a { text-decoration: none; }

.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 800; }

.mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--dark);
  color: var(--accent);
  border-radius: 8px;
}

nav { display: flex; flex-wrap: wrap; gap: clamp(12px, 3vw, 34px); font-size: .875rem; color: var(--muted); }

nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

.hero { background: var(--dark); color: #f7f7f2; }

.hero-layout {
  display: grid;
  grid-template-columns: minmax(275px, 4fr) minmax(0, 8fr);
  align-items: center;
  gap: clamp(32px, 5vw, 84px);
  padding-block: clamp(54px, 7vw, 104px);
}

.eyebrow { font-size: .8rem; font-weight: 750; letter-spacing: .13em; color: var(--accent); }

.eyebrow span { margin-inline: .3em; }

h1 { margin-top: 20px; font-size: clamp(3.1rem, 6.4vw, 6.3rem); line-height: 1.03; letter-spacing: -.06em; }

.intro { margin-block: 25px 28px; max-width: 34ch; color: #cdd1bf; line-height: 1.8; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 1.5em;
  padding: .9em 1.15em;
  background: var(--accent);
  border: 1px solid #b9c750;
  border-radius: 7px;
  color: #161815;
  font-weight: 750;
  text-decoration: none;
}

.button:hover { background: #f0ff9e; }

.version { margin-top: 12px; color: #b7bbaa; font-size: .8rem; }

.screenshot {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.screenshot:hover { border-color: #8da238; }

.screenshot img { width: 100%; height: auto; }

.hero-figure .screenshot { border-color: #555b4d; box-shadow: 0 16px 48px #10120e80; }

.hero-figure figcaption { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-top: 15px; font-size: .875rem; color: #cdd1bf; }

.hero-figure figcaption span { color: var(--accent); font-weight: 750; }

.section { padding-block: clamp(48px, 6vw, 85px); }

h2 { font-size: clamp(1.65rem, 3.5vw, 2.8rem); line-height: 1.18; letter-spacing: -.04em; }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }

.gallery figure { border: 1px solid var(--line); border-radius: 14px; background: #fff; }

.gallery .screenshot { margin: 8px; }

.gallery figcaption { padding: 12px 18px 20px; }

.gallery p { margin-top: 7px; color: var(--muted); line-height: 1.65; }

.install { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; border-top: 1px solid var(--line); }

.install .button { margin-top: 20px; }

.install ol { margin: 0; padding-inline-start: 1.5rem; line-height: 1.8; }

.install li { padding-inline-start: .4em; margin-bottom: .5em; }

code { overflow-wrap: anywhere; }

.footer { background: var(--dark); color: #f7f7f2; }

.footer-layout { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: 42px; }

.footer p { margin-block: 12px 18px; }

.footer small { color: #cdd1bf; }

.qr { width: 144px; height: auto; border-radius: 8px; }

@media (max-width: 820px) {
  .wrap { width: calc(100% - 40px); }
  .hero-layout, .install { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .header { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 15px; }
  .gallery { grid-template-columns: 1fr; }
}
