@font-face {
  font-family: "Retrace Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./assets/fonts/barlow-condensed-latin-500.woff2") format("woff2");
}

:root {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, a { font: inherit; }
a { color: inherit; }

.page { min-height: 100vh; padding-bottom: 96px; }
.eyebrow { margin: 0 0 18px; font: 700 11px/1.2 ui-monospace, "SFMono-Regular", monospace; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 780px; font-size: clamp(48px, 7.2vw, 110px); line-height: .94; letter-spacing: -.065em; }
.hero-copy { max-width: 650px; margin: 28px 0 0; font-size: clamp(18px, 2vw, 25px); line-height: 1.35; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px; text-decoration: none; font-weight: 650; }
.button.primary { color: var(--button-text); background: var(--button-bg); }
.button.secondary { border: 1px solid currentColor; }

.mac {
  position: relative;
  width: min(1080px, 100%);
  aspect-ratio: 16 / 10;
  border: clamp(7px, 1.2vw, 15px) solid #171719;
  border-radius: clamp(18px, 2.7vw, 34px);
  overflow: hidden;
  color: #f6f2e9;
  background: #090a0d;
  box-shadow: 0 35px 90px rgba(0,0,0,.26);
}
.mac::before { content: ""; position: absolute; z-index: 5; top: 0; left: 50%; width: 18%; height: 4.2%; border-radius: 0 0 12px 12px; background: #171719; transform: translateX(-50%); }
.mac::after { content: ""; position: absolute; z-index: -1; left: 5%; right: 5%; bottom: -3%; height: 5%; border-radius: 0 0 80% 80%; background: #c8c8c8; }
.screen { position: absolute; inset: 0; display: grid; }
.definition-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 72px; border: 1px solid var(--rule); background: var(--rule); }
.definition-grid section { min-height: 260px; padding: 30px; background: var(--surface); }
.definition-grid h2 { margin: 0 0 36px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.definition-grid dl { display: grid; grid-template-columns: 110px 1fr; gap: 16px 24px; margin: 0; }
.definition-grid dt { font-weight: 720; }
.definition-grid dd { margin: 0; color: var(--muted); line-height: 1.45; }
.version-help { margin-top: 12px; }
.version-help summary { width: fit-content; color: inherit; font-weight: 650; cursor: pointer; text-decoration: underline; text-decoration-color: #b7b7b7; text-underline-offset: 3px; }
.version-help summary:hover { text-decoration-color: currentColor; }
.version-help summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.version-help ol { margin: 10px 0 0; padding-left: 20px; }
.version-help li + li { margin-top: 6px; }

.v1 {
  --button-bg: #111;
  --button-text: #fff;
  --surface: #fff;
  --rule: #ededed;
  --muted: #6f6f6f;
  min-height: 100vh;
  padding-bottom: 64px;
  color: #111;
  background: #f5f5f5;
  font-family: -apple-system, "system-ui", "SF Pro Text", "SF Pro Display", Inter, InterVariable, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 22.5px;
  letter-spacing: -.165px;
}

.v1 .topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 814px;
  margin: 0 auto;
  height: auto;
  padding: 28px 0 0;
}

.v1 .font-comparison {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px 18px;
  width: min(880px, 100%);
  margin: 0 auto;
}

.v1 .font-option {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 5px;
  text-align: center;
}

.v1 .font-lockup {
  display: grid;
  width: max-content;
  justify-items: center;
  gap: 3px;
}

.v1 .brand-mark {
  display: block;
  width: 120%;
  height: auto;
  object-fit: contain;
}

.v1 .font-option-wordmark {
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -.04em;
  white-space: nowrap;
}

.v1 .font-option-label {
  color: #6f6f6f;
  font: 500 10px/12px ui-monospace, "SFMono-Regular", monospace;
  letter-spacing: -.03em;
  white-space: normal;
}

.v1 .selected-brand {
  width: max-content;
}

.v1 .selected-brand .font-lockup {
  display: flex;
  align-items: center;
  justify-items: initial;
  gap: 8px;
  text-align: left;
}

.v1 .selected-brand .brand-mark {
  flex: 0 0 auto;
  width: var(--brand-mark-width, 120%);
}

.v1 .selected-brand .font-option-wordmark {
  font-size: 24px;
  line-height: 28px;
}

.v1 .stage { width: min(640px, 100%); margin: 0 auto; padding: 56px 24px 64px; }
.v1 .hero { display: block; padding: 0; text-align: start; }
.v1 .intro { width: 592px; margin: 0 0 32px; }
.v1 .hero h1 {
  width: 592px;
  max-width: none;
  margin: 0 0 16px;
  font-size: 40px;
  font-weight: 500;
  line-height: 44px;
  letter-spacing: -1.4px;
}
.v1 .hero h1.h1-condensed { font-family: "Retrace Condensed", "Avenir Next Condensed", "Avenir Next", sans-serif; }
.v1 .hero-copy {
  width: 592px;
  max-width: 592px;
  margin: 0;
  color: #6f6f6f;
  font-size: 19px;
  font-weight: 500;
  line-height: 26.6px;
  letter-spacing: -.38px;
}
.v1 .cta-row { flex-wrap: nowrap; gap: 16px; min-height: 44px; margin-top: 0; }
.v1 .language-picker {
  flex: 0 0 auto;
  color: var(--muted);
}
.v1 .language-picker-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.v1 .language-picker select {
  field-sizing: content;
  margin: 0;
  padding: 4px 0 4px 4px;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.v1 .language-picker select:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.v1 .button {
  flex: none;
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 500;
  line-height: 22.5px;
  letter-spacing: -.225px;
}
.v1 .download-size { flex: none; color: #6f6f6f; font-size: 13px; line-height: 19.5px; letter-spacing: -.065px; }
.v1 .demo { display: block; width: 880px; margin: 80px 0 56px -144px; padding: 0; text-align: center; }
.v1 .mac {
  width: 92.5%;
  height: auto;
  aspect-ratio: 1.54;
  margin: 0 auto;
  overflow: visible;
  border: 0;
  border-radius: 32px;
  color: var(--preview-text);
  background: #171719;
  box-shadow: none;
}
.v1 .mac::before { top: 0; width: 22%; height: 8.5%; border-radius: 0 0 10px 10px; background: #171719; }
.v1 .mac::after { z-index: 0; left: -4.05%; right: -4.05%; bottom: -1px; height: 24px; border-radius: 2px 2px 10px 10px; background: #929292; }
.v1 .mac-hinge { position: absolute; z-index: 2; left: 37.5%; right: 37.5%; bottom: 8px; height: 14px; border-radius: 0 0 10px 10px; background: #626262; }
.v1 .screen {
  z-index: 1;
  top: 14px;
  right: 14px;
  left: 14px;
  bottom: auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 13px 13px 5px 5px;
  color: var(--preview-text);
  background: var(--preview-bg);
  transition: background-color .5s ease;
}
.v1 .screen-scene { position: absolute; inset: 0; }
.v1 .preview-controls { display: grid; gap: 16px; width: 592px; margin: 0; }
.v1 .picker-block { padding: 0; border-radius: 0; background: transparent; }
.v1 .picker-block h2,
.v1 .definition-grid h2 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 19.5px;
  letter-spacing: .26px;
  text-transform: uppercase;
}
.v1 .pill-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.v1 .preview-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid var(--preview-route);
  border-radius: 999px;
  color: var(--preview-route);
  background: var(--preview-bg);
  font: inherit;
  line-height: 22.5px;
  text-align: center;
  cursor: pointer;
}
.v1 .theme-option {
  border-width: 2px;
  border-style: solid;
}
.v1 .display-mode-option {
  border-color: #111;
  color: #111;
  background: #fff;
}
.v1 .display-mode-option[aria-pressed="true"] {
  color: #fff;
  background: #111;
  box-shadow: 0 0 0 1px #111;
}
.v1 .display-mode-option:hover { filter: brightness(.96); }
.v1 .theme-option[aria-pressed="true"] {
  box-shadow: none;
  font-weight: 650;
}
.v1 .theme-option[data-theme="carbon"] {
  border-color: #fff;
  color: #fff;
  background: #000;
}
.v1 .theme-option[data-theme="rainbow"] {
  --rainbow-gradient: linear-gradient(90deg, #ff4d6d 0%, #ff9f43 16%, #ffe66d 32%, #4dff88 48%, #48c6ff 64%, #6c63ff 80%, #d66bff 91%, #ff4dba 100%);
  border-color: transparent;
  color: transparent;
  background: linear-gradient(var(--preview-bg), var(--preview-bg)) padding-box, var(--rainbow-gradient) border-box;
}
.v1 .theme-option[data-theme="rainbow"] .theme-label {
  display: inline-block;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background: var(--rainbow-gradient);
  background-clip: text;
  -webkit-background-clip: text;
}
.v1 .preview-option:focus-visible { outline: 3px solid #4b8cff; outline-offset: 3px; }
.v1 .preview-option:hover { filter: brightness(.97); }
.v1 .proof { width: 592px; margin: 56px 0 0; }
.v1 .definition-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 0; border: 0; background: transparent; }
.v1 .definition-grid section { min-height: 0; padding: 24px 24px 12px; border-radius: 20px; background: #fff; }
.v1 .definition-grid dl { display: block; margin: 0 -24px; }
.v1 .definition-row { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px 24px; border-top: 1px solid #ededed; }
.v1 .definition-grid dt,
.v1 .definition-grid dd {
  min-height: 0;
  padding: 0;
  border: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 22.5px;
}
.v1 .definition-grid dt { letter-spacing: -.225px; }
.v1 .definition-grid dd { min-width: 0; overflow-wrap: anywhere; color: #6f6f6f; letter-spacing: -.165px; }
.v1 .export-guide {
  width: 592px;
  margin: 56px 0 0;
  padding: 24px 24px 12px;
  border-radius: 20px;
  color: #111;
  background: #fff;
}
.v1 .export-guide-heading { margin: 0 -24px; padding: 0 24px 8px; border-bottom: 1px solid #ededed; }
.v1 .export-guide h2 { margin: 0; font-size: 13px; font-weight: 500; line-height: 19.5px; letter-spacing: .26px; text-transform: uppercase; }
.v1 .export-guide-content { padding-top: 20px; }
.v1 .export-guide-lede { margin: 0; color: #6f6f6f; font-size: 15px; line-height: 22.5px; letter-spacing: -.165px; white-space: nowrap; }
.v1 .export-guide-inline-link { color: #111; text-underline-offset: 3px; }
.v1 .export-steps { display: grid; gap: 0; margin: 20px 0 0; padding: 0; list-style: none; }
.v1 .export-step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid #ededed; line-height: 22.5px; }
.v1 .export-step:last-child { border-bottom: 1px solid #ededed; }
.v1 .export-step-number { color: #d64a38; font: 700 12px/22.5px ui-monospace, "SFMono-Regular", monospace; }
.v1 .export-step strong { color: #111; font-weight: 650; }
.v1 .export-note { margin: 16px 0 0; color: #6f6f6f; font-size: 13px; line-height: 19.5px; }
@media (max-width: 800px) {
  .definition-grid { grid-template-columns: 1fr; }
  .definition-grid section { min-height: auto; }
  .v1 .topbar {
    width: calc((100vw - 40px) * .925);
    gap: 8px;
    padding: 22px 0 0;
  }
  .v1 .font-comparison {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 10px;
    width: 100%;
  }
  .v1 .brand-mark { width: 120%; }
  .v1 .selected-brand .brand-mark { transform: translateX(-15%); margin-right: -12px; }
  .v1 .selected-brand .font-option-wordmark { font-size: 20px; line-height: 24px; }
  .v1 .font-option-wordmark { font-size: 16px; line-height: 20px; }
  .v1 .font-option-label { font-size: 8px; line-height: 10px; }
  .v1 .stage { padding: 40px 20px 64px; }
  .v1 .intro,
  .v1 .hero h1,
  .v1 .hero-copy,
  .v1 .preview-controls,
  .v1 .proof { width: 100%; max-width: none; }
  .v1 .hero h1 { font-size: clamp(33px, 5.75vw, 36px); line-height: 1.1; letter-spacing: -1.26px; }
  .v1 .hero-copy { font-size: clamp(16px, 3vw, 18px); line-height: 1.4; letter-spacing: -.36px; }
  .v1 .hero-copy .hero-copy-break { display: none; }
  .v1 .cta-row { flex-direction: row; align-items: center; gap: 10px; }
  .v1 .demo { width: 100%; margin: 64px 0 48px; }
  .v1 .mac { width: 92.5%; aspect-ratio: 1.54; border-radius: 16px; }
  .v1 .mac::after { left: -4.05%; right: -4.05%; height: 14px; }
  .v1 .mac-hinge { bottom: 5px; height: 7px; border-radius: 0 0 5px 5px; }
  .v1 .screen { top: 8px; right: 8px; left: 8px; border-radius: 9px 9px 4px 4px; }
  .v1 .pill-grid { gap: 3px; }
  .v1 .display-mode-option { flex: 0 1 auto; min-width: 0; padding-right: 7px; padding-left: 7px; font-size: clamp(10px, 3.3vw, 13px); white-space: nowrap; }
  .v1 .definition-row { grid-template-columns: 112px 1fr; }
  .v1 .export-guide { width: 100%; margin-top: 56px; padding: 28px 20px 20px; }
  .v1 .export-guide-heading { margin-right: -20px; margin-left: -20px; padding-right: 20px; padding-left: 20px; }
  .v1 .export-guide-lede { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
