/* The School of AI · theschoolofai.co
   Brand (Oct 2026): Bricolage Grotesque 800 headlines, Manrope 400 body,
   wine #642737, light cream #F4F1EA, dusty blue #96B6C5. The robot stays. */

:root {
  --wine: #642737;
  --wine-dark: #4A1C28;
  --cream: #F4F1EA;
  --blue: #96B6C5;
  --blue-soft: #DCE7EC;
  --sand: #EAE3D6;
  --ink: #34191F;
  --head: 'Bricolage Grotesque', 'Arial Black', sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--head); font-weight: 800; line-height: 1; letter-spacing: -0.02em; color: var(--wine); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

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

.label {
  font-family: var(--body); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--body); font-weight: 700; font-size: 15px;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid var(--wine);
  background: var(--wine); color: var(--cream);
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--wine-dark); border-color: var(--wine-dark); transform: translateY(-1px); }

/* Header */
.site-head { background: var(--cream); border-bottom: 1px solid rgba(100,39,55,.15); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.wordmark {
  font-family: var(--head); font-weight: 800; font-size: 22px; letter-spacing: -0.02em;
  color: var(--wine); text-decoration: none;
}
.site-head .btn { padding: 10px 18px; font-size: 14px; }
@media (max-width: 480px) {
  .wordmark { font-size: 18px; }
  .site-head .btn { padding: 9px 14px; font-size: 13px; }
}

/* Hero: The Student Lounge, big and left-aligned, typing line, robot that floats and follows your mouse */
.hero { background: var(--wine); color: var(--cream); position: relative; overflow: hidden; }
.hero .wrap { position: relative; padding-top: clamp(40px, 7vw, 80px); padding-bottom: clamp(44px, 7vw, 84px); }
.hero h1 {
  color: var(--cream);
  font-size: clamp(60px, 13.5vw, 196px);
  line-height: .84;
  letter-spacing: -0.045em;
  margin: 0 0 0 -0.04em;
}
.typed {
  font-family: var(--head); font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  font-size: clamp(30px, 5.4vw, 72px);
  color: var(--blue);
  min-height: 1.1em;
  margin: .35em 0 .45em;
}
.typed span::after { content: "|"; color: var(--cream); margin-left: .04em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.tagline { font-size: clamp(19px, 2.3vw, 25px); line-height: 1.45; max-width: 30ch; margin: 0; }
.robot-wrap {
  position: absolute; right: var(--gutter); bottom: 0;
  width: clamp(150px, 22vw, 290px);
  perspective: 700px;
  animation: float 3.4s ease-in-out infinite;
}
.robot-wrap .robot { transition: transform .25s ease-out; }
@keyframes float { 0%,100% { transform: translateY(6px) rotate(-1.5deg); } 50% { transform: translateY(-8px) rotate(1.5deg); } }
@media (max-width: 760px) {
  .hero .wrap { padding-bottom: 0; }
  .robot-wrap { position: static; width: 140px; margin: 24px 0 0 auto; }
}

/* Scrolling ribbon under the hero */
.ribbon { background: var(--blue); color: var(--wine); overflow: hidden; white-space: nowrap; border-block: 2px solid var(--wine); }
.ribbon .track { display: inline-flex; animation: ribbon 30s linear infinite; }
.ribbon span { font: 800 clamp(22px, 3vw, 34px)/1 var(--head); letter-spacing: -.02em; padding: 15px 0; }
.ribbon i { font-style: normal; padding: 0 22px; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* Filters */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 30px 0 26px; }
.filters .label { color: var(--wine); margin-right: 6px; }
.chip {
  font-family: var(--body); font-weight: 700; font-size: 14px;
  color: var(--wine); background: transparent;
  border: 2px solid var(--wine); border-radius: 999px;
  padding: 7px 16px; cursor: pointer;
}
.chip:hover { background: var(--blue-soft); }
.chip[aria-pressed="true"] { background: var(--wine); color: var(--cream); }

/* Resource cards: big poster tiles that flip over */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: clamp(56px, 8vw, 96px); }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.flip { perspective: 1200px; min-height: 440px; cursor: pointer; border-radius: 18px; }
.flip .in { position: relative; height: 100%; min-height: 440px; transition: transform .7s cubic-bezier(.3,1.4,.5,1); transform-style: preserve-3d; }
@media (hover: hover) { .flip:hover .in { transform: rotateY(180deg); } }
.flip.open .in, .flip:focus-within .in { transform: rotateY(180deg); }
.card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 26px 26px 24px;
  border-radius: 18px;
  color: var(--ink);
  background: var(--blue);
  overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.card.back { transform: rotateY(180deg); justify-content: center; gap: 18px; }
.card h3 { font-size: clamp(34px, 3.6vw, 46px); line-height: .95; margin: 14px 0 0; }
.card.back h3 { margin: 0; }
.card.c-wine { background: var(--wine); color: var(--cream); }
.card.c-wine h3 { color: var(--cream); }
.card.c-wine .btn { background: var(--cream); color: var(--wine); border-color: var(--cream); }
.card.c-sand { background: var(--sand); }
.card.c-soft { background: var(--blue-soft); }
.card .top { display: flex; justify-content: space-between; gap: 10px; opacity: .8; }
.card .art { flex: 1; display: grid; place-items: center; padding: 14px 0; min-height: 140px; }
.card .art img { max-height: 190px; width: auto; object-fit: contain; }
.card .art .num { font-family: var(--head); font-weight: 800; font-size: 150px; line-height: 1; letter-spacing: -0.05em; opacity: .9; }
.card p { margin: 0; font-size: 18px; }
.card .hint { font-weight: 700; font-size: 13px; opacity: .7; }
.card .btn { align-self: flex-start; }
.badge {
  display: inline-block; align-self: flex-start;
  background: var(--cream); color: var(--wine);
  font-weight: 700; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.empty { grid-column: 1 / -1; text-align: center; padding: 40px 0; }

/* Slide up on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* Email signup band */
.signup { background: var(--blue); }
.signup .wrap { display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; align-items: center; padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(48px, 7vw, 84px); }
.signup h2 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 14px; }
.signup p { margin: 0; max-width: 46ch; }
.signup .btn { justify-self: end; }
@media (max-width: 760px) { .signup .wrap { grid-template-columns: 1fr; } .signup .btn { justify-self: start; } }

/* Footer */
.site-foot { padding: 34px 0; }
.site-foot .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.site-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-foot a { text-decoration: none; font-weight: 700; color: var(--wine); }
.site-foot a:hover { text-decoration: underline; }
.site-foot small { font-size: 14px; opacity: .75; }

/* Opt-in box: name + email unlocks a pack */
.optin, .optin-done {
  background: var(--blue-soft); border: 2px solid var(--wine); border-radius: 18px;
  padding: clamp(22px, 4vw, 36px);
}
.optin h3, .optin-done h3 { font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 10px; }
.optin > p { margin: 0 0 18px; }
.optin-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
@media (max-width: 600px) { .optin-fields { grid-template-columns: 1fr; } }
.optin label { display: grid; gap: 6px; color: var(--wine); }
.optin input {
  font: 400 17px var(--body); color: var(--ink);
  background: var(--cream); border: 2px solid var(--wine); border-radius: 12px;
  padding: 12px 14px; width: 100%;
}
.optin input:focus { outline: 3px solid var(--blue); outline-offset: 1px; }
.optin .btn[disabled] { opacity: .7; cursor: wait; }
.optin-msg { min-height: 1.4em; margin: 12px 0 0; font-weight: 700; color: var(--wine); }
.optin-msg:empty { margin: 0; min-height: 0; }
.optin-fine { margin: 10px 0 0; font-size: 14px; opacity: .75; }
.optin-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.optin-done .label { color: var(--wine); margin: 0 0 6px; }
.optin-done p:last-child { margin: 0; }

/* Guide pages */
.guide-hero { background: var(--wine); color: var(--cream); }
.guide-hero .wrap { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(40px, 6vw, 72px); max-width: 900px; }
.guide-hero .back { display: inline-block; color: var(--cream); text-decoration: none; font-weight: 700; font-size: 14px; opacity: .85; margin-bottom: 26px; }
.guide-hero .back:hover { opacity: 1; text-decoration: underline; }
.guide-hero .label { color: var(--blue); margin: 0 0 12px; }
.guide-hero h1 { color: var(--cream); font-size: clamp(40px, 6.6vw, 80px); line-height: .95; letter-spacing: -0.035em; }
.guide-hero .sub { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; max-width: 46ch; margin: 22px 0 28px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.facts > div { background: rgba(244,241,234,.1); border: 1px solid rgba(244,241,234,.25); border-radius: 14px; padding: 14px 16px; display: grid; gap: 4px; font-size: 15px; line-height: 1.45; }
.facts .label { color: var(--blue); margin: 0; font-size: 11px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

.guide-body { max-width: 760px; padding-top: clamp(36px, 6vw, 64px); padding-bottom: clamp(56px, 8vw, 96px); font-size: 18px; line-height: 1.7; }
.guide-body h2 { font-size: clamp(28px, 3.6vw, 38px); margin: 1.8em 0 .5em; }
.guide-body p { margin: 0 0 1em; }
.guide-body ul, .guide-body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.guide-body li { margin-bottom: .4em; }
.guide-body li::marker { color: var(--wine); font-weight: 700; }
.guide-body code { font-size: .9em; background: var(--blue-soft); padding: .1em .35em; border-radius: 6px; }
.guide-body strong { color: var(--wine); }

.phone { margin: 32px auto; width: min(280px, 72%); padding: 12px; background: var(--ink); border-radius: 44px; box-shadow: 0 24px 50px rgba(100,39,55,.25); }
.phone img { border-radius: 32px; width: 100%; }

.prompt-box { position: relative; background: var(--wine); color: var(--cream); border-radius: 16px; margin: 0 0 1.4em; }
.prompt-box pre { margin: 0; padding: 52px 22px 22px; white-space: pre-wrap; word-break: break-word; font: 400 15px/1.6 ui-monospace, 'SF Mono', Menlo, monospace; }
.prompt-box code { background: none; padding: 0; color: var(--cream); font-size: inherit; }
.prompt-box .copy {
  position: absolute; top: 12px; right: 12px;
  font: 700 13px var(--body); color: var(--wine); background: var(--cream);
  border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer;
}
.prompt-box .copy:hover { background: var(--blue); }

.side-box { background: var(--sand); border-left: 5px solid var(--blue); border-radius: 12px; padding: 18px 22px; margin: 0 0 1.4em; }
.side-box p:last-child { margin: 0; }

.gate { margin: 48px 0 0; padding-top: 36px; border-top: 2px dashed rgba(100,39,55,.35); }
.gate h2 { margin-top: 0; }
.gate [data-optin] { margin-top: 22px; }
[data-locked] { margin-top: 40px; }

/* Anyone who has "reduce motion" turned on gets a still page */
@media (prefers-reduced-motion: reduce) {
  .robot-wrap, .ribbon .track, .typed span::after { animation: none !important; }
  .robot-wrap .robot { transition: none; }
  .flip .in { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
