/* Erbut base styles. Tokens from brand book 2013. */

:root {
  /* Primary teal palette */
  --teal-1: #5EAFBC; /* signature */
  --teal-2: #80C6D1;
  --teal-3: #95D2D8;
  --teal-4: #B0DFE2;
  --teal-5: #C4E7E8;
  --teal-6: #D9EDED;

  /* Greyscale */
  --black: #000000;
  --grey-90: #1A1A1A; /* body copy, softer than pure black */
  --grey-50: #808080;
  --grey-30: #B3B3B3;
  --grey-10: #E6E6E6;
  --white: #FFFFFF;

  /* Secondary, data viz only */
  --navy-deep: #00405F;
  --teal-mid: #008295;
  --teal-dark: #004C56;

  /* Type */
  --font-display: 'Libre Franklin', 'Franklin Gothic Medium', 'Arial Narrow Bold', Arial, sans-serif;
  --font-body: Tahoma, Verdana, Geneva, 'DejaVu Sans', sans-serif;

  /* Scale */
  --max-w: 1180px;
  --gutter: 1.5rem;

  /* Type scale, fluid */
  --fs-hero: clamp(3rem, 7vw, 6rem);
  --fs-h1: clamp(2rem, 4vw, 3rem);
  --fs-h2: clamp(1.5rem, 3vw, 2.25rem);
  --fs-h3: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --lh-body: 1.55;
}

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

html { font-size: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--grey-90);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--black);
  margin: 0 0 0.6em;
  line-height: 1.1;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 1em; }

a {
  color: var(--teal-mid);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 0.08em;
}
a:hover { color: var(--navy-deep); }

img, video, iframe { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--wash { background: var(--teal-6); }
.section--dark { background: var(--grey-90); color: var(--white); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }

/* Brand wordmark logo recreation in CSS so it works without an image asset yet */
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-size: 2rem;
  line-height: 1;
  color: var(--black);
  display: inline-flex;
  align-items: baseline;
  gap: 0.05em;
  text-decoration: none;
}
.wordmark .dot {
  width: 0.3em;
  height: 0.3em;
  background: var(--teal-1);
  display: inline-block;
  align-self: flex-end;
  margin-bottom: 0.08em;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 0.85em 1.5em;
  border-radius: 2px;
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease, transform 120ms ease;
  cursor: pointer;
  border: 2px solid var(--black);
}
.btn--primary {
  background: var(--black);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--teal-mid);
  border-color: var(--teal-mid);
  color: var(--white);
}
.btn--ghost {
  background: transparent;
  color: var(--black);
}
.btn--ghost:hover {
  background: var(--teal-1);
  border-color: var(--teal-1);
  color: var(--black);
}

/* The brand-mark mosaic, CSS-only */
.mosaic {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  width: min(360px, 80%);
  aspect-ratio: 1;
}
.mosaic span {
  background: var(--teal-1);
  opacity: 0.85;
}
.mosaic span:nth-child(3n)  { background: var(--teal-3); opacity: 0.5; }
.mosaic span:nth-child(5n)  { background: var(--teal-4); opacity: 0.7; }
.mosaic span:nth-child(7n)  { background: var(--teal-2); }
.mosaic span:nth-child(11n) { background: transparent; }
.mosaic span:nth-child(13n) { background: var(--teal-5); }
.mosaic span:nth-child(17n) { background: transparent; }

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grey-10);
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}
.nav { display: flex; gap: 1.5rem; align-items: center; }
.nav a {
  color: var(--grey-90);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--teal-mid); }
.nav .btn { padding: 0.55em 1em; font-size: 0.9rem; }

/* Hero */
.hero { padding-block: clamp(4rem, 10vw, 8rem); }
.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.4em;
}
.hero .stumble {
  display: inline-block;
  position: relative;
}
.hero .stumble::after {
  content: "";
  display: inline-block;
  width: 0.18em;
  height: 0.18em;
  background: var(--teal-1);
  vertical-align: baseline;
  margin-left: 0.05em;
  margin-bottom: 0.1em;
}
.hero .strike {
  text-decoration: line-through;
  text-decoration-color: var(--teal-1);
  text-decoration-thickness: 0.08em;
  color: var(--grey-50);
}
.hero p.lede {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 38ch;
  margin-bottom: 2rem;
}
.hero .ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Method strip, four steps */
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.method-card {
  border-top: 4px solid var(--teal-1);
  padding-top: 1rem;
}
.method-card .step {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--teal-mid);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}
.method-card h3 { margin-bottom: 0.4rem; }

/* Course grid */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.course-card {
  padding: 1.5rem;
  border: 1px solid var(--grey-10);
  background: var(--white);
  text-decoration: none;
  color: var(--grey-90);
  transition: border-color 120ms ease, transform 120ms ease;
  display: block;
}
.course-card:hover {
  border-color: var(--teal-1);
  transform: translateY(-2px);
}
.course-card h3 {
  color: var(--black);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.course-card .tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-mid);
  margin-bottom: 0.6rem;
}

/* Logo strip */
.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  opacity: 0.7;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--grey-50);
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.testimonial blockquote {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--grey-90);
  position: relative;
  padding-left: 0.75rem;
  border-left: 3px solid var(--teal-1);
}
.testimonial cite {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--grey-50);
}

/* Founder block */
.founder {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 760px) {
  .founder { grid-template-columns: 1fr 2fr; }
}
.founder .bylines {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--grey-50);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Lead magnet */
.magnet {
  background: var(--teal-1);
  color: var(--black);
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 700px) {
  .magnet { grid-template-columns: 2fr 1fr; }
}
.magnet h2 { color: var(--black); margin: 0; }
.magnet form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.magnet input[type="email"] {
  flex: 1 1 220px;
  padding: 0.85em 1em;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--black);
  border-radius: 2px;
  background: var(--white);
}
.magnet .btn {
  flex: 0 0 auto;
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

/* Footer */
.site-footer {
  background: var(--grey-90);
  color: var(--grey-30);
  padding-block: 3rem;
  font-size: var(--fs-sm);
}
.site-footer a { color: var(--teal-2); }
.site-footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}
.site-footer h4 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.4rem; }

/* Utilities */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal-mid);
  margin-bottom: 0.5rem;
  display: block;
}
.muted { color: var(--grey-50); }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
