@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&display=swap");

:root {
  --paper: #F8F5EE;
  --paper-deep: #EFE8D9;
  --paper-soft: #F3EDE3;
  --ink: #222222;
  --navy: #243447;
  --gold: #A88B52;
  --stone: #8A8A86;
  --rule: #D8CCB8;
  --rule-dark: #BFAF91;
  --max: 1180px;
  --narrow: 760px;
  --serif-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --serif-body: "Source Serif 4", "Libre Baskerville", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.7;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  animation: page-fade 220ms ease-out;
}

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

  body {
    animation: none;
  }
}

@keyframes page-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

p,
ul,
ol,
dl,
figure {
  margin: 0;
}

ul,
ol {
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.55rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 6.8rem);
}

h2 {
  font-size: clamp(2.15rem, 4.8vw, 4.2rem);
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.site-header {
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  font-family: var(--serif-display);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
  padding: 0;
  margin: 0;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--navy);
}

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

.page {
  overflow: hidden;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 108px) 0;
}

.section + .section {
  border-top: 1px solid var(--rule);
}

.section-narrow {
  width: min(var(--narrow), calc(100% - 40px));
}

.hero {
  width: min(var(--max), calc(100% - 40px));
  min-height: calc(100svh - 290px);
  margin: 0 auto;
  padding: clamp(42px, 5vw, 72px) 0;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(44px, 8vw, 104px);
}

.hero-copy {
  max-width: 670px;
}

.hero-copy p {
  max-width: 560px;
  margin-top: 1.3rem;
  color: var(--navy);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.55;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.58rem 1rem;
  border: 1px solid var(--gold);
  border-radius: 5px;
  background: var(--gold);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--paper);
}

.button.secondary {
  background: transparent;
  color: var(--navy);
}

.button.secondary:hover {
  background: var(--paper-deep);
  color: var(--ink);
}

.button.text-button {
  background: transparent;
  border-color: transparent;
  color: var(--navy);
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.button.text-button:hover {
  background: transparent;
  color: var(--gold);
}

.book-frame {
  justify-self: center;
}

.book-frame img {
  width: min(360px, 82vw);
  border: 1px solid var(--rule-dark);
  background: var(--paper-soft);
}

figcaption {
  margin-top: 0.9rem;
  color: var(--stone);
  font-size: 0.83rem;
  font-style: italic;
  line-height: 1.45;
}

.intro {
  padding-top: clamp(46px, 6vw, 82px);
  padding-bottom: clamp(50px, 7vw, 90px);
}

.intro p,
.philosophy p,
.page-heading p,
.body-copy p {
  color: var(--navy);
  font-size: clamp(1.18rem, 2.2vw, 1.55rem);
  line-height: 1.72;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: clamp(32px, 5vw, 64px);
}

.quiet-link {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.book-teaser {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.book-teaser img {
  border: 1px solid var(--rule-dark);
}

.book-teaser h3,
.resource-row h3 {
  margin-bottom: 0.7rem;
}

.muted {
  color: var(--stone);
}

.meta-line {
  margin-top: 1.25rem;
  color: var(--stone);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.philosophy {
  background: var(--navy);
  color: var(--paper);
}

.philosophy .section {
  border: 0;
}

.philosophy p {
  color: var(--paper);
}

.philosophy .rule {
  width: 72px;
  height: 1px;
  margin: 0 0 2rem;
  background: var(--gold);
}

.page-heading {
  padding-top: clamp(58px, 8vw, 108px);
  padding-bottom: clamp(34px, 5vw, 64px);
}

.page-heading h1 {
  max-width: 820px;
}

.page-heading p {
  max-width: 740px;
  margin-top: 1.3rem;
}

.page-actions {
  margin-top: 1.6rem;
}

.book-detail-section,
.resource-index {
  padding-top: clamp(38px, 5vw, 70px);
}

.book-detail {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: clamp(42px, 8vw, 96px);
  align-items: start;
}

.book-detail .book-frame {
  justify-self: start;
}

.book-detail h2 {
  margin-bottom: 0.3rem;
}

.book-descriptor {
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.book-description {
  margin-top: 1.5rem;
  max-width: 700px;
  color: var(--navy);
  font-size: 1.17rem;
  line-height: 1.75;
}

.edition-note {
  margin-top: 1.6rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--rule);
  color: var(--navy);
}

.book-meta {
  margin-top: 1.6rem;
  border-top: 1px solid var(--rule);
}

.book-meta div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 22px;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.book-meta dt {
  color: var(--stone);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.book-meta dd {
  margin: 0;
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 1.8rem;
}

.compact-links {
  margin-top: 1rem;
}

.image-band {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 clamp(54px, 8vw, 104px);
}

.image-band img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  object-position: center 42%;
  border: 1px solid var(--rule);
}

.resource-list {
  border-top: 1px solid var(--rule);
}

.resource-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr) auto;
  gap: clamp(22px, 4vw, 56px);
  align-items: start;
  padding: clamp(26px, 4vw, 42px) 0;
  border-bottom: 1px solid var(--rule);
}

.resource-type {
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.resource-row p {
  max-width: 660px;
  color: var(--navy);
}

.resource-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 1fr);
  gap: clamp(36px, 7vw, 88px);
  align-items: start;
}

.resource-detail img,
.editorial-image img {
  border: 1px solid var(--rule);
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 48px;
  margin-top: 2rem;
}

.note-item {
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule);
}

.note-item h3 {
  margin-bottom: 0.55rem;
  font-size: 1.4rem;
}

.note-item p {
  color: var(--navy);
}

.editorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.74fr);
  gap: clamp(44px, 7vw, 92px);
  align-items: start;
}

.body-copy {
  display: grid;
  gap: 1.3rem;
}

.body-copy h2 {
  margin-top: 1.3rem;
}

.news-list {
  border-top: 1px solid var(--rule);
}

.news-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: clamp(22px, 5vw, 64px);
  padding: clamp(30px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--rule);
}

.news-date {
  color: var(--stone);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.news-item h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.7rem, 3.4vw, 2.8rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.contact-card {
  min-height: 210px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--paper);
}

.contact-card h2 {
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.contact-card p {
  color: var(--navy);
}

.contact-card p + p {
  margin-top: 0.9rem;
}

.sample-heading {
  padding-bottom: clamp(24px, 4vw, 44px);
}

.sample-text {
  padding-top: clamp(30px, 5vw, 58px);
  border-top: 1px solid var(--rule);
}

.sample-text p {
  color: var(--ink);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.86;
}

.sample-text h2 {
  margin-top: 2.2rem;
  margin-bottom: 0.85rem;
}

.sample-text h2:first-child {
  margin-top: 0;
}

.sample-text p + p {
  margin-top: 1.15rem;
}

.sample-text ol {
  margin-top: 1rem;
}

.preview-note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--navy);
  font-style: italic;
}

.sample-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2.2rem;
}

.site-footer {
  border-top: 1px solid var(--rule);
}

.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 30px;
  color: var(--stone);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 18px;
}

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

@media (max-width: 900px) {
  .header-inner {
    min-height: 0;
    padding: 24px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-list {
    justify-content: flex-start;
  }

  .hero,
  .book-detail,
  .resource-detail,
  .editorial-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: clamp(34px, 7vw, 58px);
  }

  .hero-copy {
    order: 1;
  }

  .hero .book-frame {
    order: 2;
  }

  .book-frame {
    justify-self: start;
  }

  .resource-row {
    grid-template-columns: 1fr;
  }

  .resource-row .quiet-link {
    justify-self: start;
  }

  .contact-grid,
  .notes-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  html {
    font-size: 17px;
  }

  .header-inner,
  .section,
  .section-narrow,
  .hero,
  .image-band,
  .footer-inner {
    width: min(100% - 28px, var(--max));
  }

  .brand {
    white-space: normal;
  }

  .nav-list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, max-content);
    justify-content: start;
    gap: 10px 18px;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
  }

  .nav-list a {
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.1rem);
  }

  .hero-copy p {
    font-size: 1.12rem;
  }

  .button-row,
  .sample-actions {
    gap: 10px 12px;
  }

  .button {
    min-height: 40px;
    padding: 0.54rem 0.78rem;
    font-size: 0.64rem;
    letter-spacing: 0.11em;
  }

  .button.text-button {
    flex-basis: 100%;
    min-height: 0;
  }

  .book-teaser,
  .book-meta div,
  .news-item {
    grid-template-columns: 1fr;
  }

  .book-teaser img {
    width: 150px;
  }

  .section-heading,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
