/* Alex Hoeft — site styles (v5: matched page-by-page from live ahoeft.com) */

@import url('https://fonts.googleapis.com/css2?family=Ojuju:wght@400;500;600;700&family=Archivo:wght@400;500;600;700&display=swap');

:root {
  --paper: #ffffff;
  --cream: #ffffff;
  --ink: #000000;
  --ink-soft: #3a3a3a;

  --coral: #f2b8b4;      /* accent */
  --amber: #ffcf5a;      /* lightAccent */
  --purple: #b564f7;     /* darkAccent */

  --line: #e8e2d8;
  --max-width: 900px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Ojuju', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.2em; }

a { color: var(--ink); text-decoration: underline; }
a:hover { color: var(--purple); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / nav */
header.site-header {
  border-bottom: none;
  background: transparent;
  position: sticky;
  top: 0;
  z-index: 30;
}

.nav-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: var(--paper);
}

body.page-tint .nav-wrap { background: transparent; }

.brand {
  font-family: 'Ojuju', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--purple); }

nav.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  margin: 0;
  padding: 0;
}

nav.main-nav li { position: relative; }

nav.main-nav a {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
  font-family: 'Archivo', sans-serif;
  text-decoration: none;
}

nav.main-nav a:hover { color: var(--purple); }
nav.main-nav a.active { text-decoration: underline; text-underline-offset: 4px; }

body.page-tint .brand,
body.page-tint nav.main-nav a { color: var(--coral); }
body.page-tint nav.main-nav a.active { text-decoration-color: var(--coral); }

/* Book dropdown */
nav.main-nav .has-dropdown > .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  padding-top: 0.75rem;
  background: transparent;
  min-width: 220px;
  z-index: 30;
}
nav.main-nav .has-dropdown > .dropdown-menu > li {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
nav.main-nav .has-dropdown > .dropdown-menu > li:first-child { border-radius: 4px 4px 0 0; }
nav.main-nav .has-dropdown > .dropdown-menu > li:last-child { border-radius: 0 0 4px 4px; border-top: none; }
nav.main-nav .has-dropdown:hover > .dropdown-menu { display: block; }
nav.main-nav .dropdown-menu li { display: block; }
nav.main-nav .dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--ink);
  white-space: nowrap;
}

/* Hero (home) — overlapping stacked title + grayscale photo, vertically
   centered against each other with clear breathing room before the next
   section. */
.hero {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5.5rem;
}

.hero-stack {
  flex: 1;
  position: relative;
  z-index: 2;
  margin-right: -7vw;
}

.hero-line {
  display: block;
  font-family: 'Ojuju', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--coral);
  font-size: clamp(3rem, 9vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0;
}

.hero-script {
  display: block;
  font-family: 'Ojuju', sans-serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  color: var(--amber);
  margin: 1rem 0 0;
}

.hero .image-col {
  flex-shrink: 0;
  width: min(24vw, 420px);
  position: relative;
  z-index: 1;
}
.hero .image-col img {
  width: 100%;
  display: block;
  filter: grayscale(100%);
}

@media (max-width: 900px) {
  .hero { flex-direction: column; padding: 2rem 1.5rem 3rem; }
  .hero-stack { margin-right: 0; }
  .hero-line { font-size: 14vw; }
  .hero .image-col { width: 80%; max-width: 320px; margin: 1.5rem auto 0; }
}

/* Wave block — Squarespace-style section divider (flat top, gentle wave bottom) */
.wave-block {
  background: var(--amber);
  position: relative;
  padding: 5.5rem 1.5rem 6rem;
  overflow: visible;
  margin-top: 1px;
}

.wave-divider-svg {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 5vw;
  min-height: 40px;
  max-height: 90px;
  display: block;
}
.wave-divider-svg.top {
  top: -1px;
  bottom: auto;
  transform: scaleY(-1);
}

.wave-block-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.wave-block-inner .cover-col img { width: 100%; display: block; }

.wave-block .quote-text {
  font-family: 'Ojuju', sans-serif;
  font-style: italic;
  font-weight: 500;
  color: var(--purple);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  margin: 0 auto 1rem;
}

.wave-block .headline-highlight {
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  margin-bottom: 2rem;
  line-height: 1.25;
}

/* Highlighter text (Squarespace "text highlight" annotation) */
.highlight {
  display: inline-block;
  background: var(--purple);
  color: var(--coral);
  padding: 0.1em 0.5em;
  font-weight: 700;
  font-family: 'Ojuju', sans-serif;
}

.highlight.coral {
  background: var(--coral);
  color: var(--purple);
  font-weight: 400;
}

/* Sections */
section.block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

section.block.tight { padding-top: 1.5rem; padding-bottom: 1.5rem; }
section.block.no-line { border-top: none; }

.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: 1rem 3rem;
  border-radius: 0;
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--ink);
}
.btn:hover { background: #fff; color: var(--ink); }

/* Amber underlined text-link CTA (used on the book page instead of a button) */
.link-cta {
  display: inline-block;
  font-family: 'Ojuju', sans-serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 6px;
}
.link-cta:hover { color: var(--purple); }

/* Publication badges / logos */
.badge-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  text-align: center;
}
.badge-cols h4 {
  font-family: 'Ojuju', sans-serif;
  font-style: italic;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
}
.badge-cols h4 a { color: var(--ink); text-decoration: none; }
.badge-cols h4 a:hover { color: var(--purple); }
.badge-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.badge {
  background: var(--ink);
  color: #fff;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
}
.badge-row img { height: 160px; width: auto; max-width: 220px; object-fit: contain; }
.badge-row img.cover-badge { height: 168px; width: 112px; object-fit: cover; }

/* Book page */
.book-hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}
.book-hero .cover-col img {
  width: 100%;
  display: block;
}
.book-hero .cover-col { text-align: center; }
.book-hero .order-wrap { margin-top: 2rem; text-align: center; }
.book-hero .bonus-teaser { margin-top: 2.5rem; text-align: center; }

@media (max-width: 800px) {
  .book-hero { grid-template-columns: 1fr; }
  .book-hero .cover-col { max-width: 320px; margin: 0 auto; order: -1; }
}

.blurb {
  font-style: italic;
  font-family: 'Ojuju', sans-serif;
  color: var(--purple);
  font-size: 1.3rem;
  margin: 0 0 0.3rem;
  max-width: 640px;
}
.blurb-attribution {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.book-title-highlight {
  display: inline-block;
  background: var(--coral);
  color: var(--purple);
  padding: 0.05em 0.4em;
  text-transform: lowercase;
}

.bonus-index {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  columns: 2;
  column-gap: 2rem;
  text-align: left;
}
.bonus-index li {
  padding: 0.5rem 0;
  break-inside: avoid;
}
.bonus-index .num {
  color: var(--ink);
  font-style: italic;
  margin-right: 0.2rem;
}
.bonus-index a { color: var(--purple); text-decoration: underline; }

/* Triangle-notch section (book page bottom) */
.triangle-block {
  background: var(--amber);
  clip-path: polygon(0% 0%, 45% 0%, 50% 22%, 55% 0%, 100% 0%, 100% 100%, 0% 100%);
  padding: 6rem 1.5rem 4rem;
  margin-top: -1px;
}
.triangle-block-inner {
  max-width: 1250px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}
.stacked-words {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.stacked-words span {
  display: inline-block;
  background: var(--coral);
  color: var(--purple);
  font-family: 'Ojuju', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  padding: 0 0.25em;
  line-height: 1.3;
}
.triangle-block-inner .content p:first-child { font-weight: 700; }
@media (max-width: 760px) {
  .triangle-block-inner { grid-template-columns: 1fr; }
  .bonus-index { columns: 1; }
}

/* Page kicker (About-style pages) */
.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}
.page-content.wide { max-width: 1300px; }
.page-content h1 { margin-bottom: 0.8rem; }
.page-kicker {
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--ink);
  font-weight: 600;
  font-family: 'Ojuju', sans-serif;
  margin-bottom: 0.5rem;
}

/* Reporting / Creative Writing — masonry-style 2-column listing pages */
.listing-page {
  max-width: 1300px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}
.listing-title {
  font-style: italic;
  font-family: 'Ojuju', sans-serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--ink);
  margin-bottom: 2.5rem;
}
.entry-columns {
  columns: 2;
  column-gap: 3rem;
}
@media (max-width: 760px) { .entry-columns { columns: 1; } }

.entry {
  break-inside: avoid;
  margin-bottom: 2.5rem;
}
.entry h3 {
  font-family: 'Ojuju', sans-serif;
  font-weight: 700;
  color: var(--purple);
  font-size: clamp(1.6rem, 2.6vw, 2.5rem);
  margin-bottom: 0;
  line-height: 1.1;
}
.entry h3 a { color: var(--purple); text-decoration: none; }
.entry h3 a:hover { color: var(--ink); }

.entry.fiction h3 { text-transform: uppercase; font-size: clamp(2rem, 3.2vw, 3rem); }

.entry-divider {
  height: 10px;
  margin: 0.5rem 0 1rem;
  background-repeat: repeat-x;
  background-size: 22px 10px;
}
.entry.fiction .entry-divider {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='10'%3E%3Cpath d='M0,7 Q5.5,2 11,7 T22,7' stroke='%23f2b8b4' stroke-width='2.5' fill='none'/%3E%3C/svg%3E");
}
.entry.reporting .entry-divider {
  height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='6'%3E%3Cpath d='M0,4 Q3.5,1 7,4 T14,4' stroke='%23ffcf5a' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-size: 14px 6px;
}

.entry .meta {
  font-size: 0.95rem;
  color: var(--ink);
  font-style: italic;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.entry p { margin-bottom: 0; color: var(--ink); }
.entry p em { font-weight: 700; }

/* Bonus content story pages */
.story-header { text-align: center; margin-bottom: 2.5rem; }
.story-kicker {
  font-family: 'Ojuju', sans-serif;
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 1rem;
}
.story-title-highlight {
  display: inline-block;
  background: var(--purple);
  color: var(--coral);
  font-family: 'Ojuju', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  padding: 0.1em 0.5em;
  margin-bottom: 1rem;
}
.story-meta {
  font-style: italic;
  color: var(--ink);
  max-width: 700px;
  margin: 0 auto;
}
.story {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.story p { margin-bottom: 1.3em; }
.story .scene-break {
  text-align: center;
  color: var(--purple);
  margin: 2em 0;
  letter-spacing: 0.3em;
}

.story-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: 'Ojuju', sans-serif;
  font-style: italic;
}
.story-nav a { max-width: 45%; color: var(--purple); }
.story-nav .next { text-align: right; margin-left: auto; }

/* Connect page — full purple background */
body.connect-page {
  background: var(--purple);
  color: #fff;
}
body.connect-page a { color: #fff; }
.connect-marquee {
  overflow: hidden;
  white-space: nowrap;
  margin: 1rem 0 2.5rem;
}
.connect-marquee-track {
  display: inline-block;
  font-family: 'Ojuju', sans-serif;
  font-weight: 700;
  text-transform: none;
  font-size: clamp(3rem, 9vw, 7rem);
  color: #fff;
  animation: marquee 18s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.connect-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 800px) { .connect-wrap { grid-template-columns: 1fr; } }

.connect-wrap h2 {
  font-family: 'Ojuju', sans-serif;
  font-style: normal;
  font-weight: 600;
  color: var(--coral);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 1.5rem;
}

.pill-field {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 1rem 1.5rem;
  font-family: 'Archivo', sans-serif;
  font-size: 1rem;
  margin-bottom: 1rem;
  background: #1a0d29;
  color: #fff;
}
.pill-field::placeholder { color: rgba(255,255,255,0.6); }
.pill-field.light { background: #ffffff; color: #111; }
.pill-field.light::placeholder { color: #888; }
textarea.pill-field { border-radius: 24px; min-height: 120px; resize: vertical; }

.field-label {
  display: block;
  color: #fff;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}
.field-label .req { font-weight: 400; opacity: 0.7; font-size: 0.75rem; }

.name-row { display: flex; gap: 1rem; }
.name-row > div { flex: 1; }

.newsletter-row { display: flex; gap: 0.75rem; align-items: stretch; flex-wrap: wrap; }
.newsletter-row .pill-field { margin-bottom: 0; flex: 1 1 220px; }

.sign-up-btn {
  background: var(--coral);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 0;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1rem 1.5rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sign-up-btn:hover { background: var(--ink); color: var(--coral); }

.form-note { font-size: 0.85rem; color: rgba(255,255,255,0.85); margin-top: 0.5rem; }
.form-success { color: #fff; font-weight: 700; display: none; }

/* Socials + footer */
.socials a { margin-right: 1.2rem; font-weight: 400; font-family: 'Archivo', sans-serif; text-decoration: underline; }

footer.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
}
body.connect-page footer.site-footer { border-top: 1px solid rgba(255,255,255,0.3); }
footer.site-footer .socials { margin-bottom: 1rem; }
footer.site-footer .wordmark {
  font-family: 'Ojuju', sans-serif;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  color: var(--purple);
  text-transform: uppercase;
}
body.connect-page footer.site-footer .wordmark { color: #fff; }

.editor-block { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; }
.editor-block img { width: 220px; border-radius: 4px; }
.editor-block .text { flex: 1 1 280px; }
