:root {
  --ink: #171617;
  --paper: #f5f0e8;
  --paper-deep: #e8ded0;
  --wine: #7b2031;
  --wine-dark: #53121f;
  --steel: #77838d;
  --line: rgba(23, 22, 23, 0.17);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.72;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 240, 232, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  text-decoration: none;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: .13em;
  white-space: nowrap;
}
.brand span { color: var(--wine); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  padding: 26px 0 22px;
  border-bottom: 3px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--wine); border-color: var(--wine); }
.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  min-width: 44px;
  min-height: 44px;
  font: 700 1.25rem var(--sans);
  cursor: pointer;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(12,11,12,.93) 0%, rgba(12,11,12,.76) 43%, rgba(12,11,12,.13) 76%),
    url("hero-literary.png") center/cover no-repeat;
  color: #fff;
}
.hero-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
}
.eyebrow {
  margin: 0 0 20px;
  font: 700 .78rem var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #e5b7bf;
}
h1, h2, h3 { line-height: 1.08; }
.hero h1 {
  margin: 0;
  max-width: 690px;
  font-size: clamp(3.4rem, 8vw, 7.4rem);
  font-weight: 500;
  letter-spacing: -.045em;
}
.hero-copy {
  max-width: 620px;
  margin: 28px 0 38px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255,255,255,.83);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  background: var(--wine);
  color: white;
  text-decoration: none;
  font: 700 .82rem var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid var(--wine);
  transition: .2s ease;
}
.button:hover { background: var(--wine-dark); border-color: var(--wine-dark); transform: translateY(-2px); }
.button.ghost { margin-left: 10px; background: transparent; border-color: rgba(255,255,255,.55); }

.section { padding: 96px 0; }
.section.alt { background: #ebe3d8; }
.container { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }
.section-heading { max-width: 770px; margin-bottom: 46px; }
.section-heading h2,
.page-title h1 { margin: 0 0 18px; font-size: clamp(2.5rem, 5vw, 4.9rem); font-weight: 500; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: #554e49; }
.rule { width: 64px; height: 4px; margin: 22px 0; background: var(--wine); }

.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 74px; align-items: center; }
.quote-block { padding: 46px; background: var(--ink); color: var(--paper); }
.quote-block blockquote { margin: 0; font-size: clamp(1.65rem, 3vw, 2.45rem); line-height: 1.35; }
.quote-block cite { display: block; margin-top: 24px; font: 600 .78rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #d9a8b0; }

.book-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 26px; }
.book-card { background: #fffaf4; border: 1px solid var(--line); min-height: 430px; display: flex; flex-direction: column; }
.book-cover { min-height: 230px; padding: 34px; display: flex; flex-direction: column; justify-content: space-between; color: white; background: linear-gradient(145deg, #161516, #4e1722); }
.book-card:nth-child(2) .book-cover { background: linear-gradient(145deg, #26323a, #788793); }
.book-cover small { font: 700 .7rem var(--sans); letter-spacing: .15em; text-transform: uppercase; }
.book-cover strong { font-size: 2rem; line-height: 1.05; font-weight: 500; }
.book-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.book-body p { margin: 0 0 22px; color: #5c5550; }
.book-body a { margin-top: auto; color: var(--wine); font: 700 .78rem var(--sans); letter-spacing: .09em; text-transform: uppercase; text-decoration: none; }
.status { display: inline-block; width: fit-content; margin-bottom: 14px; color: var(--wine); font: 700 .72rem var(--sans); letter-spacing: .1em; text-transform: uppercase; }

.page-title { padding: 102px 0 70px; border-bottom: 1px solid var(--line); }
.page-title p { max-width: 720px; margin: 0; font-size: 1.24rem; color: #5c5550; }
.prose { max-width: 790px; }
.prose p:first-of-type::first-letter { float: left; margin: 10px 12px 0 0; font-size: 4.9rem; line-height: .68; color: var(--wine); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 55px; background: var(--line); border: 1px solid var(--line); }
.fact { padding: 30px; background: var(--paper); }
.fact strong { display: block; margin-bottom: 7px; font-size: 1.18rem; }
.fact span { color: #615a54; }

.article-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.article-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 36px; align-items: start; padding: 34px 0; border-bottom: 1px solid var(--line); }
.article-row time { font: 650 .78rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--wine); }
.article-row h2 { margin: 0 0 8px; font-size: 1.75rem; }
.article-row p { margin: 0; color: #605852; }
.article-row a { font: 700 .78rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--wine); text-decoration: none; }

.poem-collection { columns: 2; column-gap: 52px; }
.poem-entry { break-inside: avoid; margin: 0 0 36px; padding: 30px 32px; background: #fffaf4; border-top: 3px solid var(--wine); box-shadow: 0 10px 26px rgba(40,25,20,.06); }
.poem-entry h2 { margin: 0 0 18px; font-size: 1.7rem; font-weight: 500; }
.poem-entry p:not(.poem-no) { margin: 0 0 15px; white-space: normal; }
.poem-no { margin: 0 0 12px; color: var(--wine); font: 700 .72rem var(--sans); letter-spacing: .16em; }

.contact-panel { display: grid; grid-template-columns: .8fr 1.2fr; background: var(--ink); color: var(--paper); }
.contact-aside { padding: 54px; border-right: 1px solid rgba(255,255,255,.15); }
.contact-aside h2 { margin-top: 0; font-size: 2.4rem; }
.contact-main { padding: 54px; }
.contact-main p { max-width: 600px; color: rgba(255,255,255,.75); }
.contact-topics { display: grid; gap: 16px; margin-top: 30px; }
.contact-topic { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.16); }
.contact-topic strong { display: block; color: white; }

.site-footer { padding: 50px 0; background: #0f0e0f; color: rgba(255,255,255,.62); }
.footer-wrap { width: min(1100px, calc(100% - 40px)); margin: 0 auto; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.footer-brand { color: white; font-size: 1.3rem; letter-spacing: .13em; }
.footer-wrap p { margin: 8px 0 0; font-size: .9rem; }
.footer-links { display: flex; gap: 22px; font: 650 .78rem var(--sans); text-transform: uppercase; letter-spacing: .08em; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: white; }

@media (max-width: 820px) {
  .menu-button { display: inline-grid; place-items: center; }
  .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; padding: 10px 20px 24px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 15px 0 11px; }
  .hero { min-height: 690px; background-position: 62% center; }
  .hero-inner { padding: 110px 0; }
  .hero h1 { font-size: clamp(3.2rem, 16vw, 5.4rem); }
  .intro-grid, .contact-panel { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr; }
  .book-card { min-height: 0; }
  .facts { grid-template-columns: 1fr; }
  .article-row { grid-template-columns: 1fr; gap: 10px; }
  .poem-collection { columns: 1; }
  .contact-aside { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .footer-wrap { align-items: start; flex-direction: column; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .section { padding: 70px 0; }
  .hero { min-height: 650px; }
  .hero-copy { font-size: 1.08rem; }
  .button { width: 100%; }
  .button.ghost { margin: 10px 0 0; }
  .quote-block, .contact-aside, .contact-main { padding: 34px 26px; }
  .footer-links { flex-wrap: wrap; }
}
