/* BTC21 Academy — coming soon.
   Ground stays near-black. Orange is the button, the logo stop,
   the // marks, the ruler centre, and the status dot. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-2019, U+201C-201D, U+2026, U+20BF;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-2019, U+201C-201D, U+2026, U+20BF;
}

:root {
  --ground: #0e0e0e;
  --paper: #f2f2f0;
  --grey: #b8b8b8;
  --orange: #f95606;
  --field: #141414;
  --keyline: #2a2a2a;
  --frame: #3a3a3a;
  --hud: #5a5a5a;
  --meta: #8a8a8a;
  --body: #9a9a9a;
  --sans: "Hanken Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
  --inset: clamp(8px, 1.25vw, 20px);
  --pad-x: clamp(16px, 3.2vw, 56px);
  --pad-y: clamp(16px, 2.4vw, 36px);
}

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

html {
  background: var(--ground);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--ground);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection {
  background: var(--orange);
  color: var(--ground);
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 5;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ground);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  min-height: 100dvh;
  padding: var(--inset);
}

.frame {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - (var(--inset) * 2));
  border: 1.5px solid var(--frame);
}

.ticks {
  position: absolute;
  top: 0;
  left: 36px;
  right: 36px;
  height: 9px;
  background-image: repeating-linear-gradient(
    to right,
    var(--frame) 0 1.2px,
    transparent 1.2px 32px
  );
  pointer-events: none;
}

.frame__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--pad-y) var(--pad-x) clamp(14px, 2vw, 28px);
  min-width: 0;
}

.label {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--meta);
}

.sep {
  color: var(--orange);
}

.mast {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 20px;
}

.mast__right {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 18px;
  text-align: right;
}

.ruler {
  position: relative;
  height: 16px;
  margin-top: 14px;
  background-image: repeating-linear-gradient(
    to right,
    var(--hud) 0 1px,
    transparent 1px 12px
  );
  background-size: 12px 8px;
  background-repeat: repeat-x;
  background-position: left bottom;
}

.ruler::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16px;
  background-image: repeating-linear-gradient(
    to right,
    var(--hud) 0 1.5px,
    transparent 1.5px 120px
  );
  background-repeat: repeat-x;
  background-position: left bottom;
}

.ruler__mark {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1.5px;
  height: 16px;
  background: var(--orange);
  transform: translateX(-50%);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  container-type: inline-size;
  padding-block: clamp(20px, 3.4vh, 48px);
}

.status {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  margin: 0 0 clamp(22px, 3vh, 36px);
  padding: 7px 12px 7px 10px;
  border: 1px solid var(--frame);
  color: var(--grey);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.status__dot {
  width: 7px;
  height: 7px;
  background: var(--orange);
  flex: none;
}

.lockup {
  margin: 0 0 clamp(18px, 2.4vh, 28px);
  color: var(--grey);
  font-size: clamp(2.65rem, 14.6cqi, 6.5rem);
  line-height: 0.9;
  white-space: nowrap;
}

.lockup__letters {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-right: 0.02em;
}

.lockup__stop,
.sig__stop {
  display: inline-block;
  width: 0.145em;
  height: 0.145em;
  margin-left: 0.04em;
  background: var(--orange);
  vertical-align: baseline;
}

.lockup__academy {
  display: inline-block;
  margin-left: 0.574em;
  margin-right: -0.19em;
  font-family: var(--mono);
  font-size: 0.47em;
  font-weight: 400;
  letter-spacing: 0.19em;
  line-height: 1;
  text-transform: uppercase;
  vertical-align: baseline;
}

h1 {
  margin: 0 0 16px;
  color: var(--paper);
  font-size: clamp(2.35rem, 7.4cqi, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.96;
  text-wrap: balance;
}

.lede {
  margin: 0 0 clamp(22px, 3vh, 32px);
  max-width: 36rem;
  color: var(--body);
  font-size: clamp(1.05rem, 2.4cqi, 1.3rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 24px clamp(20px, 3vw, 48px);
  align-items: start;
  margin-bottom: clamp(28px, 4vh, 48px);
}

.actions {
  margin: 0;
}

.dossier {
  margin: 0;
  padding: 16px 16px 6px;
  border: 1px solid var(--keyline);
}

.dossier dl {
  margin: 12px 0 0;
}

.dossier div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--keyline);
}

.dossier dt,
.dossier dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.dossier dt {
  display: flex;
  flex: 1;
  align-items: baseline;
  gap: 8px;
  color: var(--meta);
}

.dossier dt::after {
  content: "";
  flex: 1;
  border-bottom: 1px dotted var(--frame);
  transform: translateY(-3px);
}

.dossier dd {
  color: var(--paper);
  text-align: right;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 48px;
  padding: 0 22px;
  border: 1.5px solid var(--orange);
  background: var(--orange);
  color: var(--ground);
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover,
.btn:active {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ground);
}

.btn:focus-visible,
.skip:focus-visible,
.notify__form input:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}

.btn:hover:focus-visible,
.btn:active:focus-visible {
  outline-color: var(--orange);
}

.parts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.teaser {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 18px 16px 16px;
  background: var(--field);
  border: 1px solid var(--frame);
}

.teaser::before,
.teaser::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
}

.teaser::before {
  top: 7px;
  left: 7px;
  border-top: 1.5px solid var(--hud);
  border-left: 1.5px solid var(--hud);
}

.teaser::after {
  right: 7px;
  bottom: 7px;
  border-right: 1.5px solid var(--hud);
  border-bottom: 1.5px solid var(--hud);
}

.teaser h2 {
  margin: 0 0 8px;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.teaser__idx {
  color: var(--meta);
}

.teaser p {
  margin: 0;
  color: var(--body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;
}

.foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 28px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--keyline);
}

.foot__brand,
.foot__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.foot__meta {
  align-items: flex-end;
  text-align: right;
}

.sig {
  display: flex;
  align-items: baseline;
  gap: 0.42em;
  margin: 0;
  font-size: 26px;
  line-height: 1;
}

.sig__mjb {
  color: var(--grey);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sig__mjb .sig__letters {
  letter-spacing: -0.02em;
  margin-right: 0.02em;
}

.sig__sep {
  color: var(--orange);
  font-family: var(--mono);
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0;
}

.sig__btc {
  color: var(--paper);
  font-size: 0.85em;
  font-weight: 800;
  letter-spacing: -0.012em;
}

.year {
  margin: 0;
  color: var(--grey);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
}

/* Email capture is not live. Remove [hidden] on .notify when a provider is wired. */
.notify {
  margin: 0 0 clamp(28px, 4vh, 48px);
  max-width: 28rem;
}

.notify[hidden] {
  display: none !important;
}

.notify__form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.notify__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.notify__form input {
  flex: 1 1 200px;
  min-height: 48px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--frame);
  background: var(--field);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
}

.notify__form input::placeholder {
  color: var(--meta);
}

.notify__note {
  margin: 0;
  color: var(--meta);
  font-size: 13px;
  line-height: 1.4;
}

@media (max-width: 719px) {
  .split {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 28px;
  }

  .dossier {
    padding: 0;
    border: 0;
  }

  .dossier dl {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 0;
  }

  .dossier div {
    display: inline-flex;
    gap: 0.45em;
    padding: 0;
    border-top: 0;
  }

  .dossier dt {
    flex: none;
  }

  .dossier dt::after {
    content: none;
  }

  .dossier dd {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .parts {
    grid-template-columns: 1fr;
  }

  .ticks {
    left: 16px;
    right: 16px;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
  }

  .mast {
    flex-direction: column;
    align-items: flex-start;
  }

  .mast__right {
    justify-content: flex-start;
    text-align: left;
  }

  .foot {
    align-items: flex-start;
  }

  .foot__meta {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 380px) {
  .sig {
    font-size: 22px;
  }
}

@media (forced-colors: active) {
  .btn {
    border: 2px solid ButtonText;
  }

  .lockup__stop,
  .sig__stop,
  .status__dot,
  .ruler__mark {
    background: Highlight;
    forced-color-adjust: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition:
      background-color 140ms ease,
      border-color 140ms ease,
      color 140ms ease;
  }

  .status__dot {
    animation: live 2.4s ease-in-out infinite;
  }
}

@keyframes live {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.25;
  }
}
