:root {
  color-scheme: light dark;
  --bg: #f4f1e8;
  --text: #161612;
  --muted: #6d6a61;
  --accent: #9b2c1f;
}

* { box-sizing: border-box; }

body {
  min-height: 100svh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
  display: grid;
  width: min(calc(100% - 3rem), 72rem);
  min-height: 100svh;
  margin: auto;
  grid-template-columns: minmax(0, 0.9fr) minmax(21rem, 1fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 9rem);
  padding: 3rem 0;
}

.copy {
  padding-block: 2rem;
}

.mark {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 0 3.5rem;
  place-items: center;
  border: 1px solid currentColor;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(3.25rem, 10vw, 6.5rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.role,
.statement {
  max-width: 34rem;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  line-height: 1.5;
}

.role { margin: 2.25rem 0 0; }
.statement { margin: 0.25rem 0 1.5rem; color: var(--muted); }

.office-hours-link {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-weight: 700;
}

nav { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.88rem; font-weight: 650; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 0.06em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 0.15rem solid var(--accent); outline-offset: 0.25rem; }

.profile-photo {
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #d8d2c5;
  aspect-ratio: 24 / 23;
}

.profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (prefers-color-scheme: dark) {
  :root { --bg: #11110f; --text: #ece9df; --muted: #aaa79d; --accent: #ef745f; }
}

@media (max-width: 44rem) {
  main {
    display: flex;
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 2rem 0;
  }

  .mark { margin-bottom: 2.5rem; }
  .profile-photo { max-width: 30rem; }
}
