/* ==========================================================
   A.E. Wasp — aewaspwrites.com
   One stylesheet for the whole site. Change a colour here and
   it changes everywhere.
   ========================================================== */

:root {
  --white: #FFFFFF;
  --ink: #2A1438;        /* body text, dark plum */
  --pink: #C4006B;       /* main buttons, links on hover */
  --neon: #D1006F;       /* the script tagline only */
  --violet: #5B2A9E;     /* second buttons, small accents */
  --blush: #FFF0F7;      /* soft pink panels */
  --lilac: #F4EEFB;      /* soft violet panels */
  --line: #E9DDF3;       /* thin dividers */
  --sun-top: #FFB347;    /* sunset, decoration only */
  --sun-mid: #FF5C8A;

  --script: 'Yellowtail', 'Brush Script MT', cursive;
  --display: 'Josefin Sans', 'Century Gothic', 'Trebuchet MS', sans-serif;
  --body: 'Mulish', 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--pink); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 10; }

/* ---------- Header ---------- */
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 24px; padding-top: 22px; padding-bottom: 22px;
}
.wordmark {
  font-family: var(--display); font-weight: 300; font-size: 26px;
  letter-spacing: 0.22em; text-decoration: none; color: var(--ink);
}
.site-nav { display: flex; gap: 6px 28px; flex-wrap: wrap; }
.site-nav a {
  font-weight: 600; font-size: 17px; text-decoration: none;
  padding: 10px 0; border-bottom: 2px solid transparent;
}
.site-nav a[aria-current="page"] { border-bottom-color: var(--pink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 28px; border-radius: 999px;
  background: var(--pink); color: var(--white); border: 2px solid var(--pink);
  font-family: var(--body); font-weight: 700; font-size: 16px;
  text-decoration: none; text-align: center;
}
.btn:hover { background: #A1005A; border-color: #A1005A; color: var(--white); }
.btn-outline, .btn-direct { background: transparent; color: var(--violet); border-color: var(--violet); }
.btn-outline:hover, .btn-direct:hover { background: var(--violet); border-color: var(--violet); color: var(--white); }
.btn-violet { background: var(--violet); border-color: var(--violet); }
.btn-violet:hover { background: #45207A; border-color: #45207A; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* A "Buy direct" button stays hidden until its Payhip link is pasted in. */
.btn-direct[href="PASTE-PAYHIP-LINK-HERE"] { display: none; }

/* ---------- Home: hero ---------- */
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center;
  gap: 48px; padding-top: 40px; padding-bottom: 56px;
}
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero h1 {
  font-family: var(--script); font-weight: 400; color: var(--neon);
  font-size: clamp(56px, 8.2vw, 96px); line-height: 0.98;
}
.hero-lede { font-size: 20px; max-width: 30em; }
.start-here { font-size: 17px; max-width: 32em; }
.start-here strong { font-family: var(--display); font-weight: 600; font-size: 20px; display: block; margin-bottom: 4px; }
.start-here em { display: block; color: var(--violet); font-weight: 600; margin-bottom: 6px; }

.sun { position: relative; width: min(100%, 460px); aspect-ratio: 46 / 50; margin: 0 auto; }
.sun::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: 0; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(180deg, var(--sun-top) 0%, var(--sun-mid) 45%, #E6007E 70%, #6B2FB3 100%);
}
.sun::after {
  content: ""; position: absolute; left: 0; right: 0; top: 48%; height: 40%;
  background: repeating-linear-gradient(180deg, transparent 0 22px, var(--white) 22px 32px);
}
.sun a { position: absolute; left: 21%; right: 21%; top: 11%; z-index: 1; display: block; }
.sun img { width: 100%; border-radius: 6px; box-shadow: 0 24px 48px rgba(42, 20, 56, 0.28); }

/* ---------- Newsletter band ---------- */
.band { padding: 8px 0; }
.band-inner {
  background: var(--blush); border-radius: 28px; padding: 36px 44px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px;
}
.band-inner h2 { font-family: var(--display); font-weight: 600; font-size: 30px; margin-bottom: 6px; }
.band-inner > div { flex: 1 1 340px; }

/* ---------- Section headings ---------- */
.section { padding: 64px 0; }
.section-title { font-family: var(--display); font-weight: 300; font-size: clamp(32px, 4.5vw, 42px); letter-spacing: 0.03em; margin-bottom: 12px; }
.section-intro { max-width: 40em; margin-bottom: 36px; }

/* ---------- Home: series highlights ---------- */
.series-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.series-tile { text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.series-tile img { width: 200px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; }
.series-tile .name { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.2; }
.series-tile .blurb { font-size: 16px; line-height: 1.5; }
.series-tile .more { font-weight: 700; font-size: 16px; color: var(--pink); text-decoration: underline; text-underline-offset: 4px; }
.more-list { list-style: none; margin: 48px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 40px; }
.more-list a { font-family: var(--display); font-weight: 600; font-size: 20px; }
.more-list span { display: block; font-size: 16px; }

/* ---------- Books page ---------- */
.page-head { padding: 36px 0 8px; }
.page-head h1 { font-family: var(--script); font-weight: 400; color: var(--neon); font-size: clamp(48px, 7vw, 76px); line-height: 1; margin-bottom: 16px; }
.page-head p { max-width: 40em; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding: 0; list-style: none; }
.jump a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--lilac); text-decoration: none; font-weight: 600; font-size: 15px;
}
.jump a:hover { background: var(--violet); color: var(--white); }

.series { padding: 56px 0 8px; scroll-margin-top: 12px; }
.series + .series { border-top: 1px solid var(--line); margin-top: 48px; }
.series h2 { font-family: var(--display); font-weight: 300; font-size: clamp(30px, 4.5vw, 40px); letter-spacing: 0.03em; }
.series-note { margin: 10px 0 36px; max-width: 40em; }

.book-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 48px; }
.book { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: start; }
.book .cover { width: 150px; border-radius: 5px; box-shadow: 0 10px 24px rgba(42, 20, 56, 0.18); }
.cover-missing {
  aspect-ratio: 2 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; text-align: center; background: var(--lilac); border: 1px dashed var(--violet); box-shadow: none !important;
  font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.2; color: var(--violet);
}
.cover-missing span { font-family: var(--body); font-weight: 400; font-size: 12px; }
.book-info { display: flex; flex-direction: column; gap: 8px; }
.book-num { font-size: 14px; font-weight: 700; color: var(--violet); }
.book h3 { font-family: var(--display); font-weight: 600; font-size: 23px; }
.tagline { font-weight: 700; font-style: italic; }
.logline { font-size: 16px; line-height: 1.55; }
.book .buttons { margin-top: 8px; }
.book .btn { min-height: 46px; padding: 0 22px; font-size: 15px; }

/* ---------- Freebies page ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 40px 0 72px; }
.step { border-radius: 28px; padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.step:nth-child(1) { background: var(--blush); }
.step:nth-child(2) { background: var(--lilac); }
.step:nth-child(3) { background: #FFF6EA; }
.step h2 { font-family: var(--display); font-weight: 600; font-size: 26px; }
.step p { font-size: 17px; }
.step .btn { margin-top: auto; }

/* ---------- About page ---------- */
.about { display: grid; grid-template-columns: 300px 1fr; gap: 56px; padding: 32px 0 72px; align-items: start; }
.about .sun { width: 100%; aspect-ratio: 1; }
.about .sun::after { top: 52%; height: 44%; }
.prose { max-width: 36em; display: flex; flex-direction: column; gap: 20px; }
.prose .lead { font-size: 21px; }
.prose .buttons { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 16px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.site-footer nav a { padding: 8px 0; }
.footer-tag { font-family: var(--script); font-size: 26px; color: var(--neon); }

/* ---------- Phones and small tablets ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; padding-top: 20px; }
  .hero-art { order: -1; }
  .sun { width: min(78%, 340px); }
  .series-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .series-tile img { width: 100%; max-width: 200px; }
  .book-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 28px; }
  .about .sun { width: 200px; margin: 0; }
  .more-list { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .wrap { padding: 0 18px; }
  .wordmark { font-size: 22px; }
  .band-inner { padding: 28px 24px; border-radius: 22px; }
  .book { grid-template-columns: 112px 1fr; gap: 16px; }
  .book .cover { width: 112px; }
  .book h3 { font-size: 20px; }
  .book .btn { width: 100%; }
  .hero .btn, .band .btn, .step .btn { width: 100%; }
  .sun::after { background: repeating-linear-gradient(180deg, transparent 0 16px, var(--white) 16px 24px); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
