:root {
  --cream: #f3eddf;
  --paper: #fbf7ee;
  --ink: #17251f;
  --forest: #183c2f;
  --forest-deep: #102d23;
  --gold: #c99a42;
  --rust: #9b4936;
  --line: rgba(23, 37, 31, 0.2);
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: "Trebuchet MS", "Avenir Next", Avenir, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--paper);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.site-header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1240px, calc(100% - 72px));
  margin: 0 auto;
}

.site-header {
  min-height: 104px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.brand-mark {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 28px;
  height: 28px;
  padding-bottom: 2px;
  border-bottom: 2px solid currentColor;
}

.brand-mark span {
  display: block;
  width: 7px;
  background: currentColor;
}

.brand-mark span:nth-child(1) { height: 18px; }
.brand-mark span:nth-child(2) { height: 24px; }
.brand-mark span:nth-child(3) { height: 15px; }

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  position: relative;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.3rem;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(400px, 0.88fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  width: min(1240px, calc(100% - 72px));
  min-height: 660px;
  margin: 0 auto;
  padding: 4.5rem 0 5.5rem;
}

.eyebrow {
  margin: 0 0 1.45rem;
  color: var(--forest);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 0.55rem 0.08rem 0;
  border-radius: 50%;
  background: var(--gold);
}

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

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h1 {
  max-width: 780px;
  margin-bottom: 2rem;
  font-size: clamp(4.15rem, 7.1vw, 7.25rem);
}

.hero-intro {
  max-width: 600px;
  margin-bottom: 2.15rem;
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  line-height: 1.65;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 2.25rem;
  padding: 0.9rem 1.15rem 0.9rem 1.25rem;
  border: 1px solid var(--forest);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  color: var(--paper);
  background: var(--forest);
}

.button span {
  font-size: 1.25rem;
  line-height: 1;
}

.book-art {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background: var(--forest);
  box-shadow: 20px 20px 0 rgba(201, 154, 66, 0.28);
}

.book-art::before {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: radial-gradient(rgba(255,255,255,0.14) 0.55px, transparent 0.7px);
  background-size: 6px 6px;
  content: "";
}

.sun {
  position: absolute;
  top: 45px;
  right: 48px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--gold);
}

.upright,
.stack,
.shelf {
  position: absolute;
  z-index: 1;
}

.upright {
  bottom: 70px;
  display: flex;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.38);
}

.upright span {
  padding-top: 1rem;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.book-one {
  left: 58px;
  width: 74px;
  height: 246px;
  background: var(--rust);
}

.book-two {
  left: 138px;
  width: 91px;
  height: 325px;
  background: #d5b56f;
}

.book-two span { color: var(--forest-deep); }

.book-three {
  left: 235px;
  width: 61px;
  height: 280px;
  background: #376652;
}

.stack {
  right: 40px;
  height: 54px;
  border: 1px solid rgba(255,255,255,0.38);
}

.book-four {
  bottom: 70px;
  width: 174px;
  background: var(--rust);
}

.book-five {
  right: 58px;
  bottom: 129px;
  width: 149px;
  height: 48px;
  background: #d5b56f;
}

.shelf {
  right: 24px;
  bottom: 52px;
  left: 25px;
  height: 12px;
  background: var(--paper);
}

.book-art p {
  position: absolute;
  top: 57px;
  left: 52px;
  z-index: 1;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.25;
}

.marquee {
  overflow: hidden;
  color: var(--paper);
  background: var(--forest-deep);
}

.marquee div {
  display: flex;
  gap: 2.35rem;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: 100%;
  padding: 1.05rem 2rem;
  font-family: var(--serif);
  font-size: 0.98rem;
  font-style: italic;
}

.marquee i {
  color: var(--gold);
  font-size: 0.55rem;
  font-style: normal;
}

.section {
  padding: clamp(6rem, 10vw, 9.5rem) max(36px, calc((100% - 1240px) / 2));
}

.shelves {
  background: var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 2.2fr 1.25fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 4.5rem;
}

.section-heading h2,
.about h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(3rem, 5vw, 5.4rem);
}

.section-heading > p:last-child {
  padding-top: 0.35rem;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.category-grid article {
  min-height: 250px;
  padding: 1.65rem 1.65rem 1.9rem;
  border-right: 1px solid var(--line);
}

.category-grid article:last-child {
  border-right: 0;
}

.category-grid span {
  color: var(--rust);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.category-grid h3 {
  margin: 3.6rem 0 1rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.15;
}

.category-grid p {
  margin-bottom: 0;
  font-size: 0.91rem;
  line-height: 1.55;
}

.availability-note {
  margin: 1.2rem 0 0;
  font-size: 0.73rem;
  font-style: italic;
}

.about {
  display: grid;
  grid-template-columns: 1fr 3.5fr;
  gap: 3rem;
  color: var(--paper);
  background: var(--rust);
}

.about .eyebrow {
  color: var(--paper);
}

.edition {
  display: block;
  margin-top: 7rem;
  color: rgba(251,247,238,0.78);
  font-family: var(--serif);
  font-size: 0.84rem;
  font-style: italic;
  line-height: 1.4;
}

.about h2 {
  max-width: 900px;
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 780px;
  margin-top: 3.7rem;
  margin-left: auto;
}

.about-columns p {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.contact {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 5rem;
  align-items: end;
  color: var(--paper);
  background: var(--forest);
}

.eyebrow.light {
  color: var(--gold);
}

.contact-copy p {
  max-width: 430px;
  margin-bottom: 2rem;
  color: rgba(251,247,238,0.78);
}

.contact-copy a {
  display: inline-block;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  text-decoration: none;
}

.contact-copy a:hover,
.contact-copy a:focus-visible {
  color: var(--paper);
}

footer {
  min-height: 130px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer p {
  margin-bottom: 0;
}

.footer-brand .brand-name {
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-transform: none;
}

.footer-brand .brand-mark {
  width: 22px;
  height: 22px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr 0.78fr;
    gap: 3rem;
  }

  .book-art {
    min-height: 420px;
  }

  .book-one { left: 30px; width: 54px; }
  .book-two { left: 89px; width: 68px; }
  .book-three { left: 162px; width: 46px; }
  .book-four { width: 124px; }
  .book-five { width: 110px; }
  .book-art p { left: 29px; }

  .section-heading {
    grid-template-columns: 1fr 2.5fr;
  }

  .section-heading > p:last-child {
    grid-column: 2;
    max-width: 540px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid article:nth-child(2) { border-right: 0; }
  .category-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

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

@media (max-width: 720px) {
  .site-header,
  footer,
  .hero {
    width: min(100% - 40px, 1240px);
  }

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

  nav a:not(:last-child) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 4.25rem 0 5rem;
  }

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

  .book-art {
    min-height: 410px;
    margin: 1rem 0 1.25rem;
    box-shadow: 10px 10px 0 rgba(201, 154, 66, 0.28);
  }

  .marquee div {
    justify-content: flex-start;
  }

  .section {
    padding: 5.5rem 20px;
  }

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

  .section-heading {
    gap: 0.5rem;
  }

  .section-heading > p:last-child {
    grid-column: auto;
    margin-top: 1.25rem;
  }

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

  .category-grid article {
    min-height: 215px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .category-grid article:nth-child(3) { border-bottom: 1px solid var(--line); }
  .category-grid article:last-child { border-bottom: 0; }

  .category-grid h3 {
    margin-top: 2.5rem;
  }

  .about,
  .contact {
    gap: 3rem;
  }

  .edition {
    margin-top: 2rem;
  }

  .about-columns {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.65rem;
    min-height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

