:root {
  --ink: #1d2521;
  --muted: #667069;
  --paper: #f3efe7;
  --paper-deep: #e9e2d7;
  --accent: #b85235;
  --line: rgba(29, 37, 33, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 18%, rgba(184, 82, 53, 0.08), transparent 27rem),
    var(--paper);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.page {
  width: min(100% - 48px, 1240px);
  min-height: 100vh;
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 112px;
}

.wordmark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: "Newsreader", serif;
  font-size: 1.25rem;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 32px;
}

nav a,
.text-link {
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

nav a {
  position: relative;
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  display: grid;
  min-height: calc(100vh - 112px);
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  gap: clamp(56px, 8vw, 128px);
  align-items: center;
  padding: 64px 0 112px;
}

.intro {
  max-width: 720px;
}

.eyebrow,
.section-label {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Newsreader", serif;
  font-weight: 400;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 760px;
  font-size: clamp(4rem, 7.2vw, 7rem);
  line-height: 0.92;
}

.lede {
  max-width: 570px;
  margin: 40px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.65;
}

.text-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 40px;
}

.text-link span {
  color: var(--accent);
  font-size: 1.1rem;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateY(4px);
}

.portrait {
  position: relative;
  width: 100%;
  max-width: 470px;
  margin: 0 0 0 auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: 240px 240px 12px 12px;
}

.portrait::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(29, 37, 33, 0.1);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.portrait-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(29, 37, 33, 0.35);
  font-family: "Newsreader", serif;
  font-size: clamp(5rem, 12vw, 10rem);
}

.about {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 40px;
  padding: 136px 0;
  border-top: 1px solid var(--line);
}

.section-label {
  margin-top: 12px;
}

.about-copy {
  max-width: 800px;
}

h2 {
  margin-bottom: 40px;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1;
}

.about-copy p {
  max-width: 660px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.75;
}

.about-copy a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 64px;
    padding-top: 56px;
  }

  .portrait {
    width: min(100%, 480px);
    margin: 0;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 96px 0;
  }

  .section-label {
    margin: 0;
  }
}

@media (max-width: 520px) {
  .page {
    width: min(100% - 32px, 1240px);
  }

  .site-header {
    height: 88px;
  }

  nav {
    gap: 20px;
  }

  h1 {
    font-size: clamp(3.35rem, 16vw, 5rem);
  }

  .hero {
    min-height: auto;
    padding: 56px 0 88px;
  }

  .lede {
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
