:root {
  --ink: #17211d;
  --paper: #f5f0e7;
  --cream: #ebe1d2;
  --forest: #234d3c;
  --sage: #91a68c;
  --clay: #c46d4b;
  --sun: #e8af4c;
  --line: rgba(23, 33, 29, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: white;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}

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

.site-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

.site-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: var(--paper);
  font-family: "Newsreader", serif;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
}

nav a {
  font-size: 0.93rem;
  font-weight: 500;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.nav-contact {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 100px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 7vw, 8rem);
  align-items: center;
  min-height: 660px;
  padding-block: 5rem;
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(1.265rem, 2.475vw, 1.65rem);
}

h1 {
  color: var(--forest);
}

h2 {
  max-width: 620px;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 1.05;
}

.about h2 {
  font-size: clamp(1.3rem, 2.5vw, 2.3rem);
}

.interests h2 {
  font-size: clamp(1.04rem, 2vw, 1.84rem);
}

.intro {
  max-width: 520px;
  margin: 2rem 0;
  font-size: clamp(1.155rem, 2.2vw, 1.375rem);
}

.button {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 100px;
  background: var(--ink);
  color: white;
  font-weight: 500;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--forest);
  transform: translateY(-2px);
}

.hero-art {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  justify-self: end;
  border-radius: 48% 48% 1rem 1rem;
  background: var(--cream);
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-art figcaption {
  position: absolute;
  bottom: 1.1rem;
  left: 1.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: 100px;
  background: rgba(23, 33, 29, 0.72);
  color: white;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section {
  display: grid;
  grid-template-columns: 60px 1.2fr 0.8fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding-block: clamp(5rem, 10vw, 9rem);
  border-top: 1px solid var(--line);
}

.section-number {
  margin: 0;
  font-family: "Newsreader", serif;
  font-size: 1.2rem;
}

.section-copy {
  align-self: end;
  font-size: 1.05rem;
}

.section-copy p:last-child {
  margin-bottom: 0;
}

.interest-details {
  align-self: end;
}

.interest-details > p {
  margin-top: 0;
  font-size: 1.05rem;
}

.publications {
  margin-top: 2rem;
  padding: 1.5rem;
  border-left: 3px solid var(--clay);
  background: rgba(255, 255, 255, 0.25);
}

.publications .eyebrow {
  margin-bottom: 0.65rem;
}

.publication-list {
  display: grid;
}

.publication-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: "Newsreader", serif;
  font-size: 1.15rem;
  line-height: 1.35;
  text-decoration: none;
}

.publication-link + .publication-link {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.publication-link span:last-child {
  flex: 0 0 auto;
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.publication-link:hover span:first-child,
.publication-link:focus-visible span:first-child {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact {
  margin-block: 2rem 7rem;
  padding: clamp(3rem, 8vw, 7rem);
  border-radius: 1.25rem;
  background: var(--forest);
  color: var(--paper);
  text-align: center;
}

.contact .eyebrow {
  color: #e6b48d;
}

.contact h2 {
  margin-inline: auto;
}

.contact > p:last-child {
  margin: 1.5rem 0 0;
  color: rgba(245, 240, 231, 0.75);
}

.contact > p:last-child a {
  color: var(--paper);
  font-weight: 600;
  text-underline-offset: 4px;
}

footer {
  display: flex;
  justify-content: space-between;
  padding-block: 1.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

footer p {
  margin: 0;
}

footer a {
  text-underline-offset: 4px;
}

@media (max-width: 760px) {
  .site-header,
  main,
  footer {
    width: min(100% - 2rem, 1180px);
  }

  .site-header {
    min-height: 78px;
  }

  .site-name > span:last-child,
  nav a:not(.nav-contact):not(.nav-explorer) {
    display: none;
  }

  nav {
    gap: 0.75rem;
  }

  .nav-explorer {
    font-size: 0.8rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 4rem;
  }

  .hero-art {
    justify-self: center;
  }

  .publication-link {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .section-number {
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--line);
  }

  .contact {
    margin-bottom: 4rem;
    padding-block: 4rem;
  }
}

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

  .button {
    transition: none;
  }
}

.paper-page {
  padding-bottom: 4rem;
}

.explorer-page {
  padding-bottom: 4rem;
}

.paper-header,
.paper-reader,
.explorer-main {
  width: min(1180px, calc(100% - 3rem));
  margin-inline: auto;
}

.paper-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  border-bottom: 1px solid var(--line);
}

.paper-back {
  font-size: 0.9rem;
  font-weight: 500;
  text-underline-offset: 4px;
}

.paper-reader {
  padding-top: clamp(3rem, 7vw, 6rem);
}

.paper-reader h1 {
  max-width: 850px;
  font-size: clamp(2rem, 5vw, 4rem);
}

.paper-byline {
  margin: 1rem 0 3rem;
  color: rgba(23, 33, 29, 0.7);
}

.scanned-page {
  margin: 0 0 2rem;
  padding: clamp(0.5rem, 2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: white;
}

.scanned-page img {
  display: block;
  width: 100%;
  height: auto;
}

.scanned-page figcaption {
  padding-top: 0.75rem;
  color: rgba(23, 33, 29, 0.65);
  font-size: 0.78rem;
  text-align: center;
}

.explorer-main {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
  padding-block: clamp(4rem, 9vw, 8rem);
}

.explorer-main h1 {
  max-width: 700px;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  line-height: 0.92;
}

.explorer-intro {
  max-width: 680px;
  margin: 2rem 0 0;
  color: rgba(23, 33, 29, 0.78);
  font-family: "Newsreader", serif;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.55;
}

.explorer-image {
  margin: 0;
}

.explorer-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 14rem 14rem 1rem 1rem;
  object-fit: cover;
}

.explorer-image figcaption {
  margin-top: 0.8rem;
  color: rgba(23, 33, 29, 0.6);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .paper-header,
  .paper-reader,
  .explorer-main {
    width: min(100% - 2rem, 1180px);
  }

  .paper-header {
    min-height: 78px;
  }

  .paper-header .site-name > span:last-child {
    display: none;
  }

  .explorer-main {
    grid-template-columns: 1fr;
  }

  .explorer-image {
    width: min(100%, 480px);
    justify-self: center;
  }
}
