:root {
  --bg: #ffdd04;
  --fg: #000000;
  --pad: clamp(20px, 4vw, 48px);
  --pad-y: clamp(18px, 2.6vw, 28px);
  --rule: rgba(0, 0, 0, 0.18);
  --col-text: 60rem;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--fg);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}
a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
}

/* ----- Header ----- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pad);
  padding: var(--pad-y) var(--pad);
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo {
  display: block;
  height: clamp(40px, 5vw, 60px);
  width: auto;
}

.nav {
  display: flex;
  gap: clamp(16px, 2vw, 32px);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}

.flags {
  display: flex;
  gap: 8px;
  align-items: center;
}

.flags img {
  display: block;
  width: 30px;
  height: 20px;
  object-fit: fill;
  border: 1px solid var(--rule);
}

/* ----- Footer ----- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pad);
  padding: var(--pad-y) var(--pad);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* ----- Main / Home ----- */

main {
  flex: 1;
  padding: 0 var(--pad);
}

main.home {
  display: grid;
  place-items: center;
  padding-bottom: clamp(48px, 8vh, 120px);
}

.home h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 0.8vw, 12px);
  text-align: left;
}

.home .brand {
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.home .sub {
  font-size: clamp(1rem, 2.4vw, 1.875rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* ----- Inner pages ----- */

main.content {
  width: 100%;
  max-width: var(--col-text);
  margin: 0 auto;
  padding-top: clamp(32px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 96px);
}

.content h1 {
  margin: 0 0 clamp(24px, 4vw, 48px);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.content h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  margin: clamp(32px, 5vw, 56px) 0 16px;
}

.content p {
  margin: 0 0 1.25em;
  line-height: 1.55;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
}

.content .lede {
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: 1.45;
  max-width: var(--col-text);
  font-weight: 500;
  text-align: justify;
  text-justify: inter-word;
  hyphens: manual;
  -webkit-hyphens: manual;
}

.empty-state {
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  opacity: 0.65;
}

/* Team */

.team {
  max-width: var(--col-text);
}

.team-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
}

.team-card {
  border-top: 1px solid var(--fg);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.team-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  display: block;
}

.team-info {
  min-width: 0;
}

.team-name {
  font-weight: 600;
  font-size: 1.125rem;
}

.team-role {
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

.content .team-bio {
  margin: 16px 0 0;
  max-width: 20rem;
  line-height: 1.5;
  font-size: 0.9375rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: manual;
  -webkit-hyphens: manual;
}

.team-links {
  margin-top: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
}

.team-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  transition: opacity 0.15s ease;
}

.team-links a:hover,
.team-links a:focus-visible {
  opacity: 0.65;
  text-decoration: none;
}

.team-links svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* News */

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 40px);
}

.news-item {
  border-top: 1px solid var(--fg);
  padding-top: 16px;
}

.news-item time {
  display: block;
  margin-bottom: 8px;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-item h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 600;
}

.news-item .news-body {
  white-space: pre-wrap;
  line-height: 1.55;
}

.news-item .news-source {
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.75;
}

/* Careers */

.careers-list {
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.5vw, 32px);
}

.careers-item {
  border-top: 1px solid var(--fg);
  padding-top: 16px;
}

.careers-item h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  font-weight: 600;
}

.careers-item .loc {
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.careers-item .desc {
  white-space: pre-wrap;
  line-height: 1.55;
  margin-bottom: 8px;
}

/* Mobile */

@media (max-width: 720px) {
  .site-header {
    flex-wrap: wrap;
    gap: 14px 24px;
    justify-content: space-between;
  }
  .nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    gap: 20px;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .home h1 {
    text-align: left;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
