*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  --bg: #f6f4f2;
  --text: #161a21;
  --muted: color-mix(in srgb, var(--text) 65%, var(--bg));
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5em;
  letter-spacing: -0.2px;
  font-feature-settings: "ss02" on, "ss04" on, "ss03" on;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-color-scheme: dark) {
  body {
    --bg: #161a21;
    --text: #f6f4f2;
  }
}

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

/* Page layout: two columns */
.page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: start;
  column-gap: 40px;
  padding: 40px 80px 80px;
}

/* Left column: name + title */
.identity {
  position: sticky;
  top: 40px;
}

.identity .name {
  color: var(--text);
  font-size: 17px;
  font-weight: 400;
}

.identity .role {
  color: var(--muted);
  font-size: 17px;
}

/* Right column: content */
.main {
  display: flex;
  flex-direction: column;
}

/* Content */
.content {
  max-width: 530px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Body links (underlined) */
.content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content a:hover { color: var(--muted); }

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background: var(--muted);
  margin: 4px 0;
}

/* Contact links */
.contact-links {
  display: flex;
  flex-direction: column;
}

.contact-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 17px;
}

.contact-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 1060px) {
  .page {
    grid-template-columns: 1fr;
    padding: 24px 24px 60px;
    row-gap: 0;
  }

  .identity {
    position: static;
    padding-bottom: 24px;
  }
}
