/* M.P. Molenaar — author website
   Palette and typography follow the agreed restrained literary direction. */

:root {
  color-scheme: light;
  --paper: #f7f6f2;
  --ivory: #e8e6e0;
  --charcoal: #252629;
  --slate: #45474a;
  --stone: #858580;
  --line: #dcdad4;
  --accent: #647789;
  --serif: "EB Garamond", Georgia, serif;
  --sans: "Source Sans 3", Arial, sans-serif;
  --content-width: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--slate);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.page-width {
  width: min(calc(100% - 3rem), var(--content-width));
  margin-inline: auto;
}

.narrow-width { max-width: 760px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 10;
  padding: .6rem .9rem;
  background: var(--charcoal);
  color: white;
}
.skip-link:focus { left: 1rem; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 246, 242, .96);
}

.header-inner {
  width: min(calc(100% - 3rem), var(--content-width));
  min-height: 88px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  color: var(--charcoal);
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 3vw, 2.4rem);
}

.main-nav a {
  color: var(--slate);
  font-size: .92rem;
  text-decoration: none;
}
.main-nav a:hover { color: var(--accent); }

.introduction {
  padding-top: clamp(5rem, 11vw, 9rem);
  padding-bottom: clamp(5rem, 10vw, 8rem);
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 .85rem;
  color: var(--stone);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  color: var(--charcoal);
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.8rem, 6.3vw, 5rem);
  letter-spacing: -.025em;
}

.intro-copy {
  max-width: 610px;
  margin: 1.5rem 0 0;
  font-size: clamp(1.08rem, 2vw, 1.25rem);
}

.section {
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
  border-top: 1px solid var(--line);
}

.section-heading { margin-bottom: 2.5rem; }
.section-heading h2 { font-size: clamp(2.2rem, 4vw, 3rem); }

.book-entry {
  display: grid;
  grid-template-columns: minmax(190px, 290px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}

.book-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 2 / 3;
  padding: 1.2rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 43%, rgba(119, 133, 143, .24), transparent 48%),
    linear-gradient(145deg, #34373a, #17191b 72%);
  color: #e8e6e0;
  box-shadow: 0 12px 28px rgba(37, 38, 41, .13);
}

.book-art::before {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(232, 230, 224, .22);
  content: "";
}

.book-art-inner {
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 15% 5%;
  text-align: center;
}

.book-art-title {
  color: #e8e6e0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: .95;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}

.book-art-author {
  color: #d5d3cd;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: .08em;
}

.cover-note {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: .35rem .5rem;
  background: rgba(0, 0, 0, .55);
  color: #e8e6e0;
  font-size: .65rem;
  text-align: center;
  letter-spacing: .04em;
}

.book-details h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.publication-details {
  margin: .4rem 0 1.8rem;
  color: var(--stone);
  font-size: .88rem;
}

.epigraph {
  margin: 0 0 1.6rem;
  padding: 0 0 0 1.1rem;
  border-left: 2px solid #a9b8c5;
  color: var(--charcoal);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.35;
}

.blurb p { margin: 0 0 1.1rem; }
.blurb p:last-child { margin-bottom: 0; }

.availability {
  display: inline-block;
  margin: 1.8rem 0 0;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
  color: var(--charcoal);
  font-size: .85rem;
  font-weight: 600;
}

.about-section { background: var(--ivory); }
.about-copy p { margin: 0 0 1.15rem; }
.about-copy p:last-child { margin-bottom: 0; }

.contact-section > p { margin: 0 0 .6rem; }
.contact-link {
  display: inline-block;
  margin-top: .2rem;
  color: var(--charcoal);
  font-weight: 600;
}
.social-link { margin-top: 1.2rem !important; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  color: var(--stone);
  font-size: .82rem;
}

.footer-imprint {
  font-family: var(--serif);
  font-size: .98rem;
}

@media (max-width: 680px) {
  body { font-size: 16px; }

  .page-width,
  .header-inner { width: min(calc(100% - 2rem), var(--content-width)); }

  .header-inner {
    min-height: 76px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: .75rem;
    padding-block: .9rem;
  }

  .wordmark { font-size: 1.8rem; }
  .main-nav { gap: 1.5rem; }
  .main-nav a { font-size: .88rem; }

  .introduction {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .book-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .book-art {
    width: min(68%, 250px);
    margin-inline: auto;
  }

  .section-heading { margin-bottom: 1.8rem; }
  .footer-inner { flex-direction: column; gap: .25rem; }
}

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

/* Dark of Night cover artwork */
.book-art {
  width: 100%;
  max-width: 330px;
  height: auto;
  min-height: 0;
  margin: 0 auto;
  display: block;
  background: none;
  border: 0;
  padding: 0;
  aspect-ratio: auto;
}

.book-cover {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}
