:root {
  --ink: #1d2833;
  --ink-soft: #4c5d6c;
  --hairline: #e3e8ec;
  --bg: #fdfdfc;
  --max: 680px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  background-image:
    linear-gradient(rgba(250, 252, 253, 0.28), rgba(250, 252, 253, 0.05) 40%, rgba(250, 252, 253, 0) 65%),
    url("assets/hero-2000.jpg");
  background-size: cover;
  background-position: center 40%;
}

@media (max-width: 700px) {
  .hero { background-image:
    linear-gradient(rgba(250, 252, 253, 0.28), rgba(250, 252, 253, 0.05) 40%, rgba(250, 252, 253, 0) 65%),
    url("assets/hero-1200.jpg");
  }
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.4rem clamp(1.25rem, 5vw, 3rem);
}

.wordmark {
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.nav-mail {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-mail:hover { color: var(--ink); text-decoration: underline; }

.hero-text {
  margin: auto 0 0;
  padding: 0 clamp(1.25rem, 5vw, 3rem) clamp(2.5rem, 7vh, 4.5rem);
  max-width: 620px;
}

.hero-text h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: #fff;
  text-shadow: 0 1px 24px rgba(20, 32, 42, 0.55), 0 1px 3px rgba(20, 32, 42, 0.4);
}

.hero-text p {
  margin-top: 0.9rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #f2f6f8;
  text-shadow: 0 1px 16px rgba(20, 32, 42, 0.6), 0 1px 2px rgba(20, 32, 42, 0.45);
}

/* ---------- Sections ---------- */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: clamp(2.5rem, 6vh, 4rem) 0;
  border-bottom: 1px solid var(--hairline);
}
section:last-child { border-bottom: none; }

h2 {
  font-size: 0.85rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}

/* The work */

.work ul { list-style: none; }
.work li { padding: 0.55rem 0; }
.work strong { font-weight: 650; }

/* Track record */

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3.5rem;
  margin-bottom: 1.4rem;
}

.stat { display: flex; flex-direction: column; }

.num {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.label {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.record > p { color: var(--ink-soft); }

/* About */

.about p + p { margin-top: 1rem; }
.about a { color: var(--ink); font-weight: 600; text-decoration-color: var(--ink-soft); }

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

footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.6rem 1.25rem 2.4rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--hairline);
}

@media (max-width: 480px) {
  nav { flex-direction: column; gap: 0.15rem; }
}
