:root {
  --ink: #0a0908;
  --paper: #ffffff;
  --warm: #efede8;
  --focus: #8c5a16;
  --content-wide: 800px;
  --rule: 220px;
  --serif: Georgia, "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.34;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  height: 152px;
  background: #fff;
}

.header-inner {
  width: min(100% - 64px, 1150px);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: block; width: 210px; }
.brand img { width: 100%; height: auto; }

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 10px 31px;
  border: 2px solid var(--ink);
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease;
}

.button:hover { background: var(--ink); color: #fff; }
.button:focus-visible, .brand:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.button-solid {
  margin-top: 36px;
  min-width: 270px;
  background: var(--ink);
  color: #fff;
}

.button-solid:hover { background: #34312e; }

.hero {
  height: 348px;
  background: #c9c1b5 url("assets/print-first-media-open-book.jpg") center 58% / cover no-repeat;
}

.section { text-align: center; }
.section-warm { background: var(--warm); }

.content {
  width: min(100%, var(--content-wide));
  margin-inline: auto;
}

.about { padding: 104px 29px 112px; }
.publications { padding: 100px 29px 108px; }
.ordering { padding: 96px 29px 104px; }

h1, h2 {
  margin: 0;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(42px, 5vw, 58px); }
h2 { font-size: clamp(37px, 4.4vw, 48px); }

.rule {
  width: var(--rule);
  height: 1px;
  margin: 24px auto 34px;
  background: var(--ink);
}

.rule-short { width: 48px; margin-top: 20px; margin-bottom: 32px; }

p { margin: 0; }
.about p + p { margin-top: 24px; }
.about p { max-width: 780px; margin-inline: auto; }

.books {
  width: 116px;
  margin: 30px auto 8px;
}

.coming-soon {
  margin-top: 0;
  font-size: 17px;
  letter-spacing: 0.38em;
}

.availability { margin-top: 18px; }

footer {
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 12px 24px;
  background: #050505;
  color: #fff;
  font-size: 16px;
}

@media (max-width: 700px) {
  body { font-size: 18px; }
  .site-header { height: auto; }
  .header-inner {
    width: min(100% - 32px, 620px);
    min-height: 116px;
    gap: 20px;
  }
  .brand { width: 155px; flex: 0 1 155px; }
  .button-outline { min-height: 46px; padding: 9px 14px; font-size: 16px; white-space: nowrap; }
  .hero { height: 310px; background-position: 55% center; }
  .content { width: min(100%, 600px); }
  .about { padding: 72px 23px 78px; }
  .publications { padding: 70px 23px 74px; }
  .ordering { padding: 68px 23px 76px; }
  h1 { font-size: clamp(34px, 9vw, 44px); }
  h2 { font-size: clamp(32px, 8.5vw, 42px); }
  .desktop-break { display: none; }
  .about p + p { margin-top: 24px; }
  .rule { margin-top: 22px; margin-bottom: 30px; }
  .books { margin-top: 28px; }
  .availability { margin-top: 16px; }
  .button-solid { margin-top: 36px; }
}

@media (max-width: 390px) {
  .header-inner { min-height: 105px; gap: 12px; }
  .brand { width: 128px; flex-basis: 128px; }
  .button-outline { padding-inline: 10px; gap: 8px; font-size: 14px; }
  .hero { height: 270px; }
  .content { width: min(100%, 360px); }
  .about, .publications, .ordering { padding-inline: 16px; }
  .about { padding-block: 62px 68px; }
  .publications { padding-block: 60px 64px; }
  .ordering { padding-block: 58px 66px; }
  h1 { font-size: 34px; }
  h2 { font-size: 32px; }
  .coming-soon { font-size: 14px; letter-spacing: 0.28em; }
  .button-solid { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
