:root {
  --bg: #f2f1ee;
  --ink: #1a1a1a;
  --rule: #c9c7c2;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Mono", ui-monospace, monospace;
}

/* First full-height screen */
.screen {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Top bar ---------- */

.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem 2rem 0;
}

.year {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.95rem;
  line-height: 1.9;
}

.menu a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.menu a:hover {
  text-decoration-thickness: 2px;
}

.menu-item {
  white-space: nowrap;
}

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

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 1.5rem 0;
}

.name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(3rem, 9vw, 7rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.name em {
  font-style: italic;
}

.role {
  font-size: clamp(0.9rem, 1.6vw, 1.25rem);
  letter-spacing: 0.15em;
  margin-top: calc(0.75rem + 5px);
}

.tagline {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 1rem;
}

.portrait {
  width: 500px;
  max-width: 90vw;
  height: auto;
  margin: 1rem auto 2.5rem;
  display: block;
}

/* ---------- Bottom lists ---------- */

.bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  padding: 0 2rem 2rem;
}

.list {
  font-size: 0.8rem;
  max-width: 34rem;
}

.list-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.list ul {
  list-style: none;
}

.list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--rule);
  letter-spacing: 0.04em;
}

.list-right {
  text-align: right;
}

/* ---------- Below-the-fold sections ---------- */

.page-section {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.section-heading {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.1;
}

.section-subtitle {
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  letter-spacing: 0.15em;
  margin-top: 2rem;
}

.section-body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 38rem;
  margin-top: 2rem;
}

.section-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-list {
  list-style: none;
  margin-top: 3.5rem;
  width: 100%;
  max-width: 30rem;
}

.contact-list li {
  border-bottom: 1px solid var(--rule);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.contact-list li:first-child {
  border-top: 1px solid var(--rule);
}

.contact-list a {
  display: block;
  padding: 0.7rem 0;
  color: var(--ink);
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.arrow {
  font-size: 0.8em;
}

/* ---------- Small screens ---------- */

@media (max-width: 700px) {
  .hero {
    padding-top: 4rem;
  }

  .bottom-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .list-right {
    text-align: left;
  }
}
