/* Let's Not Be A Dick Today — wide layout, purple + green accents */

:root {
  --bg-yellow: #fdee21;
  /* Flat yellow surfaces for readability over the tiling pattern */
  --read-yellow: #fdee21;
  --read-yellow-soft: #fff59d;
  --ink: #1a1a1a;
  --paper: #ffffff;
  --accent-purple: #4a2046;
  --accent-green: #406400;
  --purple-tint: rgba(74, 32, 70, 0.12);
  --green-tint: rgba(64, 100, 0, 0.1);
  --edge: rgba(74, 32, 70, 0.25);
  --radius: 12px;
  --font: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --content-max: min(92vw, 1400px);
}

/* Solid yellow blocks — text pops off the eggplant pattern (no outer border) */
.read-panel {
  background-color: var(--read-yellow);
  padding: clamp(1rem, 2vw, 1.55rem);
  border-radius: var(--radius);
  border: none;
  box-shadow: none;
}

.hero-centered > .read-panel.prose {
  margin-top: 0.35rem;
}

.hero-copy-panel.prose {
  max-width: none;
  text-align: center;
}

.read-panel > .section-heading:first-child {
  margin-top: 0;
}

.read-panel .explain-box {
  background: var(--purple-tint);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--bg-yellow);
  background-image: url("assets/bg-eggplant-pattern.png");
  background-repeat: repeat;
  background-size: auto;
  line-height: 1.55;
  font-size: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent-purple);
  color: var(--paper);
  font-weight: 700;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Full-width sections — white used sparingly (form fields, skip link only) */
.panel {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 3vw, 2rem) 2rem;
}

.hero.panel {
  padding-top: 1.25rem;
}

.hero-inner,
.section-inner,
.cta-inner,
.explain-inner {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

/* Ensure read panels stay yellow even on section/inner wrappers */
.hero-inner.read-panel,
.section-inner.read-panel,
.cta-inner.read-panel,
.explain-inner.read-panel {
  background-color: var(--read-yellow);
}

/* Hero: single centered column — title, buttons, image, prose tied together */
.hero-layout {
  display: block;
}

.hero-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 64rem;
  margin-inline: auto;
}

.hero-feature-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

.hero-copy-panel {
  margin: 0;
}

.book-figure {
  margin: 0;
  text-align: center;
  width: 100%;
}

.book-figure img {
  margin: 0 auto;
  max-height: min(52vh, 380px);
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(74, 32, 70, 0.2);
}

@media (min-width: 860px) {
  .hero-feature-row {
    grid-template-columns: 1fr 1fr;
  }

  .book-figure img {
    max-height: 100%;
  }
}

.hero-wide-buy {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}

.hero-title {
  margin: 0 0 0.35rem;
  font-weight: 900;
  font-size: clamp(1.85rem, 4.5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #000000;
}

.hero-title-line {
  display: block;
  color: #000000;
}

.hero-author {
  margin: 0 0 1.5rem;
  font-weight: 800;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  letter-spacing: 0.16em;
  line-height: 1.2;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent-purple);
  display: inline-block;
  color: #000000;
}

/* Buy buttons: side by side, copy below; compact button width */
.buy-cluster--pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem clamp(1rem, 3vw, 1.75rem);
  margin-bottom: 1.25rem;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .hero-wide-buy .buy-cluster--pair,
  .cta-inner .buy-cluster--pair,
  .expect-section .buy-cluster--pair {
    width: fit-content;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .buy-cluster--pair {
    grid-template-columns: 1fr;
  }
}

.buy-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
  max-width: 13rem;
}

.buy-slot .btn {
  width: 100%;
  max-width: 10.25rem;
  padding: 0.72rem 0.85rem;
  min-height: 44px;
  font-size: 0.68rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.9rem 1.25rem;
  min-height: 50px;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.btn:active {
  transform: translateY(0);
}

/* Amazon = purple, Direct = green */
.btn-amazon {
  background: var(--accent-purple);
  color: var(--paper);
  border-color: var(--accent-purple);
}

.btn-direct {
  background: var(--accent-green);
  color: var(--paper);
  border-color: var(--accent-green);
}

.btn-sample {
  background: transparent;
  color: var(--accent-purple);
  border: 2px solid var(--accent-purple);
}

.btn-sample:hover {
  background: var(--purple-tint);
}

.btn-submit {
  background: var(--accent-green);
  color: var(--paper);
  border-color: var(--accent-green);
  align-self: flex-start;
  max-width: 10.25rem;
  padding: 0.72rem 0.85rem;
  font-size: 0.68rem;
  min-height: 44px;
}

.buy-note {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--ink);
  max-width: 12rem;
  margin-left: auto;
  margin-right: auto;
}

.buy-cluster-repeat {
  margin-top: 0;
  margin-bottom: 0;
}

.tell-why-wrap {
  margin: 0.35rem 0 0.75rem;
  width: 100%;
}

.text-link {
  color: var(--accent-purple);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: underline;
  text-decoration-color: var(--accent-purple);
  text-underline-offset: 3px;
}

.text-link:hover {
  color: #000000;
  text-decoration-color: #000000;
}

.prose {
  margin: 0 0 1.25rem;
  max-width: 52ch;
  width: 100%;
  text-align: left;
  margin-inline: auto;
}

.prose.read-panel p:last-child {
  margin-bottom: 0;
}

.prose p {
  margin: 0 0 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Section headings */
.section-heading {
  margin: 0 0 1.25rem;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--accent-purple);
  padding-bottom: 0.35rem;
  border-bottom: 4px solid var(--accent-purple);
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.subsection-heading {
  margin: 0 0 1rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--accent-purple);
  text-align: center;
}

.subsection-heading.minor {
  margin-top: 1.5rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--accent-purple);
}

/* THE DICKS — horizontal density */
.dicks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .dicks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .dicks-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .dicks-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.dick-card {
  padding: 0.85rem 0.9rem 1rem;
  border-radius: var(--radius);
  border: none;
  border-left: 4px solid var(--accent-purple);
  background: var(--read-yellow-soft);
}

.dick-title {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.25;
  color: var(--accent-purple);
}

.dick-desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
}

/* CTA between sections */
.cta-band .cta-inner {
  padding-block: 1rem;
}

.cta-band {
  padding-block: 0.25rem;
}

.cta-band .buy-cluster {
  margin-bottom: 0;
}

.cta-band .buy-cluster--pair {
  margin-inline: auto;
}

.expect-section .buy-cluster--pair.buy-cluster-spaced {
  margin-inline: auto;
}

.expect-section .read-panel {
  text-align: center;
}

.expect-section .expect-grid {
  text-align: left;
}

/* WHAT TO EXPECT */
.expect-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 700px) {
  .expect-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .expect-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.expect-card {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: none;
  border-top: 3px solid var(--accent-purple);
  background: var(--read-yellow-soft);
}

.expect-card-title {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: var(--accent-purple);
}

.expect-card p {
  margin: 0;
  font-size: 0.88rem;
}

.sample-wrap {
  margin: 2rem 0 1.25rem;
  text-align: center;
}

.sample-wrap .btn-sample {
  max-width: 10.25rem;
  margin-inline: auto;
  padding: 0.72rem 0.85rem;
  font-size: 0.68rem;
  display: inline-flex;
}

.buy-cluster-spaced {
  margin-bottom: 0.75rem;
}

/* Why two buttons */
.explain-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.explain-lead {
  margin: 0 0 0.75rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-purple);
}

.explain-block {
  margin: 0 0 1rem;
  max-width: 38rem;
  margin-inline: auto;
}

.explain-inner p {
  margin: 0 0 1rem;
  max-width: 38rem;
  margin-inline: auto;
}

.explain-box {
  margin: 1.25rem 0;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  border: none;
  border-left: 5px solid var(--accent-purple);
  background: var(--read-yellow);
  max-width: 38rem;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
}

.explain-box strong {
  color: var(--accent-purple);
}

.explain-box p:last-child {
  margin-bottom: 0;
}

.thanks-buy {
  margin-top: 1.25rem;
  font-weight: 700;
  color: var(--accent-purple);
  max-width: 38rem;
}

.anchor-target {
  display: block;
  position: relative;
  top: -12px;
  visibility: hidden;
}

/* Contribute — centered stack on yellow */
.contribute-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contribute-centered .form-feedback {
  width: 100%;
  max-width: min(520px, 100%);
}

.contribute-intro {
  margin: 0 0 1.25rem;
  max-width: 36rem;
  text-align: center;
}

.contribute-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: min(520px, 100%);
  width: 100%;
  text-align: left;
}

.contribute-centered .btn-submit {
  align-self: center;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.label-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-purple);
}

.field input,
.field textarea {
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border: 2px solid rgba(74, 32, 70, 0.35);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 2px var(--purple-tint);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-field {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.84rem;
  line-height: 1.45;
}

.checkbox-field input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--accent-green);
}

.form-feedback {
  margin-bottom: 1rem;
}

.form-fs-success {
  margin: 0 0 0.5rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent-green);
  background: var(--green-tint);
  font-weight: 800;
  color: var(--accent-green);
}

.form-fs-success[hidden] {
  display: none;
}

.form-fs-error:not(:empty) {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent-purple);
  background: var(--purple-tint);
  font-size: 0.88rem;
}

.field-error,
.checkbox-field-error {
  display: block;
  min-height: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-purple);
  margin-top: 0.25rem;
}

.field-error:empty,
.checkbox-field-error:empty {
  display: none;
}

.checkbox-field-error {
  margin-left: 1.55rem;
}

