/* SECRETEUNION — Shared Chrome
   Header, nav, theme switch, footer, and base main container.
   Included on every page. Page-specific layout lives in its own stylesheet. */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 48px;
  border-bottom: 1px solid var(--border-color);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  gap: 36px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.main-nav a {
  opacity: 0.55;
  transition: opacity 200ms ease;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a.current {
  opacity: 1;
  border-bottom-color: var(--accent);
}

.theme-switch {
  display: flex;
  gap: 10px;
}

.theme-switch button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: transparent;
  padding: 0;
  position: relative;
  transition: border-color 200ms ease;
}

.theme-switch button span {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--text-secondary);
  opacity: 0.4;
  transition: opacity 200ms ease, background 200ms ease;
}

.theme-switch button[data-theme-option="sunrise"] span { background: #D97F5C; }
.theme-switch button[data-theme-option="midday"] span { background: #8A8D91; }
.theme-switch button[data-theme-option="sundown"] span { background: #E08A3E; }

.theme-switch button.active span,
.theme-switch button:hover span { opacity: 1; }
.theme-switch button.active { border-color: var(--accent); }

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 48px;
}

main.narrow {
  max-width: 780px;
}

.text-link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 28px 48px;
  border-top: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.site-footer a {
  color: var(--accent);
}

@media (max-width: 720px) {
  .site-header { padding: 20px 24px; flex-wrap: wrap; gap: 16px; }
  .main-nav { order: 3; width: 100%; gap: 24px; }
  main { padding: 0 24px; }
  .site-footer { padding: 24px; }
}
