/* Desert of Dreams final review candidate */

:root {
  --dod-ivory: #f7f2ea;
  --dod-parchment: #fcf9f4;
  --dod-ink: #2f2a25;
  --dod-purple: #5d3a61;
  --dod-purple-panel: #6b526d;
  --dod-line: rgba(93, 58, 97, 0.38);

  --dod-sway: #6d3f73;
  --dod-dare: #1f5f8a;
  --dod-reach: #4f6f49;
  --dod-embrace: #b8643d;
  --dod-allow: #8a633b;
  --dod-mend: #98506d;

  --header-accent: #2f2a25;
  --footer-charcoal: #37322f;
  --footer-ivory: #f7f2ea;
  --footer-muted: #d8d1c8;
}

html {
  scroll-behavior: smooth;
}

/* Header refinements */

.refined-header .site-logo {
  color: var(--dod-ink);
}

.refined-header .nav-links a {
  color: #2f2a25;
}

.refined-header .nav-links a:hover,
.refined-header .nav-links a:focus {
  color: var(--header-accent);
}

/* Hero */

.dod-hero {
  min-height: 72vh;
  max-height: 760px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--dod-ivory);
}

.dod-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.dod-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(247, 242, 234, 0.08), rgba(247, 242, 234, 0.16) 58%, rgba(247, 242, 234, 0.82) 100%),
    radial-gradient(circle at center, rgba(252, 249, 244, 0.42), rgba(252, 249, 244, 0.08) 48%, rgba(93, 58, 97, 0.16) 100%);
}

.dod-hero-content {
  position: relative;
  z-index: 2;
  width: min(980px, calc(100% - 40px));
  padding: 104px 20px 82px;
}

.dod-kicker {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--dod-purple);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  margin: 0 0 22px;
}

.dod-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--dod-purple);
  font-size: clamp(52px, 6.2vw, 86px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: none;
  margin: 0;
}

.dod-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 340px;
  margin: 28px auto 22px;
}

.dod-divider span {
  height: 1px;
  width: 132px;
  background: var(--dod-line);
}

.dod-divider i {
  width: 8px;
  height: 8px;
  border: 1px solid var(--dod-line);
  transform: rotate(45deg);
  display: inline-block;
}

.dod-divider.small {
  margin: 0 auto 18px;
  max-width: 280px;
}

.dod-divider.small span {
  width: 108px;
}

.dod-hero-subtitle {
  font-family: Georgia, "Times New Roman", serif;
  color: #50304c;
  font-size: clamp(20px, 2.3vw, 30px);
  line-height: 1.36;
  font-style: italic;
  max-width: 720px;
  margin: 0 auto;
}

/* Series intro */

.dod-series-intro {
  background: linear-gradient(to bottom, rgba(247, 242, 234, 0.96), var(--dod-parchment) 24%), var(--dod-parchment);
  padding: 80px 24px 54px;
}

.dod-intro-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.dod-intro-inner h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--dod-purple);
  font-size: clamp(34px, 3.8vw, 50px);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  margin: 0 0 24px;
}

.dod-intro-inner p {
  max-width: 820px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.76;
  color: var(--dod-ink);
}

/* Book grid */

.dod-books-panel {
  background: var(--dod-ivory);
  padding: 54px 24px 82px;
}

.dod-books-grid {
  max-width: 1260px;
  margin: 0 auto;
  background: var(--dod-parchment);
  border: 1px solid rgba(47, 42, 37, 0.08);
  box-shadow: 0 24px 60px rgba(47, 42, 37, 0.10);
  padding: clamp(42px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(38px, 4vw, 72px);
  row-gap: 78px;
}

.dod-book-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dod-book-card img {
  width: min(245px, 82%);
  aspect-ratio: 5.5 / 8.5;
  object-fit: cover;
  margin: 0 auto 28px;
  box-shadow: 0 18px 34px rgba(47, 42, 37, 0.16);
}

.dod-book-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 1.8vw, 27px);
  font-weight: 400;
  line-height: 1.16;
  margin: 0 0 9px;
}

.sway h3 { color: var(--dod-sway); }
.dare h3 { color: var(--dod-dare); }
.reach h3 { color: var(--dod-reach); }
.embrace h3 { color: var(--dod-embrace); }
.allow h3 { color: var(--dod-allow); }
.mend h3 { color: var(--dod-mend); }

.dod-book-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: rgba(47, 42, 37, 0.72);
}

.dod-book-card > p:not(.dod-book-label) {
  font-size: 14.5px;
  line-height: 1.66;
  max-width: 270px;
  margin: 0 auto 24px;
  color: var(--dod-ink);
}

.dod-book-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  min-height: 39px;
  padding: 10px 19px;
  color: #fff;
  border-radius: 9px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.dod-book-button:hover,
.dod-book-button:focus {
  transform: translateY(-2px);
  opacity: 0.94;
}

.sway .dod-book-button { background: var(--dod-sway); }
.dare .dod-book-button { background: var(--dod-dare); }
.reach .dod-book-button { background: var(--dod-reach); }
.embrace .dod-book-button { background: var(--dod-embrace); }
.allow .dod-book-button { background: var(--dod-allow); }
.mend .dod-book-button { background: var(--dod-mend); }

.dod-book-button.inactive {
  cursor: default;
}

.dod-book-button.inactive:hover {
  transform: none;
  opacity: 1;
}

/* Stay Connected */

.stay-connected-panel {
  background: var(--dod-purple-panel);
  color: var(--footer-ivory);
  padding: 42px 24px 46px;
}

.stay-connected-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 42px;
}

.stay-connected-panel h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--footer-ivory);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 8px;
}

.stay-connected-panel p {
  margin: 0;
  color: rgba(247, 242, 234, 0.88);
  font-size: 15.5px;
  line-height: 1.58;
  max-width: 680px;
}

.stay-connected-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 22px;
  background: var(--footer-ivory);
  color: #4a344b;
  border-radius: 9px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(0,0,0,0.14);
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}

.stay-connected-button:hover,
.stay-connected-button:focus {
  transform: translateY(-2px);
  background: #ffffff;
}

/* Refined Footer */

.refined-footer {
  background: var(--footer-charcoal);
  color: var(--footer-ivory);
  padding: 42px 24px 22px;
  border-top: 1px solid rgba(247, 242, 234, 0.14);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.refined-footer .footer-brand {
  text-align: center;
  margin-bottom: 31px;
}

.refined-footer .footer-name {
  color: var(--footer-ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 400;
  text-decoration: none;
}

.refined-footer .footer-brand p {
  color: rgba(247, 242, 234, 0.80);
  margin: 8px 0 18px;
  font-size: 15px;
}

.refined-social-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 11px;
}

.refined-social-icons a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(216, 209, 200, 0.42);
  color: var(--footer-muted);
  background: rgba(255,255,255,0.02);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.refined-social-icons a:hover,
.refined-social-icons a:focus {
  color: #ffffff;
  border-color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.refined-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 42px;
  max-width: 820px;
  margin: 0 auto 30px;
  text-align: left;
}

.refined-footer .footer-grid h3 {
  color: var(--footer-ivory);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.refined-footer .footer-grid a {
  color: rgba(247, 242, 234, 0.78);
  display: block;
  text-decoration: none;
  margin: 8px 0;
  font-size: 14px;
}

.refined-footer .footer-grid a:hover,
.refined-footer .footer-grid a:focus {
  color: #ffffff;
}

.refined-footer .footer-bottom {
  border-top: 1px solid rgba(247, 242, 234, 0.12);
  padding-top: 16px;
  color: rgba(247, 242, 234, 0.58);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.refined-footer .footer-bottom p {
  margin: 0;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(55, 50, 47, 0.88);
  color: #f7f2ea;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
  z-index: 30;
}

.back-to-top:hover,
.back-to-top:focus {
  background: #37322f;
}

@media (max-width: 1040px) {
  .dod-books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stay-connected-inner {
    grid-template-columns: 1fr;
    text-align: center;
    row-gap: 22px;
  }

  .stay-connected-panel p {
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .dod-hero {
    min-height: 620px;
  }

  .dod-hero-content {
    padding: 86px 18px 66px;
  }

  .dod-books-grid {
    grid-template-columns: 1fr;
    padding: 42px 24px;
  }

  .dod-book-card img {
    width: min(245px, 78%);
  }

  .stay-connected-panel {
    padding: 36px 20px 38px;
  }

  .refined-footer .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .refined-footer .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .back-to-top {
    width: 38px;
    height: 38px;
    right: 14px;
    bottom: 14px;
  }
}


/* Review v5 refinements */
.dod-line-heading{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:16px;
  margin:0 0 22px;
}
.dod-line-heading span{
  width:112px;
  height:1px;
  background:var(--dod-line);
}
.dod-line-heading em{
  font-style:normal;
  font-size:clamp(25px,2.4vw,32px);
  line-height:1.1;
}
.dod-intro-inner h2.dod-line-heading{
  font-size:inherit;
}
.dod-content-note-inline{
  max-width:1260px;
  margin:18px auto 0;
  padding:0 clamp(10px,2vw,18px);
  color:var(--dod-ink);
}
.dod-content-note-inline details{
  max-width:900px;
  margin:0 auto;
}
.dod-content-note-inline summary{
  cursor:pointer;
  display:inline-block;
  font-size:12px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:rgba(47,42,37,.72);
}
.dod-content-note-inline summary:focus-visible{
  outline:3px solid rgba(47,42,37,.45);
  outline-offset:4px;
}
.dod-content-note-inline p{
  font-size:14px;
  line-height:1.65;
  margin:14px auto 0;
  max-width:850px;
}
@media(max-width:720px){
  .dod-line-heading span{width:62px}
}


/* Review v6: clickable covers and subtle content-note disclosure */
.dod-cover-link{display:block;text-decoration:none;color:inherit}
.dod-cover-link img{transition:transform .2s ease, box-shadow .2s ease}
.dod-cover-link:hover img,.dod-cover-link:focus img{transform:translateY(-2px)}
.dod-content-note-inline summary{display:list-item;list-style-position:inside;width:max-content;margin:0 auto}
.dod-content-note-inline details[open] summary{margin-bottom:8px}
