@font-face {
  font-family: "Barlow Condensed";
  src: url("./assets/barlow-condensed-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("./assets/space-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --black: #0b1308;
  --panel: #15200e;
  --line: #385726;
  --text: #f0f5e4;
  --muted: #bdc9ae;
  --pcb: #76b900;
  --lime: #b1f830;
  --teal: #70c7ba;
  --heading: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Space Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background-color: var(--black);
  color: var(--text);
  font-family: var(--body);
  font-size: 0.9rem;
  line-height: 1.6;
}

a {
  color: inherit;
  text-underline-offset: 0.21em;
}

a:hover {
  color: var(--lime);
}

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

.skip-link {
  position: fixed;
  z-index: 1;
  top: 10px;
  left: 10px;
  padding: 8px 14px;
  transform: translateY(-150%);
  background: var(--lime);
  color: var(--black);
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: min(100% - 64px, 1160px);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner,
.site-header nav,
.project-links nav,
.actions {
  display: flex;
  align-items: center;
}

.header-inner {
  min-height: 66px;
  justify-content: space-between;
  gap: 16px;
}

.site-header nav {
  gap: clamp(12px, 4vw, 38px);
}

.wordmark,
.site-header nav a {
  text-decoration: none;
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  white-space: nowrap;
}

.site-header nav a:hover {
  color: var(--lime);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--lime);
  font-family: var(--heading);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1;
}

main {
  position: relative;
  isolation: isolate;
}

.board-margins {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  background-image: radial-gradient(circle, #263e19 0.7px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}

.board-margins::before,
.board-margins::after {
  position: absolute;
  top: 18px;
  bottom: 0;
  width: 240px;
  background:
    radial-gradient(circle, var(--pcb) 0 1px, var(--black) 2px 3px, var(--pcb) 4px 5px, transparent 6px) 9px 22px / 14px 14px,
    radial-gradient(circle, var(--pcb) 0 1px, var(--black) 2px 3px, var(--pcb) 4px 5px, transparent 6px) 30px 10px / 14px 14px,
    radial-gradient(circle, var(--pcb) 0 1px, var(--black) 2px 3px, var(--pcb) 4px 5px, transparent 6px) 51px 37px / 14px 14px,
    linear-gradient(var(--pcb), var(--pcb)) 15px 34px / 2px 76px,
    linear-gradient(var(--pcb), var(--pcb)) 36px 22px / 2px 69px,
    linear-gradient(var(--pcb), var(--pcb)) 57px 49px / 2px 51px,
    linear-gradient(45deg, transparent calc(50% - 1px), var(--pcb) 50%, transparent calc(50% + 2px)) 15px 110px / 53px 53px,
    linear-gradient(45deg, transparent calc(50% - 1px), var(--pcb) 50%, transparent calc(50% + 2px)) 36px 91px / 48px 48px,
    linear-gradient(45deg, transparent calc(50% - 1px), var(--pcb) 50%, transparent calc(50% + 2px)) 57px 100px / 40px 40px,
    linear-gradient(var(--pcb), var(--pcb)) 67px 162px / 170px 2px,
    linear-gradient(var(--pcb), var(--pcb)) 83px 138px / 157px 2px,
    linear-gradient(var(--pcb), var(--pcb)) 96px 139px / 2px 279px,
    linear-gradient(135deg, transparent calc(50% - 1px), var(--pcb) 50%, transparent calc(50% + 2px)) 76px 418px / 21px 21px,
    linear-gradient(var(--pcb), var(--pcb)) 76px 438px / 2px 128px,
    radial-gradient(circle, var(--pcb) 0 1px, var(--black) 2px 3px, var(--pcb) 4px 5px, transparent 6px) 70px 564px / 14px 14px;
  background-repeat: no-repeat;
  opacity: 0.37;
  content: "";
}

.board-margins::before {
  left: max(0px, calc(50% - 682px));
}

.board-margins::after {
  right: max(0px, calc(50% - 682px));
  background-position-y: 128px, 116px, 143px, 140px, 128px, 155px, 216px, 197px, 206px, 268px, 244px, 245px, 524px, 544px, 670px;
  transform: scaleX(-1);
}

.hero {
  padding-top: clamp(28px, 5vw, 64px);
}

.call-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: var(--black);
  color: var(--lime);
  font-size: 0.76rem;
}

.call-strip span + span {
  color: var(--text);
  text-align: right;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.83fr) minmax(0, 1.17fr);
  align-items: stretch;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--panel);
}

.hero-copy {
  align-self: center;
  padding: clamp(24px, 3.4vw, 48px);
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1,
h2,
.hero-line {
  font-family: var(--heading);
  font-weight: 800;
}

h1 {
  margin-left: -0.035em;
  color: var(--lime);
  font-size: clamp(5rem, 10.45vw, 9.2rem);
  line-height: 0.76;
  letter-spacing: -0.048em;
}

.hero-if {
  display: block;
  margin: 0 0 0.36em 0.065em;
  color: var(--text);
  font-size: 0.45em;
  line-height: 0.82;
  letter-spacing: -0.02em;
}

.hero-line {
  margin-top: clamp(17px, 2vw, 26px);
  font-size: clamp(2.18rem, 4.2vw, 3.7rem);
  line-height: 0.94;
  letter-spacing: -0.018em;
}

.hero-description {
  max-width: 38ch;
  margin-top: 22px;
  color: var(--muted);
}

.actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 8px 15px;
  border: 1px solid var(--lime);
  border-radius: 1px;
  cursor: pointer;
  font: inherit;
  font-size: 0.83rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  background: var(--lime);
  color: var(--black);
}

.button-primary:hover {
  border-color: var(--text);
  background: var(--text);
  color: var(--black);
}

.button-secondary {
  border-color: #677660;
  background: transparent;
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--lime);
  color: var(--lime);
}

figure {
  min-width: 0;
  background: #10160e;
}

.hero-figure {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}

.hero-figure img,
.thread-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-figure img {
  height: 100%;
  min-height: 390px;
  max-height: 570px;
  object-position: 43% 42%;
}

figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 7px 14px;
  border-top: 1px solid var(--line);
  background: var(--black);
  color: var(--muted);
  font-size: 0.75rem;
}

figcaption span {
  color: var(--lime);
}

.logic {
  padding-top: clamp(36px, 7vw, 72px);
}

.logic-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}

.logic-list div {
  position: relative;
  padding: 18px clamp(16px, 3vw, 34px) 22px;
  border-top: 2px solid var(--pcb);
}

.logic-list div + div {
  border-left: 1px solid var(--line);
}

.logic-list div::before {
  position: absolute;
  top: -7px;
  left: clamp(16px, 3vw, 34px);
  width: 9px;
  height: 9px;
  border: 2px solid var(--pcb);
  border-radius: 50%;
  background: var(--black);
  content: "";
}

.logic-list dt {
  color: var(--lime);
  font-family: var(--heading);
  font-size: clamp(1.82rem, 3.8vw, 3.2rem);
  line-height: 1;
}

.logic-list dd {
  margin: 8px 0 0;
  color: var(--text);
}

.section {
  padding-top: clamp(55px, 8vw, 104px);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px 24px;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(2.15rem, 4.8vw, 3.8rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
}

.section-heading p {
  max-width: 48ch;
  color: var(--muted);
}

.thread-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.96fr);
  border: 1px solid var(--line);
}

.thread-figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border-left: 1px solid var(--line);
}

.thread-figure img {
  height: 100%;
  max-height: 360px;
  object-position: 50% 52%;
}

.posts,
.assets-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.posts {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  background: var(--panel);
}

.posts li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 14px clamp(16px, 3vw, 34px);
}

.posts li + li {
  border-top: 1px solid var(--line);
}

.post-author {
  color: var(--muted);
  font-size: 0.75rem;
}

.posts p {
  color: var(--lime);
  font-size: clamp(0.95rem, 2vw, 1.24rem);
}

.assets-list {
  border-top: 1px solid var(--line);
  background: var(--black);
}

.assets-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 51px;
  border-bottom: 1px solid var(--line);
}

.download-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--teal);
  text-align: right;
  white-space: nowrap;
}

.token-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 36px;
  padding: clamp(20px, 3.6vw, 42px);
  border: 1px solid var(--line);
  background: var(--panel);
}

.token-panel h2 {
  margin-top: 8px;
}

.token-description {
  max-width: 46ch;
  margin-top: 14px;
  color: var(--muted);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--teal);
  font-size: 0.79rem;
}

.status::before {
  width: 7px;
  height: 7px;
  background: var(--pcb);
  content: "";
}

.token-data {
  align-self: center;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.token-data h3 {
  margin-bottom: 5px;
  font-size: 1rem;
  font-weight: 400;
  color: var(--lime);
}

.token-data p {
  color: var(--muted);
}

#contract-address {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--black);
  overflow-wrap: anywhere;
  font: inherit;
  font-size: 0.82rem;
}

.token-data .actions {
  margin-top: 12px;
}

.copy-feedback:not(:empty) {
  margin-top: 8px;
}

.project-links {
  padding-block: 28px;
}

.project-links nav {
  flex-wrap: wrap;
  gap: 0 24px;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--teal);
}

.project-links a:hover {
  color: var(--lime);
}

.site-footer {
  padding-block: 20px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}

@media (max-width: 1000px) {
  h1 {
    font-size: clamp(4.5rem, 10.7vw, 6.5rem);
  }

  .hero-figure img {
    min-height: 370px;
  }
}

@media (max-width: 850px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }

  .hero-figure img {
    min-height: 310px;
  }

  .desktop-break {
    display: none;
  }
}

@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 38px);
  }

  .hero-grid,
  .thread-grid,
  .token-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    padding: 30px 20px 23px;
  }

  h1 {
    font-size: clamp(4.2rem, 16.5vw, 7.3rem);
  }

  .hero-if {
    display: inline;
    margin: 0 0.03em 0 0.08em;
    vertical-align: 0.22em;
  }

  .board-margins::after {
    display: none;
  }

  .logic-list {
    grid-template-columns: minmax(0, 1fr);
    border-left: 2px solid var(--pcb);
  }

  .logic-list div,
  .logic-list div + div {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border: 0;
    padding: 12px 13px 12px 17px;
  }

  .logic-list div + div {
    border-top: 1px solid var(--line);
  }

  .logic-list div::before {
    top: calc(50% - 6px);
    left: -7px;
  }

  .logic-list dd {
    margin: 0;
  }

  .hero-line {
    margin-top: 16px;
    font-size: clamp(1.95rem, 7vw, 3.15rem);
  }

  .hero-description,
  .actions {
    margin-top: 15px;
  }

  .hero-figure,
  .thread-figure {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-figure img,
  .thread-figure img {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .token-data {
    padding-top: 17px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 375px) {
  .wrap {
    width: calc(100% - 30px);
  }

  .wordmark {
    font-size: 1.45rem;
  }

  .wordmark img {
    width: 20px;
    height: 20px;
  }

  .site-header nav {
    gap: 9px;
    font-size: 0.78rem;
  }

  .call-strip {
    padding-inline: 9px;
  }

  .assets-list {
    font-size: 0.82rem;
  }
}
