:root {
  color-scheme: dark;
  --bg: #121214;
  --card: #1c1c1f;
  --card-hover: #26262b;
  --text: #f5f5f7;
  --muted: #b2b2bb;
  --line: #36363c;
  --accent: #b11b5d;
  --ring: #ffc870;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

button, input {
  font-family: inherit;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 4px;
}

.wrap {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 20px;
  background: var(--text);
  color: var(--bg);
  padding: 12px 18px;
  font-weight: 600;
  z-index: 100;
  border-radius: 6px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(18, 18, 20, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.brand-lockup {
  display: block;
  width: 180px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--text);
}

/* Typography & General Sections */
.section-eyebrow {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin: 0 0 16px;
  text-transform: uppercase;
}

h1, h2, h3, h4 {
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(42px, 5.5vw, 76px);
  font-weight: 600;
}

h2 {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 600;
}

h3 {
  font-size: 20px;
  font-weight: 600;
}

h4 {
  font-size: 17px;
  font-weight: 600;
}

.content-section {
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

.section-header {
  margin-bottom: 28px;
}

.section-header.row-between {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.section-description {
  max-width: 760px;
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 32px;
}

/* Buttons */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 20px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.1s;
  border: 1px solid var(--line);
}

.btn:active {
  transform: translateY(1px);
}

.btn span {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-primary:hover {
  background: #ffffff;
}

.btn-secondary {
  background: var(--card);
  color: var(--text);
  border-color: #4b4b53;
}

.btn-secondary:hover {
  background: var(--card-hover);
  border-color: #63636e;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding: 80px 0 96px;
}

.hero-lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 580px;
  margin: 0;
}

.hero-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.preview-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.hero-stage {
  aspect-ratio: 1;
}

.hero-stage img {
  width: 82%;
  height: auto;
}

.stage-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 20px;
  text-transform: uppercase;
}

/* Section 01: Identity */
.identity-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.text-block p {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 16px;
}

.text-block strong {
  color: var(--text);
}

.callout-box {
  background: var(--card);
  border-left: 3px solid var(--ring);
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}

.callout-box strong {
  color: var(--text);
}

.lockup-preview {
  aspect-ratio: 16/10;
}

.lockup-preview img {
  width: 90%;
  height: auto;
}

/* Preview Switch Controls */
.preview-mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 18px;
  margin: 0;
  background: var(--card);
}

.preview-mode-switch legend {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  padding: 0 6px;
}

.preview-mode-switch label {
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--muted);
}

.preview-mode-switch input[type="radio"] {
  accent-color: var(--ring);
  cursor: pointer;
  margin: 0;
}

.preview-mode-switch input[type="radio"]:checked + span,
.preview-mode-switch label:has(input:checked) {
  color: var(--text);
  font-weight: 500;
}

/* Status Indicators & Notices */
.status-indicator {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 24px;
}

.notice-box {
  background: var(--card);
  border-left: 4px solid var(--ring);
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-size: 14px;
  color: var(--muted);
}

.notice-box strong {
  color: var(--text);
}

.disclaimer-box {
  border-left-color: #dc3368;
}

/* Asset Cards Grid */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.asset-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s;
}

.asset-card:hover {
  border-color: #555560;
}

.card-stage {
  aspect-ratio: 4/3;
  background: #121214;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.2s;
}

.card-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-meta {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.card-specs {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 10px;
}

.card-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.download-link {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
}

.download-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #6a6a75;
}

/* Social Grid */
.social-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.social-grid .card-stage {
  aspect-ratio: 16/10;
}

/* Light Surface Preview Mode */
body.preview-light-active .card-stage,
body.preview-light-active .preview-box {
  background-color: #f5f5f7;
}

body.preview-light-active .stage-label {
  color: #555560;
}

/* Palette Swatches */
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.swatch-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
}

.swatch-card:hover {
  border-color: #636370;
  transform: translateY(-2px);
}

.swatch-color {
  height: 96px;
  border-bottom: 1px solid var(--line);
}

.swatch-details {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.swatch-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  min-height: 38px;
}

.swatch-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--muted);
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}

.swatch-btn:hover {
  color: var(--ring);
}

.copy-feedback {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  color: var(--ring);
  margin-top: 18px;
  min-height: 24px;
}

/* Typography Specimens */
.type-specimen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.type-specimen-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px;
}

.type-badge {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  display: block;
  margin-bottom: 14px;
}

.type-sample-title {
  font-size: clamp(32px, 3.8vw, 48px);
  margin: 0 0 16px;
  line-height: 1.15;
}

.type-sample-title.mono {
  font-family: 'Geist Mono', monospace;
  font-size: clamp(24px, 2.8vw, 36px);
}

.type-sample-alphabet {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px;
  word-break: break-all;
}

.type-sample-alphabet.mono {
  font-family: 'Geist Mono', monospace;
}

.type-desc {
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin: 0;
}

.type-desc strong {
  color: var(--text);
}

/* Font Architecture Note */
.font-architecture-note {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 32px;
  margin-bottom: 32px;
}

.font-architecture-note p {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 14px;
}

.font-upstream-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
  font-size: 14px;
}

.font-upstream-links a {
  color: var(--ring);
  text-decoration: none;
}

.font-upstream-links a:hover {
  text-decoration: underline;
}

/* Bundled Fonts Grid */
.fonts-list-wrap {
  margin-top: 28px;
}

.fonts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.font-item-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.font-item-name {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.font-item-weight {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.font-item-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-size: 13px;
}

/* Section 06: Press */
.press-copy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.press-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px 30px;
}

.press-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.press-card-head h3 {
  margin: 0;
}

.btn-copy-text {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-copy-text:hover {
  color: var(--text);
  border-color: #666673;
}

.press-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

/* Download Section Banner */
.download-banner {
  border-top: 1px solid var(--line);
  padding: 80px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

.download-info p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

.download-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.download-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.download-card-title {
  font-size: 16px;
  font-weight: 600;
}

.download-card-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 13px;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-title {
  font-weight: 600;
  color: var(--text);
  display: block;
}

.footer-sub {
  margin: 4px 0 0;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--text);
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 0;
  }
  
  .identity-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

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

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

  .download-banner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 680px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
    min-height: auto;
    gap: 14px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 26px;
  }

  .content-section {
    padding: 50px 0;
  }

  .asset-grid,
  .social-grid,
  .type-specimen-grid,
  .press-copy-grid,
  .fonts-grid {
    grid-template-columns: 1fr;
  }

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

  .cta-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section-header.row-between {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn, .swatch-card {
    transition: none;
  }
}
