/* ============================================
   Rosi Bremec — shared stylesheet
   Extends existing tokens: Fraunces display, Inter body,
   #1a1a1a dark / #fafafa light, #b5502f rust accent.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
  --ink: #1a1a1a;
  --paper: #fafafa;
  --paper-warm: #f4f1ea;
  --body-text: #4d4d4d;
  --muted: #8a8a8a;
  --rust: #b5502f;
  --rust-deep: #96422a;
  --hairline: #e4e0d6;
  --hairline-dark: #333333;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'system-ui', 'Segoe UI', sans-serif;
  --section-pad: 88px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- Nav ---------- */

.site-nav {
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: 0.2px;
}

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--rust);
}

.nav-toggle { display: none; }

/* ---------- Eyebrow / typography ---------- */

.eyebrow {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 18px;
}

.on-dark .eyebrow { color: #d98b6f; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 20px;
  letter-spacing: -0.2px;
}

.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--paper); }

h1 { font-size: 52px; line-height: 1.14; }
h2 { font-size: 34px; line-height: 1.22; }
h3 { font-size: 23px; line-height: 1.3; font-weight: 600; }

p { margin: 0 0 20px; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink);
}

.on-dark .lede, .on-dark p { color: #d8d5cd; }

.rule-accent {
  width: 56px;
  height: 3px;
  background: var(--rust);
  margin-top: 28px;
  border: none;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--ink);
  padding: 96px 0 76px;
  position: relative;
  overflow: hidden;
}

.hero.with-photo {
  padding-top: 64px;
  padding-bottom: 0;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero.with-photo .eyebrow,
.hero.with-photo h1 {
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}

.hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 46%;
  object-fit: cover;
  object-position: center 18%;
  opacity: 0.62;
  mix-blend-mode: luminosity;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.9) 40%, rgba(0,0,0,0) 96%);
  mask-image: linear-gradient(to left, rgba(0,0,0,0.9) 40%, rgba(0,0,0,0) 96%);
  pointer-events: none;
}

/* Defensive contrast layer: guarantees the text side stays dark even
   in browsers without mask-image support. */
.hero-fade-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to right, var(--ink) 26%, rgba(26,26,26,0) 62%);
  z-index: 1;
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 2; width: 100%; min-width: 0; }

@media (max-width: 900px) {
  .hero.with-photo { min-height: 0; }
  .hero-photo { width: 72%; opacity: 0.32; }
}
@media (max-width: 640px) {
  .hero-photo { display: none; }
  .hero-fade-overlay { display: none; }
}

.hero-body {
  padding: 76px 0;
  background: var(--paper);
}

.hero-body .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 60px;
}

.hero-body .lede-col { grid-column: 2; }

.hero-body.single .wrap {
  display: block;
}

.hero-body.single .lede-col {
  max-width: 720px;
}

.portrait-frame-rect {
  width: 100%;
  border-radius: 3px;
  overflow: hidden;
  background: var(--paper-warm);
}
.portrait-frame-rect img {
  width: 100%;
  display: block;
}

@media (max-width: 760px) {
  .hero-body .wrap { grid-template-columns: 1fr; }
  .hero-body .lede-col { grid-column: 1; }
}

/* ---------- Sections ---------- */

section {
  padding: var(--section-pad) 0;
}

section.on-light { background: var(--paper); }
section.tinted { background: var(--paper-warm); }
section.on-dark { background: var(--ink); }

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.two-col {
  display: grid;
  grid-template-columns: 0.85fr 1.3fr;
  gap: 60px;
}

@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; gap: 24px; }
}

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 14px 26px;
  border-radius: 2px;
  transition: opacity 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--rust);
  color: var(--paper);
}
.btn-primary:hover { background: var(--rust-deep); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.on-dark .btn-secondary { color: var(--paper); border-color: #6b6b6b; }
.btn-secondary:hover { border-color: var(--rust); color: var(--rust); }

.btn-row { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

/* ---------- Keynote feature block (most prominent after hero) ---------- */

.keynote-feature {
  background: var(--ink);
  border-radius: 4px;
  padding: 60px 64px;
  position: relative;
  overflow: hidden;
}

.keynote-feature h2 { max-width: 640px; }

.keynote-story-photo {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 36%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.9) 30%, rgba(0,0,0,0) 96%);
  mask-image: linear-gradient(to left, rgba(0,0,0,0.9) 30%, rgba(0,0,0,0) 96%);
  pointer-events: none;
}

.keynote-feature-overlay {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to right, var(--ink) 32%, rgba(26,26,26,0) 66%);
  z-index: 1;
  pointer-events: none;
}

.keynote-feature-overlay-top {
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 140px;
  background: linear-gradient(to bottom, var(--ink) 0%, rgba(26,26,26,0) 100%);
  z-index: 1;
  pointer-events: none;
}

.keynote-text { position: relative; z-index: 2; }

.keynote-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: #f0d9cd;
  max-width: 620px;
  margin: 22px 0 30px;
  padding-left: 22px;
  border-left: 2px solid var(--rust);
}

.keynote-feature p { max-width: 680px; }

@media (max-width: 760px) {
  .keynote-story-photo, .keynote-feature-overlay, .keynote-feature-overlay-top { display: none; }
}

/* ---------- Evidence panel ---------- */

.evidence-panel {
  display: flex;
  gap: 48px;
  padding: 32px 0 4px;
  flex-wrap: wrap;
}

.evidence-stat { min-width: 130px; }

.evidence-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  color: var(--ink);
  display: block;
}

.evidence-label {
  font-size: 12.5px;
  letter-spacing: 0.4px;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------- Data evidence panel (Speaking page, organic reach) ---------- */

.data-evidence {
  border-left: 3px solid var(--rust);
  padding: 4px 0 4px 26px;
  margin: 28px 0;
}

.stat-hero { margin-bottom: 34px; }
.stat-hero-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 54px;
  line-height: 1;
  color: var(--ink);
  display: block;
}
.stat-hero-label {
  font-size: 14.5px;
  color: var(--muted);
  margin-top: 8px;
}
.stat-hero-label strong { color: var(--ink); font-weight: 600; }

.discovery-block { margin-bottom: 34px; max-width: 420px; }
.discovery-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36px;
  color: var(--ink);
  display: block;
}
.discovery-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.discovery-bar {
  height: 7px;
  background: var(--hairline);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 16px;
}
.discovery-bar-fill {
  height: 100%;
  width: 99%;
  background: var(--rust);
}
.discovery-split-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.stat-support-row {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 20px;
}
.stat-support-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  color: var(--ink);
  display: block;
}
.stat-support-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.engagement-detail-line {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 4px;
}
.profile-visits-line {
  font-size: 13.5px;
  color: var(--muted);
}

.evidence-source {
  font-size: 11.5px;
  font-style: italic;
  color: var(--muted);
  opacity: 0.75;
  margin-top: 22px;
}

@media (max-width: 640px) {
  .stat-hero-num { font-size: 42px; }
  .discovery-num { font-size: 30px; }
  .stat-support-row { flex-direction: column; gap: 16px; }
  .data-evidence { padding-left: 18px; }
}

/* ---------- Essay / writing entries (editorial, not cards) ---------- */

.essay-entry {
  padding: 30px 0;
  border-top: 1px solid var(--hairline);
}
.essay-entry:last-child { }

.essay-entry h3 { margin-bottom: 10px; }
.essay-entry h3 a:hover { color: var(--rust); }

.essay-entry p { max-width: 640px; margin-bottom: 12px; }

.essay-source {
  font-size: 12.5px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 600;
}

.strand-label {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 44px 0 4px;
}
.strand-label:first-child { margin-top: 0; }

.pill-note {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  margin-left: 8px;
}

/* ---------- Secondary talks (deliberately quieter than keynote-feature) ---------- */

.secondary-talk {
  padding: 26px 0;
  border-top: 1px solid var(--hairline);
}
.secondary-talk h3 { font-size: 19px; margin-bottom: 8px; }
.secondary-talk p { max-width: 620px; }

/* ---------- Lists ---------- */

.takeaway-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 680px;
}
.takeaway-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
}
.takeaway-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--rust);
}

/* ---------- Bio blocks ---------- */

.bio-block { margin-bottom: 40px; }
.bio-block h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-family: var(--font-body); font-weight: 600; margin-bottom: 14px; }

/* ---------- Compact booking summary ---------- */

.booking-summary {
  background: var(--paper-warm);
  border-left: 3px solid var(--rust);
  padding: 40px 44px;
  border-radius: 2px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.summary-label {
  display: block;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.summary-value {
  display: block;
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 640px) {
  .booking-summary { padding: 28px 24px; }
  .summary-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Video placeholder (honest, not a fake embed) ---------- */

.video-placeholder {
  aspect-ratio: 16 / 9;
  max-width: 720px;
  background: repeating-linear-gradient(
    135deg, var(--paper-warm), var(--paper-warm) 10px,
    #ece5d6 10px, #ece5d6 20px
  );
  border: 1px dashed var(--hairline-dark);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-placeholder-inner {
  text-align: center;
}
.video-placeholder-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper);
  padding: 10px 18px;
  border-radius: 2px;
}

/* ---------- Speaking engagements list ---------- */

.engagement-list {
  border-top: 1px solid var(--hairline);
  margin-top: 20px;
}
.engagement-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 18px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.engagement-role {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--rust);
}
.engagement-title {
  font-size: 15px;
  color: var(--ink);
}
.engagement-event {
  font-size: 13.5px;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .engagement-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .engagement-event { white-space: normal; }
}

/* ---------- Speaking photo banner (horizontal scroll) ---------- */

.photo-banner {
  display: flex;
  gap: 18px;
  margin-top: 24px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}
.photo-banner figure {
  margin: 0;
  flex: 0 0 auto;
  width: 300px;
  scroll-snap-align: start;
}
.photo-banner img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
  background: var(--paper-warm);
}
.photo-banner figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.photo-banner figcaption strong {
  color: var(--ink);
  font-weight: 600;
}

.photo-placeholder {
  width: 100%;
  height: 260px;
  border-radius: 2px;
  border: 1px dashed var(--hairline-dark);
  background: repeating-linear-gradient(
    135deg, var(--paper-warm), var(--paper-warm) 10px,
    #ece5d6 10px, #ece5d6 20px
  );
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-placeholder span {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper);
  padding: 8px 14px;
  border-radius: 2px;
}

/* Scrollbar treatment, kept quiet but visible */
.photo-banner::-webkit-scrollbar { height: 6px; }
.photo-banner::-webkit-scrollbar-track { background: var(--hairline); }
.photo-banner::-webkit-scrollbar-thumb { background: var(--rust); border-radius: 3px; }

@media (max-width: 640px) {
  .photo-banner figure { width: 240px; }
  .photo-banner img, .photo-placeholder { height: 200px; }
}

/* ---------- Fact strip ---------- */

.fact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  list-style: none;
  padding: 24px 0 0;
  margin: 0;
  border-top: 1px solid var(--hairline);
}
.fact-strip li {
  font-size: 14px;
  color: var(--muted);
  padding-right: 22px;
  margin-right: 22px;
  border-right: 1px solid var(--hairline);
}
.fact-strip li:last-child { border-right: none; }

/* ---------- Open-item placeholder (visible only to Rosi during review) ---------- */

.todo {
  color: var(--muted);
  font-style: italic;
  font-size: 14px;
}
.todo::before { content: "○ "; }

/* ---------- Form ---------- */

.contact-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 24px;
  max-width: 760px;
}
.contact-form .full { grid-column: 1 / -1; }
.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form button { margin-top: 6px; border: none; cursor: pointer; font-family: var(--font-body); }
.hidden-field { position: absolute; left: -9999px; }

@media (max-width: 700px) {
  .contact-form { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

footer {
  background: var(--ink);
  color: var(--muted);
  padding: 56px 0 40px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
}
footer .footer-brand {
  font-family: var(--font-display);
  color: var(--paper);
  font-size: 18px;
  margin-bottom: 8px;
}
footer .footer-tag {
  font-size: 14px;
  color: #8a8a8a;
  max-width: 320px;
}
footer nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  padding: 0;
  margin: 0;
}
footer nav a { font-size: 13px; letter-spacing: 0.4px; text-transform: uppercase; color: #ccc; }
footer nav a:hover { color: var(--rust); }

@media (max-width: 640px) {
  h1 { font-size: 38px; }
  h2 { font-size: 27px; }
  .keynote-feature { padding: 40px 26px; }
  .wrap { padding: 0 24px; }
  .nav-links { gap: 18px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}

/* ---------- Scroll reveal ---------- */
/* Progressive enhancement only: content is visible by default.
   JS adds .reveal-ready to <html> once it confirms it can run the
   animation, so a JS failure never leaves content invisible. */

.reveal { opacity: 1; transform: none; }

html.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.reveal-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
