@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #f4efe6;
  --paper-deep: #e7ddcf;
  --paper-light: #fffaf2;
  --ink: #18130f;
  --ink-soft: #51473f;
  --night: #141116;
  --burgundy: #6b2637;
  --burgundy-dark: #4e1927;
  --gold: #b89458;
  --gold-light: #d8be8c;
  --line: rgba(24, 19, 15, 0.16);
  --line-dark: rgba(244, 239, 230, 0.19);
  --shadow: 0 24px 70px rgba(20, 17, 22, 0.18);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --content: 73.75rem;
  --reading: 43rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 20rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::selection,
body *::selection {
  background: var(--gold-light);
  color: var(--ink);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--burgundy);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: var(--burgundy-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.18rem var(--paper-light), 0 0 0 0.38rem var(--ink);
  border-radius: 0.2rem;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 650;
  line-height: 1.08;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.15rem, 5vw, 3.8rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-180%);
  background: var(--paper-light);
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--shadow);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 239, 230, 0.95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  width: min(100% - 2rem, var(--content));
  min-height: 4.75rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.brand {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-decoration: none;
  white-space: nowrap;
}

.brand::before {
  width: 0.65rem;
  height: 0.65rem;
  content: "";
  transform: rotate(45deg);
  border: 1px solid var(--gold);
  background: var(--burgundy);
}

.brand:hover {
  color: var(--burgundy);
}

.primary-nav {
  margin-left: auto;
}

.primary-nav ul,
.language-switch,
.footer-links,
.button-row,
.inline-links {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
}

.primary-nav a,
.language-switch a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.primary-nav a {
  min-width: 2.75rem;
  justify-content: center;
}

.primary-nav a:hover,
.language-switch a:hover {
  color: var(--burgundy);
}

.language-switch {
  flex-wrap: nowrap;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 0.2rem;
}

.language-switch li + li::before {
  content: "/";
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.language-switch a {
  min-width: 2.75rem;
  justify-content: center;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.language-switch [aria-current="page"] {
  color: var(--burgundy);
  font-weight: 800;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 15%, rgba(107, 38, 55, 0.62), transparent 35rem),
    radial-gradient(circle at 88% 80%, rgba(184, 148, 88, 0.18), transparent 27rem),
    var(--night);
  color: var(--paper);
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.22;
  background-image: linear-gradient(115deg, transparent 0 48%, rgba(255, 255, 255, 0.06) 48% 48.15%, transparent 48.15% 100%);
  background-size: 18rem 18rem;
}

.hero__inner {
  width: min(100% - 2rem, var(--content));
  min-height: min(49rem, calc(100svh - 4.75rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  display: grid;
  grid-template-columns: minmax(15rem, 0.78fr) minmax(18rem, 1.35fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.hero__cover {
  width: min(100%, 23rem);
  margin: 0 auto;
  position: relative;
}

.hero__cover::before {
  position: absolute;
  z-index: -1;
  inset: 7% -10% -7% 9%;
  content: "";
  border: 1px solid rgba(184, 148, 88, 0.45);
}

.cover-image {
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2.5rem 5rem rgba(0, 0, 0, 0.48);
}

.hero__copy {
  max-width: 41rem;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--burgundy);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero .eyebrow,
.cta-band .eyebrow {
  color: var(--gold-light);
}

.release-badge {
  width: fit-content;
  margin-bottom: 1.35rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(184, 148, 88, 0.55);
  border-radius: 999px;
  background: rgba(184, 148, 88, 0.12);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 12ch;
  margin-bottom: 1.2rem;
  font-size: clamp(3rem, 7.5vw, 6rem);
  letter-spacing: -0.05em;
}

.hero__lead {
  max-width: 37rem;
  margin-bottom: 1rem;
  color: #e6ddd3;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  line-height: 1.42;
}

.hero__body {
  max-width: 38rem;
  margin-bottom: 1.75rem;
  color: #c9bfb7;
}

.button-row {
  gap: 0.75rem;
}

.button {
  min-height: 3rem;
  padding: 0.72rem 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 0.2rem;
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button::after {
  content: "↗";
  font-size: 0.9em;
}

.button:hover {
  transform: translateY(-0.12rem);
}

.button--primary {
  background: var(--gold);
  color: var(--ink);
}

.button--primary:hover {
  background: var(--gold-light);
  color: var(--ink);
}

.button--secondary {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
}

.button--secondary:hover {
  border-color: var(--gold);
  background: rgba(184, 148, 88, 0.12);
  color: var(--paper);
}

.button--burgundy {
  background: var(--burgundy);
  color: #fffaf2;
}

.button--burgundy:hover {
  background: var(--burgundy-dark);
  color: #fffaf2;
}

.text-link {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 750;
}

.text-link::after {
  content: "→";
}

.hero .text-link {
  color: var(--gold-light);
}

.hero .text-link:hover {
  color: var(--paper);
}

.hero__note {
  margin: 1rem 0 0;
  color: #a99f99;
  font-size: 0.83rem;
}

.section {
  scroll-margin-top: 7rem;
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.section--tinted {
  border-block: 1px solid var(--line);
  background: var(--paper-deep);
}

.section__inner {
  width: min(100% - 2rem, var(--content));
  margin: 0 auto;
}

.section-heading {
  max-width: 47rem;
  margin-bottom: clamp(2.25rem, 5vw, 4rem);
}

.section-heading h2 {
  margin-bottom: 1rem;
}

.section-heading p {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.edition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.edition-card {
  min-width: 0;
  padding: clamp(1.4rem, 3.5vw, 2.5rem);
  display: grid;
  grid-template-columns: minmax(8.5rem, 0.58fr) minmax(12rem, 1fr);
  align-items: center;
  gap: clamp(1.4rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  background: var(--paper-light);
  box-shadow: 0 1rem 2.6rem rgba(20, 17, 22, 0.07);
}

.edition-card__cover {
  width: min(100%, 13rem);
  margin: 0 auto;
}

.edition-card__cover img {
  width: 100%;
  height: auto;
  box-shadow: 0 1.3rem 2.8rem rgba(20, 17, 22, 0.25);
}

.edition-card h3 {
  margin-bottom: 0.55rem;
}

.edition-card__label {
  margin-bottom: 0.65rem;
  color: var(--burgundy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.edition-card p {
  color: var(--ink-soft);
}

.edition-card .button-row {
  margin-top: 1rem;
}

.edition-card .button {
  flex: 1 1 8rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(12rem, 0.42fr) minmax(18rem, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 8vw, 8rem);
}

.monogram-panel {
  min-height: 22rem;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: linear-gradient(145deg, rgba(107, 38, 55, 0.82), rgba(20, 17, 22, 0.9)), var(--night);
  color: var(--paper);
}

.monogram-panel::before,
.monogram-panel::after {
  position: absolute;
  content: "";
  width: 13rem;
  height: 13rem;
  border: 1px solid rgba(184, 148, 88, 0.52);
  transform: rotate(45deg);
}

.monogram-panel::after {
  width: 9rem;
  height: 9rem;
}

.monogram-panel span {
  z-index: 1;
  font-family: var(--serif);
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 650;
  letter-spacing: -0.08em;
}

.about-copy h2 {
  margin-bottom: 1.25rem;
}

.about-copy p {
  max-width: 44rem;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.book-hero .hero__inner {
  min-height: 42rem;
}

.book-hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.35rem);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  align-items: start;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.synopsis {
  max-width: var(--reading);
}

.synopsis h2,
.facts-panel h2,
.editions-detail h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.synopsis p {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.62;
}

.facts-panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 0.25rem solid var(--burgundy);
  background: var(--paper-light);
  box-shadow: 0 1rem 2.6rem rgba(20, 17, 22, 0.07);
}

.facts-list {
  margin: 1.5rem 0 0;
}

.facts-list div {
  padding: 0.75rem 0;
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  border-top: 1px solid var(--line);
}

.facts-list dt {
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.facts-list dd {
  margin: 0;
  font-weight: 600;
}

.editions-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.edition-detail {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.edition-detail h3 {
  margin-bottom: 0.75rem;
}

.edition-detail p {
  color: var(--ink-soft);
}

.cta-band {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 85% 20%, rgba(184, 148, 88, 0.2), transparent 28rem), var(--night);
  color: var(--paper);
}

.cta-band__inner {
  width: min(100% - 2rem, var(--content));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.cta-band h2 {
  max-width: 16ch;
  margin-bottom: 0;
  font-size: clamp(2.3rem, 5.5vw, 4.2rem);
}

.cta-band .button-row {
  flex: 0 0 auto;
}

.legal-main {
  min-height: 65vh;
}

.legal-hero {
  padding: clamp(4rem, 9vw, 7rem) 0;
  border-bottom: 1px solid var(--line-dark);
  background: radial-gradient(circle at 18% 30%, rgba(107, 38, 55, 0.65), transparent 31rem), var(--night);
  color: var(--paper);
}

.legal-hero__inner,
.legal-content {
  width: min(100% - 2rem, var(--content));
  margin: 0 auto;
}

.legal-hero h1 {
  max-width: 12ch;
  margin-bottom: 0;
  font-size: clamp(3rem, 7vw, 5.4rem);
}

.legal-content {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.legal-prose {
  max-width: var(--reading);
}

.legal-prose h2 {
  margin-top: 2.8rem;
  margin-bottom: 0.9rem;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.legal-prose h3 {
  margin-top: 2rem;
  margin-bottom: 0.7rem;
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 750;
}

.legal-prose p,
.legal-prose li {
  color: var(--ink-soft);
}

.legal-prose address {
  font-style: normal;
}

.legal-prose ul {
  padding-left: 1.25rem;
}

.legal-note {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  border-left: 0.25rem solid var(--gold);
  background: var(--paper-deep);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--line-dark);
  background: var(--night);
  color: #c9bfb7;
}

.site-footer__inner {
  width: min(100% - 2rem, var(--content));
  margin: 0 auto;
  padding: 2.5rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1.5rem 2rem;
}

.footer-title {
  margin-bottom: 0.25rem;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 650;
}

.footer-tagline {
  margin: 0;
  font-size: 0.9rem;
}

.footer-links {
  justify-content: flex-end;
  gap: 0.25rem 1.25rem;
}

.footer-links a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: var(--gold-light);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--paper);
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  color: #948b86;
  font-size: 0.8rem;
}

@media (max-width: 64rem) {
  .edition-grid {
    grid-template-columns: 1fr;
  }

  .edition-card {
    grid-template-columns: minmax(8rem, 0.42fr) minmax(12rem, 1fr);
  }
}

@media (max-width: 50rem) {
  .site-header__inner {
    min-height: auto;
    padding: 0.6rem 0 0.45rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0 0.75rem;
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-left: 0;
  }

  .primary-nav ul {
    justify-content: space-between;
    gap: 0 0.75rem;
  }

  .hero__inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hero__cover {
    width: min(73vw, 21rem);
  }

  .hero__copy {
    max-width: 38rem;
  }

  .hero h1 {
    max-width: 10ch;
  }

  .about-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .monogram-panel {
    min-height: 17rem;
  }

  .cta-band__inner {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 38rem) {
  body {
    font-size: 1rem;
  }

  .site-header__inner,
  .hero__inner,
  .section__inner,
  .cta-band__inner,
  .legal-hero__inner,
  .legal-content,
  .site-footer__inner {
    width: min(100% - 1.25rem, var(--content));
  }

  .brand {
    font-size: 1.05rem;
  }

  .primary-nav a {
    font-size: 0.85rem;
  }

  .hero__inner {
    padding: 3rem 0 4rem;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 16vw, 4rem);
  }

  .button-row {
    align-items: stretch;
  }

  .button-row .button {
    flex: 1 1 100%;
  }

  .edition-card {
    grid-template-columns: 1fr;
  }

  .edition-card__cover {
    width: min(67vw, 14rem);
  }

  .editions-detail {
    grid-template-columns: 1fr;
  }

  .facts-list div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .button-row,
  .skip-link {
    display: none;
  }

  body,
  .legal-hero,
  .hero {
    background: #fff;
    color: #000;
  }

  a {
    color: #000;
  }
}
