/* src/styles.css */
*, *:before, *:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0c;
  --surface: #111115;
  --border: #1e1e24;
  --text: #fafafa;
  --mid: #8a8a93;
  --dim: #7c7c86;
  --faint: #2a2a32;
  --accent: #a78bfa;
  --mono: "JetBrains Mono", monospace;
  --sym-y: #facc15;
  --sym-g: #4ade80;
  --sym-r: #fb7185;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #a78bfa22;
}

.page {
  display: flex;
  flex-direction: column;
  max-width: 560px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 32px;
}

main {
  display: flex;
  flex-direction: column;
  flex: 1;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.badge {
  display: inline-flex;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--faint);
  border-radius: 100px;
  align-items:  center;
  gap: 8px;
  margin-top: 80px;
  padding: 5px 12px;
  transition: border-color .2s, background .2s;
  font-size: 12px;
}

.badge:hover {
  border-color: var(--accent);
  background: #a78bfa14;
}

.badge-version {
  color: var(--mid);
}

.badge-arrow {
  color: var(--faint);
  transition: color .2s;
}

.badge:hover .badge-arrow {
  color: var(--accent);
}

.story {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
  padding: 32px 0;
}

.story p {
  color: var(--dim);
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 400;
  line-height: 2;
}

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

.story em {
  color: var(--text);
  font-style: normal;
  font-weight: 500;
}

.story .fade {
  color: var(--faint);
}

.install-section {
  padding: 0 0 32px;
}

.install {
  display: flex;
  font-family: var(--mono);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  border-radius: 8px;
  justify-content: space-between;
  align-items:  center;
  padding: 18px 20px;
  transition: border-color .3s;
  font-size: 15px;
}

.install:hover {
  border-color: var(--faint);
}

.install .p {
  color: var(--dim);
}

.install .c {
  color: var(--sym-g);
}

.install .copy-btn {
  font-family: var(--mono);
  color: var(--dim);
  border: 1px solid var(--border);
  cursor: pointer;
  background: none;
  border-radius: 4px;
  padding: 4px 10px;
  transition: all .2s;
  font-size: 11px;
}

.install .copy-btn:hover {
  color: var(--mid);
  border-color: var(--faint);
}

footer {
  color: var(--dim);
  display: flex;
  justify-content: space-between;
  padding: 32px 0;
  font-size: 13px;
}

footer a {
  color: var(--dim);
  text-decoration: none;
  position: relative;
  padding-left: 0;
  transition: color .2s, padding-left .2s;
}

footer a:before {
  content: "·";
  position: absolute;
  opacity: 0;
  color: var(--accent);
  transition: opacity .2s, left .2s;
  left: -4px;
}

footer a:hover {
  color: var(--accent);
  padding-left: 12px;
}

footer a:hover:before {
  opacity: 1;
  left: 0;
}

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

/* src/changelog.css */
.changelog-page {
  max-width: 600px;
}

.changelog-page header {
  padding: 40px 0 0;
}

.back {
  color: var(--mid);
  text-decoration: none;
  transition: color .2s;
  font-size: 13px;
}

.back:hover {
  color: var(--accent);
}

.changelog-page h1 {
  margin: 40px 0 48px;
  font-size: 32px;
  font-weight: 800;
}

.release {
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  padding-bottom: 40px;
}

.release:last-child {
  border-bottom: none;
}

.release-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}

.release-header h2 {
  font-size: 20px;
  font-weight: 600;
}

.release-header time {
  color: var(--dim);
  font-size: 13px;
}

.release h3 {
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--mid);
  margin: 16px 0 8px;
  font-size: 11px;
  font-weight: 400;
}

.release h3:first-of-type {
  margin-top: 0;
}

.release ul {
  list-style: none;
  padding: 0;
}

.release li {
  color: var(--dim);
  position: relative;
  padding: 4px 0 4px 16px;
  font-size: 14px;
  line-height: 1.7;
}

.release li:before {
  content: "·";
  position: absolute;
  color: var(--faint);
  left: 0;
}

.release li strong {
  color: var(--text);
  font-weight: 500;
}

.release li code {
  color: var(--accent);
  background: #a78bfa14;
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 13px;
}

.loading {
  color: var(--dim);
  font-size: 14px;
}

.changelog-page footer {
  padding-bottom: 40px;
}
