:root {
  --ivory: #fbf6ea;
  --paper: #fffaf0;
  --ink: #1f2723;
  --muted: #667069;
  --forest: #244b3a;
  --forest-dark: #173429;
  --sage: #dbe4d6;
  --burgundy: #7b2f3d;
  --brass: #b88438;
  --sky: #b9d7dc;
  --line: rgba(31, 39, 35, 0.14);
  --shadow: 0 20px 60px rgba(30, 35, 32, 0.12);
  --radius: 8px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

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

.skip-link:focus {
  z-index: 100;
  top: 16px;
  left: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: var(--paper);
  background: var(--forest);
  border-radius: var(--radius);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: var(--ink);
  background: rgba(251, 246, 234, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.footer-brand {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--paper);
  background: var(--forest);
  border-radius: 50%;
  font-family: "Lora", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.brand strong,
.footer-brand {
  display: block;
  font-family: "Lora", Georgia, serif;
  font-size: 1.16rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 28px);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--burgundy);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  isolation: isolate;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 31, 26, 0.82) 0%, rgba(20, 31, 26, 0.58) 42%, rgba(20, 31, 26, 0.12) 100%),
    linear-gradient(180deg, rgba(20, 31, 26, 0.08), rgba(20, 31, 26, 0.32));
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(680px, calc(100% - 36px));
  min-height: calc(100vh - 78px);
  margin-left: clamp(18px, 8vw, 96px);
  padding: clamp(48px, 7vw, 92px) 0 120px;
  color: var(--paper);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  line-height: 1.08;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.4rem, 8vw, 7.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0;
}

.hero-copy {
  max-width: 610px;
  margin-top: 24px;
  color: rgba(255, 250, 240, 0.88);
  font-size: clamp(1.08rem, 2vw, 1.36rem);
}

.hero-actions,
.footer-links,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--paper);
  background: var(--burgundy);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #682635;
}

.button-secondary {
  color: var(--paper);
  border-color: rgba(255, 250, 240, 0.54);
  background: rgba(255, 250, 240, 0.12);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 250, 240, 0.2);
}

.quick-info {
  margin-top: -72px;
  padding: 0 clamp(18px, 4vw, 54px);
  position: relative;
  z-index: 3;
}

.quick-info-grid {
  display: grid;
  max-width: var(--max-width);
  margin: 0 auto;
  overflow: hidden;
  grid-template-columns: repeat(3, 1fr);
  background: var(--paper);
  border: 1px solid rgba(31, 39, 35, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quick-info article {
  padding: 22px 24px;
}

.quick-info article + article {
  border-left: 1px solid var(--line);
}

.quick-info span,
.book-tag {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-info strong {
  display: block;
  font-size: clamp(0.98rem, 1.6vw, 1.18rem);
}

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

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-copy {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.05rem;
}

.category-grid,
.book-grid,
.newsstand-grid,
.values-grid {
  display: grid;
  gap: 18px;
}

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

.category-card,
.book-card,
.book-tile,
.magazine-card,
.values-grid article,
.contact-details article,
.contact-form,
.service-strip article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.category-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.category-card:hover,
.category-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.category-card p {
  margin-top: 18px;
  color: var(--muted);
}

.category-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 38px;
  color: var(--paper);
  background: var(--forest);
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 800;
}

.color-burgundy .category-icon {
  background: var(--burgundy);
}

.color-ink .category-icon {
  background: var(--ink);
}

.color-brass .category-icon {
  background: var(--brass);
}

.split-section {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(34px, 6vw, 76px);
}

.text-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 22px;
  color: var(--forest-dark);
  font-weight: 800;
  text-decoration-color: rgba(36, 75, 58, 0.35);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.pick-list {
  display: grid;
  gap: 14px;
}

.book-card {
  display: grid;
  align-items: center;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  padding: 16px;
}

.book-card p:last-child,
.book-tile p,
.magazine-card p,
.values-grid p,
.service-strip p,
.contact-details p {
  color: var(--muted);
}

.book-author {
  margin-top: 4px;
  color: var(--forest-dark) !important;
  font-weight: 800;
}

.book-cover {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 2 / 3;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding: 10px 8px;
  color: var(--paper);
  background: var(--forest);
  border-radius: 6px;
  box-shadow: inset 10px 0 rgba(0, 0, 0, 0.16);
}

.book-cover::before {
  position: absolute;
  inset: 10px 10px auto;
  height: 34%;
  content: "";
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
}

.book-cover span {
  position: relative;
  font-family: "Lora", Georgia, serif;
  font-weight: 700;
}

.cover-moss {
  background: #375f4c;
}

.cover-ruby {
  background: #873747;
}

.cover-sky {
  color: var(--ink);
  background: #b9d7dc;
}

.cover-ink {
  background: #252d2a;
}

.cover-brass {
  background: #b88438;
}

.cover-forest {
  background: #173429;
}

.feature-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  max-width: none;
  padding: clamp(54px, 8vw, 86px) max(18px, calc((100vw - var(--max-width)) / 2));
  color: var(--paper);
  background: var(--forest-dark);
}

.feature-band div {
  max-width: 760px;
}

.feature-band p:not(.eyebrow) {
  margin-top: 18px;
  color: rgba(255, 250, 240, 0.82);
  font-size: 1.05rem;
}

.page-hero {
  padding: clamp(78px, 10vw, 136px) clamp(18px, 4vw, 54px) clamp(54px, 8vw, 96px);
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(23, 52, 41, 0.98), rgba(38, 78, 62, 0.9)),
    var(--forest-dark);
}

.page-hero h1,
.page-hero p {
  width: min(780px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.page-hero h1 {
  max-width: 780px;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
}

.page-hero p:last-child {
  margin-top: 20px;
  color: rgba(255, 250, 240, 0.82);
  font-size: clamp(1.02rem, 1.9vw, 1.24rem);
}

.page-hero .eyebrow {
  color: #e2b66e;
}

.compact-hero {
  padding-bottom: clamp(44px, 6vw, 70px);
}

.catalog-section {
  padding-top: clamp(54px, 7vw, 82px);
}

.filter-bar {
  margin-bottom: 28px;
}

.filter-button {
  min-height: 40px;
  padding: 8px 14px;
  color: var(--forest-dark);
  background: transparent;
  border: 1px solid rgba(36, 75, 58, 0.28);
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
}

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

.book-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.book-tile {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 18px;
}

.book-tile .book-cover {
  width: min(148px, 64%);
  margin-bottom: 18px;
}

.book-tile.is-hidden {
  display: none;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 0;
}

.service-strip article,
.magazine-card,
.values-grid article,
.contact-details article,
.contact-form {
  padding: 24px;
}

.service-strip h2,
.magazine-card h2,
.values-grid h2,
.contact-form h2,
.contact-details h2 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 2vw, 1.9rem);
}

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

.magazine-card {
  min-height: 230px;
  border-top: 5px solid var(--burgundy);
}

.magazine-card:nth-child(2) {
  border-top-color: var(--forest);
}

.magazine-card:nth-child(3) {
  border-top-color: var(--brass);
}

.magazine-card:nth-child(4) {
  border-top-color: #4a7780;
}

.magazine-card:nth-child(5) {
  border-top-color: #7b2f3d;
}

.magazine-card:nth-child(6) {
  border-top-color: #244b3a;
}

.stock-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.stock-list li::marker {
  color: var(--brass);
}

.story-section {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 76px);
}

.story-image {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.story-image img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.story-section p:not(.eyebrow) + p {
  margin-top: 16px;
}

.values-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 0;
}

.values-grid span {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--burgundy);
  font-weight: 900;
}

.contact-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 22px;
}

.contact-details {
  display: grid;
  gap: 16px;
}

.contact-details a {
  color: var(--forest-dark);
  font-weight: 800;
}

.hours-list {
  margin: 0;
}

.hours-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.hours-list div:last-child {
  border-bottom: 0;
}

.hours-list dt {
  font-weight: 800;
}

.hours-list dd {
  margin: 0;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form label {
  color: var(--forest-dark);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid rgba(31, 39, 35, 0.2);
  border-radius: var(--radius);
}

.contact-form textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 32px clamp(18px, 4vw, 54px);
  color: rgba(255, 250, 240, 0.78);
  background: #151c19;
}

.site-footer p {
  margin-top: 8px;
}

.footer-brand {
  color: var(--paper);
}

.footer-links a {
  color: var(--paper);
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}

@media (max-width: 940px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 18px;
    left: 18px;
    display: none;
    padding: 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    gap: 14px;
  }

  .hero,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    margin-left: 18px;
    padding-bottom: 132px;
  }

  .quick-info-grid,
  .category-grid,
  .book-grid,
  .service-strip,
  .newsstand-grid,
  .values-grid,
  .split-section,
  .story-section,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .quick-info article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .category-card {
    min-height: 210px;
  }

  .feature-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 70px;
    padding: 12px 16px;
  }

  .brand strong {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero,
  .hero-content {
    min-height: 650px;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(20, 31, 26, 0.86), rgba(20, 31, 26, 0.56));
  }

  .hero-content {
    width: calc(100% - 32px);
    margin-left: 16px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.5rem);
  }

  .hero-actions,
  .filter-bar {
    flex-direction: column;
  }

  .button,
  .filter-button {
    width: 100%;
  }

  .quick-info {
    margin-top: -58px;
  }

  .section {
    width: calc(100% - 32px);
  }

  .book-card {
    grid-template-columns: 72px 1fr;
  }

  .book-tile .book-cover {
    width: 128px;
  }

  .story-image img {
    height: 310px;
  }

  .hours-list div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}
