/* myversion.info — soft pastels, friendly typography, dark mode */

:root {
  --bg: #f8f6fc;
  --surface: #ffffff;
  --text: #2d2a36;
  --text-muted: #5c5866;
  --border: #e5e2ec;
  --accent: #6b7fd7;
  --accent-soft: #e8ebf9;
  --card-shadow: 0 2px 12px rgba(45, 42, 54, 0.06);
  --radius: 12px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "DM Mono", "SF Mono", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1822;
    --surface: #24212d;
    --text: #f0eef6;
    --text-muted: #9d98a8;
    --border: #363342;
    --accent: #8b9ce8;
    --accent-soft: #2d2a3e;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

#app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover {
  text-decoration: underline;
}

#breadcrumb {
  font-size: 0.9rem;
  color: var(--text-muted);
}

#breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

#breadcrumb a:hover {
  text-decoration: underline;
}

/* Content area */
#content {
  flex: 1;
}

/* Navigation hub — card grid */
.hub-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.hub-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 2.5rem;
  max-width: 42ch;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--card-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 42, 54, 0.1);
}

@media (prefers-color-scheme: dark) {
  .card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  }
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
}

@supports (background: color-mix(in srgb, red 50%, blue)) {
  .card-icon {
    background: color-mix(in srgb, var(--card-accent, var(--accent)) 18%, transparent);
  }
}

.card-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

/* Attribute page layout */
.attr-page {
  max-width: 640px;
}

.attr-page .page-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.attr-page .page-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
}

@supports (background: color-mix(in srgb, red 50%, blue)) {
  .attr-page .page-icon {
    background: color-mix(in srgb, var(--card-accent, var(--accent)) 18%, transparent);
  }
}

.attr-page .page-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.attr-page h1 {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}

.primary-value {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--text);
  line-height: 1.2;
}

.explanation {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  line-height: 1.6;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.detail-table th,
.detail-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.detail-table th {
  font-weight: 600;
  color: var(--text-muted);
  width: 40%;
}

.detail-table td {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.unavailable {
  background: var(--accent-soft);
  color: var(--text-muted);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin: 1rem 0;
  font-size: 0.95rem;
}

.unavailable strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.loading {
  color: var(--text-muted);
  font-style: italic;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0;
}

/* Responsive */
@media (max-width: 600px) {
  #app {
    padding: 0.75rem 1rem 2rem;
  }

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

  .attr-page .page-heading {
    flex-wrap: wrap;
  }
}
