@import url("https://fonts.googleapis.com/css2?family=Sora:wght@100..800&display=swap");

:root {
  --bg: #1f1f1f;
  --fg: #fdfdfd;
  --muted: #9ca3af;
  --accent: #49ccf3;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --fg: #1f1f1f;
    --muted: #6b7280;
    --accent: #037496;
  }
}

html,
body {
  height: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family:
    "Sora",
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

main {
  padding: 2rem;
  text-align: center;
}

/* Center-only for simple home pages */
body.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Center the hero only on home */
body.home main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

h1 {
  font-size: clamp(28px, 6vw, 56px);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

p {
  color: var(--muted);
  margin: 0;
  font-size: clamp(14px, 2.5vw, 18px);
}

.brand {
  color: var(--accent);
  font-weight: 700;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:visited {
  color: var(--accent);
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 1rem;
  font-size: 14px;
  color: var(--muted);
  margin-top: 2rem;
}

footer nav a {
  margin: 0 0.5rem;
}

/* Content helpers for long-form pages */
.content {
  max-width: 800px;
  margin: 2rem auto;
  text-align: left;
}

.prewrap {
  white-space: pre-wrap;
}

/* Breadcrumbs */
.breadcrumbs {
  margin: 0.5rem auto 1rem;
  max-width: 800px;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  text-decoration: underline;
}

.breadcrumbs .sep {
  margin: 0 0.4rem;
}

.breadcrumbs [aria-current="page"] {
  font-weight: 700;
}

/* Language Selector */
.lang-selector {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  font-size: 14px;
}

.lang-selector a {
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.lang-selector a:hover,
.lang-selector a:focus-visible {
  background-color: rgba(128, 128, 128, 0.1);
}

.lang-selector a[aria-current="page"] {
  background-color: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

.lang-selector a[aria-current="page"]:hover {
  background-color: var(--accent);
}
