@font-face {
  font-family: Onest;
  src: url("/assets/Onest.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --page: #f0f0f0;
  --surface: #fafafa;
  --ink: #202020;
  --muted: #555;
  --line: #d7d7d7;
  --preview: #e6e6e6;
  --lime: #e8f477;
  --on-lime: #202020;
}

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

@supports (color: light-dark(black, white)) {
  :root {
    --page: light-dark(#f0f0f0, #1d1d1d);
    --surface: light-dark(#fafafa, #292929);
    --ink: light-dark(#202020, #f5f5f5);
    --muted: light-dark(#555, #c0c0c0);
    --line: light-dark(#d7d7d7, #444);
    --preview: light-dark(#e6e6e6, #252525);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font: 400 1rem/1.55 Onest, system-ui, sans-serif;
}
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .14em; }
:is(a, button):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, p, dl, dd, figure { margin: 0; }

.frame { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.site-header, .site-footer {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-header { border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; border-radius: 4px; }
.header-link, .site-footer nav { font-size: .9375rem; }
.header-link { font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); }
.theme-toggle:not([hidden]) {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--muted); }
.theme-toggle[aria-pressed="false"] .sun-icon,
.theme-toggle[aria-pressed="true"] .moon-icon { display: none; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .92fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(48px, 8vw, 104px);
}
.hero h1, .content h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -.085em;
  line-height: .96;
}
.hero-copy p { margin-block: 26px 30px; max-width: 34ch; color: var(--muted); font-size: clamp(1.0625rem, 2vw, 1.25rem); }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: .7rem 1.2rem;
  border-radius: 100px;
  background: var(--lime);
  color: var(--on-lime);
  font-weight: 650;
  text-decoration: none;
}
.button:hover { box-shadow: inset 0 0 0 1px var(--ink); }

.preview {
  display: grid;
  justify-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 38px;
  background: var(--preview);
  padding: 23px clamp(14px, 4vw, 42px) 15px;
}
.app-screen {
  display: block;
  width: min(100%, 320px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 12px 30px #0002;
}
.app-screen img { width: 100%; height: auto; }
.preview figcaption { color: var(--muted); text-align: center; font-size: .8125rem; }

.features { padding-block: 8px 60px; scroll-margin-top: 20px; }
.features h2, .content h2 { font-size: clamp(1.8rem, 4vw, 2.85rem); line-height: 1.1; letter-spacing: -.055em; }
.features dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.features dl div { border-top: 1px solid var(--line); padding-top: 13px; }
.features dt { font-weight: 700; font-size: 1.125rem; }
.features dd { margin-top: 5px; max-width: 36ch; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); padding-block: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.content { max-width: 740px; min-height: 62vh; padding-block: 56px 70px; }
.content h1 { margin-bottom: 25px; font-size: clamp(2.4rem, 7vw, 4.65rem); letter-spacing: -.07em; }
.content h2 { margin-top: 31px; font-size: 1.45rem; letter-spacing: -.035em; }
.content p { margin-top: 12px; }
.content ul { padding-inline-start: 1.4rem; }
.content .button { margin-top: 20px; }

@media (max-width: 760px) {
  .frame { width: min(580px, calc(100% - 36px)); }
  .site-header { min-height: 66px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 45px; }
  .hero h1 { font-size: clamp(2.48rem, 9.6vw, 5rem); }
  .hero-copy p { margin-block: 18px 22px; }
  .preview { border-radius: 26px; padding-top: 16px; }
  .features dl { grid-template-columns: 1fr; gap: 18px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
