:root {
  color-scheme: light dark;
  --background: #faf9f6;
  --surface: #ffffff;
  --ink: #161b25;
  --muted: #525b6b;
  --accent: #245ac5;
  --accent-soft: #edf2fc;
  --border: #dadde5;
  font-family: "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover { text-decoration-thickness: 2px; }

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 24px;
  z-index: 1;
  padding: 8px 16px;
  background: var(--surface);
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding-block: 30px;
  border-bottom: 1px solid var(--border);
}

.wordmark {
  display: inline-block;
  flex-shrink: 0;
  text-decoration: none;
}

.wordmark img { display: block; width: 135px; height: auto; }

.tagline-ending { white-space: nowrap; }
.tagline-wordmark {
  width: 3.7em;
  height: 1.15em;
  object-fit: cover;
  object-position: 50% 69%;
  vertical-align: -0.29em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 15px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover { color: var(--accent); }

.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
}

main { padding-block: 72px 88px; }
main:focus { outline: none; }

h1, h2, h3 {
  margin-top: 0;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 { font-size: clamp(42px, 5vw, 64px); margin-bottom: 28px; }
h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 20px; }
h3 { font-size: 23px; margin-bottom: 14px; }
p { margin: 0 0 22px; color: var(--muted); }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 650; }

.hero {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  align-items: start;
  gap: 64px;
  padding-block: 10px 68px;
}

.hero h1 {
  font-size: clamp(52px, 6.8vw, 86px);
  letter-spacing: -0.065em;
  line-height: 1.04;
  margin-bottom: 30px;
}

.hero p { max-width: 38em; font-size: 20px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 32px;
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent);
  color: white;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.button:hover { filter: brightness(0.92); text-decoration: underline; }

.app-summary {
  margin-top: 8px;
  padding: 32px;
  border-radius: 12px;
  background: var(--accent-soft);
}

.app-summary h2 { font-size: 26px; }
.app-summary p { font-size: 16px; }
.facts { margin: 0; }
.facts div { padding-block: 14px; border-bottom: 1px solid var(--border); }
.facts div:first-child { padding-top: 0; }
.facts div:last-child { padding-bottom: 0; border-bottom: 0; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 3px 0 0; font-size: 18px; font-weight: 600; }

.section-row {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 64px;
  border-top: 1px solid var(--border);
  padding-block: 48px;
}

.section-row:last-child { padding-bottom: 0; }
.section-row h2 { font-size: 31px; }
.section-row p { max-width: 42em; }
.page-intro { max-width: 800px; margin-bottom: 56px; }
.page-intro p { font-size: 22px; }
.availability-note { margin-top: 24px; }

.contact-email {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 16px;
  font-size: clamp(19px, 2.5vw, 27px);
  overflow-wrap: anywhere;
}

.prose { max-width: 760px; }
.prose h1 { font-size: clamp(38px, 5vw, 58px); }
.prose h2 { margin-top: 48px; font-size: 29px; }
.prose h3 { margin-top: 32px; }
.prose li { margin-bottom: 10px; color: var(--muted); }
.prose ul, .prose ol { padding-left: 24px; margin-block: 0 22px; }
.prose a { overflow-wrap: anywhere; }
.prose code { font-size: 0.9em; overflow-wrap: anywhere; }
.prose .footnote { font-size: 14px; margin-bottom: 32px; }
.prose .updated { font-size: 15px; margin-bottom: 32px; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 22px; font-size: 15px; }
.prose th, .prose td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}
.prose th { color: var(--ink); font-weight: 600; }
:target { scroll-margin-top: 24px; }

.site-footer {
  padding-block: 48px 28px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .wordmark { margin-bottom: 20px; }
.footer-brand .wordmark img { width: 108px; }
.site-footer p, .site-footer a { font-size: 14px; }
.footer-brand p { max-width: 27em; margin-bottom: 10px; }
.footer-links h2 { font-size: 16px; letter-spacing: 0; margin-bottom: 16px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--muted); }
.copyright { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); }

@media (max-width: 800px) {
  .site-header, main, .footer-inner { width: calc(100% - 48px); }
  .site-header { padding-block: 24px; }
  .site-nav { gap: 10px 20px; }
  main { padding-block: 48px 64px; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-bottom: 48px; }
  .hero h1 { max-width: 12ch; }
  .hero p { font-size: 19px; }
  .app-summary { margin-top: 0; padding: 26px; }
  .section-row { grid-template-columns: 1fr; gap: 8px; padding-block: 36px; }
  .page-intro { margin-bottom: 40px; }
  .page-intro p { font-size: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #111823;
    --surface: #17202d;
    --ink: #f3f5fa;
    --muted: #b9c2d1;
    --accent: #8bb6ff;
    --accent-soft: #1b2c46;
    --border: #344156;
  }

  .button { background: #245ac5; border-color: #8bb6ff; }
}

@media (prefers-reduced-motion: no-preference) {
  .button { transition: filter 120ms ease; }
}

[hidden] { display: none !important; }
.share-landing { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.share-intro h1 { overflow-wrap: anywhere; }
.share-eyebrow { font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; }
.share-art { margin: 0; }
.share-art img { display: block; width: 100%; max-height: 460px; object-fit: contain; border-radius: 12px; }
.share-link { margin-top: 32px; }
.share-link label { display: block; font-size: 15px; color: var(--muted); }
.share-link input { width: 100%; margin: 8px 0 12px; padding: 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: 7px; font: inherit; font-size: 14px; }
.share-link button { cursor: pointer; }
#copy-status { margin-top: 12px; font-size: 15px; }
@media (max-width: 800px) { .share-landing { grid-template-columns: 1fr; gap: 32px; } .share-art { max-width: 440px; } }
