/* Tim Hickle — speaker site MVP
   Craft / restraint over SaaS marketing chrome.
   Palette: ink, warm paper, copper accent. */

:root {
  --ink: #141210;
  --ink-soft: #2a2622;
  --paper: #f6f1e8;
  --paper-2: #ebe4d7;
  --muted: #6b645a;
  --line: rgba(20, 18, 16, 0.12);
  --copper: #a85a2a;
  --copper-deep: #8a4720;
  --white: #fffdf8;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(20, 18, 16, 0.08);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* keep anchored sections clear of the sticky header */
section[id] {
  scroll-margin-top: 4.75rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(168, 90, 42, 0.08), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(20, 18, 16, 0.04), transparent 50%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--copper-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(246, 241, 232, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
}

.nav a:hover {
  color: var(--copper);
}

.nav-cta {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper) !important;
}

.nav-cta:hover {
  background: var(--copper-deep);
}

.nav-toggle {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1.25rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 241, 232, 0.98);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 0.75rem 0.5rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
  border-radius: 8px;
}

.mobile-nav a:hover {
  background: var(--paper-2);
}

@media (min-width: 840px) {
  .nav {
    display: flex;
  }
  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* Buttons */
.btn {
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--copper-deep);
  color: var(--white);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink-soft);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* Typography helpers */
.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.35rem, 5.4vw, 3.85rem);
  margin: 0 0 1rem;
  max-width: 15ch;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.55rem);
  margin: 0 0 0.75rem;
  text-wrap: balance;
}

h3 {
  font-size: 1.45rem;
  margin: 0 0 0.4rem;
  text-wrap: balance;
}

.lede {
  font-size: 1.15rem;
  max-width: 40rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}

.muted {
  color: var(--muted);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 42rem;
}

.section-head.tight {
  margin-bottom: 1.25rem;
}

.section-head p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

/* eyebrow was being overridden to grey inside .section-head */
.section-head .eyebrow {
  margin: 0 0 0.65rem;
  color: var(--copper);
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.35fr 0.85fr;
    gap: 3rem;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

/* keep both hero buttons on one row on ~390px phones */
@media (max-width: 420px) {
  .hero-actions {
    gap: 0.6rem;
  }
  .hero-actions .btn {
    padding-inline: 0.95rem;
  }
}

.cred-strip {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.cred-strip li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cred-strip li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--copper);
  opacity: 0.7;
  flex: none;
}

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 420px;
  margin-inline: auto;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: linear-gradient(160deg, var(--paper-2), #d9d0c0 60%, #c9b8a0);
}

.portrait-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.75rem;
  text-align: center;
  color: var(--ink-soft);
}

.portrait-monogram {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(4.5rem, 12vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
  opacity: 0.85;
}

.portrait-caption {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper-deep);
}

.portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}

@media (max-width: 899px) {
  .portrait {
    max-width: 340px;
    aspect-ratio: 5 / 5.5;
  }
  /* No photo yet: skip the monogram card on small screens so the CTA stays close */
  .portrait:not(:has(.portrait-img)) {
    display: none;
  }
}

/* On stage (reel + stage photos) */
.on-stage {
  padding: 3rem 0;
}

.on-stage {
  border-top: 1px solid var(--line);
}

.on-stage [hidden] {
  display: none !important;
}

.reel-frame + .stage-strip {
  margin-top: 1.25rem;
}

/* Stage photos: swipeable row on phones, grid on desktop */
.stage-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

.stage-strip figure {
  margin: 0;
  scroll-snap-align: start;
}

.stage-strip picture {
  display: block;
}

.stage-strip img {
  width: 100%;
  height: auto; /* width/height attrs are for CLS only; crop to 4:3 */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.stage-strip figcaption {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  color: var(--muted);
}

@media (min-width: 720px) {
  .stage-strip {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    overflow: visible;
  }
}

.reel-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.reel-poster {
  position: absolute;
  inset: 0;
  display: block;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
}

.reel-poster picture,
.reel-poster img {
  display: block;
  width: 100%;
  height: 100%;
}

.reel-poster img {
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.2s ease;
}

.reel-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 16, 0) 45%, rgba(20, 18, 16, 0.55));
}

.reel-play {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: clamp(3.75rem, 9vw, 5.25rem);
  height: clamp(3.75rem, 9vw, 5.25rem);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--copper);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(20, 18, 16, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}

.reel-play svg {
  width: 42%;
  height: 42%;
  margin-left: 8%;
}

.reel-caption {
  position: absolute;
  z-index: 1;
  left: 1.1rem;
  bottom: 0.9rem;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.reel-poster:hover .reel-play,
.reel-poster:focus-visible .reel-play {
  transform: translate(-50%, -50%) scale(1.06);
  background: var(--copper-deep);
}

.reel-poster:hover img {
  transform: scale(1.015);
}

.reel-poster:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
}

.btn-icon {
  width: 0.95em;
  height: 0.95em;
  flex: none;
}

.reel-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* About */
.about {
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 0.9fr 1.2fr;
    gap: 3rem;
    align-items: start;
  }
}

.about-body p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--ink-soft);
}

.about-note {
  font-weight: 600;
  color: var(--ink) !important;
}

/* Talks */
.talks {
  padding: 3.5rem 0;
  background: linear-gradient(180deg, transparent, rgba(20, 18, 16, 0.03));
  border-top: 1px solid var(--line);
}

.talk-grid {
  display: grid;
  gap: 1.15rem;
}

/* 1 col on phones; 2 cols on tablets (odd last card spans full width); 3 cols on desktop */
@media (min-width: 720px) {
  .talk-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .talk-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1000px) {
  .talk-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 1fr; /* one equal column per card (2 or 3) */
  }
  .talk-card:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

.talk-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.talk-card-soft {
  background: transparent;
  box-shadow: none;
  border-style: dashed;
}

.talk-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--copper);
}

.talk-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.talk-thesis {
  margin: 0.25rem 0 0.35rem;
  color: var(--ink-soft);
}

.talk-card ul {
  margin: 0.2rem 0 0.4rem;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.talk-card li {
  margin-bottom: 0.35rem;
}

.talk-fit {
  margin: auto 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Proof */
.proof {
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
}

.proof-bullets {
  margin: 0 0 2rem;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  max-width: 48rem;
}

.proof-bullets li {
  margin-bottom: 0.55rem;
}

.quote-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .quote-grid {
    grid-template-columns: 1fr 1fr;
  }
}

blockquote {
  margin: 0;
  padding: 1.35rem 1.4rem;
  background: var(--white);
  border-left: 3px solid var(--copper);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}

blockquote p {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--ink);
}

blockquote footer {
  color: var(--muted);
  font-size: 0.92rem;
}

.proof-caveat {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  max-width: 48rem;
}

/* Process */
.process {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  counter-reset: step;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.steps li {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem 1.25rem;
  position: relative;
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--copper);
  margin-bottom: 0.55rem;
  letter-spacing: 0.04em;
}

.steps strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.steps span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Book / form */
.book {
  padding: 3.5rem 0 4.5rem;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(20, 18, 16, 0.03), transparent 40%),
    var(--paper-2);
}

.book-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 880px) {
  .book-grid {
    grid-template-columns: 0.9fr 1.2fr;
    gap: 3rem;
    align-items: start;
  }
}

.inquiry-form {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.85rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field-row {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--ink-soft);
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(168, 90, 42, 0.35);
  border-color: var(--copper);
}

.req {
  color: var(--copper);
}

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.form-status:empty {
  display: none;
}

.form-status.is-ok {
  color: #2f6b3a;
  font-weight: 600;
}

.form-status.is-error {
  color: #9a2f1f;
}

.form-fineprint {
  margin: -0.35rem 0 0;
  font-size: 0.82rem;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.inquiry-form .btn {
  width: 100%;
  margin-top: 0.25rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  background: var(--paper);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.footer-inner p {
  margin: 0;
  font-size: 0.92rem;
}

@media (prefers-reduced-motion: reduce) {
  .reel-poster img,
  .reel-play {
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  .btn,
  .nav-cta {
    transition: none;
  }
}

/* 404 / thanks pages */
.simple-page {
  padding: 5rem 0 6rem;
  min-height: 60vh;
}

.simple-page .lede {
  max-width: 34rem;
}
