@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;700&family=Manrope:wght@400;600;700&family=Space+Grotesk:wght@700&display=swap");

:root {
  --color-base: #252a34;
  --palette-blue: #6ea8ff;
  --text-muted: #b4bdd0;
  --accent-bright: #a3c6ff;
  --app-bg: var(--color-base);
  --app-text: #f2f3f6;
  --app-text-strong: #ffffff;
  --app-accent: var(--palette-blue);
  --app-border: rgba(188, 198, 214, 0.38);
  --r-xl: 20px;
  --fs-xs: 0.875rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-heading: "Space Grotesk", "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --max-w: 720px;
}

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

html {
  color-scheme: dark;
  background: var(--app-bg);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--app-bg);
  color: var(--app-text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-bright);
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(var(--max-w), 100%);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) 1.25rem 3rem;
}

.back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: var(--fs-sm);
}

h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--app-text-strong);
}

.lead {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: var(--fs-base);
}

.card {
  border: 1px solid var(--app-border);
  border-radius: var(--r-xl);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.card h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
}

.meta {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.card p {
  margin: 0 0 0.65rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.card p:last-child {
  margin-bottom: 0;
}

.license-app {
  padding: 0 0 0.5rem;
}

.license-app h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
}

.license-app p {
  margin: 0 0 0.65rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.license-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--app-border);
  background: rgba(255, 255, 255, 0.03);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
}

.license-link:hover {
  text-decoration: none;
  border-color: var(--palette-blue);
  background: rgba(110, 168, 255, 0.08);
}

.license-text {
  margin: 0.9rem 0 0;
  padding: 0.9rem 0 0;
  border: 0;
  border-top: 1px solid rgba(188, 198, 214, 0.18);
  border-radius: 0;
  background: transparent;
  overflow-x: auto;
  white-space: pre-wrap;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--app-text);
}

.license-list {
  margin-top: 1.25rem;
  border-top: 1px solid var(--app-border);
}

.license-list__head {
  padding: 1.1rem 0 0.9rem;
}

.license-list__head h2 {
  margin: 0 0 0.25rem;
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 700;
}

.license-list__head p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.license-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid rgba(188, 198, 214, 0.18);
}

.license-item__copy {
  min-width: 0;
}

.license-item h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--app-text-strong);
}

.license-item p {
  margin: 0.35rem 0 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.license-item .meta {
  margin-top: 0;
}

.license-static {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--app-border);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 640px) {
  .license-item {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
}
