:root {
  color-scheme: light;
  --background: #f7f5ed;
  --paper: #fffefa;
  --ink: #263d32;
  --muted: #636b5e;
  --green: #315b45;
  --green-dark: #234733;
  --line: #dcded1;
  font-family: 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
a { color: var(--green); text-underline-offset: 5px; }
a:hover { color: var(--green-dark); }
a:focus-visible { outline: 3px solid #357263; outline-offset: 5px; border-radius: 3px; }
p, h1, figure { margin: 0; }
.wrap { width: min(100% - 96px, 1080px); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: 12px; z-index: 2; padding: 12px 18px; background: var(--paper); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 30px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; color: var(--ink); font-family: Georgia, 'Times New Roman', serif; font-size: 25px; line-height: 1.1; letter-spacing: -.045em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 44px; flex: 0 0 38px; border-radius: 21px 21px 8px 8px; background: var(--green); color: #f9edc7; }
.header-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; font-weight: 600; text-decoration: none; }
.header-link:hover { text-decoration: underline; }
.hero { flex: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 80px; padding-block: 48px; }
.hero:focus { outline: none; }
.introduction { padding-bottom: 16px; }
h1 { max-width: 540px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(42px, 4.5vw, 60px); font-weight: 400; letter-spacing: -.045em; line-height: 1.1; text-wrap: balance; }
.description { max-width: 420px; margin-top: 27px; font-size: 18px; line-height: 1.7; color: var(--muted); }
.availability { margin-top: 24px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.availability span { color: var(--ink); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 22px; min-height: 50px; margin-top: 30px; padding: 13px 22px; border: 1px solid var(--green); border-radius: 10px; background: var(--green); color: var(--paper); text-decoration: none; font-size: 15px; font-weight: 600; line-height: 1.5; }
.button svg { flex-shrink: 0; }
.button:hover { background: var(--green-dark); border-color: var(--green-dark); color: var(--paper); }
.app-preview { width: min(100%, 280px); justify-self: center; }
.app-preview img { display: block; width: 100%; height: auto; border: 1px solid #c7cebd; border-radius: 17px; background: var(--paper); }
.app-preview figcaption { margin-top: 14px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.6; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 15px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.6; color: var(--muted); }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.not-found { display: flex; align-items: center; padding-block: 90px; }
.not-found h1 { font-size: clamp(38px, 5vw, 54px); }

@media (max-width: 800px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 40px; }
  h1 { font-size: 44px; }
  .description { font-size: 17px; }
  .app-preview { width: min(100%, 250px); }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 48px); }
  .site-header { padding-block: 20px; }
  .brand { font-size: 23px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 48px; padding-block: 42px; }
  .introduction { padding: 0; }
  h1 { max-width: 440px; font-size: clamp(38px, 8vw, 46px); }
  .description { margin-top: 20px; }
  .availability { margin-top: 20px; }
  .button { margin-top: 24px; }
  .app-preview { width: min(100%, 280px); }
  .site-footer { flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .header-link { display: none; }
}
