:root {
  --bg: #f4f0e8;
  --surface: #fbf8f2;
  --surface-dark: #171714;
  --text: #24231f;
  --text-soft: #68645c;
  --line: #d8d0c3;
  --accent: #7d5b32;
  --accent-dark: #50391f;
  --white: #ffffff;

  --serif:
    Georgia,
    "Times New Roman",
    Times,
    serif;

  --sans:
    Arial,
    Helvetica,
    sans-serif;

  --container: 1240px;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
}


img {
  display: block;
  max-width: 100%;
}


a {
  color: inherit;
}


button,
input,
select {
  font: inherit;
}


.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 240, 232, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}


.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}


.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text);
  text-decoration: none;
}


.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--text);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.08em;
}


.brand-text {
  display: flex;
  flex-direction: column;
}


.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.1;
}


.brand-subtitle {
  margin-top: 5px;
  color: var(--text-soft);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}


.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}


.main-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 13px;
}


.main-nav a:hover {
  color: var(--text);
}


.language-link {
  min-width: 35px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
  font-weight: 700;
}


/* TYPOGRAPHY */

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--serif);
  font-weight: 400;
}


h1 {
  max-width: 980px;
  margin-bottom: 28px;
  font-size: clamp(46px, 6.2vw, 88px);
  line-height: 0.99;
  letter-spacing: -0.035em;
}


h2 {
  margin-bottom: 20px;
  font-size: clamp(34px, 4vw, 55px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}


h3 {
  margin-bottom: 14px;
  font-size: 30px;
}


p {
  margin-top: 0;
}


.eyebrow,
.card-kicker {
  margin-bottom: 17px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}


/* HERO */

.hero {
  padding: 118px 0 88px;
  border-bottom: 1px solid var(--line);
}


.hero-inner {
  position: relative;
}


.hero-intro {
  max-width: 750px;
  margin-bottom: 38px;
  color: var(--text-soft);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.65;
}


.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 95px;
}


.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--text);
  text-decoration: none;
  font-size: 13px;
  transition:
    background 160ms ease,
    color 160ms ease;
}


.button-primary {
  background: var(--text);
  color: var(--white);
}


.button-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}


.button-secondary:hover {
  background: var(--text);
  color: var(--white);
}


.collection-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}


.fact {
  padding: 30px 30px 0 0;
}


.fact + .fact {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}


.fact-value,
.fact-label {
  display: block;
}


.fact-value {
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 31px;
}


.fact-label {
  color: var(--text-soft);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}


/* SECTIONS */

.section {
  padding: 105px 0;
}


.section-muted {
  background: #e9e3d9;
}


.section-heading {
  max-width: 780px;
  margin-bottom: 55px;
}


.section-heading > p:not(.eyebrow) {
  color: var(--text-soft);
  font-family: var(--serif);
  font-size: 19px;
}


/* COLLECTIONS */

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}


.collection-card {
  min-height: 360px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 30px;
  padding: 52px;
  background: var(--surface);
}


.collection-number {
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
}


.collection-card p:not(.card-kicker) {
  color: var(--text-soft);
}


.collection-card a {
  display: inline-block;
  margin-top: 15px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}


/* CATALOG */

.catalog-heading {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}


.catalog-count {
  color: var(--text-soft);
  font-size: 13px;
}


.catalog-toolbar {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 14px;
  margin-bottom: 35px;
}


.catalog-toolbar input,
.catalog-toolbar select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid #cfc5b7;
  border-radius: 0;
  outline: none;
}


.catalog-toolbar input:focus,
.catalog-toolbar select:focus {
  border-color: var(--accent);
}


.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}


.catalog-empty {
  grid-column: 1 / -1;
  min-height: 250px;
  display: grid;
  place-content: center;
  padding: 50px;
  border: 1px solid #cfc5b7;
  text-align: center;
}


.catalog-empty-title {
  margin-bottom: 7px;
  font-family: var(--serif);
  font-size: 28px;
}


.catalog-empty p:last-child {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--text-soft);
}


/* BOOK CARDS */

.book-card {
  background: var(--surface);
  border: 1px solid #d4cabc;
}


.book-card-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #ddd4c7;
}


.book-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}


.book-card:hover .book-card-image img {
  transform: scale(1.015);
}


.book-card-body {
  padding: 24px;
}


.book-card-id {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}


.book-card-title {
  margin-bottom: 7px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
}


.book-card-author,
.book-card-meta {
  color: var(--text-soft);
  font-size: 13px;
}


.book-card-link {
  display: inline-block;
  margin-top: 17px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  text-underline-offset: 4px;
}


/* ABOUT */

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
}


.prose {
  max-width: 730px;
}


.prose p {
  color: var(--text-soft);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.8;
}


/* INQUIRIES */

.inquiry-section {
  background: var(--surface-dark);
  color: #f2ede4;
}


.inquiry-section .eyebrow {
  color: #c3a87e;
}


.inquiry-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}


.inquiry-inner p {
  max-width: 650px;
  color: #c7c2b8;
  font-family: var(--serif);
  font-size: 18px;
}


.inquiry-note {
  padding-top: 20px;
  border-top: 1px solid #37362f;
  font-size: 15px !important;
}


/* FOOTER */

.site-footer {
  padding: 45px 0;
  background: #11110f;
  color: #aaa69e;
}


.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}


.footer-inner p {
  margin-bottom: 4px;
  font-size: 12px;
}


.footer-brand {
  color: #e7e1d6;
  font-family: var(--serif);
  font-size: 20px !important;
}


.footer-meta {
  text-align: right;
}


/* RESPONSIVE */

@media (max-width: 1000px) {

  .main-nav a:not(.language-link) {
    display: none;
  }

  .collection-grid {
    grid-template-columns: 1fr;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .inquiry-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

}


@media (max-width: 680px) {

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    min-height: 76px;
  }

  .brand-subtitle {
    display: none;
  }

  .hero {
    padding: 75px 0 60px;
  }

  .hero-actions {
    margin-bottom: 60px;
  }

  .collection-facts {
    grid-template-columns: 1fr;
  }

  .fact {
    padding: 20px 0;
  }

  .fact + .fact {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section {
    padding: 75px 0;
  }

  .collection-card {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 34px 28px;
  }

  .catalog-heading {
    display: block;
  }

  .catalog-toolbar {
    grid-template-columns: 1fr;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    display: block;
  }

  .footer-meta {
    margin-top: 25px;
    text-align: left;
  }

}