:root {
  color-scheme: light;
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1d241f;
  background: #f5f3ee;
  --secondary: #49584d;
  --accent: #223e30;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.wrap { width: min(100% - 3rem, 68rem); margin-inline: auto; }

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.85rem;
}

.wordmark { font-weight: 700; }
.masthead a, .work a, .button { text-decoration: none; }
.masthead a:hover, .work a:hover, .button:hover { text-decoration: underline; }
nav { display: flex; gap: 1.25rem; font-size: .9rem; }
a span { margin-inline-start: .2em; }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
  padding-block: clamp(3rem, 8vw, 6rem);
}

.location { color: var(--secondary); font-size: .9rem; margin: 0 0 1.15rem; }
h1, h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -.045em;
}

h1 { font-size: clamp(3.15rem, 7.1vw, 6.15rem); line-height: .98; margin: 0 0 1rem; }
.role { font-size: clamp(1.08rem, 2.2vw, 1.42rem); font-weight: 600; margin: 0; }
.bio { max-width: 34rem; font-size: 1.03rem; line-height: 1.72; color: var(--secondary); margin: 1.25rem 0 1.7rem; }
.portrait {
  display: block;
  justify-self: end;
  width: 100%;
  max-width: 22rem;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 24%;
  border-radius: .375rem;
  background: #dbd8d0;
}
.button { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1rem; background: var(--accent); color: #fff; font-weight: 600; border-radius: .3rem; }
.button:hover { background: #345340; }

.work { background: #e8ece3; padding: clamp(1.4rem, 4vw, 2.5rem); border-radius: .375rem; }
h2 { font-size: 2.75rem; line-height: 1; margin: 0 0 1.5rem; }
.work-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.7rem 2.25rem; }
.work h3 { font-size: 1.04rem; margin: 0 0 .45rem; }
.work p, footer p { color: var(--secondary); line-height: 1.6; margin: 0; }
footer { padding-block: 1.8rem 2.5rem; font-size: .88rem; }

@media (max-width: 700px) {
  .intro { grid-template-columns: 1fr; gap: 1.9rem; padding-block: 2rem 3rem; }
  .portrait { justify-self: start; }
  .work-list { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .wrap { width: calc(100% - 2rem); }
  nav { gap: .7rem; }
}
