@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Sora";
  src: url("../fonts/Sora-Variable-LatinExt.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Sora";
  src: url("../fonts/Sora-Variable-Latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --text: #1b2128;
  --bg: #f5f5f3;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  font-family: "Lato", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
}

.site-logo {
  position: fixed;
  top: 24px;
  left: 50%;
  z-index: 10;
  transform: translateX(-50%);
  font-family: "Sora", Arial, sans-serif;
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
  text-decoration: none;
}

.hero {
  min-height: 100vh;
}

.container {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  min-height: 100vh;
  padding: 24px;
}

.content {
  grid-column: 3 / span 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

h1 {
  max-width: 900px;
  margin: 0 0 24px;
  font-family: "Sora", Arial, sans-serif;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.2;
  font-weight: 400;
}

h2,
h3 {
  font-family: "Sora", Arial, sans-serif;
  font-weight: 400;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cta {
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.cta:hover,
.cta:focus-visible {
  opacity: 0.6;
}

.cta:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
}

@media (max-width: 1024px) {
  .container {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .content {
    grid-column: 1 / span 6;
  }
}

@media (max-width: 600px) {
  .container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .content {
    grid-column: 1 / span 3;
    padding: 0 8px;
  }

  h1 {
    font-size: 28px;
  }
}

.text-section {
  padding: 96px 24px;
}

.section-title {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 32px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
}

.section-number {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 24px;
  font-size: 18px;
  line-height: 1.4;
}

.text-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.text-column {
  grid-column: span 6;
}

.text-column p {
  max-width: 520px;
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
}

.text-column p + p {
  margin-top: 24px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px;
  font-size: 14px;
  line-height: 1.4;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.app-choice {
  width: min(980px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 72px 0;
}

.app-step {
  display: none;
}

.app-step.is-active {
  display: block;
}

.app-choice-header {
  margin-bottom: 48px;
}

.app-choice-header h1 {
  max-width: 760px;
  margin: 0;
  text-align: left;
}

.choice-form {
  margin: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-option {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 112px;
  padding: 22px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.choice-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-option span {
  font-family: "Sora", Arial, sans-serif;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.12;
}

.choice-option:has(input:checked) {
  background: rgba(27, 33, 40, 0.06);
}

.choice-option:has(input:focus-visible) {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.dictionary-page {
  min-height: 100vh;
}

.dictionary {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0;
}

.dictionary-header {
  margin-bottom: 56px;
}

.dictionary-header h1 {
  max-width: 820px;
  margin-bottom: 16px;
}

.dictionary-kicker,
.dictionary-label {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dictionary-lead {
  max-width: 620px;
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.dictionary-section {
  padding: 40px 0;
  border-top: 1px solid rgba(27, 33, 40, 0.18);
}

.dictionary-section-header {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.dictionary-section h2,
.dictionary-section h3 {
  margin: 0;
}

.dictionary-section h2 {
  font-size: 28px;
  line-height: 1.2;
}

.dictionary-section h3 {
  font-size: 16px;
  line-height: 1.3;
}

.dictionary-note {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.72;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.swatch,
.type-sample,
.specimen,
.component-row {
  border: 1px solid rgba(27, 33, 40, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.3);
}

.swatch {
  padding: 16px;
}

.swatch p {
  margin: 6px 0 0;
}

.swatch-preview {
  height: 96px;
  margin-bottom: 16px;
  border: 1px solid rgba(27, 33, 40, 0.18);
  border-radius: 6px;
}

.swatch-preview-text {
  background: var(--text);
}

.swatch-preview-bg {
  background: var(--bg);
}

.type-stack {
  display: grid;
  gap: 16px;
}

.type-sample,
.specimen {
  padding: 24px;
}

.type-sample p:last-child {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
}

.type-regular p:last-child {
  font-weight: 400;
}

.type-heading p:last-child {
  font-family: "Sora", Arial, sans-serif;
  font-weight: 400;
}

.sora-weight-grid {
  display: grid;
  gap: 12px;
}

.sora-weight-sample {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid rgba(27, 33, 40, 0.14);
}

.sora-weight-sample:last-child {
  border-bottom: 0;
}

.sora-weight-value {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.7;
}

.sora-weight-text {
  margin: 0;
  font-family: "Sora", Arial, sans-serif;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.12;
}

.sora-weight-300 {
  font-weight: 300;
}

.sora-weight-400 {
  font-weight: 400;
}

.sora-weight-500 {
  font-weight: 500;
}

.sora-weight-600 {
  font-weight: 600;
}

.sora-weight-700 {
  font-weight: 700;
}

.sora-weight-800 {
  font-weight: 800;
}

.specimen + .specimen {
  margin-top: 16px;
}

.specimen p {
  max-width: 720px;
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.specimen h1 {
  text-align: left;
}

.component-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
}

.component-preview {
  display: flex;
  align-items: center;
  min-height: 96px;
}

.component-meta p {
  margin: 8px 0 0;
  line-height: 1.5;
}

.grid-demo {
  display: grid;
  gap: 8px;
}

.grid-demo-desktop {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.grid-demo span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  border: 1px solid rgba(27, 33, 40, 0.18);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
}

.hero-preview {
  height: 520px;
  overflow: hidden;
  border: 1px solid rgba(27, 33, 40, 0.18);
  border-radius: 8px;
}

.hero-preview .container {
  min-height: 520px;
}

@media (max-width: 800px) {
  .dictionary {
    width: min(100% - 32px, 1120px);
    padding: 40px 0;
  }

  .dictionary-section-header,
  .component-row {
    grid-template-columns: 1fr;
  }

  .swatch-grid {
    grid-template-columns: 1fr;
  }

  .grid-demo-desktop {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .sora-weight-sample {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .text-section {
    padding: 72px 24px;
  }

  .text-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .text-column {
    grid-column: span 6;
  }

  .app-choice {
    width: min(100% - 32px, 980px);
    padding: 48px 0;
  }

  .choice-grid {
    gap: 14px 18px;
  }

  .choice-option {
    min-height: 96px;
    padding: 18px;
  }
}

@media (max-width: 600px) {
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .choice-option {
    min-height: 82px;
  }
}

@media (max-width: 600px) {
  .type-sample p:last-child {
    font-size: 24px;
  }

  .grid-demo-desktop {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-preview,
  .hero-preview .container {
    min-height: 420px;
  }
}
