/* LA Laptop Orchestra - Website */

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

:root {
  --bg: #0a0a0a;
  --fg: #ffffff;
  --fg-dim: #666666;
  --font: helvetica-neue-lt-pro, 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.4;
}

/* Locked-viewport poster layout: desktop only */
@media (min-width: 1101px) {
  html,
  body {
    overflow: hidden;
    height: 100vh;
  }
}

a {
  color: var(--fg);
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px dashed var(--fg);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* =====================
   HEADER / NAVIGATION
   ===================== */

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 25px 30px;
  border-bottom: 1px dashed var(--fg);
}

.nav a {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

/* ENTER cycles through the 12 root colors, one per second (C, C#, D ... B) */
.nav a.nav-join {
  animation: join-root-colors 12s step-end infinite;
}

@keyframes join-root-colors {
  0%      { color: #ff496d; } /* C  */
  8.333%  { color: #01cb91; } /* C# */
  16.667% { color: #da8eff; } /* D  */
  25%     { color: #fbe906; } /* D# */
  33.333% { color: #017ae6; } /* E  */
  41.667% { color: #ee7a3c; } /* F  */
  50%     { color: #08d2d1; } /* F# */
  58.333% { color: #ff73cb; } /* G  */
  66.667% { color: #8eff04; } /* G# */
  75%     { color: #877df9; } /* A  */
  83.333% { color: #ffab00; } /* A# */
  91.667% { color: #03a6d0; } /* B  */
}

/* Wordmark: visually hidden on desktop (poster carries it), shown on mobile */
.wordmark {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* =====================
   LAYOUT
   ===================== */

.site {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.main-grid {
  display: grid;
  /*
   * Left column = poster. Width is the golden-ratio share, but capped by
   * available height / poster aspect (~1.6) so the poster always fits
   * vertically and nothing gets cut off.
   */
  grid-template-columns: min(38.2%, calc((100vh - 80px) / 1.6)) minmax(0, 1fr);
  flex: 1;
}

.left-column {
  /* All poster typography is sized in cqw so it scales as one unit */
  container-type: inline-size;
  padding: 16px;
  border-right: 1px dashed var(--fg-dim);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.right-column {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 50px;
  min-width: 0;
}

@media (min-width: 1101px) {
  .site {
    height: 100vh;
    overflow: hidden;
  }

  .main-grid {
    overflow: hidden;
  }

  .right-column {
    overflow-y: auto;
  }
}

/* =====================
   POSTER / LEFT COLUMN (Seyoung Concept B)
   All sizes in cqw: 1% of the left column's width.
   ===================== */

.hero {
  position: relative;
}

/*
 * Ghost block (dotted outline SVG).
 * viewBox width 305 = width of "ORCHESTRA" at font-size 50, so the
 * wordmark fills the column edge-to-edge when the SVG is width: 100%.
 */
.ghost-block {
  width: 100%;
  height: auto;
  display: block;
}

.ghost-line {
  font-family: var(--font);
  font-size: 50px;
  font-weight: 700;
  fill: none;
  stroke: var(--fg);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
}

/* Solid block overlaps up into the ghost's ORCHESTRA line */
.solid-block {
  margin-top: -11cqw;
}

.solid-svg {
  width: 100%;
  height: auto;
  display: block;
}

/*
 * Solid letters with dashed edge: fill and stroke painted on the SAME
 * glyphs (fill first, dashed stroke on top), so they can never misalign.
 */
.solid-text {
  font-family: var(--font);
  font-size: 50px;
  font-weight: 700;
  fill: var(--fg);
  stroke: var(--bg);
  stroke-width: 1.5;
  stroke-dasharray: 6 4;
}

/* URL row: equal breathing room above and below (per poster) */
.url-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font);
  font-size: 2.6cqw;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 4cqw 0;
}

/* Tagline: solid PUBLIC MUSIC RITUAL + ghost echo below, one line each */
.tagline-solid {
  width: 100%;
  height: auto;
  display: block;
}

.ghost-tagline {
  width: 100%;
  height: auto;
  display: block;
  margin-top: -1.5cqw;
}

/*
 * Event info footer: 2x2 quadrant grid that stretches to fill all
 * remaining column height, with dashed cross-rules between cells.
 * Diagonal composition: type anchored to outer corners, QR owns its cell.
 */
.event-info-footer {
  margin-top: 4cqw;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Top row hugs its two-line content; bottom row takes the rest.
     Address + QR carry the visual mass, when/date stay tight. */
  grid-template-rows: auto 1fr;
  border-top: 2px dashed var(--fg);
}

.info-cell {
  font-family: var(--font);
  padding: 3cqw;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

/* Dashed cross-rules */
.info-when,
.info-where {
  border-right: 2px dashed var(--fg);
}

.info-when,
.info-date-cell {
  border-bottom: 2px dashed var(--fg);
}

/* When: top-left corner */
.info-when {
  justify-content: flex-start;
  align-items: flex-start;
}

/* Date: top-right corner */
.info-date-cell {
  justify-content: flex-start;
  align-items: flex-end;
  text-align: right;
}

/* Address: stacked, vertically centered in its quadrant */
.info-where {
  justify-content: center;
  align-items: flex-start;
  font-size: 4.2cqw;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

/* QR: fills its quadrant */
.info-qr {
  justify-content: center;
  align-items: center;
}

.info-day,
.info-date {
  font-size: 5.5cqw;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.info-time,
.info-year {
  font-size: 9cqw;
  font-weight: 700;
  line-height: 1;
}

.footer-qr {
  width: min(30cqw, 85%);
  height: auto;
  image-rendering: pixelated;
}

.rsvp-link {
  font-size: 12cqw;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: opacity 0.2s;
}

.rsvp-link:hover {
  opacity: 0.7;
  text-decoration: none;
}

/* =====================
   CONTENT SECTIONS (Right Column)
   ===================== */

.content-section {
  padding-bottom: 40px;
}

.section-title {
  font-family: var(--font);
  font-size: clamp(40px, 6vw, 70px);
  font-weight: 400;
  margin-bottom: 25px;
  line-height: 1;
}

.section-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* About */
.about-text {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
}

.about-text a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Performances */
.perf-group {
  margin-bottom: 30px;
}

.perf-group:last-child {
  margin-bottom: 0;
}

.perf-label {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 15px;
  color: var(--fg-dim);
}

.perf-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.perf-item {
  padding: 15px 20px;
  background: rgba(255,255,255,0.03);
  transition: background 0.2s;
}

.perf-item:hover {
  background: rgba(255,255,255,0.06);
  text-decoration: none;
}

a.perf-item {
  display: block;
  text-decoration: none;
}

.perf-item.upcoming {
  border-left: 3px solid var(--fg);
}

.perf-item.past {
  opacity: 0.6;
}

.perf-date {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 300;
  color: var(--fg-dim);
  margin-bottom: 4px;
}

.perf-name {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 500;
}

.perf-venue {
  font-size: 13px;
  font-weight: 300;
  color: var(--fg-dim);
  margin-top: 4px;
}

/* Score Canvas - r/place style collaborative form */
.score-canvas {
  background: var(--fg);
  padding: 15px;
  margin-bottom: 20px;
}

.score-row {
  margin-bottom: 8px;
}

.score-row:last-child {
  margin-bottom: 0;
}

.row-ticks {
  display: flex;
  justify-content: space-between;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 500;
  color: var(--bg);
  padding: 0 2px 4px;
}

.row-ticks span {
  position: relative;
}

.row-ticks span::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 4px;
  background: var(--bg);
}

.row-blocks {
  position: relative;
  height: 50px;
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.15);
}

.row-blocks .score-block {
  position: absolute;
  top: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 10px;
  box-sizing: border-box;
  overflow: hidden;
  transition: background 0.2s, border-color 0.2s;
}

.score-block.claimed {
  background: var(--bg);
  color: var(--fg);
  border-right: 1px solid rgba(255,255,255,0.2);
}

.score-block.claimed:hover {
  background: #1a1a1a;
}

.score-block.available {
  background: transparent;
  border: 2px dashed rgba(0,0,0,0.2);
  border-left: none;
}

.score-block.available:hover {
  background: rgba(0,0,0,0.1);
  border-color: rgba(0,0,0,0.4);
}

.block-name {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.block-type {
  font-size: 10px;
  font-weight: 300;
  opacity: 0.7;
  text-transform: uppercase;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score-legend {
  display: flex;
  align-items: center;
  gap: 25px;
  padding-top: 15px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 300;
}

.legend-block {
  width: 20px;
  height: 20px;
}

.legend-block.claimed {
  background: var(--bg);
  border: 1px solid var(--fg);
}

.legend-block.available {
  background: var(--fg);
  border: 2px dashed var(--fg-dim);
}

.score-cta {
  margin-left: auto;
}

.btn-register {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 20px;
  background: var(--fg);
  color: var(--bg);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-register:hover {
  background: #cccccc;
  text-decoration: none;
}

/* Resources */
.resources-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.resources-list a {
  display: block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 10px 15px;
  border: 1px solid var(--fg);
}

.resources-list a:hover {
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.contact-item {
  padding: 20px;
  background: rgba(255,255,255,0.03);
  transition: background 0.2s;
}

.contact-item:hover {
  background: rgba(255,255,255,0.06);
}

.contact-label {
  font-size: 11px;
  font-weight: 300;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.contact-value {
  font-family: var(--font);
  font-size: 18px;
}

/* =====================
   RESPONSIVE
   ===================== */

/* Poster credit (desktop: bottom of left column) */
.poster-credit {
  margin-top: auto;
  padding-top: 12px;
  font-size: 10px;
  font-weight: 300;
  color: var(--fg-dim);
  text-align: center;
}

.poster-credit a {
  color: var(--fg-dim);
}

.poster-credit a:hover {
  color: var(--fg);
}

/* Mobile credit (hidden on desktop) */
.mobile-credit {
  display: none;
  padding: 30px 0 10px;
  font-size: 12px;
  font-weight: 300;
  color: var(--fg-dim);
  text-align: center;
}

.mobile-credit a {
  color: var(--fg-dim);
}

.mobile-credit a:hover {
  color: var(--fg);
}

/* Nav abbreviations: show full by default, abbr on small screens */
.nav-abbr {
  display: none;
}

@media (max-width: 1100px) {
  /* Mobile poster intro: condensed version of left column */
  .left-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70svh;
    padding: 60px 24px 30px;
    border-right: none;
    border-bottom: 1px dashed var(--fg-dim);
    text-align: center;
    transition: min-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
  }

  /* When scrolled: collapse the poster to 0 height (not display:none, to avoid content jump) */
  .scrolled .left-column {
    min-height: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
    border-bottom: none;
  }

  /* When scrolled: show the wordmark in header */
  .scrolled .wordmark {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip-path: none;
    white-space: normal;
    padding: 12px 16px 10px;
  }

  .scrolled .wordmark-ghost,
  .scrolled .wordmark-solid {
    width: 100%;
    height: auto;
    display: block;
  }

  .scrolled .wordmark-solid {
    margin-top: -2vw;
  }

  /* Hide event details and credit on mobile poster */
  .event-info-footer,
  .poster-credit {
    display: none;
  }

  /* Center the hero and tagline */
  .hero {
    max-width: 320px;
    margin: 0 auto;
  }

  .tagline-block {
    max-width: 360px;
    margin: 0 auto;
  }

  /* URL row: horizontal, justified, tighter spacing */
  .url-row {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    max-width: 340px;
    margin: 16px auto;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--fg-dim);
  }

  /* Show mobile credit at bottom of right column */
  .mobile-credit {
    display: block;
  }

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

  /* Sticky header: nav row + wordmark line */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg);
    border-bottom: 1px dashed var(--fg);
  }

  .nav {
    gap: 24px;
    padding: 16px 20px;
  }

  /* Wordmark hidden on mobile until scrolled */
  .wordmark {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /* Anchored sections land below the sticky header */
  .content-section {
    scroll-margin-top: 80px;
  }

  .scrolled .content-section {
    scroll-margin-top: 150px;
  }
}

@media (max-width: 600px) {
  /* Abbreviate GETTING STARTED → START */
  .nav-full {
    display: none;
  }

  .nav-abbr {
    display: inline;
  }

  .nav {
    gap: 12px 16px;
    padding: 14px 16px;
    flex-wrap: wrap;
  }

  .nav a {
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .right-column {
    padding: 20px;
    gap: 40px;
  }

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

  /* Tight rows: hide intermediate ticks, keep endpoints */
  .row-ticks span:not(:first-child):not(:last-child) {
    display: none;
  }

  .score-legend {
    flex-wrap: wrap;
    gap: 15px;
  }
}
