:root {
  color-scheme: light;
  --background: #f6f4ef;
  --text: #292b28;
  --muted: #62685b;
  --accent: #65734f;
  --line: #dedfd6;
  --heading-font: 'Lobster Two', cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: 'Merienda', cursive;
  font-size: 16px;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 5px;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}

::selection {
  background: var(--accent);
  color: var(--background);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  padding: 8px 14px;
  background: var(--background);
}

.skip-link:focus {
  top: 12px;
}

.page-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100svh;
  max-width: 1080px;
  padding: 0 56px;
  margin: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font: italic 700 34px var(--heading-font);
  letter-spacing: -3px;
  text-decoration: none;
}

.wordmark span {
  color: var(--accent);
}

nav {
  display: flex;
  gap: 25px;
  font-size: 13px;
}

nav a {
  text-decoration: none;
}

.introduction {
  padding-top: 40px;
}

.section-number {
  display: block;
  padding-top: 7px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .07em;
  color: var(--muted);
}

h1 {
  font: 400 clamp(88px, 12vw, 154px)/.94 var(--heading-font);
  letter-spacing: -.065em;
  margin: 0 0 38px;
}

h1 em,
#name span {
  color: var(--accent);
}

#name {
  font-size: clamp(42px, 7.2vw, 96px);
  line-height: 1.12;
  letter-spacing: normal;
  margin-bottom: 20px;
  white-space: nowrap;
}

.intro-bottom {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.tagline {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  height: 26px;
  line-height: 26px;
}

.tagline.is-typing span::after {
  content: '|';
  color: var(--accent);
  animation: caret-blink 1s step-end infinite;
}

@keyframes caret-blink {
  50% { opacity: 0; }
}

.about-copy {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 36px;
  padding: 52px 0 44px;
}

.about-copy p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 20px;
}

.about-copy .lead {
  font-size: 19px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 22px;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 36px;
  border-top: 1px solid var(--line);
  padding: 38px 0 54px;
}

h2 {
  font: 400 45px/1.1 var(--heading-font);
  letter-spacing: -.04em;
  margin: 24px 0 20px;
}

.social-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 14px;
  text-decoration: none;
}

.social-links a > span:last-child {
  color: var(--accent);
}

.hello-link a {
  justify-content: flex-start;
  gap: 10px;
  border-bottom: 0;
}

@media (max-width: 640px) {
  .page-shell {
    padding: 0 24px;
  }

  .site-header {
    padding: 23px 0;
  }

  .introduction {
    padding-top: 30px;
  }

  #name {
    font-size: clamp(72px, 20vw, 112px);
    line-height: 1.05;
    white-space: normal;
  }

  #name span {
    display: block;
  }

  .intro-bottom {
    padding-bottom: 28px;
  }

  .about-copy {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 32px 0 22px;
  }

  .about-copy .lead {
    font-size: 18px;
  }

  .contact-section {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 30px 0 36px;
  }

  .social-links {
    padding-top: 4px;
  }
}

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