/* Theme */
:root {
  color-scheme: light dark;
  --page-bg: #e7e4dd;
  --page-glow: radial-gradient(circle at top, rgba(255, 255, 255, 0.75), transparent 48%);
  --frame-bg: rgba(245, 245, 245, 0.94);
  --frame-border: rgba(18, 18, 18, 0.08);
  --frame-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  --text-primary: #121212;
  --text-muted: #5e5e5e;
  --title-shadow: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #0b0b0d;
    --page-glow: radial-gradient(circle at top, rgba(80, 92, 120, 0.18), transparent 42%);
    --frame-bg: rgba(16, 16, 20, 0.94);
    --frame-border: rgba(255, 255, 255, 0.08);
    --frame-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
    --text-primary: #f1eee8;
    --text-muted: #aaa59b;
    --title-shadow: 0 6px 24px rgba(0, 0, 0, 0.32);
  }
}

body {
  background: var(--page-glow), var(--page-bg);
  color: var(--text-primary);
}

/* Page Frame — mock browser window */
.page-frame {
  width: min(96vw, 1600px);
  margin: 12px auto;
  background: var(--frame-bg);
  border: 1px solid var(--frame-border);
  backdrop-filter: blur(18px);
  border-radius: 16px;
  box-shadow: var(--frame-shadow);
  overflow: hidden;
  min-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px 36px 8px;
  min-height: 60px;
  flex-shrink: 0;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--text-primary);
}

.volume-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  color: var(--text-muted);
  padding: 4px;
  transition: color 0.2s;
}

.volume-icon:hover {
  color: var(--text-primary);
}

.volume-icon.muted svg path:last-child,
.volume-icon.muted svg path:nth-child(2) {
  display: none;
}

/* Masthead */
.masthead {
  padding: 8px 36px 10px;
  text-align: center;
}

.masthead-title {
  margin: 0;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.07em;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: var(--title-shadow);
}

.masthead-subtitle {
  margin: 12px 0 0;
  font-size: clamp(13px, 1.45vw, 18px);
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Board Section */
.board-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 250px);
  padding: 4px 10px 12px;
}

/* Site Footer — supporting copy */
.site-footer {
  text-align: center;
  padding: 10px 24px 24px;
  flex-shrink: 0;
}

.footer-line {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.footer-line.script {
  font-family: "Savoye LET", "Snell Roundhand", "Apple Chancery", "Segoe Script", cursive;
  font-size: clamp(17px, 1.55vw, 22px);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: 0.02em;
  opacity: 0.5;
  max-width: 760px;
  white-space: normal;
  margin-top: 0;
}

/* Fullscreen: hide header+footer, board fills viewport */
.fullscreen-active .header,
.fullscreen-active .site-footer {
  display: none;
}

.fullscreen-active .board-section {
  padding: 0;
  height: 100vh;
  align-items: center;
}
