@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --paper: #f7f3e9;
  --paper-dim: #ece3cf;
  --ink: #201c16;
  --muted: #6f6a5c;
  --line: #ddd3ba;
  --red: #c1341f;
  --blue: #1f3f8f;
  --ochre: #e0a940;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

h1, h2, h3, .display {
  font-family: "Space Grotesk", Helvetica, Arial, sans-serif;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--blue); }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  font-family: ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--red);
  display: block;
  margin-bottom: 1.1rem;
}

/* header */
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.wordmark svg { flex: none; }

.wordmark span.name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.wordmark span.name em { color: var(--red); font-style: normal; }

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

nav.site a {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  padding-bottom: 0.2rem;
}

nav.site a:hover { border-bottom-color: var(--red); color: var(--ink); }

/* hero */
.hero {
  padding: 5.5rem 0 6rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 3.2vw + 1.2rem, 4.1rem);
  line-height: 1.08;
}

.hero .lede {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 34rem;
  margin: 1.6rem 0 2rem;
}

.btn-row { display: flex; gap: 0.85rem; flex-wrap: wrap; }

.btn {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  border: 2px solid transparent;
  display: inline-block;
  cursor: pointer;
}

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

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

.shape-field {
  position: relative;
  height: 320px;
  width: 100%;
}

.shape-field::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 36px 36px;
  background-position: center;
  -webkit-mask-image: radial-gradient(circle at center, black 55%, transparent 78%);
          mask-image: radial-gradient(circle at center, black 55%, transparent 78%);
}

.shape { position: absolute; z-index: 1; }

.shape.circle-half {
  width: 160px; height: 160px; border-radius: 50%;
  background: var(--blue);
  clip-path: inset(0 0 0 50%);
  top: 40px; left: 110px;
}

.shape.tri {
  width: 144px; height: 124px;
  background: var(--red);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  top: 110px; left: 20px;
  transform: rotate(18deg);
}

.shape.sq {
  width: 92px; height: 92px; background: var(--ochre);
  top: 190px; left: 220px; transform: rotate(8deg);
}

/* sections */
section {
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  scroll-margin-top: 90px;
}

section h2 { font-size: clamp(1.7rem, 2vw + 1rem, 2.6rem); line-height: 1.1; }

.section-head { margin-bottom: 3rem; }

/* vision */
.vision-list { max-width: 44rem; }

.vision-item {
  display: flex;
  gap: 1.3rem;
  padding: 1.7rem 0;
  border-top: 1px solid var(--line);
}

.vision-item:first-child { border-top: none; padding-top: 0; }
.vision-item svg { flex: none; margin-top: 0.2rem; }
.vision-item p { font-size: 1.1rem; line-height: 1.7; margin: 0; }

.vision-quote {
  background: var(--paper-dim);
  padding: 2.4rem 2.6rem;
  margin-top: 2.4rem;
  max-width: 44rem;
}

.vision-quote p {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.25rem, 1.6vw + 0.8rem, 1.65rem);
  line-height: 1.45;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

/* courses list */
.course-list {
  max-width: 52rem;
  margin-top: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.course-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.course-row-main { display: flex; align-items: flex-start; gap: 1.2rem; }
.course-row-main svg { flex: none; margin-top: 0.3rem; }
.course-row h3 { font-size: 1.3rem; margin: 0 0 0.6rem; }
.course-row-main p { margin: 0 0 1.4rem; font-size: 1rem; line-height: 1.65; color: var(--muted); max-width: 36rem; }
.course-row-main p .accent { color: var(--blue); }

.course-cta { pointer-events: none; }

.course-row:hover h3 { color: var(--red); }
.course-row:hover .btn.primary { background: var(--red); }

/* class */
.class-head-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 0.5rem;
}

.class-head-row svg { flex: none; }
.class-head-row h1 { font-size: clamp(2.1rem, 2.6vw + 1.2rem, 3.4rem); line-height: 1.08; }

#overview { padding-top: 3.5rem; }
#overview > .wrap > .eyebrow { margin-bottom: 2rem; }

.tag {
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  border: 1px solid var(--blue);
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 1.75rem;
}

.class-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 42rem;
  margin: 0 0 1.2rem;
}

.class-desc .accent { color: var(--blue); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.2rem 2.5rem;
  margin-top: 1.75rem;
  max-width: 52rem;
}

.project-sketch {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
  margin-bottom: 1rem;
  overflow: hidden;
  line-height: 0;
}
.project-sketch canvas { display: block; width: 100% !important; height: 100% !important; }
.project h3 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.project p { margin: 0; font-size: 0.95rem; line-height: 1.65; color: var(--muted); }

.details-grid { margin-top: 2.5rem; max-width: 52rem; }

.detail-row {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 1.5rem;
  padding: 1.3rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.detail-row dt {
  font-family: ui-monospace, "SF Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

.detail-row dd { margin: 0; font-size: 1.05rem; font-weight: 500; }
.detail-row dd a { font-weight: 500; }

/* instructors */
.instructor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-top: 0.5rem;
}

.instructor h3 { font-size: 1.25rem; margin-bottom: 0.7rem; }
.instructor p { font-size: 0.97rem; line-height: 1.7; margin: 0; }

/* signup */
.note { font-size: 0.9rem; color: var(--muted); margin-top: 1.4rem; }

footer.site {
  padding: 2.75rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* responsive */
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .shape-field { height: 220px; margin-top: 0.5rem; }
  .detail-row { grid-template-columns: 1fr; gap: 0.35rem; }
}

@media (max-width: 560px) {
  header.site .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }
  nav.site { gap: 1.1rem; }
  section { padding: 3.5rem 0; scroll-margin-top: 190px; }
  .hero { padding: 3.5rem 0 3rem; }
}
