:root {
  --text: #1f2933;
  --muted: #5f6b76;
  --border: #dfe3e6;
  --background: #ffffff;
  --alt-background: #f6f7f8;
  --accent: #245a78;
  --max-width: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.narrow {
  max-width: 760px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.name {
  color: var(--text);
  font-weight: 700;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 72px 0;
}

.alt {
  background: var(--alt-background);
}

.intro {
  padding: 100px 0;
}

.label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 700px;
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 12px;
  font-size: 2rem;
  line-height: 1.2;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.15rem;
}

.lead.small {
  font-size: 1rem;
}

.section-intro {
  max-width: 650px;
  margin-bottom: 32px;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: #ffffff;
  background: var(--accent);
  font-weight: 700;
}

.button:hover {
  text-decoration: none;
  opacity: 0.9;
}

.button.secondary {
  color: var(--accent);
  background: transparent;
}

.text-link {
  padding: 10px 4px;
  font-weight: 700;
}

.project-list {
  display: grid;
  gap: 24px;
}

.project {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
}

.project-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.project p,
.project li {
  color: var(--muted);
}

.project ul {
  margin-bottom: 0;
  padding-left: 20px;
}

.skills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 48px;
  margin-top: 30px;
}

.skills div {
  border-top: 2px solid var(--accent);
  padding-top: 16px;
}

.skills p {
  color: var(--muted);
}

.timeline {
  margin-top: 32px;
  border-top: 1px solid var(--border);
}

.timeline article {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.date {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.meta {
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 700;
}

.timeline article p:last-child {
  color: var(--muted);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 24px;
}

footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

footer p {
  margin: 0;
}
