/* ============================================================
   Bluffdale ACM Chapter — Turing Machine Tape theme
   Lecture-board dark palette
   ============================================================ */

:root {
  --board: #1D2023;
  --board-deep: #17191C;
  --chalk: #F2F1EA;
  --tape: #EFE6CE;
  --cobalt: #4C79B4;
  --copper: #B78247;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-size: 16px;
  font-family: Georgia, "Times New Roman", serif;
  background-color: #1D2023;
  color: #F2F1EA;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.2; font-weight: 700; }

a { color: inherit; }

/* ---------- TAPE HEAD HEADER ---------- */

.tapehead {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: #1D2023;
  border-bottom: 1px solid #4C79B4;
}

.tapehead-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 24px 22px;
  flex-wrap: wrap;
}

.tapeplate {
  position: relative;
  display: inline-block;
  background-color: #EFE6CE;
  color: #1D2023;
  text-decoration: none;
  padding: 14px 22px 20px;
  border-radius: 6px;
  box-shadow: 0 3px 0 #B78247;
}

.tapeplate-text {
  font-size: 20px;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.tapeplate-holes {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.tapeplate-holes i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #1D2023;
  display: block;
}

.tapehead-track {
  position: relative;
  flex: 1 1 520px;
  padding-top: 34px;
}

.tapehead-track .rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 78px;
  height: 2px;
  background-color: #4C79B4;
}

.headplate {
  position: absolute;
  top: 0;
  right: 34%;
  display: flex;
  align-items: center;
}

.headplate-bracket {
  width: 54px;
  height: 20px;
  border: 2px solid #4C79B4;
  border-bottom: none;
  display: block;
}

.headplate-tri {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #4C79B4;
  display: block;
}

.headplate .statecircle { margin-left: 8px; }

.statecircle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #4C79B4;
  background-color: #1D2023;
  color: #F2F1EA;
  font-size: 13px;
  font-weight: 700;
  font-family: "Courier New", monospace;
}

.tapenav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tapecell {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 84px;
  background-color: #EFE6CE;
  color: #1D2023;
  text-decoration: none;
  border-radius: 5px;
  padding: 10px 6px 8px;
  border: 1px solid #B78247;
}

.tapecell:hover { background-color: #F5EEDA; }

.cellmark {
  width: 13px;
  height: 13px;
  background-color: #1D2023;
  display: block;
  margin-bottom: 6px;
}

.celltext {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #1D2023;
}

.chalkline {
  display: block;
  height: 1px;
  background-color: #B78247;
}

/* ---------- HERO / TAPE STAGE ---------- */

.tapestage {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 24px 72px;
  align-items: center;
}

.tapestage-copy { flex: 1 1 55%; max-width: 640px; }
.tapestage-machine { flex: 1 1 40%; max-width: 520px; }

.stage-eyebrow {
  color: #B78247;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
  font-family: "Courier New", monospace;
}

.stage-headline {
  font-size: 46px;
  margin: 0 0 20px;
  color: #F2F1EA;
}

.stage-headline .cream { color: #EFE6CE; }

.stage-lede {
  font-size: 18px;
  color: #F2F1EA;
  margin: 0 0 28px;
}

.stage-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.rulechip {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #EFE6CE;
  color: #1D2023;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 5px;
  border: 2px solid #4C79B4;
}

.rulechip-alt { border-color: #B78247; }

.rulechip-code {
  font-family: "Courier New", monospace;
  font-size: 12px;
  color: #1D2023;
  margin-bottom: 4px;
}

.rulechip-text { font-weight: 700; color: #1D2023; }

/* machine stage */

.tapestage-machine {
  position: relative;
  background-color: #17191C;
  border: 1px solid #4C79B4;
  border-radius: 8px;
  padding: 26px 22px 30px;
}

.machine-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.mh-bracket {
  width: 60px;
  height: 22px;
  border: 2px solid #4C79B4;
  border-bottom: none;
  display: block;
}

.mh-tri {
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 11px solid #4C79B4;
  display: block;
}

.machine-rules {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
}

.rulecard {
  background-color: #EFE6CE;
  color: #1D2023;
  font-family: "Courier New", monospace;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid #B78247;
}

.machine-tape {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 16px;
}

.tcell {
  width: 34px;
  height: 34px;
  background-color: #EFE6CE;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tcell-blank { background-color: #17191C; border: 1px dashed #4C79B4; }

.tsym {
  width: 14px;
  height: 14px;
  background-color: #1D2023;
  display: block;
}

.machine-strip {
  display: flex;
  justify-content: space-between;
  background-color: #EFE6CE;
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 22px;
}

.machine-strip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #17191C;
  display: block;
}

.machine-diagram {
  position: relative;
  height: 60px;
}

.diag-circle {
  position: absolute;
  left: 12px;
  top: 8px;
  width: 40px;
  height: 40px;
  border: 2px solid #F2F1EA;
  border-radius: 50%;
  display: block;
}

.diag-arrow-a {
  position: absolute;
  left: 56px;
  top: 22px;
  width: 60px;
  height: 2px;
  background-color: #F2F1EA;
  display: block;
}

.diag-arrow-b {
  position: absolute;
  left: 56px;
  top: 34px;
  width: 40px;
  height: 2px;
  background-color: #B78247;
  display: block;
}

.diag-dot {
  position: absolute;
  left: 116px;
  top: 18px;
  width: 10px;
  height: 10px;
  background-color: #4C79B4;
  display: block;
}

/* ---------- TRANSITION TABLE ---------- */

.transitiontable {
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 24px 70px;
}

.tt-head { max-width: 820px; margin-bottom: 40px; }

.tt-title { font-size: 36px; margin: 0 0 12px; color: #F2F1EA; }

.tt-sub { color: #F2F1EA; margin: 0; }

.tt-row {
  display: flex;
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid #4C79B4;
  border-bottom: 1px solid #4C79B4;
  margin-bottom: -1px;
  align-items: flex-start;
}

.tt-indent-0 .tt-body { margin-left: 0; }
.tt-indent-48 .tt-body { margin-left: 48px; }
.tt-indent-16 .tt-body { margin-left: 16px; }
.tt-indent-56 .tt-body { margin-left: 56px; }
.tt-indent-24 .tt-body { margin-left: 24px; }
.tt-indent-40 .tt-body { margin-left: 40px; }

.tt-margin {
  flex: 0 0 110px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.qring { width: 40px; height: 40px; font-size: 14px; }

.qring::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 2px;
  background-color: #B78247;
  margin-left: -46px;
  margin-top: 6px;
}

.rwpair { display: flex; gap: 6px; }

.rw {
  width: 26px;
  height: 26px;
  background-color: #EFE6CE;
  color: #1D2023;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  border-radius: 3px;
}

.tt-body { flex: 1 1 auto; }

.tt-name {
  font-size: 24px;
  margin: 0 0 10px;
  color: #F2F1EA;
  padding-bottom: 8px;
  border-bottom: 2px solid #B78247;
  display: inline-block;
}

.tt-text { color: #F2F1EA; margin: 0 0 12px; }

.tt-link {
  color: #EFE6CE;
  text-decoration: underline;
  text-decoration-color: #B78247;
  font-weight: 700;
}

.holestrip { display: flex; gap: 8px; margin-bottom: 12px; }

.holestrip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #EFE6CE;
  display: block;
}

.haltstate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 0;
}

.halt-ring {
  width: 48px;
  height: 48px;
  border: 3px solid #F2F1EA;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.halt-ring-inner {
  width: 24px;
  height: 24px;
  border: 2px solid #4C79B4;
  border-radius: 50%;
  display: block;
}

.halt-word {
  font-family: "Courier New", monospace;
  font-size: 22px;
  letter-spacing: 0.2em;
  color: #F2F1EA;
}

/* ---------- CONTEST WINDOW STRIP ---------- */

.contestwindow {
  background-color: #4C79B4;
  color: #F2F1EA;
  padding: 40px 24px 44px;
  text-align: center;
}

.cw-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto 18px;
  flex-wrap: wrap;
}

.cw-cells { display: flex; gap: 8px; }

.cw-cells i {
  width: 20px;
  height: 20px;
  background-color: #EFE6CE;
  border-radius: 3px;
  display: block;
}

.cw-text { font-size: 20px; margin: 0; color: #F2F1EA; }

.cw-link {
  display: inline-block;
  background-color: #EFE6CE;
  color: #1D2023;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 5px;
  border: 2px solid #17191C;
}

/* ---------- CHAPTER STORY ---------- */

.chapterstory {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.cs-columns { display: flex; gap: 48px; flex-wrap: wrap; }

.cs-main { flex: 1 1 60%; }

.cs-title { font-size: 32px; margin: 0 0 18px; color: #EFE6CE; }

.cs-main p { color: #F2F1EA; margin: 0 0 18px; }

.cs-aside {
  flex: 1 1 30%;
  background-color: #17191C;
  border: 1px solid #4C79B4;
  border-top: 4px solid #B78247;
  border-radius: 8px;
  padding: 24px;
}

.cs-aside-title { font-size: 20px; margin: 0 0 16px; color: #EFE6CE; }

.cs-list { list-style: none; margin: 0 0 18px; padding: 0; }

.cs-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #2a2e32;
  color: #F2F1EA;
}

.cs-dot {
  width: 9px;
  height: 9px;
  background-color: #4C79B4;
  border-radius: 50%;
  display: block;
  flex: 0 0 auto;
}

.cs-note { color: #B78247; font-size: 14px; margin: 0; }

/* ---------- HALT REGISTER FOOTER ---------- */

.haltregister { background-color: #17191C; margin-top: 0; }

.hr-punch {
  display: flex;
  justify-content: space-between;
  background-color: #EFE6CE;
  padding: 5px 18px;
}

.hr-punch i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #17191C;
  display: block;
}

.hr-body {
  display: flex;
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 44px 24px;
  flex-wrap: wrap;
}

.hr-plate {
  flex: 1 1 380px;
  background-color: #EFE6CE;
  color: #1D2023;
  border-radius: 8px;
  padding: 24px;
  border-left: 6px solid #4C79B4;
}

.hr-circle { margin-bottom: 10px; }

.hr-brand { font-size: 24px; margin: 0 0 10px; color: #1D2023; }

.hr-blurb { color: #1D2023; margin: 0; }

.hr-links { display: flex; gap: 40px; flex-wrap: wrap; flex: 1 1 300px; }

.hr-col-a { flex: 0 0 180px; }
.hr-col-b { flex: 0 0 150px; }

.hr-col-title {
  font-size: 16px;
  color: #EFE6CE;
  margin: 0 0 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid #B78247;
  padding-bottom: 8px;
}

.rulechipsm {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #F2F1EA;
  text-decoration: none;
  padding: 7px 0;
}

.rulechipsm .dot {
  width: 9px;
  height: 9px;
  background-color: #4C79B4;
  display: block;
  flex: 0 0 auto;
}

.rulechipsm:hover { color: #EFE6CE; }

.hr-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 24px 28px;
  border-top: 1px solid #4C79B4;
  color: #F2F1EA;
  font-size: 14px;
}

.tick {
  width: 22px;
  height: 3px;
  background-color: #B78247;
  display: block;
  flex: 0 0 auto;
}

.hr-copy { margin-left: auto; color: #EFE6CE; }

/* ---------- CONTACT FORM ---------- */

.form-row { margin: 0 0 18px; }

.form-label {
  display: block;
  color: #EFE6CE;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 15px;
}

.form-input {
  display: block;
  width: 100%;
  background-color: #EFE6CE;
  color: #1D2023;
  border: 2px solid #4C79B4;
  border-radius: 5px;
  padding: 11px 14px;
  font-size: 16px;
  font-family: Georgia, "Times New Roman", serif;
}

.form-area { resize: vertical; }

.form-submit {
  background-color: #EFE6CE;
  color: #1D2023;
  border: 2px solid #B78247;
  border-radius: 5px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 700;
  font-family: Georgia, "Times New Roman", serif;
  cursor: pointer;
}

.form-submit:hover { background-color: #F5EEDA; }

.form-note { color: #B78247; font-size: 14px; margin: 14px 0 0; }

/* ---------- FAQ ---------- */

.faq-item {
  border-top: 1px solid #4C79B4;
  border-bottom: 1px solid #4C79B4;
  margin-bottom: -1px;
  padding: 26px 0;
}

.faq-q {
  font-size: 21px;
  color: #EFE6CE;
  margin: 0 0 10px;
}

.faq-a { color: #F2F1EA; margin: 0; }

/* ---------- SCROLL REVEAL ---------- */

.reveal {
  transform: translateY(14px);
  transition: transform 600ms ease;
}

.reveal.is-in { transform: translateY(0); }

.reveal-hidden { transform: none; }

.no-js .reveal { transform: none; }

/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {
  .tapestage-copy, .tapestage-machine { flex: 1 1 100%; max-width: 100%; }
  .stage-headline { font-size: 36px; }
  .tt-row { flex-direction: column; gap: 16px; }
  .tt-indent-48 .tt-body,
  .tt-indent-16 .tt-body,
  .tt-indent-56 .tt-body,
  .tt-indent-24 .tt-body,
  .tt-indent-40 .tt-body { margin-left: 0; }
  .headplate { display: none; }
}

@media (max-width: 600px) {
  .stage-headline { font-size: 30px; }
  .tapecell { width: 68px; }
  .tcell { width: 28px; height: 28px; }
  .hr-copy { margin-left: 0; }
}
