:root {
  --navy: #1f2d3d;
  --navy-light: #2c4258;
  --accent: #3d7dca;
  --text: #22303f;
  --muted: #5b6b7a;
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --border: #e3e8ec;
  --max-width: 860px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 12px;
}

.logo {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}

.site-header nav a {
  color: #cdd8e3;
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: 18px;
  transition: color 0.15s ease;
}

.site-header nav a:first-child { margin-left: 0; }

.site-header nav a:hover { color: #fff; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 18px;
}

.site-header nav a.lang-flag {
  margin-left: 0;
  font-size: 1.15rem;
  line-height: 1;
  opacity: 0.5;
  filter: grayscale(60%);
  transition: opacity 0.15s ease, filter 0.15s ease;
}

.site-header nav a.lang-flag:hover { opacity: 1; filter: none; }

.site-header nav a.lang-flag.active {
  opacity: 1;
  filter: none;
  pointer-events: none;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 64px 0 48px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.hero .title {
  margin: 0 0 4px;
  font-size: 1.1rem;
  color: #d7e2ec;
}

.hero .location {
  margin: 0 0 20px;
  color: #a9bacb;
  font-size: 0.95rem;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-links a {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s ease;
}

.hero-links a:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Main sections */
main {
  padding: 8px 0 40px;
}

section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

section:last-child { border-bottom: none; }

h2 {
  font-size: 1.4rem;
  margin: 0 0 24px;
  color: var(--navy);
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 2px;
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--border);
}

.timeline li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 0 0 24px 20px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.tl-date {
  color: var(--muted);
  font-size: 0.85rem;
  padding-top: 2px;
}

.company {
  color: var(--muted);
  margin: 0;
  font-size: 0.92rem;
}

/* Plain lists */
.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plain-list li {
  margin-bottom: 18px;
}

.plain-list.compact li {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

/* Grid */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 620px) {
  .grid-2 { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; }
}

/* Tags */
.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags li {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--navy);
}

/* Footer */
.site-footer {
  background: var(--bg-alt);
  padding: 40px 0;
  text-align: center;
}

.site-footer p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .hero-links {
  justify-content: center;
  margin-bottom: 20px;
}

.site-footer .hero-links a {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--navy);
}

.site-footer .hero-links a:hover {
  background: var(--bg-alt);
}

.copyright {
  font-size: 0.8rem !important;
  color: #8b98a5 !important;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6ebf0;
    --muted: #9fb0c0;
    --bg: #14202c;
    --bg-alt: #1b2b3a;
    --border: #2a3b4c;
  }

  .tags li { color: #dce6ef; }
  .site-footer .hero-links a {
    background: var(--bg-alt);
    color: #e6ebf0;
  }
  h2 { color: #e6ebf0; }
}
