:root {
  color-scheme: light;
  --ink: #1d2925;
  --muted: #5e6964;
  --paper: #f3eee5;
  --paper-deep: #e8dfd1;
  --cream: #fffdf8;
  --coffee: #7a4f35;
  --coffee-dark: #513421;
  --water: #427a7d;
  --line: rgba(29, 41, 37, 0.17);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

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

a:focus-visible {
  outline: 3px solid var(--water);
  outline-offset: 5px;
  border-radius: 2px;
}

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

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

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.32em;
  font: 700 1.08rem/1 Georgia, "Times New Roman", serif;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.wordmark-and {
  color: var(--water);
  font-style: italic;
  font-weight: 400;
}

.site-header nav,
footer div {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 36px);
}

.site-header nav a,
footer a {
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.hero {
  min-height: min(720px, calc(100vh - 112px));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 96px 0 112px;
}

.eyebrow,
.project-kicker {
  margin: 0 0 22px;
  color: var(--coffee);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 900px;
  font-size: clamp(4rem, 10vw, 8.5rem);
  line-height: 0.88;
}

.lede {
  max-width: 680px;
  margin: 42px 0 26px;
  color: var(--muted);
  font-size: clamp(1.12rem, 2.2vw, 1.42rem);
  line-height: 1.55;
}

.text-link {
  font-size: 0.92rem;
  font-weight: 700;
}

.work {
  padding: 100px 0 120px;
  border-top: 1px solid var(--line);
}

.books {
  padding: 110px 0 120px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) 2fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 54px;
}

.section-heading .eyebrow {
  margin: 0 0 8px;
}

.books-heading {
  align-items: start;
}

.books-heading > div > p {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

h2 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 1;
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.area-card {
  overflow: hidden;
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(50, 37, 27, 0.07);
}

.area-visual {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.app-visual {
  background:
    radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(145deg, #4f8c8c, #2f666b);
}

.area-letter {
  position: relative;
  display: grid;
  width: 84px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: white;
  font: italic 400 2.7rem/1 Georgia, "Times New Roman", serif;
  box-shadow: 0 18px 42px rgba(16, 45, 47, 0.28);
}

.books-visual {
  background: linear-gradient(145deg, #8c6044, #5d3b29);
}

.book-shape {
  position: absolute;
  width: 82px;
  height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 3px 10px 10px 3px;
  box-shadow: 0 18px 34px rgba(49, 25, 14, 0.25);
}

.book-shape-one {
  transform: translateX(-58px) rotate(-9deg);
  background: #d7c3a4;
}

.book-shape-two {
  z-index: 1;
  transform: translateY(-8px);
  background: #f1e4cf;
}

.book-shape-three {
  transform: translateX(58px) rotate(9deg);
  background: #aa7b59;
}

.publishing-visual {
  background: linear-gradient(145deg, #263a35, #162823);
}

.page-line {
  position: absolute;
  left: 20%;
  height: 1px;
  background: rgba(255, 255, 255, 0.62);
}

.page-line-one { top: 32%; width: 60%; }
.page-line-two { top: 44%; width: 48%; }
.page-line-three { top: 56%; width: 60%; }
.page-line-four { top: 68%; width: 36%; }

.area-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px;
}

.area-copy .project-kicker {
  margin-bottom: 13px;
}

.area-copy h3 {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1;
}

.area-copy > p:not(.project-kicker) {
  flex: 1;
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: 0.98rem;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  min-height: 520px;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 22px 70px rgba(50, 37, 27, 0.08);
}

.project-copy {
  padding: clamp(38px, 7vw, 78px);
  align-self: center;
}

.project-copy h2 {
  font-size: clamp(3.3rem, 7vw, 6.2rem);
  line-height: 0.95;
}

.project-kicker {
  margin-bottom: 18px;
}

h3 {
  font-size: clamp(3.3rem, 7vw, 6.2rem);
  line-height: 0.95;
}

.project-copy > p:not(.project-kicker) {
  max-width: 600px;
  margin: 30px 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.button {
  display: inline-block;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: var(--coffee-dark);
  color: white;
}

.project-mark {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(145deg, #4f8c8c, #2f666b);
}

.ring {
  position: absolute;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
}

.ring-one { width: 72%; }
.ring-two { width: 108%; }
.ring-three { width: 144%; }

.mark-center {
  position: relative;
  display: grid;
  width: 112px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: white;
  font: italic 400 3.6rem/1 Georgia, "Times New Roman", serif;
  box-shadow: 0 20px 55px rgba(16, 45, 47, 0.28);
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 52px 28px;
}

.book-card {
  min-width: 0;
}

.cover-link {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px 11px 11px 3px;
  background: var(--paper-deep);
  box-shadow: 0 16px 34px rgba(50, 37, 27, 0.13);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.cover-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 42px rgba(50, 37, 27, 0.18);
}

.cover-link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  background: var(--paper-deep);
}

.book-kind {
  margin: 25px 0 9px;
  color: var(--coffee);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.book-card h2,
.book-card h3 {
  font: 600 clamp(1.2rem, 2vw, 1.48rem)/1.15 Georgia, "Times New Roman", serif;
  letter-spacing: -0.025em;
}

.book-card > p:not(.book-kind),
.book-card-copy > p:not(.book-kind) {
  margin: 15px 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.book-link {
  color: var(--coffee-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.book-card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(170px, 0.28fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
  max-width: 780px;
  margin-top: 18px;
  padding-top: 52px;
  border-top: 1px solid var(--line);
}

.book-card-wide .book-kind {
  margin-top: 0;
}

.book-card-wide h2,
.book-card-wide h3 {
  max-width: 560px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.book-card-wide .book-card-copy > p:not(.book-kind) {
  max-width: 560px;
  font-size: 1rem;
}

.page-hero {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 88px 0 96px;
}

.page-hero h1 {
  font-size: clamp(4rem, 9vw, 7.6rem);
}

.page-hero .lede {
  margin-bottom: 0;
}

.resisted-overview {
  padding: 96px 0 120px;
  border-top: 1px solid var(--line);
}

.support-hero {
  min-height: 500px;
}

.content-section {
  padding: 96px 0 120px;
  border-top: 1px solid var(--line);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(0, 2fr);
  gap: clamp(48px, 9vw, 120px);
  align-items: start;
}

.content-aside {
  position: sticky;
  top: 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.content-aside .project-kicker {
  margin-bottom: 2px;
}

.aside-link {
  color: var(--coffee-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.content-copy {
  overflow: hidden;
  padding: clamp(34px, 6vw, 68px);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(50, 37, 27, 0.07);
}

.content-copy section + section {
  margin-top: 46px;
  padding-top: 46px;
  border-top: 1px solid var(--line);
}

.content-copy h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.08;
}

.content-copy p,
.content-copy li {
  color: var(--muted);
}

.content-copy p {
  margin: 20px 0 0;
}

.content-copy ul {
  margin: 20px 0 0;
  padding-left: 1.25rem;
}

.content-copy li + li {
  margin-top: 8px;
}

.books-page {
  padding-top: 96px;
}

.publication-section {
  display: grid;
  gap: 22px;
  padding: 96px 0 120px;
  border-top: 1px solid var(--line);
}

.publication-card {
  display: grid;
  grid-template-columns: minmax(90px, 0.32fr) minmax(0, 1.68fr);
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(34px, 6vw, 70px);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.publication-card:hover {
  transform: translateY(-4px);
  color: var(--ink);
  box-shadow: 0 20px 50px rgba(50, 37, 27, 0.09);
}

.publication-number {
  color: var(--water);
  font: italic 400 clamp(2.5rem, 5vw, 4.6rem)/1 Georgia, "Times New Roman", serif;
}

.publication-card .project-kicker {
  margin-bottom: 15px;
}

.publication-card h2 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.publication-card p:not(.project-kicker) {
  max-width: 720px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.publication-link {
  color: var(--coffee-dark);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.about {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) 2fr;
  gap: 48px;
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.about .eyebrow {
  margin-top: 12px;
}

.about p:last-child {
  max-width: 760px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

footer {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

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

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

  .site-header nav {
    gap: 16px;
  }

  .site-header nav .nav-optional {
    display: none;
  }

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

  .section-heading,
  .about,
  .project-card {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .about {
    gap: 22px;
  }

  .work {
    padding: 80px 0 88px;
  }

  .area-grid {
    grid-template-columns: 1fr;
  }

  .area-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
  }

  .area-visual {
    min-height: 330px;
  }

  .books {
    padding: 80px 0 88px;
  }

  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px 20px;
  }

  .book-card-wide {
    grid-column: 1 / -1;
  }

  .page-hero {
    min-height: 480px;
  }

  .publication-section {
    padding: 80px 0 88px;
  }

  .content-section {
    padding: 80px 0 88px;
  }

  .content-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .content-aside {
    position: static;
  }

  .project-mark {
    min-height: 320px;
    grid-row: 1;
  }

  .about {
    padding: 88px 0;
  }

  footer {
    min-height: 170px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
  }
}

@media (max-width: 430px) {
  .wordmark {
    display: grid;
    grid-template-columns: max-content max-content;
    gap: 2px 0.28em;
    max-width: none;
    line-height: 0.95;
  }

  .wordmark > span:first-child {
    grid-column: 1 / -1;
  }

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

  .site-header nav {
    justify-content: flex-end;
    gap: 10px 14px;
  }

  .site-header nav a {
    font-size: 0.78rem;
  }

  h1 {
    font-size: clamp(3.5rem, 18vw, 5rem);
  }

  .book-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .book-card-wide {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 0;
  }

  .area-card {
    display: flex;
  }

  .area-visual {
    min-height: 260px;
  }

  .publication-card {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

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

  .cover-link {
    transition: none;
  }

  .publication-card {
    transition: none;
  }
}
