:root {
  --bg: #f3f0e6;
  --ink: #0d0d0d;
  --muted: #5f5d56;
  --line: #1a1a1a;
  --pad: 48px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p {
  margin: 0;
}

a {
  color: inherit;
}

.frame {
  max-width: 1640px;
  min-height: 100vh;
  margin: 0 auto;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

/* Top row */
.top {
  display: grid;
  grid-template-columns: 2fr 6fr;
  border-bottom: 1px solid var(--line);
}

.profile {
  padding: 92px var(--pad) var(--pad);
  border-right: 1px solid var(--line);
}

.avatar {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  background: var(--ink);
}

.profile h1 {
  margin-top: 16px;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.meta {
  margin-top: 20px;
  font-size: 1.05rem;
}

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

.intro-body {
  flex: 1;
  padding: 92px var(--pad) 56px;
}

.headline {
  max-width: 14em;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.intro-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pad);
  margin-top: 40px;
  font-size: 1.15rem;
  line-height: 1.6;
}

.banner {
  display: block;
  padding: 22px var(--pad);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 1.35rem;
}

.banner:hover,
.banner:focus-visible {
  background: #2b2b2b;
}

/* History row */
.history {
  flex: 1;
  display: grid;
  grid-template-columns: 2fr 3fr 3fr;
}

.history-label {
  padding: 32px var(--pad);
  border-right: 1px solid var(--line);
}

.history-label h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.history-label p {
  margin-top: 36px;
  color: var(--muted);
  max-width: 22em;
}

.column {
  padding: 32px 28px var(--pad);
  border-right: 1px solid var(--line);
}

.column:last-child {
  border-right: none;
}

.eyebrow {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.entry {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 8px;
  margin-top: 28px;
}

.entry + .entry {
  margin-top: 44px;
}

.years {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.3;
}

.org {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.org-name {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry h4 {
  margin-top: 18px;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.desc {
  margin-top: 10px;
  font-size: 0.95rem;
  max-width: 34em;
}

/* Footer */
.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--pad);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.links {
  display: flex;
  gap: 24px;
}

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

/* Tablet and phone */
@media (max-width: 1000px) {
  :root {
    --pad: 28px;
  }

  .top,
  .history {
    grid-template-columns: 1fr;
  }

  .profile,
  .history-label,
  .column {
    border-right: none;
  }

  .profile {
    padding-top: 56px;
    border-bottom: 1px solid var(--line);
  }

  .intro-body {
    padding-top: 40px;
  }

  .intro-cols {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .history-label,
  .column {
    border-bottom: 1px solid var(--line);
  }

  .column:last-child {
    border-bottom: none;
  }

  .column {
    padding-left: var(--pad);
    padding-right: var(--pad);
  }

  .banner {
    font-size: 1.05rem;
  }
}

@media (max-width: 520px) {
  .entry {
    grid-template-columns: 1fr;
  }

  .years br {
    display: none;
  }

  .foot {
    flex-direction: column;
  }
}
