/* Ellie Doyle author site — polished styles (Design Desk, 2026-11-27)
   Palette sampled from the final Decon C cover. Swap values in :root without rewriting layout.
   Contrast: navy on sunflower 10.6:1, navy on cream 14.6:1, navy on persimmon 5.1:1,
   cream on navy 14.6:1, sunflower on navy 10.6:1. Persimmon/teal are decoration only on light grounds. */

:root {
  --sunflower: #FFD23F;
  --ink-navy: #14213D;
  --navy-deep: #0F1A31;
  --cream: #FFF4D6;
  --paper: #FFFBF0;
  --white: #FFFFFF;
  --persimmon: #FF5A36;
  --aqua: #5CCFC8;
  --teal: #0E9594;
  --line: rgba(20, 33, 61, 0.14);

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text: var(--ink-navy);
  --body-size: 18px;
  --body-lh: 1.65;
  --max-width: 1160px;
  --pad-x: clamp(1.25rem, 5vw, 3rem);

  /* 8px spacing scale */
  --s1: 0.5rem;  --s2: 1rem;   --s3: 1.5rem; --s4: 2rem;
  --s5: 3rem;    --s6: 4rem;   --s7: 6rem;
  --section-y: clamp(4rem, 9vw, 7rem);
  --radius: 6px;
  --radius-lg: 14px;
  --shadow-card: 0 1px 2px rgba(20,33,61,.05), 0 8px 24px -12px rgba(20,33,61,.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: var(--body-lh);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink-navy); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink-navy); color: var(--sunflower);
  padding: var(--s2); z-index: 10;
}
.skip-link:focus { left: var(--s2); top: var(--s2); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 56px;
  padding: 0.95rem 1.75rem 0.85rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink-navy);
  color: var(--sunflower);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-primary {
  box-shadow: 0 10px 22px -10px rgba(20,33,61,.55);
}
.btn-primary::after {
  content: "";
  width: 0.62em; height: 0.62em;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: rotate(45deg);
  margin-left: 0.1em;
  margin-top: -0.08em;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px -10px rgba(20,33,61,.6);
  background: var(--navy-deep);
}

.btn[disabled], .btn.is-disabled { cursor: not-allowed; }

/* On the navy band: quiet, clearly inactive */
.btn-invert,
.btn-invert[disabled],
.btn-invert.is-disabled {
  background: transparent;
  color: var(--sunflower);
  box-shadow: inset 0 0 0 2px rgba(255,210,63,.55);
  font-size: 20px;
}

/* ----- Header ----- */
.site-header {
  background: var(--sunflower);
  color: var(--ink-navy);
  border-bottom: 1px solid rgba(20,33,61,.12);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-height: 72px;
}
.logo-slot:empty { display: none; }
.logo-slot:not(:empty) { display: flex; align-items: center; flex: 0 0 auto; }
.logo-slot img { height: 36px; width: auto; }

.wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 400;
}

.header-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.1rem;
  border-radius: 999px;
  border: 2px solid var(--ink-navy);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.header-cta:hover { background: var(--ink-navy); color: var(--sunflower); }

/* ----- Hero ----- */
.hero {
  position: relative;
  background: var(--sunflower);
  padding: var(--s5) 0 var(--s6);
  overflow: hidden;
}
/* thin persimmon + navy base, echoing the cover's author band */
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 10px;
  background: linear-gradient(var(--persimmon) 0 4px, var(--ink-navy) 4px 100%);
}

.hero-inner {
  display: grid;
  gap: var(--s5);
  align-items: center;
}

.hero-cover { justify-self: center; width: min(62vw, 280px); }

.cover-stage { position: relative; }
/* flat "sun" disc behind the cover, echoing the cover art */
.cover-stage::before {
  content: "";
  position: absolute;
  width: 118%; aspect-ratio: 1;
  left: 50%; top: 42%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--cream);
  opacity: .75;
  z-index: 0;
}
.cover-stage picture, .cover-stage img {
  position: relative; z-index: 1;
  width: 100%;
  border-radius: 3px 6px 6px 3px;
}
.cover-stage img {
  box-shadow:
    0 1px 1px rgba(20,33,61,.10),
    0 6px 12px -2px rgba(20,33,61,.18),
    0 28px 50px -18px rgba(20,33,61,.45);
}
/* subtle spine highlight */
.cover-stage picture::after {
  content: "";
  position: absolute; z-index: 2;
  top: 0; bottom: 0; left: 0; width: 10px;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(90deg, rgba(0,0,0,.14), rgba(255,255,255,.12) 45%, rgba(0,0,0,0));
  pointer-events: none;
}

.hero-copy { text-align: left; min-width: 0; }

.hero h1 {
  margin: 0 0 var(--s3);
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 6.25rem); /* 48–100px */
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  font-weight: 400;
  max-width: 9ch;
}

.subtitle {
  display: inline-block;
  margin: 0 0 var(--s4);
  padding: 0.45rem 0.9rem 0.5rem;
  background: var(--persimmon);
  color: var(--ink-navy);
  border-radius: var(--radius);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.3;
  font-weight: 600;
}

.prices {
  list-style: none;
  margin: 0 0 var(--s4);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) 0;
}
.prices li {
  display: grid;
  gap: 0.15rem;
  padding-right: var(--s3);
  margin-right: var(--s3);
  border-right: 1px solid rgba(20,33,61,.22);
}
.prices li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.prices .label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.prices .amount {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.placeholder-price {
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  align-self: center;
  padding: 0.1rem 0.45rem;
  border: 1.5px dashed var(--ink-navy);
  border-radius: 4px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s4);
}

.gumroad-link { margin: 0; font-size: 16px; line-height: 1.45; }
.gumroad-link a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--ink-navy);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}
.gumroad-meta { display: block; font-size: 15px; margin-top: -0.4rem; }

@media (min-width: 700px) {
  .hero { padding: var(--s6) 0 calc(var(--s6) + 10px); }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-areas: "copy cover";
    gap: var(--s5);
  }
  .hero-copy { grid-area: copy; }
  .hero-cover { grid-area: cover; width: 100%; justify-self: end; }
}
@media (min-width: 960px) {
  .hero { padding: var(--s7) 0 calc(var(--s7) + 10px); }
  .hero-inner { grid-template-columns: minmax(0, 1fr) 400px; gap: var(--s7); }
}

/* ----- Body ----- */
.page-body {
  background: var(--cream);
  padding: var(--section-y) 0;
}
.section + .section { margin-top: var(--section-y); }

h2 {
  margin: 0 0 var(--s4);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem); /* 32–48px */
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 400;
}
h2::after {
  content: "";
  display: block;
  width: 56px; height: 5px;
  margin-top: var(--s2);
  background: var(--persimmon);
  border-radius: 3px;
}

/* What it is: four numbered cards */
.benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s2);
  counter-reset: benefit;
}
.benefits li {
  counter-increment: benefit;
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--s4) var(--s3) var(--s3);
  font-size: 18px;
  line-height: 1.55;
  box-shadow: var(--shadow-card);
}
.benefits li::before {
  content: counter(benefit, decimal-leading-zero);
  display: block;
  margin-bottom: var(--s1);
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--teal);
}
@media (min-width: 700px) {
  .benefits { grid-template-columns: 1fr 1fr; gap: var(--s3); }
  .benefits li { padding: var(--s4); font-size: 19px; }
}
@media (min-width: 1040px) {
  .intro { display: grid; grid-template-columns: 260px 1fr; gap: var(--s6); align-items: start; }
  .intro h2 { position: sticky; top: var(--s4); }
}

/* Description: article + aside */
.description { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 960px) {
  .description { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s6); }
  .desc-aside { position: sticky; top: var(--s4); }
}

.desc-main { max-width: 42rem; }
.desc-main h3 {
  margin: 0 0 var(--s3);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.desc-main p { margin: 0 0 var(--s3); }
.desc-main .lede {
  font-size: clamp(20px, 2.2vw, 23px);
  line-height: 1.5;
  font-weight: 500;
}

.tour {
  margin: var(--s4) 0;
  padding: var(--s4);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.tour-title {
  margin: 0 0 var(--s2) !important;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tour-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem var(--s4);
  font-size: 17px;
  line-height: 1.45;
}
.tour-list li { position: relative; padding-left: 1.75rem; }
.tour-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.3em;
  width: 1.05rem; height: 1.05rem;
  border-radius: 50%;
  background: var(--aqua);
}
.tour-list li::after {
  content: "";
  position: absolute; left: 0.36rem; top: 0.5em;
  width: 0.3rem; height: 0.52rem;
  border-right: 2px solid var(--ink-navy);
  border-bottom: 2px solid var(--ink-navy);
  transform: rotate(45deg);
}
@media (min-width: 700px) { .tour-list { grid-template-columns: 1fr 1fr; } }

.btn-inline { margin-top: var(--s2); }

.author-card {
  background: var(--ink-navy);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--s4);
  font-size: 17px;
  line-height: 1.6;
}
.author-card h3 {
  margin: 0 0 var(--s2);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sunflower);
}
.author-card p { margin: 0 0 var(--s2); }
.author-card .ai-note {
  margin: var(--s3) 0 0;
  padding-top: var(--s2);
  border-top: 1px solid rgba(255,244,214,.2);
  font-size: 15px;
}

.series-note {
  margin: var(--s2) 0 0;
  padding: var(--s3);
  background: var(--sunflower);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.5;
}

/* Details */
.details { margin-top: var(--section-y); }
.details-grid {
  display: grid;
  gap: var(--s3) var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.5;
}
.details p { margin: 0; }
.details strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.details .colon { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.details .ai-line { font-size: 15px; }
@media (min-width: 700px) {
  .details-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .details .span-all { grid-column: auto; }
  .details .ai-line { grid-column: 1 / -1; }
}

/* ----- Email placeholder (navy band) ----- */
.signup {
  background: var(--ink-navy);
  color: var(--cream);
  padding: var(--section-y) 0;
}
.signup-inner { display: grid; gap: var(--s4); align-items: end; }
@media (min-width: 960px) {
  .signup-inner { grid-template-columns: 1.1fr 1fr; gap: var(--s6); }
}
.signup h2 { color: var(--sunflower); margin-bottom: var(--s3); }
.signup p, .signup label { color: var(--cream); }
.signup a { color: var(--sunflower); }

.flag {
  display: inline-block;
  margin: 0 0 var(--s3);
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(255,244,214,.35);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.signup-lead { margin: 0; max-width: 36rem; font-size: 17px; }

.signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  align-items: end;
}
.field { flex: 1 1 15rem; display: grid; gap: var(--s1); }
.field label { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; }
.field input {
  width: 100%;
  min-height: 56px;
  background: var(--cream);
  color: var(--ink-navy);
  border: 0;
  border-radius: var(--radius);
  padding: 0 1.1rem;
  font-family: var(--font-body);
  font-size: 17px;
}
.field input::placeholder { color: #55607A; }
.field input:disabled { opacity: 1; cursor: not-allowed; }
.signup .btn { flex: 0 0 auto; }

/* ----- Footer ----- */
.site-footer {
  background: var(--navy-deep);
  color: var(--cream);
  padding: var(--s4) 0 var(--s5);
  font-size: 15px;
  line-height: 1.5;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s4);
  align-items: center;
  justify-content: space-between;
}
.footer-mark { margin: 0; font-weight: 600; }
.site-footer a {
  color: var(--cream);
  text-decoration-color: rgba(255,90,54,.9);
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px;
}
.site-footer a:hover { color: var(--sunflower); }
.footer-links, .social {
  display: flex; flex-wrap: wrap; gap: 0 var(--s3);
  margin: 0; padding: 0; list-style: none;
}
.footer-links { margin-right: auto; }
.placeholder-inline { font-style: normal; opacity: .85; margin-left: .25em; }
.privacy-note { margin: var(--s2) 0 0; padding-top: var(--s3); border-top: 1px solid rgba(255,244,214,.14); font-size: 14px; color: rgba(255,244,214,.85); }

@media (max-width: 699px) {
  .hero h1 { font-size: clamp(2.5rem, 13.8vw, 5rem); max-width: none; }
  .subtitle { font-size: 15px; padding: 0.4rem 0.7rem 0.45rem; }
  .prices { display: grid; gap: 0; border-top: 1px solid rgba(20,33,61,.22); }
  .prices li, .prices li:last-child {
    display: flex; justify-content: space-between; align-items: center;
    margin: 0; padding: 0.6rem 0; border-right: 0;
    border-bottom: 1px solid rgba(20,33,61,.22);
  }
  .prices .amount { font-size: 19px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { margin-right: 0; }
  .header-cta { padding: 0 0.9rem; font-size: 14px; }
  .wordmark { font-size: 21px; letter-spacing: 0.2em; }
  .btn-primary { width: 100%; }
  .hero-actions { gap: var(--s2); }
  .prices li { padding-right: var(--s2); margin-right: var(--s2); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .header-cta { transition: none; }
  .btn-primary:hover { transform: none; }
}

/* Wordmark as a home link (privacy page) */
.wordmark a {
  color: inherit;
  text-decoration: none;
}
.wordmark a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* Privacy page */
.legal {
  background: var(--paper);
  color: var(--ink-navy);
  padding: var(--section-y) 0;
  min-height: 50vh;
}
.legal-inner { max-width: 42rem; }
.legal h1 {
  margin: 0 0 var(--s4);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 400;
}
.legal h1::after {
  content: "";
  display: block;
  width: 56px; height: 5px;
  margin-top: var(--s2);
  background: var(--persimmon);
  border-radius: 3px;
}
.legal p { margin: 0 0 var(--s3); max-width: 40rem; }
.legal p:last-child { margin-bottom: 0; }
.footer-links a[aria-current="page"] { text-decoration: underline; }
