:root {
  --paper: #f5efe3;
  --paper-deep: #ebe2d3;
  --surface: #fffaf1;
  --ink: #221c18;
  --muted: #655b52;
  --line: #c9bda9;
  --forest: #183c32;
  --forest-dark: #102a23;
  --oxblood: #7a2631;
  --gold: #9a742b;
  --glass: #d8e6d4;
  --focus: #0b67b2;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --shadow: 0 18px 45px rgba(34, 28, 24, 0.12);
  --shadow-small: 0 10px 24px rgba(34, 28, 24, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(216, 230, 212, 0.45), transparent 28rem),
    linear-gradient(180deg, var(--paper) 0%, #f9f4ea 58%, var(--paper-deep) 100%);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  color: #fff;
  background: var(--forest-dark);
  transform: translateY(-180%);
}

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

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(201, 189, 169, 0.8);
  background: rgba(245, 239, 227, 0.96);
}

.header-inner {
  display: flex;
  min-height: 5.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--forest-dark);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.84rem;
  letter-spacing: 0.06em;
}

.brand small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
}

.site-nav a {
  padding: 0.35rem 0;
  color: var(--ink);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

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

.container {
  width: min(100% - 2.5rem, 1120px);
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2.5rem, 800px);
  margin-inline: auto;
}

.section {
  padding-block: clamp(3.5rem, 8vw, 7.5rem);
}

.section-tight {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.04;
  text-wrap: balance;
}

h1 {
  margin-bottom: 1.3rem;
  font-size: clamp(2.75rem, 7vw, 6.5rem);
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4.5vw, 4rem);
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  letter-spacing: -0.025em;
}

.lede {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(16rem, 0.7fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

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

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.15rem;
  border: 1px solid var(--oxblood);
  color: #fff;
  background: var(--oxblood);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover {
  border-color: var(--forest-dark);
  color: #fff;
  background: var(--forest-dark);
}

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

.button-secondary:hover {
  border-color: var(--forest);
  color: #fff;
  background: var(--forest);
}

.button-light {
  border-color: var(--surface);
  color: var(--forest-dark);
  background: var(--surface);
}

.button-light:hover {
  border-color: var(--glass);
  color: var(--forest-dark);
  background: var(--glass);
}

.button-outline-light {
  border-color: rgba(255, 250, 241, 0.7);
  color: var(--surface);
  background: transparent;
}

.button-outline-light:hover {
  border-color: var(--surface);
  color: var(--forest-dark);
  background: var(--surface);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.text-link {
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.25rem, 8vw, 7.5rem);
  color: var(--surface);
  background:
    linear-gradient(120deg, var(--forest-dark) 0%, var(--forest) 62%, #224f42 100%);
}

.hero::after {
  position: absolute;
  inset: auto -7rem -12rem auto;
  width: 30rem;
  height: 30rem;
  border: 1px solid rgba(216, 230, 212, 0.2);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.78fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.hero .eyebrow {
  color: var(--glass);
}

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

.hero .lede {
  color: rgba(255, 250, 241, 0.82);
}

.hero-actions {
  margin-top: 2rem;
}

.hero-cover-stack {
  position: relative;
  min-height: clamp(25rem, 49vw, 38rem);
}

.hero-cover {
  position: absolute;
  overflow: hidden;
  width: min(58%, 19rem);
  aspect-ratio: 8.5 / 11;
  padding: 0.6rem;
  border: 1px solid rgba(255, 250, 241, 0.35);
  background: var(--surface);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.hero-cover-primary {
  top: 2%;
  left: 3%;
  transform: rotate(-3.5deg);
}

.hero-cover-secondary {
  right: 0;
  bottom: 0;
  transform: rotate(3deg);
}

.hero-plate {
  position: absolute;
  z-index: 2;
  right: 2%;
  bottom: 12%;
  max-width: 13rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 250, 241, 0.42);
  color: var(--surface);
  background: rgba(16, 42, 35, 0.9);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.55;
  text-align: center;
  text-transform: uppercase;
}

.featured-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.7);
}

.featured-list {
  display: grid;
  gap: 1rem;
}

.featured-workbook {
  display: grid;
  grid-template-columns: minmax(9rem, 0.3fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.featured-cover {
  width: 100%;
  max-width: 12rem;
  aspect-ratio: 8.5 / 11;
  padding: 0.45rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.featured-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.featured-workbook h3 {
  max-width: 24ch;
}

.featured-workbook p {
  max-width: 45rem;
  color: var(--muted);
}

.catalog-group + .catalog-group {
  margin-top: clamp(3rem, 7vw, 6rem);
}

.catalog-group-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.catalog-group-heading h3 {
  margin: 0;
  color: var(--forest-dark);
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
}

.catalog-group-heading span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.book-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.book-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 6px 6px 0 var(--paper-deep);
}

.book-card::after {
  position: absolute;
  inset: 0.38rem;
  z-index: 0;
  border: 1px solid rgba(154, 116, 43, 0.22);
  content: "";
  pointer-events: none;
}

.book-card > * {
  position: relative;
  z-index: 1;
}

.book-cover {
  width: 100%;
  aspect-ratio: 8.5 / 11;
  margin-bottom: 1.15rem;
  padding: 0.45rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.book-card h3 {
  font-size: clamp(1.3rem, 2.3vw, 1.65rem);
  line-height: 1.16;
}

.book-card .card-kicker {
  margin: 0 0 0.55rem;
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.9rem;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
}

.card-actions .button {
  flex: 1 1 auto;
}

.preview-section {
  color: var(--surface);
  background: var(--forest-dark);
}

.preview-section .eyebrow {
  color: var(--glass);
}

.preview-section .section-heading p:last-child {
  color: rgba(255, 250, 241, 0.72);
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.preview-card {
  margin: 0;
  padding: 0.7rem;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.preview-card img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: #fff;
}

.preview-card figcaption {
  padding: 0.7rem 0.35rem 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.about-band {
  background:
    linear-gradient(90deg, transparent 0 49.94%, var(--line) 50%, transparent 50.06%) center / min(100% - 2.5rem, 1120px) 100% no-repeat;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: start;
}

.about-grid p {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.12rem, 2.2vw, 1.55rem);
  line-height: 1.6;
}

.site-footer {
  padding-block: 3.5rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.7fr);
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  color: var(--forest-dark);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
}

.footer-links a {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-copy {
  max-width: 60rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.legal-copy p {
  margin: 0.45rem 0;
  font-size: 0.78rem;
}

.page-hero {
  padding-block: clamp(3rem, 7vw, 6.5rem);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 17ch;
  color: var(--forest-dark);
}

.page-hero .lede {
  max-width: 48rem;
}

.prose {
  max-width: 50rem;
}

.prose h2 {
  margin-top: 2.8rem;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
}

.prose p,
.prose li {
  color: #3e352f;
}

.prose p {
  margin-block: 1rem;
}

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

.contact-email {
  display: inline-block;
  margin-block: 0.7rem 1.5rem;
  color: var(--oxblood);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
}

.detail-hero {
  padding-block: clamp(2.75rem, 7vw, 6rem);
  border-bottom: 1px solid var(--line);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.detail-cover {
  width: min(100%, 24rem);
  aspect-ratio: 8.5 / 11;
  padding: 0.7rem;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.detail-hero h1 {
  max-width: 16ch;
  font-size: clamp(2.5rem, 5.2vw, 4.85rem);
}

.detail-summary {
  max-width: 45rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.detail-aside {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.detail-block {
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.7);
}

.detail-block h2 {
  font-size: 1.3rem;
}

.detail-block ul {
  margin: 0;
  padding-left: 1.1rem;
}

.detail-block li {
  margin-block: 0.4rem;
}

.spec-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.spec-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}

.spec-list dt {
  color: var(--muted);
}

.spec-list dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.detail-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.detail-preview-grid .preview-card {
  box-shadow: var(--shadow-small);
}

.detail-preview-grid .preview-card img {
  background: #fff;
}

.disclaimer {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--gold);
  color: var(--muted);
  background: rgba(154, 116, 43, 0.08);
  font-size: 0.9rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.4rem;
  color: var(--forest);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.not-found {
  min-height: 52vh;
  display: grid;
  place-items: center;
  padding-block: 5rem;
  text-align: center;
}

.not-found code {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--oxblood);
  font-family: var(--serif);
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 1;
}

@media (min-width: 620px) {
  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 820px) {
  .preview-grid,
  .detail-preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .book-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-cover-stack {
    width: min(100%, 34rem);
    min-height: 33rem;
    margin-inline: auto;
  }

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

  .about-band {
    background: none;
  }
}

@media (max-width: 619px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
    width: 100%;
    padding-top: 0.6rem;
    border-top: 1px solid var(--line);
  }

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

  .hero-cover-stack {
    min-height: 27rem;
  }

  .hero-cover {
    width: 57%;
  }

  .hero-plate {
    right: 0;
    bottom: 7%;
    max-width: 10.5rem;
    font-size: 0.58rem;
  }

  .featured-workbook {
    grid-template-columns: 1fr;
  }

  .featured-cover {
    width: min(15rem, 74%);
  }

  .catalog-group-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.15rem;
  }

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

@media (max-width: 390px) {
  .container,
  .narrow {
    width: min(100% - 1.5rem, 1120px);
  }

  .button {
    width: 100%;
  }

  .hero-cover-stack {
    min-height: 23rem;
  }
}

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

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