:root {
  --cream: #FAF6EF;
  --cream-dim: #F1EAE0;
  --ink: #17140F;
  --ink-soft: #6E6A61;
  --line: #DCD3C4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
}

a {
  color: inherit;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

@media screen and (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
  }

  .nav.open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 16px 40px;
    border-top: 1px solid var(--line);
  }

  .nav-toggle {
    display: flex;
  }
}

/* ---------- Layout helpers ---------- */
.section {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 40px;
  scroll-margin-top: 90px;
  border-top: 1px solid var(--line);
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 28px 0;
}

/* ---------- Hero (compact, email above the fold) ---------- */
.hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 40px 44px 40px;
}

.hero h1 {
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 18px 0;
  max-width: 560px;
}

.hero-email {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}

/* ---------- Work list ---------- */
.work-section {
  padding-top: 40px;
}

.work-list {
  display: flex;
  flex-direction: column;
}

.work-row {
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.work-row:first-child {
  border-top: 1px solid var(--line);
}

.work-row-head {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 4px;
  transition: background 0.15s ease;
}

.work-row-head:hover {
  background: var(--cream-dim);
}

.work-row-head h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  flex: 1;
}

.work-dates {
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.chevron {
  font-size: 18px;
  font-weight: 400;
  width: 20px;
  text-align: center;
  transition: transform 0.2s ease;
  color: var(--ink-soft);
}

.work-row.open .chevron {
  transform: rotate(45deg);
}

.work-row-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.work-row.open .work-row-body {
  max-height: 1200px;
}

.role {
  padding: 4px 4px 24px 4px;
}

.role h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 2px 0;
  display: inline-block;
}

.role-dates {
  font-size: 12px;
  color: var(--ink-soft);
  margin-left: 10px;
}

.role ul {
  margin: 10px 0 0 0;
  padding-left: 18px;
}

.role li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.on-request {
  font-size: 13px;
  font-style: italic;
  color: var(--ink-soft);
  margin: 12px 0 0 0;
}

.work-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding: 0 4px 26px 4px;
}

/* ---------- About ---------- */
.about-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0;
}

/* ---------- Contact ---------- */
.contact-section {
  padding-bottom: 90px;
}

.contact-line {
  font-size: 17px;
  margin: 0;
  line-height: 1;
}

.contact-line a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  font-size: 12px;
  color: var(--ink-soft);
  padding: 30px 20px;
  border-top: 1px solid var(--line);
}

@media screen and (max-width: 640px) {
  .hero {
    padding: 40px 24px 32px 24px;
  }

  .section {
    padding: 50px 24px;
  }

  .work-row-head {
    flex-wrap: wrap;
  }

  .work-row-head h2 {
    flex-basis: 100%;
  }
}
