@import url("./components.css");

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

.smoke-shell {
  width: min(calc(100% - 3rem), 72rem);
  margin-inline: auto;
  padding-block: clamp(4rem, 9vw, 8rem);
}

.smoke-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.52fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.smoke-heading h1 {
  max-width: 9ch;
  margin-bottom: var(--space-5);
  font-size: clamp(3.6rem, 8vw, 7.6rem);
}

.smoke-deck {
  max-width: 38ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  font-weight: 500;
  line-height: 1.35;
}

.smoke-summary {
  margin: 0;
  padding-left: var(--space-5);
  border-left: 2px solid var(--ember);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.smoke-player {
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-strong);
}

.smoke-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.year-control {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.year-control label {
  margin-right: var(--space-2);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.year-control select,
.year-button {
  min-height: 2.85rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.year-control select {
  min-width: 7.5rem;
  padding: 0.65rem 2.4rem 0.65rem 0.85rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.year-button {
  width: 2.85rem;
  padding: 0;
  cursor: pointer;
}

.year-button:disabled {
  cursor: default;
  opacity: 0.35;
}

.smoke-meta {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.video-frame {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-panel);
  background: #fff;
  box-shadow: var(--shadow-panel);
}

.video-frame video {
  display: block;
  width: 100%;
  min-height: min(58vw, 38rem);
  background: #fff;
}

.video-frame video[hidden] {
  display: none;
}

.smoke-fallback {
  display: none;
  padding: clamp(3rem, 7vw, 6rem);
  background: var(--ember-soft);
  text-align: center;
}

.smoke-fallback.is-visible {
  display: block;
}

.smoke-fallback p {
  max-width: 38rem;
  margin-inline: auto;
}

.smoke-fallback strong {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.smoke-method {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  margin-top: clamp(4rem, 8vw, 7rem);
  padding-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--border);
}

.smoke-method h2 {
  margin-bottom: var(--space-5);
  font-size: clamp(2.3rem, 5vw, 4.4rem);
}

.smoke-method p {
  font-size: 1.02rem;
}

.smoke-method .section-number {
  margin: 0;
  color: var(--ember);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

@media (max-width: 760px) {
  .smoke-shell {
    width: min(calc(100% - 2rem), 72rem);
  }

  .smoke-heading,
  .smoke-method {
    grid-template-columns: 1fr;
  }

  .smoke-summary {
    max-width: 38rem;
  }

  .smoke-toolbar {
    align-items: flex-start;
  }

  .smoke-meta {
    width: 100%;
  }

  .video-frame video {
    min-height: 54vw;
  }
}
