:root {
  color-scheme: light;
  --background: #fbfbfa;
  --text: #1c1c1c;
  --muted: #666;
  --line: #ddddda;
  --accent: #245f8f;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 17px;
  line-height: 1.62;
}

.page {
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: 64px 0 56px;
}

.top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.range,
p {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  margin-bottom: 10px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  font-size: 2.45rem;
  font-weight: 600;
  line-height: 1.08;
}

.range {
  margin-top: 16px;
}

.lang-toggle {
  display: inline-flex;
  gap: 6px;
  padding-top: 3px;
}

button {
  appearance: none;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  padding: 0 0 2px;
}

button[aria-pressed="true"] {
  border-color: var(--accent);
  color: var(--text);
}

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

h2 {
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 600;
}

h3 {
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-weight: 600;
}

.timeline {
  display: grid;
  gap: 20px;
}

.numbers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
}

.numbers div {
  min-width: 0;
}

dt {
  color: var(--muted);
  font-size: 0.9rem;
}

dd {
  margin: 5px 0 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.4rem;
}

@media (max-width: 680px) {
  .page {
    width: min(100% - 28px, 760px);
    padding-top: 38px;
  }

  .top {
    display: block;
  }

  .lang-toggle {
    margin-top: 24px;
  }

  h1 {
    max-width: 100%;
    font-size: 2rem;
  }

  .numbers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
