/* CEA theme: the site's current design.
   Black and white, one heavy grotesque (Satoshi) with tight tracking, a serif (Gambetta)
   for questions and quotes, soft rounded cards, and a layered hero.
   Loaded after styles.css by switcher.js, so every rule here overrides the baseline. */

:root {
  --navy: #0a0a0a;
  --navy-dark: #000000;
  --teal: #0a0a0a;
  --teal-light: #d4d4d8;
  --teal-text: #6b7280;
  --off-white: #fafafa;
  --text: #0a0a0a;
  --text-muted: #6b7280;
  --rule: #e5e7eb;
  --serif: "Satoshi", "Plus Jakarta Sans", system-ui, sans-serif;
  --sans: "Satoshi", "Plus Jakarta Sans", system-ui, sans-serif;
  --quote: "Gambetta", Georgia, serif;
  --radius: 12px;
  --lede-strong: #000;
  --footer-bg: #000;
  --card-radius: 24px;
  --accent: #47a4d4; /* the one color: CEA teal, used only as a small signal */
  --accent-light: #8fcdf0;
  /* The offset block behind images: the button color at low strength, so it follows the slider */
  --art-shadow: color-mix(in srgb, var(--ts-accent, #000) 12%, #fff);
}

body {
  line-height: 1.65;
}

a {
  text-decoration-color: #c4c4cc;
}

a:hover {
  color: #52525b;
}

h1,
h2,
h3 {
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h1 {
  font-weight: 800;
  font-size: clamp(2.25rem, 5.3vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Header */
.header-inner {
  padding: 16px 0;
}

.wordmark {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.025em;
}

.wordmark span {
  color: inherit;
}

/* Brand mark (window cross) beside the site name in the header */
.wordmark:has(.wordmark-mark) {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wordmark-mark {
  flex: none;
  width: 28px;
  height: 28px;
}

.site-footer .wordmark-mark {
  width: 23px;
}

.site-nav a {
  font-size: 0.8125rem;
  letter-spacing: 0;
  text-transform: none;
}

/* Buttons */
.btn {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.95rem 1.6rem;
}

.btn:hover {
  background: #27272a;
  border-color: #27272a;
}

.btn--small {
  font-size: 0.8125rem;
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
}

.hero .btn {
  background: #000;
  border-color: #000;
  color: #fff;
  font-size: 1.125rem;
  padding: 1.25rem 2rem;
}

.hero .btn:hover {
  background: #27272a;
  border-color: #27272a;
  color: #fff;
}

.btn--accent {
  background: #fff;
  border-color: #fff;
  color: #000;
}

.btn--accent:hover {
  background: #e4e4e7;
  border-color: #e4e4e7;
  color: #000;
}

/* Hero: white, with a faint dot grid fading in from the right */
.hero {
  position: relative;
  overflow: hidden;
  background: #fff;
  color: var(--text);
  padding: 100px 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 45%;
  background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 35%);
  mask-image: linear-gradient(to right, transparent, #000 35%);
  pointer-events: none;
}

.hero > .container {
  position: relative;
}

.hero h1 {
  color: #000;
  margin-bottom: 0.5em;
}

.hero .lede {
  color: var(--text-muted);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.45;
  max-width: 34em;
  margin-bottom: 2em;
}

.hero .fine {
  color: var(--text-muted);
}

/* When the subheadline ends the hero, it adds no extra space below */
.hero-copy > .lede:last-child {
  margin-bottom: 0;
}

/* Program page "at a glance" list on the white hero */
.hero .glance {
  --glance-value: #0a0a0a;
}

.hero .glance .eyebrow {
  color: var(--text-muted);
}

.hero--plain .hero-copy {
  max-width: 980px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 80px);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.hero-chips li {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.5;
  /* The button color at 10% strength. --ts-accent is set by the color slider in the
     theme panel; without it the chips use this theme's own button color, black. */
  color: #374151;
  background: color-mix(in srgb, var(--ts-accent, #000) 10%, transparent);
  border-radius: 4px;
  padding: 3px 9px;
}

/* With a slider color chosen, the chip text takes a dark shade of it so it stays readable */
html[data-accent] .hero-chips li {
  color: color-mix(in srgb, var(--ts-accent) 50%, #0a0a0a);
}

/* Panel holding an image placeholder */
.hero-stage {
  position: relative;
  padding: 0;
}

.hero-panel {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  background: #ececef;
}

.hero-panel .art {
  border-radius: 0;
  aspect-ratio: 1 / 1;
}

/* Plain placeholder: light grey with a picture icon in the middle */
.art-placeholder {
  background: #ececef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='M21 16l-5-5-9 9'/%3E%3C/svg%3E") center / 64px no-repeat;
}

/* Sections */
.section h2:not(.post-card h2, .post-body h2)::before {
  display: none;
}

.section--deep {
  background: #000;
  color: rgba(255, 255, 255, 0.65);
}

.section--deep p,
.section--deep li {
  color: rgba(255, 255, 255, 0.65);
}

.section--deep :focus-visible,
.site-footer :focus-visible {
  outline-color: #fff;
}

.eyebrow,
.label,
.section .label,
.facts dt,
.bio-role,
.section .bio-role {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.emphasis,
.section .emphasis {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.pullquote,
.section .pullquote {
  font-family: var(--quote);
  font-weight: 600;
  letter-spacing: -0.01em;
  border-left: 3px solid #0a0a0a;
}

.text-links a {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #0a0a0a;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 2px;
}

.text-links a:hover {
  color: #0a0a0a;
  border-bottom-color: #0a0a0a;
}

.art {
  border-radius: var(--card-radius);
}

/* Cards: soft rounded panels, each led by its bold phrase */
.cards {
  gap: 24px;
}

.card {
  border: 1px solid var(--rule);
  border-radius: var(--card-radius);
  padding: 36px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.card strong {
  display: block;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0a0a0a;
  margin-bottom: 0.6em;
}

/* A set of five becomes two large cards over three small ones, with the last one dark */
@media (min-width: 901px) {
  .cards:has(> :nth-child(5):last-child) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .cards:has(> :nth-child(5):last-child) > * {
    grid-column: span 2;
  }

  .cards:has(> :nth-child(5):last-child) > :nth-child(-n + 2) {
    grid-column: span 3;
  }
}

.section .cards:has(> :nth-child(5):last-child) > :last-child {
  background: #141414;
  border-color: #141414;
  color: #a1a1aa;
}

.cards:has(> :nth-child(5):last-child) > :last-child strong {
  color: #fff;
}

.facts {
  border-radius: 16px;
}

.steps > div {
  border-left: 1px solid var(--rule);
  border-radius: var(--card-radius);
  padding: 36px;
}

.stats li {
  border-left-color: var(--rule);
}

.stat-num {
  font-weight: 900;
  letter-spacing: -0.05em;
}

/* FAQ: serif questions, as in the reference */
.faq dt {
  font-family: var(--quote);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  color: #18181b;
}

/* Bios */
.bio img {
  border-radius: var(--card-radius);
}

.bio-name,
.section .bio-name {
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}

/* Closing band */
.cta-band h2 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
}

/* Forms */
.form {
  border-top: 1px solid var(--rule);
  border-radius: var(--card-radius);
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  border-color: #d4d4d8;
}

/* Blog */
.category-links a {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  border-radius: 999px;
  padding: 8px 14px;
}

.category-links a:hover {
  border-color: #0a0a0a;
}

.post-card {
  border-radius: var(--card-radius);
}

.post-card:hover {
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.18);
}

.post-card-body {
  border-top: 0;
}

.post-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.post-subtitle {
  font-family: var(--quote);
  color: #3f3f46;
}

.byline {
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
}

.post-body h2 {
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.personal-ad {
  border-left: 3px solid #0a0a0a;
  border-radius: 0 16px 16px 0;
}

.callout {
  border-top: 1px solid var(--rule);
  border-radius: var(--card-radius);
}

.timeline {
  border-left-color: var(--rule);
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
}

.site-footer .wordmark span {
  color: inherit;
}

/* Boxed section: white with the hero's dot grid, on the light grey page band */
.section--boxed {
  background: var(--off-white);
  --boxed-bg: #fff radial-gradient(#e5e7eb 1px, transparent 1px) 0 0 / 24px 24px;
  --boxed-radius: var(--card-radius);
  --boxed-heading: #0a0a0a;
  --boxed-text: var(--text-muted);
}

.section--boxed > .container {
  border: 1px solid var(--rule);
}

/* With no image beside it, the copy block sits in the middle of the box, still left aligned */
.section--boxed .prose {
  margin-inline: auto;
}

/* No illustrations in this theme, apart from the home page hero placeholder.
   Headshots of real people (About page, blog author boxes) stay, and so do blog images:
   Ted's notes require a header image on every post, also used as its card thumbnail. */
.split > .art,
.hero-grid > .art {
  display: none;
}

/* With the image gone, text sections use the full width of their column again */
.split,
.split--narrow-art,
.split--art-left.split--narrow-art {
  grid-template-columns: minmax(0, 1fr);
}

.hero-grid:has(> .art):not(:has(.hero-stage)) {
  grid-template-columns: minmax(0, 1fr);
}

/* Placeholders beside the copy in chosen home page sections (see cea.js),
   stretched to the copy's height */
.split.has-section-art {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: stretch;
}

.split.has-section-art--right {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.section-art {
  border-radius: var(--card-radius);
  min-height: 280px;
}

/* A painting in place of a placeholder: fills the same space, cropped to fit */
.section-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .split.has-section-art,
  .split.has-section-art--right {
    grid-template-columns: 1fr;
  }


  .section-art {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .section-art-img {
    height: auto;
  }
}

/* Small screens */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    margin-top: 16px;
  }

  .hero-grid .hero-panel .art {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 640px) {
  .hero .btn {
    font-size: 1rem;
    padding: 1.1rem 1.5rem;
  }

  .card,
  .steps > div {
    padding: 28px;
  }
}

/* Phones: less space above and below the hero */
@media (max-width: 640px) {
  .hero {
    padding: 64px 0;
  }
}
