/* truthful.technology design system
   Palette: rebeccapurple heritage + Python gold accent */

:root {
  --ink: #241b33;
  --body: #443b56;
  --muted: #6f6683;
  --paper: #ffffff;
  --tint: #f7f4fb;
  --rebecca: #663399;
  --rebecca-deep: #50287d;
  --gold: #ffd43b;
  --terminal: #1d1528;
  --line: #e5ddf0;
  --font-display: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
}

/* --- Base --- */

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--body);
  background: var(--paper);
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }

p { margin: 0 0 1em; }

a { color: var(--rebecca); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--rebecca-deep); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

.container {
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section-tint { background: var(--tint); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rebecca);
  margin-bottom: 0.9rem;
}


.section-intro, .topics-note { text-wrap: pretty; }

[id] { scroll-margin-top: 5.5rem; }

/* --- Buttons --- */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.8rem 1.7rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary { background: var(--rebecca); color: #fff; }
.btn-primary:hover { background: var(--rebecca-deep); color: #fff; }

.btn-secondary {
  background: transparent;
  color: var(--rebecca);
  box-shadow: inset 0 0 0 2px var(--rebecca);
}
.btn-secondary:hover { background: var(--rebecca); color: #fff; }

.btn-light { background: #fff; color: var(--rebecca-deep); }
.btn-light:hover { color: var(--rebecca-deep); }

.btn-small { font-size: 0.95rem; padding: 0.55rem 1.2rem; }

/* --- Header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

/* Hide the header's bottom border until the page is scrolled
   (browsers without scroll-driven animations keep it always on) */
@supports (animation-timeline: scroll()) {
  .site-header {
    border-bottom-color: transparent;
    animation: header-line linear both;
    animation-timeline: scroll();
    animation-range: 0 120px;
  }
  @keyframes header-line {
    to { border-bottom-color: var(--line); }
  }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-right: auto;
}

.brand-mark { height: 2.4rem; width: 2.4rem; }

.brand .brand-mark { transition: transform 0.6s ease-in-out; }
.brand:hover .brand-mark { transform: rotate(360deg); }

.brand-name {
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.site-nav { display: flex; gap: 1.4rem; }

.site-nav a {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
}
.site-nav a:hover { color: var(--rebecca); }

/* --- Hero --- */

.hero {
  padding-block: clamp(3rem, 6.5vw, 5.5rem);
  background: linear-gradient(180deg, var(--tint), var(--paper));
}

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

/* Let grid children shrink below their content width */
.hero-inner > *, .about-inner > * { min-width: 0; }

.hero .lead {
  font-size: 1.25rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-block: 1.8rem 1.4rem;
}

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

.hero-photo img {
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(36, 27, 51, 0.2);
}

/* --- Facts strip --- */

.facts {
  border-block: 1px solid var(--line);
  padding-block: 1.6rem;
}

.facts-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.fact strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}

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

.fact a {
  color: inherit;
  text-decoration-color: var(--line-strong, #c9bfe0);
  text-decoration-style: dotted;
}
.fact a:hover { text-decoration-color: var(--rebecca); color: var(--rebecca); }

/* --- Offerings --- */

.formats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-block: 2.2rem 0;
}

.format-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--rebecca);
  border-radius: 10px;
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.format-card .duration {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rebecca);
  margin-bottom: 0.7rem;
}

.format-card p { font-size: 1.02rem; }
.format-card p:has(+ ul) { margin-bottom: 0.4rem; }

.format-card ul {
  margin: 0 0 0.5rem;
  padding-left: 1.2rem;
  font-size: 1rem;
}
.format-card li { margin-bottom: 0.35rem; }

.topics { margin-top: 3rem; }
.topics-intro { color: var(--muted); margin-top: -0.3rem; }

.topic-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem 2.5rem;
  margin-top: 1.6rem;
}

.topic-col {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.topic-group h4 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rebecca);
  margin-bottom: 0.7rem;
}

.topic-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1.02rem;
}

.topic-group li {
  padding: 0.32rem 0;
  border-bottom: 1px dashed var(--line);
}
.topic-group li:last-child { border-bottom: none; }

.topics-note { margin-top: 1.6rem; font-size: 1rem; color: var(--muted); }

/* --- Approach / session rhythm --- */

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-top: 2rem;
}

/* --- Testimonials --- */

.testimonial-feature {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2.2rem;
  margin-top: 2rem;
}

.testimonial-feature blockquote,
.testimonial-card blockquote { margin: 0; }

.avatar {
  border-radius: 50%;
  border: 4px solid var(--rebecca);
  width: 160px;
  height: 160px;
  object-fit: cover;
}

.attribution {
  margin-top: 1rem;
  font-size: 0.95rem;
}
.attribution strong { display: block; font-family: var(--font-display); color: var(--ink); }
.attribution span { color: var(--muted); }
.testimonial-card .attribution span { display: block; line-height: 1.35; }

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 1.4rem;
}

.testimonial-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.7rem 1.5rem;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
}

.testimonial-card .avatar { width: 72px; height: 72px; border-width: 3px; }

.testimonial-card footer {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  margin-top: auto;
  padding-top: 1.2rem;
}

.testimonial-card .attribution { margin-top: 0; }

/* --- About --- */

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

figure { margin: 0; }

.about-photo img {
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(36, 27, 51, 0.2);
}

.about-photo figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.6rem;
}

/* --- Videos --- */

.videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.video-container {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--terminal);
}

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

.video h3 { margin-top: 1.1rem; font-size: 1.15rem; }
.video p { font-size: 1rem; }

/* --- CTA band --- */

.cta-band {
  background: linear-gradient(135deg, var(--rebecca-deep), var(--rebecca));
  color: #fff;
  text-align: center;
}

.cta-band h2 { color: #fff; }

.cta-band p {
  max-width: 40rem;
  text-wrap: balance;
  margin-inline: auto;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
}

.cta-band .btn { margin-top: 1.4rem; }

.cta-alt { margin-top: 1.2rem; font-size: 1rem; color: rgba(255, 255, 255, 0.8); }
.cta-alt a { color: #fff; }

/* --- Footer --- */

.site-footer {
  background: var(--terminal);
  color: #b3a9cb;
  padding-block: 2.8rem;
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.footer-brand { display: flex; gap: 0.9rem; align-items: center; }
.footer-brand p { margin: 0; }
.footer-name { font-family: var(--font-display); font-weight: 700; color: #fff; }
.footer-tag { font-size: 0.85rem; }

.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-links a { color: #d9d2e9; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

.copyright { margin: 0; width: 100%; font-size: 0.85rem; }

/* --- Responsive --- */

@media (max-width: 900px) {
  .hero-inner, .about-inner { grid-template-columns: 1fr; }
  .formats, .approach-grid, .testimonial-cards { grid-template-columns: 1fr; }
  .facts-inner { grid-template-columns: repeat(2, 1fr); }
  .videos { grid-template-columns: 1fr; }
  .testimonial-feature { grid-template-columns: 1fr; gap: 1.4rem; }
}

@media (max-width: 760px) {
  .site-nav { display: none; }
  .topic-groups { grid-template-columns: 1fr; }
  .header-inner { gap: 0.9rem; }
  .brand { min-width: 0; }
  .brand-name { font-size: 1rem; }
  .header-cta { flex: none; }
}

@media (max-width: 400px) {
  .brand-name { white-space: normal; font-size: 0.95rem; line-height: 1.15; }
}

@media (prefers-reduced-motion: reduce) {
  .brand .brand-mark, .btn { transition: none; }
  html { scroll-behavior: auto; }
}

html { scroll-behavior: smooth; }
