/* ==========================================================================
   joesweis.com — shared stylesheet
   Energy from the original site: cinematic night photography, elegant
   letterspaced serif, near-monochrome palette, quiet centered copy.
   A single ember accent nods to the speaker one-sheet.
   ========================================================================== */

:root {
  --ink: #141414;          /* near-black — headings, buttons, dark bands */
  --ink-soft: #33383f;
  --body: #555b63;         /* body text */
  --muted: #8a8f98;        /* eyebrows, captions — the slate of the old site */
  --ember: #c96a3a;        /* restrained accent, from the one-sheet */
  --paper: #fbfaf8;        /* ivory page background */
  --paper-alt: #f3f1ec;
  --white: #ffffff;
  --line: #e5e2dc;
  --max: 1080px;
  --serif: "Cormorant Garamond", "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--body);
  background: var(--paper);
  line-height: 1.8;
  font-size: 1.0325rem;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.12; font-weight: 500; }
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: 1.45rem; }

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

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

/* Letterspaced small-caps label — the signature of the old site */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

/* Thin centered rule under headings, as on the old site */
.rule {
  width: 56px;
  height: 1px;
  background: var(--muted);
  margin: 1.6rem auto;
  border: 0;
}

.center { text-align: center; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 0.95rem 2rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: 2px;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--ember); color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--ember); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,0.7); color: var(--white); background: transparent; }
.btn-ghost:hover { background: var(--white); color: var(--ink); }

/* --- Header / nav ------------------------------------------------------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.logo:hover { text-decoration: none; color: var(--white); }
.logo span { color: var(--ember); }

nav.main { display: flex; align-items: center; gap: 1.9rem; }
nav.main a {
  color: rgba(255,255,255,0.75);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
nav.main a:hover { color: var(--white); text-decoration: none; }
nav.main a.active { color: var(--white); }
nav.main a.btn { padding: 0.5rem 1.1rem; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: 0.2s; }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  nav.main {
    display: none;
    position: absolute;
    top: 66px; left: 0; right: 0;
    background: var(--ink);
    flex-direction: column;
    padding: 1.5rem;
    align-items: flex-start;
    gap: 1.25rem;
  }
  nav.main.open { display: flex; }
}

/* --- Sections ----------------------------------------------------------- */
section { padding: 5rem 0; }
section.tight { padding: 3.25rem 0; }
section.alt { background: var(--paper-alt); }
section.dark { background: var(--ink); }
section.dark h2, section.dark h3 { color: var(--white); }
section.dark p { color: rgba(255,255,255,0.72); }
section.dark .eyebrow { color: rgba(255,255,255,0.5); }

/* --- Cinematic photo hero ------------------------------------------------ */
.hero-photo {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem;
  background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.55)),
    url("assets/hero-night.jpg") center 30% / cover no-repeat;
}
.hero-photo .inner { max-width: 780px; }
.hero-photo h1 { color: var(--white); font-weight: 500; }
.hero-photo .eyebrow { color: rgba(255,255,255,0.65); }
.hero-photo p.lede {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 38em;
  margin: 1.6rem auto 2.4rem;
}
.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-photo .cta-row, .page-hero .cta-row { justify-content: center; }
.page-hero .cta-row { margin-top: 2rem; }

/* Interior pages can reuse it shorter */
.hero-photo.short { min-height: 62vh; }

/* Light, welcoming home hero */
.hero-home { padding: 5.5rem 0 5rem; }
.hero-home h1 { font-size: clamp(2.5rem, 5.5vw, 3.7rem); }

/* --- Stat bar ----------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stats .num {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--white);
}
.stats .label { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* --- Cards -------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-top: 3rem; text-align: left; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2.4rem 2.1rem;
  display: flex;
  flex-direction: column;
}
.card .eyebrow { margin-bottom: 0.7rem; font-size: 0.7rem; }
.card h3 { margin-bottom: 0.8rem; }
.card p { font-size: 0.97rem; }
/* Only the body paragraph stretches, so the eyebrow and heading stay pinned to the
   top and every card's paragraph starts at the same height */
.card p:not(.eyebrow) { flex: 1; }
.card a.more {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

/* Four-pillar grid for the home page */
.cards.pillars { grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.cards.pillars .card { padding: 2.1rem 1.7rem; }
/* Reserve two heading lines so every card's paragraph starts at the same height */
.cards.pillars .card h3 { min-height: 3.45em; margin-bottom: 1rem; }
@media (max-width: 1000px) { .cards.pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards.pillars { grid-template-columns: 1fr; } }

/* --- Quote band --------------------------------------------------------- */
.quote-band { text-align: center; }
.quote-band blockquote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  color: var(--white);
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  max-width: 24em;
  margin: 0 auto;
}
.quote-band blockquote em { color: var(--ember); }
.quote-band cite {
  display: block;
  margin-top: 1.75rem;
  color: rgba(255,255,255,0.5);
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* --- Two-column prose --------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split .prose p + p { margin-top: 1.1rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

.portrait { position: relative; max-width: 400px; justify-self: end; }
.portrait img { position: relative; z-index: 1; }
.portrait::after {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  z-index: 0;
}
@media (max-width: 860px) { .portrait { justify-self: center; max-width: 320px; } }

/* --- Prose pages -------------------------------------------------------- */
.prose-narrow { max-width: 660px; }
.prose-narrow p + p { margin-top: 1.2rem; }
.prose-narrow h2 { margin: 2.75rem 0 1rem; }
.prose-narrow.center { margin: 0 auto; }

/* --- Forms -------------------------------------------------------------- */
form.stacked { display: grid; gap: 1.2rem; max-width: 560px; }
form.stacked label {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}
form.stacked input, form.stacked textarea, form.stacked select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}
form.stacked input:focus, form.stacked textarea:focus, form.stacked select:focus {
  outline: 1px solid var(--ink);
  border-color: var(--ink);
}

/* Newsletter inline form */
form.inline-signup { display: flex; gap: 0.75rem; max-width: 500px; margin: 2rem auto 0; }
form.inline-signup input {
  flex: 1;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  font: inherit;
}
@media (max-width: 560px) { form.inline-signup { flex-direction: column; } }

/* --- Blog --------------------------------------------------------------- */
.post-list { display: grid; gap: 1.75rem; margin-top: 3rem; max-width: 760px; margin-left: auto; margin-right: auto; }
.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2.2rem 2.3rem;
}
.post-card .date { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.post-card h2, .post-card h3 { margin: 0.5rem 0 0.5rem; font-size: 1.55rem; }
.post-card h2 a, .post-card h3 a { color: var(--ink); }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--ember); }

article.post { max-width: 660px; margin: 0 auto; }
article.post .date { font-size: 0.75rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
article.post h1 { margin: 0.6rem 0 2rem; font-size: clamp(2.1rem, 4.5vw, 3rem); }
article.post p + p { margin-top: 1.2rem; }

/* --- Footer ------------------------------------------------------------- */
footer.site { background: var(--ink); color: rgba(255,255,255,0.55); padding: 3.75rem 0 2.5rem; }
footer.site .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
footer.site .tagline { margin-top: 0.6rem; font-size: 0.85rem; letter-spacing: 0.04em; }
footer.site nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
footer.site a { color: rgba(255,255,255,0.7); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
footer.site a:hover { color: var(--white); }
footer.site .fineprint { width: 100%; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.82rem; }

/* --- Page hero (interior pages, light) ----------------------------------- */
.page-hero { padding: 4.5rem 0 3.5rem; border-bottom: 1px solid var(--line); text-align: center; }
.page-hero p.lede { font-size: 1.12rem; max-width: 40em; margin: 1.1rem auto 0; }
