/* Color system (4 total):
   --bg: near-black, --fg: white, --muted: gray, --accent: teal */
:root {
  --bg: #0b0b0b;
  --fg: #ffffff;
  --muted: #9ca3af;
  --accent: #14b8a6;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--fg);
  background-color: var(--bg);
  font-family: Georgia, Cambria, "Times New Roman", Times, serif; /* formal serif */
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Subtle gradient + wood-ish grain (no external images) */
  background-image:
    radial-gradient(1200px 600px at 80% -20%, rgba(20, 184, 166, 0.08), transparent 60%),
    radial-gradient(800px 400px at -10% 50%, rgba(20, 184, 166, 0.06), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 11px);
  background-blend-mode: screen, screen, normal, normal;
}

.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* Helpers */
.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.text-balance {
  text-wrap: balance;
}

/* Header */
.header {
  padding: 32px 16px 8px;
  text-align: center;
}

.title {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* mono title */
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #ffffff; /* mono white title */
  letter-spacing: 0.3px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

.subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* Main layout */
.main {
  flex: 1 1 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

/* Media Frame */
.section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.media-frame {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 8px 20px rgba(0, 0, 0, 0.5);
}

.video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  background: #000;
}

/* Apply this class to rotate clockwise if needed */
/* Example: <video class="video rotate-90" ...> */
.rotate-90 {
  transform: rotate(90deg);
  transform-origin: center center;
}

.caption {
  margin: 6px 2px 0;
  color: var(--muted);
  font-size: 13px;
}

/* Visual */
.visual-wrap {
  margin: 0;
}

.visual {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 10px 24px rgba(0, 0, 0, 0.45);
}

/* Footer */
.footer {
  padding: 20px 16px 28px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed rgba(20, 184, 166, 0.4);
}

.link:focus,
.link:hover {
  color: #0ea5a3; /* slightly darker teal */
  border-bottom-color: rgba(14, 165, 163, 0.7);
}

/* Larger screens */
@media (min-width: 768px) {
  .main {
    gap: 32px;
  }
  .media-frame {
    padding: 12px;
  }
}