/* AaronTube — shared chrome for the watch page and the production notes.
   Two pages now share this; page-specific rules stay inline in each page. */

:root {
  --bg:        #0f0f0f;
  --surface:   #272727;
  --surface-2: #3f3f3f;
  --text:      #f1f1f1;
  --text-dim:  #aaaaaa;
  --brand:     #ff0033;
  --link:      #3ea6ff;
  --radius:    12px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Roboto", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

a { color: inherit; }

/* ---------- masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 56px;
  padding: 0 1rem;
  background: var(--bg);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}

.logo svg { display: block; }

.logo .wordmark {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
}

/* small superscript country-code style tag, like the YouTube locale badge */
.logo .tag {
  align-self: flex-start;
  margin-top: 0.05rem;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}

.masthead nav {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
}

/* ---------- layout ---------- */

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem 4rem;
}

/* ---------- pills ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 36px;
  padding: 0 1rem;
  border: 0;
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.pill:hover { background: var(--surface-2); }
.pill:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.pill svg { display: block; }

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

footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--surface);
  font-size: 0.8rem;
  color: var(--text-dim);
}

footer p { margin: 0.35rem 0; }

footer a { color: var(--text-dim); }

/* live region for the copy-link confirmation */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  background: #f1f1f1;
  color: #0f0f0f;
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.toast.show { opacity: 1; }

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