/* kids don't smoke — quiet version.
   one face, one size, white paper. the only thing that moves is the cigarette. */

:root {
  --paper: #ffffff;
  --ink: #161616;
  --muted: #6f6f6f;
  --hairline: #e6e6e6;
  --ash: #c9c9c9;
  --ember: #e2553c;
  --filter: #d9b78f;
  --burn: 260s; /* how long the cigarette lasts */
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ember); color: var(--paper); }

main {
  max-width: 620px;
  padding: 48px clamp(20px, 6vw, 72px) 72px;
}

p { margin: 0; }

h1 {
  font-size: clamp(30px, 5.5vw, 42px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

.label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78em;
  font-weight: 400;
  color: var(--muted);
  margin: 0 0 1.2rem;
}

main > section { margin-top: 3.6rem; }

.muted { color: var(--muted); }

.meta {
  color: var(--muted);
  margin-top: 0.3rem;
}

.mono {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84em;
}

/* ---- links ---- */

a {
  color: inherit;
  white-space: nowrap; /* keep word + arrow together on wrap */
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: #b5b5b5;
}

a:hover { text-decoration-color: var(--ember); }

a:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 1px;
}

.ext {
  display: inline-block;      /* keeps the arrow out of the underline */
  margin-left: 0.18em;
  font-size: 0.85em;
  transform: translateY(-0.08em);
  font-variant-emoji: text;   /* belt-and-suspenders: force plain glyph, not the color emoji */
}

/* ---- the cigarette ---- */

.cig {
  position: relative;
  height: 3px;
  margin: 2.4rem 0 0;
}

.cig__body {
  position: absolute;
  inset: 0 26px 0 0;
  background: #efefef;
}

.cig__filter {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 26px;
  background: var(--filter);
}

.cig__ash {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0;
  background: repeating-linear-gradient(90deg, var(--ash) 0 5px, #bdbdbd 5px 6px);
  animation: burn-ash var(--burn) linear forwards;
}

.cig__ember {
  position: absolute;
  left: 0; top: -1.5px;
  width: 6px; height: 6px;
  border-radius: 3px;
  background: var(--ember);
  box-shadow: 0 0 7px 1px rgba(226, 85, 60, 0.7);
  animation:
    burn-tip var(--burn) linear forwards,
    ember-pulse 1.7s ease-in-out infinite alternate,
    ember-out 6s linear var(--burn) forwards;
}

@keyframes burn-ash { to { width: calc(100% - 26px); } }
@keyframes burn-tip { to { left: calc(100% - 32px); } }
@keyframes ember-pulse {
  from { opacity: 0.8; }
  to   { opacity: 1; box-shadow: 0 0 10px 2px rgba(226, 85, 60, 0.85); }
}
@keyframes ember-out { to { opacity: 0; box-shadow: none; } }

@media (prefers-reduced-motion: reduce) {
  .cig__ash, .cig__ember { animation: none; }
  .cig__ash { width: 38%; }
  .cig__ember { left: 38%; }
}

/* ---- content rhythm ---- */

.stack { display: flex; flex-direction: column; gap: 1.8rem; }

.release {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.release img {
  flex: none;
  width: 76px;
  height: 76px;
  object-fit: cover;
}

/* ---- gigs ---- */

.gigs {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84em;
}

.gigs li {
  display: grid;
  grid-template-columns: 5.4em 1fr auto;
  gap: 1em;
  padding: 0.32rem 0;
}

.gig-date { color: var(--muted); }

@media (max-width: 480px) {
  .gigs li {
    grid-template-columns: 5.4em 1fr;
  }
  .gigs li a { grid-column: 2; justify-self: start; }
}

/* ---- details (player / booking form) ---- */

details { margin-top: 0.55rem; }

summary {
  cursor: pointer;
  color: var(--muted);
  width: fit-content;
  list-style: none;
  text-decoration: underline dotted 1px;
  text-underline-offset: 3px;
}

summary::-webkit-details-marker { display: none; }
summary::before { content: "+ "; }
details[open] > summary::before { content: "− "; }

summary:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

details iframe {
  display: block;
  margin-top: 0.9rem;
  border: 0;
}

/* ---- form ---- */

form {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 380px;
}

form label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

form label span {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8em;
}

input, textarea {
  font: inherit;
  color: inherit;
  background: var(--paper);
  border: 0;
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  padding: 0.25rem 0;
}

input:focus, textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}

textarea { resize: vertical; }

form button {
  font: inherit;
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 0;
  margin-top: 0.2rem;
  cursor: pointer;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: #b5b5b5;
}

form button:hover { text-decoration-color: var(--ember); }
form button:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

.hp { position: absolute; left: -9999px; }

.sent { margin-top: 0.9rem; }

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

footer { margin-top: 4.5rem; }
