/* Base component styles. */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

body:has(dialog[open]) {
  overflow: hidden;
}

a {
  color: inherit;
  text-underline-offset: .22em;
}

button {
  font: inherit;
}

button,
summary {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 5px;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.13;
  font-weight: 500;
}

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 10;
  padding: .7rem 1rem;
  background: var(--paper);
}

.skip-link:focus {
  top: 1rem;
}

.masthead {
  max-width: var(--max);
  margin: auto;
  padding: 1.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.nameplate {
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .01em;
}

.nameplate span {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
  font-weight: 500;
  margin-top: .2rem;
}

.masthead nav {
  display: flex;
  gap: 1.8rem;
  font-size: .85rem;
}

.masthead nav a {
  text-decoration: none;
}

.author-hero {
  max-width: var(--max);
  margin: auto;
  padding: 4.25rem 1.5rem 4.5rem;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 4rem;
}

.eyebrow {
  color: var(--green);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.author-hero h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3.6rem, 6.7vw, 6.3rem);
  letter-spacing: -.045em;
  margin-bottom: 1.6rem;
}

.author-hero h1 em {
  color: var(--green);
  font-weight: 400;
}

.hero-lede {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 27rem;
  margin-bottom: 2rem;
}

.text-link {
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: .5rem;
  font-size: .86rem;
  font-weight: 600;
}

.text-link span {
  margin-left: 1.25rem;
}

.archive-art {
  margin: 0;
  border: 1px solid var(--frame-line);
  padding: .65rem;
  background: var(--frame-paper);
  transform: rotate(1deg);
}

.archive-art img {
  display: block;
  width: 100%;
  height: 31rem;
  object-fit: cover;
  object-position: center 38%;
}

.section-heading {
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: -.03em;
  margin-bottom: 1.5rem;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  font-size: .75rem;
  color: var(--muted);
}

@media (max-width: 740px) {
  .masthead {
    padding: 1.2rem;
    gap: 1rem;
  }

  .masthead nav {
    gap: 1rem;
    font-size: .72rem;
  }

  .nameplate {
    font-size: .92rem;
  }

  .author-hero {
    padding: 2.8rem 1.2rem 2rem;
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .author-hero h1 {
    font-size: clamp(3.3rem,13vw,5rem);
  }

  .archive-art {
    transform: none;
  }

  .archive-art img {
    height: 20rem;
    object-position: center 48%;
  }
}

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

@media print {
  .author-hero,
      .masthead,
      .site-footer,
      .skip-link {
    display: none;
  }
}

.masthead nav a {
  padding: .35rem 0;
  border-bottom: 1px solid transparent;
}

.masthead nav a:hover,
.masthead nav a[aria-current="page"] {
  border-color: var(--gold);
}

.masthead nav a[aria-current="page"] {
  color: var(--green);
  font-weight: 650;
}

.site-footer > div {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.site-footer a {
  text-decoration: none;
}

.page-section {
  max-width: var(--max);
  margin: auto;
  padding: 4rem 1.5rem;
}

.page-section h2,
.conversation h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem,3.6vw,3rem);
  letter-spacing: -.03em;
}

.page-section h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.45rem,2.2vw,1.9rem);
  letter-spacing: -.02em;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
}

.conversation {
  max-width: calc(var(--max) - 3rem);
  margin: 2rem auto 4rem;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  background: var(--deep);
  color: var(--paper);
}

.conversation .eyebrow {
  color: var(--mint);
}

.conversation h2 {
  margin-bottom: 1rem;
}

.conversation p:not(.eyebrow) {
  max-width: 35rem;
  margin-bottom: 0;
  color: var(--inverse-muted);
}

.contact-link {
  display: block;
  font-size: .85rem;
  text-decoration: none;
  padding: .9rem 1.1rem;
  border: 1px solid #8b997e;
}

.contact-link span {
  margin-left: .8rem;
}

.contact-link:hover {
  background: var(--hover-deep);
}

@media (max-width: 900px) {
  .conversation {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-link {
    justify-self: start;
  }
}

@media (max-width: 740px) {
  .masthead {
    gap: 1.2rem;
    flex-wrap: wrap;
  }

  .masthead nav {
    width: 100%;
    justify-content: space-between;
    gap: 1rem;
    font-size: .79rem;
  }

  .page-section {
    padding: 2.8rem 1.25rem;
  }

  .conversation {
    margin: 1rem 1.25rem 3rem;
    padding: 2rem 1.5rem;
    max-width: none;
  }

  .site-footer {
    padding-inline: 1.25rem;
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .masthead {
    padding-inline: 1.25rem;
    flex-wrap: wrap;
    gap: .8rem;
  }

  .masthead nav {
    width: 100%;
    justify-content: space-between;
  }
}

@media print {
  .masthead nav,
      .hero-links,
      .contact-link,
      .site-footer {
    display: none;
  }

  .archive-art {
    display: none;
  }

  .page-section,
      .conversation {
    padding: 1rem 0;
    margin: 0;
    max-width: none;
  }

  .conversation {
    color: #000;
    background: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Content may grow when the reader enlarges type. Keep intrinsic grid widths local. */
body {
  overflow-wrap: anywhere;
}

:where(section, article, header, footer, nav, figure, div) {
  min-width: 0;
}

.masthead nav {
  flex-wrap: wrap;
}

.text-link {
  max-width: 100%;
}

.site-footer {
  flex-wrap: wrap;
}

.site-footer .rights-notice {
  flex-basis: 100%;
  width: 100%;
  margin: .75rem 0 0;
  color: var(--muted);
  font-size: .625rem;
  line-height: 1.6;
}

.rights-notice span {
  display: block;
}

@media print {
  .site-footer {
    display: block;
  }

  .site-footer > span,
  .site-footer > div {
    display: none;
  }
}
