/*
dm.css — Diane McCurdy Custom Theme
Layout and components. Must never redefine anything colors_and_type.css owns
(--dm-*, --bg, --text, --brand, --cta-*, --font-body). It loads second and
would silently win.
*/

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
  background: var(--bg);
  padding: 8px 16px;
  z-index: 100;
}

/* Header/footer render nothing visible until a logo or menu exists —
   matches the source page's own hide_title state for this launch phase. */
.dm-header__inner,
.dm-footer__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.dm-header__title {
  display: inline-block;
  padding: 24px 0;
  font-size: 18px;
  font-weight: var(--dm-weight-eyebrow);
  color: var(--text);
  text-decoration: none;
}
.dm-footer {
  margin-top: 64px;
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text);
}

/* Coming Soon page */

.dm-coming-soon {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.dm-hero {
  text-align: center;
  margin-bottom: 48px;
}
.dm-hero h2:first-of-type {
  font-size: var(--dm-size-display);
  font-weight: var(--dm-weight-display);
  color: var(--brand);
  margin: 0 0 8px;
}
.dm-hero h2:nth-of-type(2) {
  font-size: var(--dm-size-eyebrow);
  font-weight: var(--dm-weight-eyebrow);
  color: var(--brand);
  margin: 0 0 24px;
}
.dm-hero p {
  font-size: var(--dm-size-lede);
  font-weight: var(--dm-weight-lede);
  line-height: 1.5;
  color: var(--text);
  margin: 0;
}
.dm-hero p em {
  font-style: italic;
}

.dm-book {
  display: grid;
  grid-template-columns: 271px 1fr;
  gap: 40px;
  align-items: start;
}
.dm-book__cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.dm-book__title {
  font-size: var(--dm-size-subhead);
  font-weight: var(--dm-weight-subhead);
  color: var(--text);
  margin: 0 0 16px;
}
.dm-book__details p {
  font-size: var(--dm-size-body);
  font-weight: var(--dm-weight-body);
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 16px;
}
.dm-button {
  display: inline-block;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-weight: var(--dm-weight-display);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--dm-radius-button);
}
.dm-button:hover {
  background: var(--cta-bg-hover);
}

@media (max-width: 640px) {
  .dm-book {
    grid-template-columns: 1fr;
  }
  .dm-hero h2:first-of-type {
    font-size: clamp(2rem, 8vw, 2.8125rem);
  }
  .dm-hero p {
    font-size: clamp(1.375rem, 5vw, 2.1875rem);
  }
}
