/* ---------- Design tokens (from Figma) ---------- */
:root {
  --bg: #121212;
  --fg: #ffffff;
  --font-mono: "DM Mono", ui-monospace, monospace;

  --radius: 10px;
  --border: 1px solid var(--fg);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }

/* ---------- Nav ---------- */
.nav {
  display: flex;
  justify-content: center;
  padding: 16px 10px;
}

.nav__logo img {
  width: 199px;
  height: 111px;
}

/* ---------- Video module ----------
   Spacing is fixed at every screen size; the frame
   scales with the viewport width at the Figma ratio. */
.video {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 16px;
}

.video__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3296 / 1768;
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.video__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Sound toggle ---------- */
.sound__label {
  margin: 0;
  font-size: 12px;
  line-height: normal;
  text-align: center;
}

.sound__toggle {
  display: flex;
  border: var(--border);
  border-radius: 10000px;
  overflow: hidden;
}

.sound__toggle button {
  width: 54px;
  padding: 10px;
  font: 12px/normal var(--font-mono);
  text-align: center;
  color: var(--fg);
  background: var(--bg);
  border: 0;
  cursor: pointer;
}

.sound__toggle button[aria-pressed="true"] {
  color: var(--bg);
  background: var(--fg);
}

.sound__toggle button:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: -4px;
}
.sound__toggle button[aria-pressed="true"]:focus-visible { outline-color: var(--bg); }

/* ---------- Ticker ----------
   To change the speed, edit --ticker-duration: higher = slower.
   One full pass of the copy takes this long. */
.ticker {
  --ticker-duration: 200s;
  padding: 10px;
  overflow: hidden;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker var(--ticker-duration) linear infinite;
}

.ticker__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 10px; /* same 10px gap between the icon and the next loop */
}

.ticker__item p {
  margin: 0;
  font-family: "Instrument Sans", sans-serif;
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  line-height: normal;
  white-space: nowrap;
}

.ticker__item img {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Visitors who turn off motion get the copy as still, wrapped text */
@media (prefers-reduced-motion: reduce) {
  .ticker { padding: 10px; }
  .ticker__track { animation: none; width: auto; }
  .ticker__item[aria-hidden="true"] { display: none; }
  .ticker__item p { white-space: normal; }
}

/* ---------- Footer ---------- */
.footer {
  padding: 24px 10px;
}

.footer__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

/* Flower links to annielindsey.com and tilts 15° clockwise on hover */
.footer__flower {
  display: block;
  border-radius: 4px;
}

.footer__flower img {
  transition: transform 0.3s ease;
}

.footer__flower:hover img,
.footer__flower:focus-visible img {
  transform: rotate(15deg);
}

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

@media (prefers-reduced-motion: reduce) {
  .footer__flower img { transition: none; }
}

.footer__row p {
  margin: 0;
  font-size: 12px;
  line-height: normal;
  white-space: nowrap;
}
