/* School of Hard Bots: unpublished one-page draft */

:root {
  --chalk-deep: #0b0e0c;
  --chalk: #121816;
  --chalk-mid: #1a221e;
  --ink: #efece3;
  --ink-soft: #c9c6bb;
  --ink-dim: #9a988f;
  --steel: #c4c8cd;
  --steel-bright: #eef1f4;
  --steel-mid: #8b9198;
  --steel-dark: #5c6166;
  --steel-shadow: #2a2d30;
  --line: rgba(196, 200, 205, 0.22);
  --frame: #8a9097;
  --danger: #b45555;
  --focus: #d7dbe0;
  --radius: 6px;
  --max: 1120px;
  --header-h: 72px;
  --font-sans: "Source Sans 3", "Segoe UI", sans-serif;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-chalk: "Special Elite", "Courier New", monospace;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--chalk-deep);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--steel-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #fff;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--steel);
  color: #1a1d1f;
  padding: 0.5rem 0.9rem;
  z-index: 1000;
  font-weight: 700;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Steel wordmark and section titles */
.metal {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #f7f8fa 0%, #c5c9ce 42%, #8d939b 51%, #e4e7eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.kicker {
  font-family: var(--font-chalk);
  color: var(--ink-soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin: 0 0 0.7rem;
}

.section {
  padding: 4.5rem 1.5rem;
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin: 0 auto 2.75rem;
  max-width: 38rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  margin: 0 0 0.85rem;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
}

.chalk-rule {
  display: block;
  width: 7rem;
  height: 3px;
  margin: 0.85rem auto 0;
  border: 0;
  background: linear-gradient(90deg, transparent, #e8e4d8 15%, #e8e4d8 85%, transparent);
  border-radius: 2px;
  opacity: 0.85;
}

/* Riveted frames */
.rivet-frame {
  position: relative;
  border: 10px solid var(--frame);
  border-radius: 4px;
  background-color: var(--chalk-mid);
  box-shadow:
    0 0 0 1px #d5d8dc,
    0 0 0 2px #5a5f64,
    0 14px 36px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.rivet-frame::before,
.rivet-frame::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #f0f2f4 0 20%, #9aa0a6 40%, #4c5156 70%, #b7bcc1 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  z-index: 2;
  pointer-events: none;
}

.rivet-frame::before {
  top: -6px;
  left: -6px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.45),
    calc(100% + 0px) 0 0 0 transparent;
}

/* Four corner rivets via box-shadow on a zero-size proxy is awkward.
   Use a dedicated rivet layer instead. */
.rivet-frame::before,
.rivet-frame::after {
  display: none;
}

.rivets {
  pointer-events: none;
  position: absolute;
  inset: -6px;
  z-index: 3;
}

.rivets span {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #f3f5f7 0 22%, #a2a8ae 42%, #4a4f54 72%, #c5c9ce 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), inset 0 -1px 1px rgba(0, 0, 0, 0.25);
}

.rivets .tl { top: 0; left: 0; }
.rivets .tr { top: 0; right: 0; }
.rivets .bl { bottom: 0; left: 0; }
.rivets .br { bottom: 0; right: 0; }
.rivets .tm { top: 0; left: 50%; transform: translateX(-50%); }
.rivets .bm { bottom: 0; left: 50%; transform: translateX(-50%); }
.rivets .ml { top: 50%; left: 0; transform: translateY(-50%); }
.rivets .mr { top: 50%; right: 0; transform: translateY(-50%); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 3px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-steel {
  color: #1b1e21;
  background: linear-gradient(180deg, #f2f4f6 0%, #c2c7cd 46%, #8e949b 52%, #d0d4d8 100%);
  border-color: #6a7076;
  box-shadow: inset 0 1px 0 #fff, 0 3px 10px rgba(0, 0, 0, 0.35);
}

.btn-steel:hover {
  color: #111;
  filter: brightness(1.06);
}

.btn-ghost {
  color: var(--steel-bright);
  background: rgba(12, 16, 14, 0.35);
  border-color: var(--steel-mid);
}

.btn-ghost:hover {
  color: #fff;
  border-color: var(--steel-bright);
  background: rgba(255, 255, 255, 0.05);
}

.btn.is-placeholder,
a.is-placeholder {
  cursor: not-allowed;
  opacity: 0.72;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background:
    linear-gradient(180deg, #2a2e32 0%, #1a1d20 55%, #141618 100%);
  border-bottom: 1px solid #4a4f54;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.site-nav {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #9aa0a6, 0 2px 8px rgba(0, 0, 0, 0.45);
}

.brand-name {
  font-size: 1.05rem;
  line-height: 1.15;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--steel-mid);
  background: transparent;
  color: var(--steel-bright);
  border-radius: 3px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--steel-bright);
  margin: 0 auto;
  position: relative;
  transition: transform 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--steel);
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: #fff;
}

.nav-menu .btn {
  margin-left: 0.25rem;
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  text-decoration: none;
  color: #1b1e21;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1.5rem 4.5rem;
  background:
    linear-gradient(180deg, rgba(8, 10, 9, 0.28) 0%, rgba(8, 10, 9, 0.45) 55%, rgba(11, 14, 12, 0.92) 100%),
    url("../img/chalkboard.jpg") center / cover no-repeat;
}

.hero-inner {
  max-width: 760px;
  text-align: center;
}

.hero-logo {
  width: min(280px, 68vw);
  height: auto;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 0.9;
  margin: 0 0 0.85rem;
}

.hero-tag {
  font-family: var(--font-chalk);
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e8e4d8;
  margin: 0 0 1.35rem;
}

.hero-bio {
  margin: 0 auto 2rem;
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* Faculty */
.faculty {
  background: var(--chalk);
}

.faculty-featured {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  margin-bottom: 1.75rem;
  background: var(--chalk-mid);
}

.faculty-featured .photo {
  margin: 0;
  background: #0e1210;
  overflow: hidden;
}

.faculty-featured .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.faculty-featured .copy {
  padding: 2rem 2.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--steel-mid);
  color: var(--steel-bright);
}

.pill-steel {
  color: #1b1e21;
  background: linear-gradient(180deg, #eceff2, #b4b9bf);
  border-color: #7a8086;
}

.faculty-featured h3,
.faculty-panel h3,
.coming-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 0.25rem;
  color: var(--ink);
  font-size: 1.7rem;
}

.role {
  margin: 0 0 0.85rem;
  color: var(--steel);
  font-weight: 600;
}

.faculty-featured p:last-child,
.faculty-panel p,
.coming-card p {
  margin: 0;
  color: var(--ink-soft);
}

.faculty-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

.faculty-panel {
  background: var(--chalk-mid);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.faculty-panel .photo {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #0e1210;
}

.faculty-panel .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.faculty-panel .copy {
  padding: 1.35rem 1.4rem 1.55rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.faculty-panel h3 {
  font-size: 1.45rem;
  text-wrap: balance;
}

.faculty-panel-soon {
  text-align: center;
  justify-content: center;
}

.faculty-panel-soon .soon-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 1.2rem 0.4rem;
  flex: 1;
  align-items: center;
}

.faculty-panel-soon .soon-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.faculty-panel-soon .soon-icon span {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

.faculty-panel-soon .copy {
  padding-top: 0.6rem;
}

.coming-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.15rem;
}

.coming-card {
  flex: 1 1 220px;
  max-width: 250px;
  background: var(--chalk-mid);
  padding: 1.35rem 1.2rem 1.5rem;
  text-align: center;
}

.mono-badge {
  width: 84px;
  height: 84px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 28%, #f3f5f7, #9aa0a6 42%, #5c6167 68%, #d4d7db 100%);
  box-shadow: 0 0 0 2px #4a4f54, 0 6px 16px rgba(0, 0, 0, 0.4);
  color: #1c1f22;
}

.mono-badge svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.coming-card h3 {
  font-size: 1.2rem;
}

/* Lessons */
.lessons {
  background:
    linear-gradient(180deg, #0e1311 0%, #151b18 100%);
}

.lesson-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.lesson-card {
  background: var(--chalk-mid);
  display: flex;
  flex-direction: column;
}

.lesson-card .thumb {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0c0b;
}

.lesson-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.lesson-card:hover .thumb img {
  transform: scale(1.03);
}

.lesson-card .copy {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.lesson-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.45rem;
  margin: 0;
  line-height: 1.15;
}

.lesson-card .meta {
  color: var(--steel);
  font-size: 0.92rem;
  margin: 0;
}

.lesson-card .copy p.body {
  color: var(--ink-soft);
  margin: 0 0 0.5rem;
  flex: 1;
}

.placeholder-note {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1b1e21;
  background: #c5b56a;
  border: 1px solid #8a7a3a;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  font-weight: 600;
}

/* The marker should not be gold/burgundy-luxury. Use steel instead. */
.placeholder-note {
  color: #1b1e21;
  background: linear-gradient(180deg, #e8eaed, #b0b5bb);
  border-color: #6a7076;
}

.lesson-card .btn {
  align-self: flex-start;
  text-decoration: none;
}

/* Follow */
.follow {
  background: var(--chalk);
}

.follow-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.follow-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 1.4rem 0.8rem 1.3rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--chalk-mid);
  text-align: center;
}

.follow-card:hover {
  color: #fff;
}

.follow-card svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.follow-card .name {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.95rem;
}

.follow-card .handle {
  font-size: 0.85rem;
  color: var(--ink-dim);
}

.follow-card.is-placeholder {
  opacity: 0.8;
  cursor: default;
  pointer-events: none;
}

.follow-card.is-placeholder .handle {
  color: var(--steel-mid);
}

/* Signup */
.signup {
  background:
    linear-gradient(180deg, #151b18 0%, #0e1311 100%);
}

.signup-box {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.4rem 2rem 2.2rem;
  text-align: center;
}

.signup-box h2 {
  font-size: clamp(1.85rem, 6.4vw, 2.7rem);
  margin: 0 0 0.7rem;
  text-wrap: balance;
}

.signup-box .lead {
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}

.signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}

.signup-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.signup-form input[type="email"] {
  flex: 1 1 240px;
  min-height: 48px;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--steel-mid);
  border-radius: 3px;
  background: #0b0e0c;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
}

.signup-form input[type="email"]::placeholder {
  color: var(--ink-dim);
}

.form-status {
  margin: 1rem 0 0;
  color: var(--steel);
  min-height: 1.4em;
}

.form-fine {
  margin: 1rem 0 0;
  color: var(--ink-dim);
  font-size: 0.9rem;
}

/* Footer */
.site-footer {
  background: #0a0c0b;
  border-top: 1px solid #2a2f2c;
  padding: 2.2rem 1.5rem 2.6rem;
  text-align: center;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

.site-footer .foot-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.site-footer .mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
}

.site-footer p {
  margin: 0.35rem 0;
}

.disclaimer {
  color: var(--ink-dim);
}

/* Responsive */
@media (max-width: 960px) {
  .faculty-featured {
    grid-template-columns: 1fr;
  }

  .faculty-featured .photo img {
    aspect-ratio: 1 / 1;
    max-height: 420px;
    margin: 0 auto;
  }

  .follow-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 1rem;
    background: #16191c;
    border-bottom: 1px solid #4a4f54;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
  }

  .site-nav.is-open .nav-menu {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 0.9rem 1.4rem;
  }

  .nav-menu .btn {
    margin: 0.4rem 1.4rem 0.2rem;
    width: calc(100% - 2.8rem);
  }

  .lesson-grid {
    grid-template-columns: 1fr;
  }

  .follow-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 3.4rem 1.15rem;
  }
}

@media (max-width: 800px) {
  .faculty-row {
    grid-template-columns: 1fr;
  }

  .follow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .follow-card:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 0.5rem);
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 2.4rem 1.15rem 3.2rem;
    min-height: 0;
  }

  .faculty-featured .copy,
  .signup-box {
    padding: 1.4rem 1.15rem;
  }

  .faculty-panel .copy {
    padding: 1.2rem 1.15rem 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lesson-card .thumb img,
  .nav-toggle span,
  .nav-toggle span::before,
  .nav-toggle span::after {
    transition: none;
  }
}
