@font-face {
  font-family: "Crimson Pro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/crimson-pro-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Crimson Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/crimson-pro-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Hind";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/hind-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Hind";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/hind-500-normal.woff2") format("woff2");
}

:root {
  --ink: #1e2a3c;
  --muted: rgba(30, 42, 60, 0.55);
  --paper: #eef0f7;
  --warm: #f6f1e6;
  --line: #ececef;
  --display: "Crimson Pro", "Iowan Old Style", Palatino, serif;
  --text: Hind, "Avenir Next", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.45;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

.skip {
  position: absolute;
  left: 16px;
  top: 8px;
  padding: 8px 12px;
  background: #fff;
  border-radius: 8px;
  transform: translateY(-140%);
}
.skip:focus { transform: none; z-index: 20; }

.bar,
.page,
.foot {
  width: min(1120px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.bar {
  position: sticky;
  top: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 10px 12px 10px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.brand {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  line-height: 1;
}

.bar-end {
  display: flex;
  align-items: center;
  gap: 22px;
}

.bar-links {
  display: flex;
  gap: 18px;
}

.bar-links a,
.foot a {
  text-decoration: none;
  color: var(--muted);
  font-size: 16px;
}

.bar-links a:hover,
.foot a:hover { color: var(--ink); }

.store {
  display: inline-flex;
  line-height: 0;
}

.store img {
  height: 40px;
  width: auto;
}

.hero {
  margin-top: 16px;
  padding: 72px 24px 0;
  background: var(--paper);
  border-radius: 40px;
  text-align: center;
  overflow: hidden;
}

.hero h1,
.feature h2,
.doc h1,
.doc h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.05;
}

.hero p,
.feature p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.4;
}

.hero p {
  max-width: 26em;
  margin: 16px auto 0;
}

.hero .store { margin-top: 28px; }

.hero-shot {
  width: min(300px, 72%);
  margin-top: 40px;
  border-radius: 28px 28px 0 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 80px;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.feature.flip .copy { order: 2; }

.feature h2 {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.08;
}

.feature p {
  max-width: 16em;
  margin: 14px 0 0;
}

.panel {
  min-height: 520px;
  border-radius: 40px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 48px;
}

.panel img {
  width: 270px;
  border-radius: 24px 24px 0 0;
  display: block;
}

.panel.paper { background: var(--paper); }
.panel.warm { background: var(--warm); }
.panel.ink { background: #243044; }

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 80px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 16px;
}

.foot p { margin: 0; }

.foot nav { display: flex; gap: 20px; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.doc { background: #fff; }

.doc .top {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.doc main {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 12px 0 72px;
}

.doc h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.05;
}

.doc .updated {
  margin-top: 12px;
  color: var(--muted);
}

.doc h2 {
  margin: 2.2rem 0 0;
  font-size: 28px;
  line-height: 1.15;
}

.doc p,
.doc li {
  font-size: 17px;
  line-height: 1.55;
}

.doc p + p,
.doc li + li { margin-top: 0.75rem; }

.doc ul,
.doc ol {
  margin-top: 0.8rem;
  padding-left: 1.2rem;
}

.doc a { text-underline-offset: 0.18em; }

.doc .end { margin-top: 2.2rem; }

@media (max-width: 800px) {
  .bar-links { display: none; }
  .bar { padding-left: 18px; }
  .brand { font-size: 22px; }
  .hero { padding-top: 48px; border-radius: 28px; }
  .hero h1 { font-size: 36px; }
  .hero p,
  .feature p { font-size: 18px; }
  .features { gap: 56px; margin-top: 56px; }
  .feature,
  .feature.flip {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .feature.flip .copy { order: 0; }
  .feature p { margin-left: auto; margin-right: auto; }
  .panel { min-height: 0; border-radius: 28px; }
  .foot {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 56px;
  }
}
