:root {
  color-scheme: light;
  --paper: #f4efe6;
  --folio: #fbf7f0;
  --ink: #1f1a16;
  --muted: #6d6358;
  --wine: #8b3a3a;
  --gold: #b8893a;
  --spine: #2c241c;
  --white: #fffcf7;
  --edge: rgba(31, 26, 22, 0.1);
  --font-display: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-body:
    "Avenir Next",
    "Segoe UI",
    "Helvetica Neue",
    Helvetica,
    Arial,
    ui-sans-serif,
    system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.folio {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 50% 30% at 80% 0%, rgba(184, 137, 58, 0.12), transparent 60%),
    linear-gradient(180deg, #ebe4d6 0%, var(--paper) 48%, #e7dfd1 100%);
}

.folio__page {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    180deg,
    transparent 0 31px,
    rgba(139, 58, 58, 0.05) 31px 32px
  );
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
}

.folio__spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 18px;
  width: 10px;
  background: linear-gradient(180deg, var(--wine), var(--spine));
  opacity: 0.22;
}

.folio__mark {
  position: absolute;
  top: 36px;
  right: 36px;
  width: 18px;
  height: 72px;
  background: var(--wine);
  border-radius: 0 0 10px 10px;
  opacity: 0.55;
  box-shadow: 8px 0 0 var(--gold);
}

.page {
  position: relative;
  z-index: 1;
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 88px;
}

.hero {
  padding: 40px 36px 32px;
  margin-bottom: 24px;
  background: var(--white);
  border: 1px solid var(--edge);
  box-shadow: 0 20px 44px rgba(31, 26, 22, 0.07);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--wine);
}

.colophon {
  margin: 0 0 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6.2vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.brand span {
  display: block;
  margin-top: 4px;
  font-style: italic;
  font-size: 0.52em;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--wine);
}

h1 {
  margin: 18px 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.lead {
  margin-top: 16px;
  max-width: 54ch;
  color: var(--muted);
}

.updated {
  margin-top: 20px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--wine);
}

.shelves {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.shelves li {
  padding: 24px 20px 20px;
  background: var(--white);
  border: 1px solid var(--edge);
  border-top: 4px solid var(--gold);
}

.shelves li:nth-child(2) {
  border-top-color: var(--wine);
}

.shelves li:nth-child(3) {
  border-top-color: var(--spine);
}

.shelves strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 400;
  font-style: italic;
}

.shelves span {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.58;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.card {
  padding: 22px 20px;
  background: var(--white);
  border: 1px solid var(--edge);
}

.card h2 {
  margin: 0 0 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wine);
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.card p + p {
  margin-top: 10px;
}

.card--wide {
  grid-column: 1 / -1;
  padding: 28px 26px;
  background: linear-gradient(135deg, var(--white) 0%, #f1e8d8 100%);
  border-left: 8px solid var(--gold);
}

a {
  color: var(--wine);
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 58, 58, 0.35);
}

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

.footer {
  margin-top: 40px;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--spine);
  color: #cbbfae;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  color: #fbf7f0;
}

@media (max-width: 760px) {
  .shelves,
  .cards {
    grid-template-columns: 1fr;
  }

  .card--wide {
    grid-column: auto;
  }

  .hero {
    padding: 28px 22px 24px;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 32px 0 64px;
    width: min(100% - 24px, 860px);
  }

  .folio__mark {
    opacity: 0.28;
  }
}
