/* ============================================================
   The Presidential Dickerbook — site styles
   Colors and fonts are matched to the book's cover and pages.
   ============================================================ */

:root {
  --sky: #8cc3ea;
  --sky-deep: #5ba3dc;
  --red: #b5202e;
  --red-dark: #8c1722;
  --cream: #f7f1cf;
  --gold: #e8e1a3;
  --yellow: #ffe94a;
  --ink: #1e1e24;
  --navy: #1d2a4a;

  /* Page colors from the book, one per era */
  --page-green: #dfe9cf;
  --page-yellow: #f6efc8;
  --page-blue: #d4e4f1;
  --page-pink: #f3d3d5;

  --title-font: "Ultra", "Clarendon", Georgia, serif;
  --logo-font: "Titan One", "Cooper Black", sans-serif;
  --body-font: "Source Sans 3", "Myriad Pro", system-ui, sans-serif;
  --page: var(--page-blue);
}

.theme-green  { --page: var(--page-green); }
.theme-yellow { --page: var(--page-yellow); }
.theme-blue   { --page: var(--page-blue); }
.theme-pink   { --page: var(--page-pink); }

* { box-sizing: border-box; }

html { background: var(--sky-deep); }

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.25) 0 2px, transparent 3px) 0 0 / 90px 90px,
    linear-gradient(180deg, #a9d4f2 0%, var(--sky) 40%, var(--sky-deep) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }

/* ---------- Header ---------- */
.site-header { position: relative; text-align: center; padding: 3.5rem 1rem 0; }
.stripes { position: absolute; left: 0; width: 100%; height: 70px; display: block; }
.stripes-top { top: 0; }

.logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; position: relative; }
.logo-tagline {
  font-family: var(--title-font);
  font-size: clamp(.6rem, 1.6vw, .9rem);
  color: var(--navy);
  background: var(--cream);
  border: 2px solid #8a8455;
  padding: .15rem .8rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.logo-the {
  font-family: var(--title-font);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 6vw, 3.4rem);
  line-height: 1.1;
  color: var(--gold);
  -webkit-text-stroke: 1.5px #2b2a1e;
  text-shadow: 3px 3px 0 #2b2a1e;
  letter-spacing: .02em;
  margin-top: .3rem;
}
.logo-dicker {
  font-family: var(--logo-font);
  text-transform: uppercase;
  font-size: clamp(2.4rem, 10vw, 5.5rem);
  line-height: 1;
  color: var(--yellow);
  background: linear-gradient(180deg, #fffbd0 0%, var(--yellow) 45%, #f2c200 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(3px 4px 0 #2b2a1e);
  transform: rotate(-2deg);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin: 1.5rem auto 0;
  max-width: 900px;
}
.site-nav a {
  font-family: var(--title-font);
  font-size: .95rem;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--red);
  padding: .45rem 1rem;
  border: 2px solid #fff;
  box-shadow: 3px 3px 0 rgba(0,0,0,.25);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--navy); color: var(--yellow); }

/* ---------- Main content ---------- */
.site-main { flex: 1; width: 100%; max-width: 1080px; margin: 2rem auto; padding: 0 1rem; }

.panel {
  background: var(--page);
  border: 6px solid var(--cream);
  outline: 2px solid #9a9466;
  box-shadow: 8px 8px 0 rgba(0,0,0,.2);
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

h1, h2, h3, .section-title, .page-title {
  font-family: var(--title-font);
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .02em;
  color: var(--ink);
}
.page-title {
  text-align: center;
  font-size: clamp(2rem, 6vw, 3rem);
  color: var(--gold);
  -webkit-text-stroke: 1.5px #2b2a1e;
  text-shadow: 3px 3px 0 #2b2a1e;
  margin: 0 0 1.5rem;
}
.prose h2 { font-size: 1.5rem; margin: 2rem 0 .5rem; }
.prose h3 { font-size: 1.15rem; margin: 1.75rem 0 .4rem; }
.prose h2:first-child { margin-top: 0; }
.prose blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,.6);
  font-style: italic;
}
.prose blockquote p { margin: 0; }

.float-right { float: right; width: min(260px, 40%); margin: 0 0 1rem 1.5rem; box-shadow: 5px 5px 0 rgba(0,0,0,.2); }
.center { text-align: center; }

/* ---------- Home hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem; align-items: start; }
.hero-cover { width: 100%; box-shadow: 10px 10px 0 rgba(0,0,0,.25); transform: rotate(-1.5deg); border: 4px solid #fff; }
.hero-text h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-top: 0; }

.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2.5rem 0; }
.quote {
  margin: 0;
  background: var(--red);
  color: #fff;
  padding: 1.5rem;
  border: 4px solid #fff;
  box-shadow: 6px 6px 0 rgba(0,0,0,.2);
  font-size: 1.2rem;
  font-style: italic;
}
.quote p { margin: 0 0 .5rem; }
.quote cite { font-style: normal; font-weight: 700; color: var(--yellow); }

.feature { text-align: center; }
.feature .section-title { font-size: clamp(1.4rem, 4vw, 2.2rem); margin-top: 0; }
.feature img { margin: 1rem auto; border: 4px solid #fff; box-shadow: 6px 6px 0 rgba(0,0,0,.2); }
.feature p { max-width: 640px; margin: 1rem auto; }

/* Click-to-reveal sticker spread */
.reveal { max-width: 797px; margin: 1rem auto; }
.reveal [hidden] { display: none; }
.reveal-cover {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
}
.feature .reveal-cover img, .feature .reveal-image { margin: 0 auto; }
.reveal-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-2deg);
  width: min(85%, 460px);
  font-family: var(--title-font);
  text-transform: uppercase;
  font-size: clamp(1rem, 2.6vw, 1.5rem);
  line-height: 1.25;
  color: var(--navy);
  background: var(--yellow);
  border: 3px solid var(--navy);
  box-shadow: 5px 5px 0 var(--navy);
  padding: 1rem 1.25rem;
  transition: transform .1s;
}
.reveal-cover:hover .reveal-text, .reveal-cover:focus-visible .reveal-text { transform: translate(-50%, -50%) rotate(-2deg) scale(1.04); }

/* ---------- Buttons ---------- */
.buy-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; align-items: center; }
.buy-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--title-font);
  text-transform: uppercase;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--navy);
  background: var(--yellow);
  border: 3px solid var(--navy);
  padding: .7rem 1.4rem;
  box-shadow: 4px 4px 0 var(--navy);
  transition: transform .1s, box-shadow .1s;
}
.buy-button small { font-family: var(--body-font); font-size: .85rem; text-transform: none; font-weight: 600; }
.buy-button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--navy); color: var(--navy); }
.buy-button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--navy); }
.buy-button.is-soon { opacity: .6; cursor: default; }
.buy-button.is-soon:hover { transform: none; box-shadow: 4px 4px 0 var(--navy); }
.text-button { font-family: var(--title-font); text-transform: uppercase; text-decoration: none; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.gallery figure { margin: 0; background: #fff; padding: .5rem; box-shadow: 6px 6px 0 rgba(0,0,0,.2); }
.gallery figure:nth-child(odd) { transform: rotate(-1deg); }
.gallery figure:nth-child(even) { transform: rotate(1deg); }
.gallery figcaption { font-size: .9rem; font-weight: 600; padding: .5rem .25rem 0; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--navy); color: #dfe6f3; text-align: center; padding: 5rem 1rem 2rem; margin-top: 2rem; }
.site-footer .stripes { top: -1px; transform: scaleY(-1); }
.site-footer a { color: var(--yellow); }
.site-footer p { margin: .3rem 0; }
.site-footer .fine { font-size: .85rem; opacity: .7; }

/* ---------- Phones ---------- */
@media (max-width: 720px) {
  .hero, .quotes { grid-template-columns: 1fr; }
  .hero-cover { max-width: 320px; margin: 0 auto; }
  .float-right { float: none; margin: 0 auto 1rem; }
  .buy-button { width: 100%; }
  .reveal-text { font-size: .8rem; padding: .5rem .75rem; width: 80%; border-width: 2px; box-shadow: 3px 3px 0 var(--navy); }
}
