/* ============================================
   Pete Lawrence — design tokens
   ============================================ */
:root {
  --parchment: #F3ECE0;
  --parchment-deep: #EAE0CF;
  --paper: #FBF8F2;
  --ink: #2B2622;
  --ink-soft: #5A5248;
  --ember: #B5482A;
  --ember-deep: #8F371F;
  --gold: #C99A3E;
  --sage: #707A5C;
  --line: rgba(43, 38, 34, 0.14);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1180px;
  --gutter: clamp(1.5rem, 5vw, 5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--ember-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }

p { margin: 0 0 1.3em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember-deep);
  margin-bottom: 1em;
}

.eyebrow .flame { width: 14px; height: 14px; flex-shrink: 0; }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 400;
  color: var(--ink-soft);
  max-width: 38em;
}

/* ============================================
   Flame mark (signature element)
   ============================================ */
.flame { fill: none; stroke: var(--ember); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.flame.solid { fill: var(--ember); stroke: none; }

/* ============================================
   Header / Nav
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 236, 224, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; }
.logo svg { width: 22px; height: 22px; }

nav.main-nav { display: flex; align-items: center; gap: 1.7rem; }

nav.main-nav a {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.2rem 0;
  white-space: nowrap;
}
nav.main-nav a:hover { color: var(--ember-deep); text-decoration: none; }
nav.main-nav a.active { color: var(--ink); }
nav.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--ember);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--ink); }

@media (max-width: 880px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    border-bottom: 1px solid var(--line);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 0.7rem 0; width: 100%; }
  nav.main-nav a.active::after { display: none; }
  .nav-toggle { display: block; }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem);
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .hero-portrait { order: -1; max-width: 280px; margin: 0 auto 1rem; }
}

.hero-portrait {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero-portrait::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 4px;
}

.hero h1 { margin-bottom: 0.4em; }
.hero h1 em {
  font-style: italic;
  color: var(--ember-deep);
}

.hero-roles {
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}
.hero-roles .sep { color: var(--gold); margin: 0 0.5em; }

.btn-row { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.8rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.8rem 1.5rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.92rem;
  font-family: var(--sans);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--ember); color: var(--paper); }
.btn-primary:hover { background: var(--ember-deep); box-shadow: 0 6px 16px rgba(181,72,42,0.25); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

/* ============================================
   Sections, generic
   ============================================ */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }

.section-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

.section-head { max-width: 46em; margin-bottom: clamp(2rem, 4vw, 3rem); }

.bg-paper { background: var(--paper); }
.bg-deep { background: var(--parchment-deep); }

/* Pillars / interest grid */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, 1fr); } }

.pillar {
  background: var(--paper);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: background 0.2s ease;
}
.pillar:hover { background: var(--parchment); text-decoration: none; }
.pillar svg { width: 30px; height: 30px; stroke: var(--ember); fill: none; stroke-width: 1.6; }
.pillar h3 { margin-bottom: 0.2em; color: var(--ink); }
.pillar p { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 0; }

/* Story / timeline cards */
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; } }

.story-card {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.story-card:hover { text-decoration: none; box-shadow: 0 14px 30px rgba(43,38,34,0.08); transform: translateY(-3px); }
.story-card .img-wrap { aspect-ratio: 16/10; overflow: hidden; background: var(--parchment-deep); }
.story-card img { width: 100%; height: 100%; object-fit: cover; }
.story-card .card-body { padding: 1.4rem 1.5rem 1.7rem; }
.story-card .eyebrow { font-size: 0.7rem; }
.story-card h3 { margin-bottom: 0.4em; }
.story-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; }

/* Quote block */
blockquote {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-style: italic;
  color: var(--ink);
  border-left: 3px solid var(--ember);
  padding-left: 1.5rem;
  margin: 2rem 0;
}
blockquote cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 0.8rem;
  letter-spacing: 0.02em;
}

/* Testimonial grid — supports 4-up (2x2) and 5-up (2/1/2) layouts */
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 760px) { .testimonials { grid-template-columns: 1fr; } }

.testimonials.five-up {
  grid-template-columns: repeat(2, 1fr);
  grid-template-areas:
    "a b"
    "c c"
    "d e";
}
.testimonials.five-up .testimonial:nth-child(1) { grid-area: a; }
.testimonials.five-up .testimonial:nth-child(2) { grid-area: b; }
.testimonials.five-up .testimonial:nth-child(3) {
  grid-area: c;
  max-width: 38em;
  margin: 0 auto;
  background: var(--parchment-deep);
  border-color: var(--ember);
}
.testimonials.five-up .testimonial:nth-child(4) { grid-area: d; }
.testimonials.five-up .testimonial:nth-child(5) { grid-area: e; }
@media (max-width: 760px) {
  .testimonials.five-up {
    grid-template-columns: 1fr;
    grid-template-areas: "a" "b" "c" "d" "e";
  }
  .testimonials.five-up .testimonial:nth-child(3) { max-width: 100%; }
}

.testimonial {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.8rem 2rem;
}
.testimonial p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.testimonial cite {
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ember-deep);
  display: block;
}
.testimonial cite span { display: block; font-weight: 400; color: var(--ink-soft); margin-top: 0.15rem; }

/* Article body (used on inner pages + blog posts) */
.article {
  max-width: 42em;
}
.article .figure { margin: 2.2rem 0; }
.article .figure img { border-radius: 4px; }
.article .figure figcaption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
  font-style: italic;
}
.article .figure .photo-credit {
  font-size: 0.78rem;
  color: var(--ink-soft);
  opacity: 0.75;
  margin-top: 0.25rem;
  font-style: normal;
  display: block;
}
.article h2 { margin-top: 2.2em; }
.article h3 { margin-top: 1.8em; }
.article p { color: var(--ink-soft); }
.article p strong { color: var(--ink); }
.article a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 4px;
  overflow: hidden;
  margin: 1.8rem 0;
  background: var(--ink);
}
.video-embed iframe { width: 100%; height: 100%; border: 0; }

.audio-embed { margin: 1.8rem 0; border-radius: 4px; overflow: hidden; }

/* Full-bleed image banner */
.banner {
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  background: var(--parchment-deep);
}
.banner img { width: 100%; height: 100%; object-fit: cover; }

/* Full-image banner variant — shows the entire image, no top/bottom crop */
.banner.full {
  aspect-ratio: auto;
  height: auto;
}
.banner.full img { width: 100%; height: auto; object-fit: contain; }

/* Page header (non-home pages) */
.page-head {
  padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
}
.page-head .lede { margin-top: 0.6rem; }

/* Two col layout (image + text) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: -1; }
}
.split-media img { border-radius: 6px; width: 100%; }
.split-media figcaption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
  font-style: italic;
}
.split-media .photo-credit {
  font-size: 0.78rem;
  color: var(--ink-soft);
  opacity: 0.75;
  margin-top: 0.2rem;
  font-style: normal;
  display: block;
}

/* Tags / chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  font-size: 0.82rem;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--paper);
}
.chip:hover { border-color: var(--ember); color: var(--ember-deep); text-decoration: none; }

/* Blog list */
.post-list { display: flex; flex-direction: column; }
.post-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}
.post-row:first-child { padding-top: 0; }
@media (max-width: 640px) { .post-row { grid-template-columns: 1fr; gap: 0.8rem; } }
.post-row .date {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  padding-top: 0.3rem;
}
.post-row h3 { margin-bottom: 0.4rem; }
.post-row h3 a { color: var(--ink); }
.post-row h3 a:hover { color: var(--ember-deep); text-decoration: none; }
.post-row p { color: var(--ink-soft); margin-bottom: 0.6rem; }
.post-row .read-more { font-size: 0.86rem; font-weight: 600; }

/* CTA band */
.cta-band {
  background: var(--ink);
  color: var(--parchment);
  border-radius: 8px;
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}
.cta-band h2 { color: var(--parchment); }
.cta-band p { color: rgba(243,236,224,0.75); max-width: 36em; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { background: var(--ember); }

/* ============================================
   Listen-on platform row (Bandcamp / SoundCloud / Mixcloud)
   ============================================ */
.listen-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 760px) { .listen-row { grid-template-columns: 1fr; } }

.listen-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.listen-card:hover {
  text-decoration: none;
  border-color: var(--ember);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(43, 38, 34, 0.08);
}
.listen-card .listen-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--parchment-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.listen-card .listen-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--ember-deep);
  fill: none;
  stroke-width: 1.8;
}
.listen-card .listen-text { display: flex; flex-direction: column; }
.listen-card .listen-platform {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.2;
}
.listen-card .listen-cta {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ============================================
   Sidebar (profile + subscribe cards)
   ============================================ */
.page-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (max-width: 980px) {
  .page-with-sidebar { grid-template-columns: 1fr; }
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
@media (max-width: 980px) {
  .sidebar { flex-direction: row; flex-wrap: wrap; margin-top: 0.5rem; }
  .sidebar-card { flex: 1 1 260px; }
}

.sidebar-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.8rem 1.6rem;
  text-align: center;
}

.sidebar-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
}
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-avatar svg { width: 34px; height: 34px; stroke: var(--gold); fill: none; stroke-width: 6; }

.sidebar-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.sidebar-role {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.3rem;
}

.sidebar-socials {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}
.sidebar-socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.sidebar-socials a:hover { border-color: var(--ember); background: var(--parchment); text-decoration: none; }
.sidebar-socials a svg { width: 16px; height: 16px; stroke: var(--ink-soft); fill: none; stroke-width: 1.8; }
.sidebar-socials a:hover svg { stroke: var(--ember-deep); }

.sidebar-card.subscribe { text-align: left; }
.sidebar-card.subscribe .eyebrow {
  font-size: 0.72rem;
  margin-bottom: 0.8rem;
  justify-content: flex-start;
}
.sidebar-card.subscribe p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}
.sidebar-card.subscribe .btn {
  width: 100%;
  justify-content: center;
}


.signup-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(2rem, 5vw, 3.2rem);
  box-shadow: 0 18px 40px rgba(43, 38, 34, 0.07);
}

.signup-card .eyebrow { justify-content: center; }

.signup-card-head {
  text-align: center;
  max-width: 32em;
  margin: 0 auto 2rem;
}

.signup-card-head h2 { margin-bottom: 0.5rem; }
.signup-card-head p { color: var(--ink-soft); margin-bottom: 0; }

.signup-embed {
  max-width: 480px;
  margin: 0 auto;
}

.signup-embed form,
.signup-embed .fd-form {
  font-family: var(--sans) !important;
}

.signup-perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.8rem;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2.5rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-grid h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.footer-grid a { color: var(--ink-soft); display: block; margin-bottom: 0.55rem; font-size: 0.94rem; }
.footer-grid a:hover { color: var(--ember-deep); text-decoration: none; }
.footer-logo { display: flex; align-items: center; gap: 0.6rem; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 0.8rem; }
.footer-logo svg { width: 20px; height: 20px; }
.footer-tag { color: var(--ink-soft); font-size: 0.92rem; max-width: 26em; }
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.social-row { display: flex; gap: 1rem; }
.social-row a svg { width: 18px; height: 18px; stroke: var(--ink-soft); }
.social-row a:hover svg { stroke: var(--ember-deep); }

/* Utility */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.text-soft { color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
