@font-face {
  font-family: "Kelsi 1";
  src: url("fonts/Kelsi-fill.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Chivo Mono";
  src: url("fonts/ChivoMono.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --pad: clamp(1.5rem, 5vw, 3rem);
}

html {
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

body {
  font-family: "Chivo Mono", "SF Mono", monospace;
  color: var(--ink);
  min-height: 100svh;
  background-color: var(--paper);
  display: flex;
  flex-direction: column;
}

.site-header {
  padding: var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
  font-size: clamp(0.8rem, 3.4vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.lang-switch a {
  color: var(--ink);
  text-decoration: none;
  opacity: 0.45;
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
  opacity: 1;
}

.lang-switch .lang-active {
  opacity: 1;
  font-weight: 500;
}

.ascii-video {
  position: fixed;
  top: 62%;
  left: 78%;
  transform: translate(-50%, -50%);
  font-family: "Chivo Mono", "SF Mono", monospace;
  /* cell must be twice as tall as wide to match the converter's aspect */
  font-size: min(1.15svh, 2.4vw, 10px);
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--ink);
  opacity: 0.85;
  white-space: pre;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.site-header {
  position: relative;
  z-index: 1;
}

/* ---- upcoming events ---- */

.section--events {
  position: relative;
  z-index: 1;
  background: var(--paper);
  padding: clamp(2.5rem, 6svh, 5rem) var(--pad) clamp(4rem, 10svh, 8rem);
  max-width: 60rem;
  width: 100%;
}

.section--events > .section-label {
  font-weight: 600;
}

.event {
  border-top: 1px solid var(--ink);
  padding: 1.4rem 0 2.2rem;
}

.event:last-of-type {
  border-bottom: 1px solid var(--ink);
}

.event-date {
  font-size: clamp(0.8rem, 3.4vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.event-title {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 6vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 1.6rem;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem var(--pad);
  margin-bottom: 1.6rem;
}

.event-cell dt {
  font-size: clamp(0.7rem, 3vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  margin-bottom: 0.6rem;
}

.event-cell dd {
  font-size: clamp(0.85rem, 3.6vw, 1rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.event-info {
  font-size: clamp(0.85rem, 3.6vw, 1rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  max-width: 44ch;
  text-align: justify;
  text-align-last: left;
}

.event-ticket {
  display: inline-block;
  margin-top: 1.6rem;
  padding: 0.85em 1.7em;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  text-transform: uppercase;
  font-size: clamp(0.8rem, 3.4vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: transform 0.18s ease-out, background-color 0.18s ease-out;
}

.event-ticket:hover,
.event-ticket:focus-visible {
  background: #2b2b2b;
  transform: scale(1.05);
}

.event-ticket--soon {
  opacity: 0.35;
  cursor: default;
}

.event-ticket--soon:hover {
  background: var(--ink);
  transform: none;
}

@media (max-width: 640px) {
  .event-row {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--pad));
    padding: 0 var(--pad);
    scroll-padding-left: var(--pad);
    scrollbar-width: none;
  }

  .event-row::-webkit-scrollbar {
    display: none;
  }

  .event {
    flex: 0 0 85%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ink);
    padding: 1.2rem 1.1rem 1.4rem;
  }

  .event-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .event-info {
    margin-bottom: 1.6rem;
  }

  .event-ticket {
    margin-top: auto;
    align-self: stretch;
    text-align: center;
  }
}

/* ---- faq ---- */

.section--faq {
  position: relative;
  z-index: 1;
  background: var(--paper);
  padding: 0 var(--pad) clamp(4rem, 10svh, 8rem);
  max-width: 60rem;
  width: 100%;
}

.section--faq > .section-label {
  font-weight: 600;
}

.faq-item {
  border-top: 1px solid var(--ink);
}

.faq-item:last-of-type {
  border-bottom: 1px solid var(--ink);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0;
  font-size: clamp(0.85rem, 3.6vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-weight: 400;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "\2013";
}

.faq-item p {
  padding: 0 0 1.4rem;
  max-width: 52ch;
  font-size: clamp(0.85rem, 3.6vw, 1rem);
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ---- ascii still ---- */

.section--still {
  position: relative;
  z-index: 1;
  background: var(--paper);
  padding: 0 var(--pad) clamp(4rem, 10svh, 8rem);
  max-width: 60rem;
  width: 100%;
}

.ascii-still {
  font-family: "Chivo Mono", "SF Mono", monospace;
  /* sized so ~110 columns take roughly half the content column */
  font-size: min(0.5rem, 0.9vw);
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--ink);
  white-space: pre;
  overflow: hidden;
  user-select: none;
  width: fit-content;
  margin-bottom: clamp(2.5rem, 6svh, 4rem);
}

.ascii-still:nth-of-type(even) {
  margin-left: auto;
}

.ascii-still:last-of-type {
  margin-bottom: 0;
}

/* ---- footer ---- */

.site-footer {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border-top: 1px solid var(--ink);
  padding: 1.4rem var(--pad) clamp(1.4rem, 4svh, 2.5rem);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: clamp(0.7rem, 3vw, 0.8rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-logo {
  font-family: "Kelsi 1", sans-serif;
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  color: var(--ink);
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* ---- legal pages ---- */

.legal {
  flex: 1;
  padding: clamp(1.5rem, 5svh, 3rem) var(--pad) clamp(4rem, 10svh, 8rem);
  max-width: 60rem;
  width: 100%;
}

.legal .section-label {
  font-weight: 600;
  margin-bottom: 1.6rem;
}

.legal p {
  font-size: clamp(0.85rem, 3.6vw, 0.95rem);
  line-height: 1.55;
  letter-spacing: 0.01em;
  max-width: 68ch;
  margin-bottom: 1.4rem;
}

.legal h2 {
  font-size: clamp(0.8rem, 3.4vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 2.4rem 0 0.9rem;
}

.legal a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  word-break: break-word;
}

.legal-updated {
  opacity: 0.55;
}

@media (max-width: 640px) {
  .ascii-video {
    top: 50%;
    left: 50%;
    font-size: min(1svh, 2.1vw);
    opacity: 0.28;
  }
}

.logo {
  font-family: "Kelsi 1", sans-serif;
  font-size: clamp(2.6rem, 10vw, 4rem);
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
}

.logo-mark {
  display: block;
  height: 0.72em;
  width: auto;
}

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-image: radial-gradient(
    ellipse 55% 32% at 78% 62%,
    #e3e1dc 0%,
    rgba(227, 225, 220, 0.55) 45%,
    rgba(227, 225, 220, 0) 100%
  );
  background-repeat: no-repeat;
}

.hero main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 var(--pad);
  max-width: 60rem;
  width: 100%;
  position: relative;
  z-index: 1;
}

.section--about {
  padding-top: clamp(4rem, 14svh, 9rem);
}

.section--playground {
  padding-bottom: clamp(2.5rem, 6svh, 5rem);
  max-width: 26ch;
}

.section-label {
  font-size: clamp(0.8rem, 3.4vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  margin-bottom: 0.9rem;
}

.square {
  width: 0.55em;
  height: 0.55em;
  background: var(--ink);
  display: inline-block;
  margin-right: 0.35em;
}

.headline {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 8.9vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-align: justify;
  text-align-last: left;
}

.body-copy {
  font-size: clamp(0.85rem, 3.6vw, 1rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: justify;
  text-align-last: left;
}
