:root {
  --bg: #0f1115;
  --surface: #171a21;
  --text: #e7e9ee;
  --muted: #9aa1ad;
  --accent: #6ea8fe;
  --border: #262b35;
  --maxw: 46rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --surface: #f6f7f9;
    --text: #1c1f26;
    --muted: #5b626e;
    --accent: #2158d0;
    --border: #e3e6ea;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header / nav */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}
.brand {
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}
.lang-switch { color: var(--muted); font-size: 0.9rem; }
.lang-switch a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* Content */
.content {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  width: 100%;
  flex: 1;
}
.content h1 { font-size: 1.9rem; line-height: 1.2; margin: 0 0 1rem; }
.content h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
.content p { margin: 0.75rem 0; }
.content ul { padding-left: 1.25rem; }

.lead { font-size: 1.1rem; color: var(--muted); }

.notice {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: var(--muted);
  margin: 1.5rem 0;
}

/* Project cards on the home page */
.projects { display: grid; gap: 1rem; margin-top: 1.75rem; }
.project-card {
  display: block;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  color: var(--text);
}
.project-card:hover { border-color: var(--accent); text-decoration: none; }
.project-card h3 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.project-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.project-card .ext { font-size: 0.8rem; color: var(--muted); }

.project-card-group .project-card { border-radius: 10px 10px 0 0; }
.dev-link {
  display: block;
  border: 1px solid var(--border);
  border-top: none;
  background: var(--surface);
  border-radius: 0 0 10px 10px;
  padding: 0.5rem 1.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.dev-link:hover { color: var(--text); border-color: var(--accent); text-decoration: none; }

address { font-style: normal; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer p { max-width: var(--maxw); margin: 0.35rem auto; padding: 0 1.25rem; }
.site-footer .footer-links { display: flex; gap: 1rem; padding-bottom: 0.75rem; }
.site-footer:first-of-type p { padding-top: 0.75rem; }
