:root {
  --paper: #faf9f5;
  --paper-2: #f3f1ea;
  --surface: #ffffff;
  --ink: #16181d;
  --muted: #6b7280;
  --line: #e7e4dc;
  --navy: #1e3a8a;
  --blue: #3b82f6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.65;
  margin: 0;
  padding: 0 clamp(22px, 6vw, 48px);
  max-width: 880px;
  margin-inline: auto;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

h1, h2 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: var(--navy);
}

.nav {
  display: flex;
  gap: 26px;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav a { transition: color 0.2s ease; }
.nav a:hover { color: var(--navy); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.lang-switch button {
  font: inherit;
  background: none;
  border: none;
  padding: 2px 3px;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s ease;
}

.lang-switch button.is-active {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(64px, 14vh, 140px) 0 clamp(56px, 11vh, 110px);
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto 0;
  height: 520px;
  z-index: -1;
  background:
    radial-gradient(closest-side, rgba(59, 130, 246, 0.16), transparent 70%) center top / 620px 420px no-repeat,
    radial-gradient(closest-side, rgba(30, 58, 138, 0.1), transparent 70%) center top / 900px 520px no-repeat;
  pointer-events: none;
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  margin: 26px auto 0;
  max-width: 18ch;
}

.lead {
  max-width: 560px;
  margin: 22px auto 0;
  font-size: 1.08rem;
  color: var(--muted);
}

.lead strong { color: var(--ink); font-weight: 600; }

/* Sections */
section { padding-bottom: clamp(64px, 11vh, 108px); }

h2 {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

/* Projects */
.projects-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.projects-list li { border-bottom: 1px solid var(--line); }

.projects-list a {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 18px 4px;
  transition: color 0.2s ease, padding-left 0.25s ease;
}

.projects-list a:hover {
  color: var(--navy);
  padding-left: 10px;
}

.p-body { flex: 1; display: flex; flex-direction: column; gap: 3px; }

.p-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.p-name { font-weight: 600; font-size: 1.02rem; }

.p-tag {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(30, 58, 138, 0.07);
  border: 1px solid rgba(30, 58, 138, 0.14);
  border-radius: 999px;
  padding: 2px 8px;
}

.p-tag-closed {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}

.p-desc { color: var(--muted); font-size: 0.94rem; }

.p-meta { color: var(--muted); font-size: 0.8rem; opacity: 0.85; }

.p-arrow {
  color: var(--muted);
  padding-top: 3px;
  transition: transform 0.25s ease, color 0.25s ease;
}

.projects-list a:hover .p-arrow {
  color: var(--navy);
  transform: translate(2px, -2px);
}

/* Legal */
.legal-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.legal-list > div {
  display: flex;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.legal-list dt {
  flex: 0 0 210px;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-list dd { margin: 0; font-size: 0.95rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 56px;
  text-align: center;
}

.president {
  color: var(--ink);
  font-size: 0.95rem;
  margin: 0 0 8px;
}

.copy { color: var(--muted); font-size: 0.85rem; margin: 0; letter-spacing: 0.02em; }

@media (max-width: 720px) {
  .nav { display: none; }

  .legal-list > div { flex-direction: column; gap: 2px; }
  .legal-list dt { flex-basis: auto; }
}
