:root {
  --background: #ffffff;
  --foreground: #1a171b;
  --muted: #5d6670;
  --brand: #27354f;
  --brand-2: #263942;
  --accent: #d01e22;
  --surface: #f4f6f8;
  --card: #ffffff;
  --preview-light: #eef1f4;
  --preview-dark: #27354f;
  --hairline: rgba(15, 23, 42, 0.1);
  --glow: 39, 53, 79;
  --header-bg: #ffffff;
  --shadow-card: 0 22px 56px -14px rgba(15, 23, 42, 0.11), 0 10px 24px -12px rgba(15, 23, 42, 0.06);
  --shadow-card-hover: 0 28px 64px -14px rgba(39, 53, 79, 0.16), 0 14px 32px -12px rgba(15, 23, 42, 0.08);

  --font-serif: "PT Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.33, 1, 0.68, 1);

  color-scheme: light;
}

[data-theme="dark"] {
  --background: #0d121b;
  --foreground: #f2f4f7;
  --muted: #a9b5c0;
  --brand: #a0bac6;
  --brand-2: #c4d4dc;
  --accent: #f2585b;
  --surface: #121925;
  --card: #161e2c;
  --preview-light: #e6eaee;
  --preview-dark: #27354f;
  --hairline: rgba(242, 244, 247, 0.1);
  --glow: 160, 186, 198;
  --header-bg: #161e2c;
  --shadow-card: 0 24px 70px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 28px 80px rgba(0, 0, 0, 0.5);

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--brand);
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

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

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

[data-theme="light"] .only-dark,
[data-theme="dark"] .only-light {
  display: none;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 20px 20px 0;
}

.header-pill {
  max-width: calc(72rem - 40px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 8px 6px 22px;
  border-radius: 999px;
  background: var(--header-bg);
  border: 1px solid var(--hairline);
  box-shadow: 0 4px 18px rgba(2, 6, 23, 0.07), 0 1px 2px rgba(2, 6, 23, 0.04);
}

@media (min-width: 1024px) {
  .header-pill {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }
}

.header-logo img {
  height: 20px;
  width: auto;
}

.header-links {
  display: none;
  align-items: center;
  gap: 2px;
}

@media (min-width: 1024px) {
  .header-links {
    display: flex;
  }
}

.header-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}

.header-links a:hover {
  color: var(--foreground);
  background: color-mix(in oklab, var(--foreground) 6%, transparent);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: color-mix(in oklab, var(--foreground) 55%, transparent);
  transition: color 0.3s, background-color 0.3s;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn:hover {
  color: var(--foreground);
  background: color-mix(in oklab, var(--foreground) 7%, transparent);
}

.icon-btn.bordered,
.pill-btn {
  border: 1px solid color-mix(in oklab, var(--brand) 25%, transparent);
  background: var(--card);
  color: var(--brand);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.icon-btn.bordered:hover,
.pill-btn:hover {
  border-color: color-mix(in oklab, var(--brand) 45%, transparent);
  background: color-mix(in oklab, var(--brand) 10%, var(--card));
  color: var(--brand);
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background-color 0.2s, border-color 0.2s;
}

.flag {
  width: 20px;
  height: 14px;
  flex-shrink: 0;
  clip-path: inset(0 round 3px);
}

.flag[hidden] {
  display: none;
}

[data-theme="light"] .icon-moon,
[data-theme="dark"] .icon-sun {
  display: none;
}

/* Sections */

main {
  padding-top: 80px;
}

.band,
.hero {
  background: var(--background);
}

.band-surface {
  background: var(--surface);
}

.band,
.band-surface {
  padding: 56px 0;
}

@media (min-width: 768px) {
  .band,
  .band-surface {
    padding: 72px 0;
  }
}

.hero .container {
  padding-top: 48px;
  padding-bottom: 56px;
}

@media (min-width: 768px) {
  .hero .container {
    padding-top: 64px;
    padding-bottom: 72px;
  }
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: color-mix(in oklab, var(--brand) 80%, transparent);
}

h1 {
  margin-top: 16px;
  max-width: 48rem;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

@media (min-width: 768px) {
  h1 {
    font-size: 52px;
  }
}

.lead {
  margin-top: 24px;
  max-width: 42rem;
  font-size: 17px;
  line-height: 1.65;
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
}

@media (min-width: 768px) {
  .lead {
    font-size: 18px;
  }
}

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

h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

@media (min-width: 768px) {
  h2 {
    font-size: 32px;
  }
}

.section-lead {
  margin-top: 16px;
  max-width: 42rem;
  line-height: 1.75;
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
}

/* Buttons */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(to bottom, #2f4060, #27354f);
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(39, 53, 79, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .btn-primary {
  background: linear-gradient(to bottom, #3a4f78, #2c3c5c);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-download {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.78));
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.95);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: #27354f;
  transition: background 0.3s var(--ease), color 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.btn-download svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.btn-download:hover {
  border-color: transparent;
  background: linear-gradient(to bottom, #27354f, #1f2b41);
  color: #fff;
  box-shadow: 0 8px 32px rgba(39, 53, 79, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-download:hover svg {
  transform: translateY(2px);
}

[data-theme="dark"] .btn-download {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--brand-2);
}

[data-theme="dark"] .btn-download:hover {
  background: linear-gradient(to bottom, #3a4f78, #27354f);
  color: #fff;
}

.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--brand) 22%, transparent);
  background: color-mix(in oklab, var(--brand) 9%, transparent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--brand);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn-soft:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--background);
}

.format-pill {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--foreground) 12%, transparent);
  background: color-mix(in oklab, var(--foreground) 3%, var(--card));
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: color-mix(in oklab, var(--foreground) 70%, transparent);
  white-space: nowrap;
}

/* Logo cards */

.asset-grid {
  margin-top: 40px;
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .asset-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (min-width: 1024px) {
  .asset-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.asset-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  border: 1px solid var(--hairline);
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.asset-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.asset-card figcaption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px 14px;
}

.asset-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.asset-hint {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.asset-preview {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  margin: 0 16px;
  padding: 40px 28px;
  border-radius: 16px;
  background: var(--preview-light);
}

@media (min-width: 768px) {
  .asset-preview {
    margin: 0 24px;
  }
}

.asset-preview.dark {
  background: var(--preview-dark);
}

.asset-preview img {
  max-width: 100%;
}

.asset-preview .fit-w {
  width: 100%;
  max-width: 380px;
  height: auto;
}

.asset-preview .fit-h {
  width: auto;
  height: 88px;
}

.asset-preview .fit-icon {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.asset-preview .fit-chip {
  width: auto;
  height: 56px;
}

.cols-3 .asset-preview {
  min-height: 170px;
  padding: 32px 22px;
}

.cols-3 .asset-preview .fit-h {
  height: 72px;
}

.group-title {
  margin-top: 64px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-lead + .group-title {
  margin-top: 40px;
}

.group-lead {
  margin-top: 8px;
  max-width: 42rem;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.group-lead + .asset-grid {
  margin-top: 24px;
}

.asset-actions {
  display: flex;
  gap: 10px;
  padding: 16px 20px 22px;
}

@media (min-width: 768px) {
  .asset-actions {
    padding: 18px 24px 24px;
  }
}

/* Guidelines */

.guidelines {
  position: relative;
  overflow: hidden;
  margin-top: 48px;
  padding: 32px 24px;
  border-radius: 24px;
  border: 1px solid var(--hairline);
  background: var(--card);
  box-shadow: 0 16px 48px rgba(39, 53, 79, 0.07);
}

.guidelines::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(720px 380px at 12% -8%, rgba(var(--glow), 0.07), transparent 58%),
    radial-gradient(520px 320px at 98% 105%, rgba(160, 186, 198, 0.18), transparent 52%);
}

.guidelines > * {
  position: relative;
}

@media (min-width: 768px) {
  .guidelines {
    padding: 44px 40px;
  }
}

.guidelines-title {
  font-size: 22px;
}

@media (min-width: 768px) {
  .guidelines-title {
    font-size: 26px;
  }
}

.guidelines-grid {
  margin-top: 36px;
  display: grid;
  gap: 36px;
}

@media (min-width: 768px) {
  .guidelines-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 48px;
  }
}

.guidelines h3 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand);
}

.guidelines p,
.guidelines li {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.65;
  color: color-mix(in oklab, var(--foreground) 80%, transparent);
}

@media (min-width: 768px) {
  .guidelines p,
  .guidelines li {
    font-size: 16px;
  }
}

.dont {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
}

.dont h3 {
  color: var(--accent);
}

.dont ul {
  margin-top: 16px;
  padding-left: 20px;
}

.dont li {
  margin-top: 10px;
}

.dont li::marker {
  color: var(--accent);
}

/* Color */

.swatches {
  margin-top: 40px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .swatches {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .swatches {
    grid-template-columns: repeat(3, 1fr);
  }
}

.swatch {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--hairline);
  background: var(--card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.swatch-color {
  position: relative;
  height: 112px;
}

.swatch-color::after {
  content: "";
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.06), transparent);
}

.swatch-color.bordered {
  border-bottom: 1px solid var(--hairline);
}

.swatch-info {
  padding: 16px 20px;
}

.swatch-name {
  font-size: 14px;
  font-weight: 600;
}

.swatch-values {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.swatch-values button {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  text-decoration: underline dotted transparent;
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.swatch-values button:hover {
  color: var(--foreground);
  text-decoration-color: currentColor;
}

/* Typography */

.type-grid {
  margin-top: 40px;
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .type-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.type-card {
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  border-radius: 24px;
  border: 1px solid var(--hairline);
  background: var(--background);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
  .type-card {
    padding: 36px 32px;
  }
}

.type-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}

.type-family {
  font-size: 40px;
  line-height: 1;
}

.type-family.serif {
  font-family: var(--font-serif);
  font-weight: 700;
}

.type-family.sans {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.type-role {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.type-row {
  padding: 24px 0;
  border-bottom: 1px solid var(--hairline);
}

.type-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.type-row p {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .type-row p {
    font-size: 28px;
  }
}

.serif {
  font-family: var(--font-serif);
}

.sans {
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
}

.w400 {
  font-weight: 400;
}

.w600 {
  font-weight: 600;
}

.w700 {
  font-weight: 700;
}

.italic {
  font-style: italic;
}

.type-row p.kicker-sample {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-2);
}

[data-theme="dark"] .type-row p.kicker-sample {
  color: var(--brand);
}

.type-row:last-of-type {
  margin-bottom: 24px;
}

.gfonts-link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--card);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.gfonts-link .g-logo {
  width: 18px;
  height: 18px;
}

.gfonts-link .ext {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.gfonts-link:hover {
  border-color: color-mix(in oklab, var(--brand) 40%, transparent);
  background: color-mix(in oklab, var(--brand) 6%, var(--card));
}

/* Downloads */

.downloads {
  padding-bottom: 88px;
}

@media (min-width: 768px) {
  .downloads {
    padding-bottom: 112px;
  }
}

.downloads-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.file-grid {
  margin-top: 32px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .file-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .file-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.file-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 140px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--hairline);
  background: var(--background);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out, border-color 0.3s ease-out;
}

.file-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--brand) 18%, transparent);
  box-shadow: 0 14px 34px -12px rgba(15, 23, 42, 0.14);
}

.file-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
}

.file-name {
  display: block;
}

.file-desc {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.file-actions {
  display: flex;
  gap: 8px;
}

.btn-soft {
  gap: 8px;
}

.btn-soft svg {
  width: 16px;
  height: 16px;
}

/* Legal + footer */

.legal {
  padding: 40px 0;
  border-top: 1px solid var(--hairline);
  background: var(--surface);
}

@media (min-width: 768px) {
  .legal {
    padding: 56px 0 48px;
  }
}

.legal p {
  max-width: 48rem;
  font-size: 14px;
  line-height: 1.65;
  color: color-mix(in oklab, var(--foreground) 75%, transparent);
}

.legal p + p {
  margin-top: 16px;
}

.legal a {
  font-weight: 600;
  color: var(--brand);
  text-underline-offset: 4px;
  text-decoration: none;
}

.legal a:hover {
  text-decoration: underline;
}

.site-footer {
  background: #27354f;
  color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .site-footer {
  background: #090d14;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 32px;
  font-size: 13px;
}

.footer-inner img {
  height: 18px;
  width: auto;
}

/* Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 60;
  padding: 10px 18px;
  border-radius: 999px;
  background: #1a171b;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
