/* Forma's native tokens: VectorPath.swift, QuizOptions.swift and AtlasDesign.swift. */
:root {
  color-scheme: light;
  --surface: #f3f5fa;
  --card: #ffffff;
  --ink: #233451;
  --secondary: #637189; /* Native secondary, deepened slightly for small web text. */
  --rule: #d6ddea;
  --accent: #4264ae;
  --action: #233451;
  --sea: #ddedf5;
  --grid: rgb(66 100 174 / 4.5%);
  --shadow: 0 8px 28px rgb(35 52 81 / 3.5%);
  --rounded: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
header, main, footer { width: min(100% - 64px, 1024px); margin-inline: auto; }
header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 32px 0 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--rounded);
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -.8px;
  line-height: 1.2;
}
.brand img { border-radius: 11px; }
nav { display: flex; justify-self: center; gap: 8px; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 14px 9px;
  color: var(--secondary);
  text-decoration: none;
  font-size: 14px;
}
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
nav a[aria-current="page"] { font-weight: 600; }
nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: calc(50% - 14px);
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
}
main { margin-top: 58px; margin-bottom: 72px; }
h1, h2 { color: var(--ink); }
h1 {
  font-family: var(--rounded);
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -1.3px;
  margin: 0 0 26px;
}
h2 {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -.3px;
  margin: 36px 0 14px;
}
p { margin: 0 0 20px; overflow-wrap: anywhere; }
.home-page {
  display: grid;
  grid-template-columns: 1fr 1.02fr;
  align-items: center;
  gap: 48px;
  min-height: 480px;
  margin-top: 68px;
  margin-bottom: 88px;
}
.home-copy { padding-block: 12px; min-width: 0; }
.intro { font-size: 20px; line-height: 1.6; }
.about > p:not(.intro) { color: var(--secondary); }
.byline, .quiet, .help-note, .source-links, .eyebrow {
  color: var(--secondary);
  font-size: 14px;
}
.byline { margin: 24px 0 0; }
.actions { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 16px 24px; margin: 20px 0 0; font-size: 14px; }
.actions .button { min-height: 48px; }
.support-option { display: grid; gap: 5px; max-width: 190px; padding-top: 10px; }
.support-option a { width: fit-content; text-decoration: none; }
.support-option a:hover { text-decoration: underline; }
.support-option .quiet { margin: 0; font-size: 13px; line-height: 1.5; }
.actions > a:not(.button) { text-decoration: none; }
.actions > a:not(.button):hover { text-decoration: underline; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--action);
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  line-height: 1.45;
}
.button:hover { filter: brightness(1.12); text-decoration: none; }
.map-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.map-preview {
  display: flex;
  align-items: center;
  aspect-ratio: 1.4;
  padding: 14px;
  background-color: var(--sea);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
}
.map-preview img { display: block; width: 100%; height: auto; }
figcaption { padding: 22px 24px 24px; }
figcaption h2 { font-family: var(--rounded); font-size: 24px; font-weight: 650; margin: 0 0 5px; letter-spacing: -.5px; }
figcaption p { color: var(--secondary); font-size: 14px; margin: 0; }
.document {
  max-width: 800px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 42px 44px 36px;
}
.document > :last-child { margin-bottom: 0; }
.document .intro { max-width: 640px; }
.contact { display: inline-block; max-width: 100%; margin: 0 0 22px; font-size: clamp(17px, 3.6vw, 23px); font-weight: 600; overflow-wrap: anywhere; }
.help-note { max-width: 620px; }
.faq { margin-top: 20px; border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; }
details + details { border-top: 1px solid var(--rule); }
summary { cursor: pointer; min-height: 60px; padding: 18px 20px; font-size: 16px; font-weight: 600; }
summary::marker { color: var(--accent); }
details > div { padding: 0 20px 6px; color: var(--secondary); font-size: 16px; }
details p { margin-bottom: 16px; }
footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 24px 0 36px;
  border-top: 1px solid var(--rule);
  color: var(--secondary);
  font-size: 13px;
}
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 4px; }
.skip { position: absolute; left: 16px; top: -100px; padding: 12px 18px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; }
.skip:focus { top: 8px; z-index: 1; }
@media (max-width: 760px) {
  header, main, footer { width: calc(100% - 40px); }
  header { gap: 20px; padding-top: 26px; }
  nav { gap: 0; border-bottom: 1px solid var(--rule); }
  nav a { flex: 1; padding-inline: 8px; min-height: 48px; }
  main { margin-top: 32px; margin-bottom: 44px; }
  .home-page { grid-template-columns: 1fr; gap: 30px; min-height: 0; margin-top: 32px; margin-bottom: 44px; }
  .home-copy { max-width: 560px; }
  .map-card { width: 100%; max-width: 560px; }
  .map-preview { aspect-ratio: 1.65; padding: 12px 18px; }
  .map-preview img { max-height: 100%; object-fit: contain; }
  .document { padding: 28px 24px; border-radius: 22px; }
  .document .intro, .intro { font-size: 19px; }
}
@media (max-width: 380px) {
  header, main, footer { width: calc(100% - 32px); }
  .document { padding: 26px 18px; }
  .actions { gap: 18px; }
  nav a { font-size: 13px; padding-inline: 4px; }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #111b29;
  --card: #202b3b;
  --ink: #ecf0f7;
  --secondary: #b3bed0;
  --rule: #3b4a60;
  --accent: #aac1f0;
  --action: #35558f;
  --sea: #182e3d;
  --grid: rgb(170 193 240 / 4.5%);
  --shadow: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --surface: #111b29;
    --card: #202b3b;
    --ink: #ecf0f7;
    --secondary: #b3bed0;
    --rule: #3b4a60;
    --accent: #aac1f0;
    --action: #35558f;
    --sea: #182e3d;
    --grid: rgb(170 193 240 / 4.5%);
    --shadow: none;
  }
}
@media (prefers-contrast: more) {
  :root, :root[data-theme] { --secondary: var(--ink); }
}
@media (forced-colors: active) {
  .button { border-color: ButtonText; }
  nav a[aria-current="page"]::after { background: LinkText; }
}

/* The native app's appearance picker, shared across the Forma website. */
.appearance {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
  min-width: 0;
}
.appearance[hidden] { display: none; }
.appearance label { position: relative; cursor: pointer; }
.appearance input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.appearance span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  min-width: 44px;
  padding: 0 9px;
  border-radius: 9px;
  color: var(--secondary);
  font-size: 12px;
  line-height: 1;
}
.appearance input:checked + span { color: var(--ink); background: var(--card); box-shadow: 0 1px 4px rgb(0 0 0 / 8%); font-weight: 600; }
.appearance input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 940px) {
  header { grid-template-columns: 1fr auto; row-gap: 20px; }
  header nav { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .appearance { grid-column: 2; grid-row: 1; }
}
@media (max-width: 540px) {
  .brand { gap: 9px; font-size: 25px; }
  .brand img { width: 34px; height: 34px; border-radius: 9px; }
  .appearance span { padding-inline: 6px; min-width: 39px; }
  .actions { flex-direction: column; }
  .support-option { padding-top: 0; max-width: none; }
}
@media (forced-colors: active) {
  .appearance input:checked + span { outline: 2px solid Highlight; }
}
