:root {
  color-scheme: light;
  --paper: #f4efe5;
  --ink: #24221e;
  --muted: #6b665d;
  --accent: #9b3f2f;
  --line: #d4c8b5;
  --card: #fbf8f1;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(155, 63, 47, .035) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

a { color: inherit; }

.site-header {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .02em;
}

nav { display: flex; gap: 24px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--accent); }

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero { padding: 110px 0 90px; max-width: 850px; }
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font: 700 .76rem/1.2 Arial, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 500;
}

.lead { max-width: 650px; margin: 34px 0; color: var(--muted); font-size: 1.3rem; }
.button {
  display: inline-block;
  padding: 13px 19px;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font: 700 .9rem/1 Arial, sans-serif;
}
.button:hover { color: var(--card); background: var(--accent); }

.shelf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 5px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.shelf article { min-height: 250px; padding: 30px; background: var(--card); border-right: 1px solid var(--line); }
.shelf article:last-child { border-right: 0; }
.shelf span { color: var(--accent); font: 700 .72rem/1 Arial, sans-serif; }
.shelf h2 { margin: 50px 0 12px; font-size: 1.45rem; }
.shelf p { color: var(--muted); }

.page { max-width: 820px; padding: 95px 0 110px; }
.page h1 { font-size: clamp(3rem, 7vw, 5.4rem); }
.prose { margin-top: 58px; font-size: 1.16rem; }
.prose h2 { margin-top: 42px; color: var(--accent); font-size: 1.35rem; }
.prose p { color: #48443d; }

.not-found { min-height: 100vh; display: grid; place-content: center; text-align: center; }
.not-found h1 { max-width: 800px; font-size: clamp(2.6rem, 7vw, 5rem); }
.not-found p:not(.eyebrow) { color: var(--muted); }
.not-found .button { margin: 22px auto 0; }

footer {
  width: min(1120px, calc(100% - 40px));
  margin: 70px auto 0;
  padding: 28px 0 45px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 720px) {
  .site-header { align-items: flex-start; gap: 22px; }
  nav { gap: 10px; flex-direction: column; text-align: right; }
  .hero { padding: 75px 0 60px; }
  .shelf { grid-template-columns: 1fr; }
  .shelf article { border-right: 0; border-bottom: 1px solid var(--line); }
  .shelf article:last-child { border-bottom: 0; }
}
