/* Waitress Cast Guide - styles */
:root {
  --bg: #fdf8f3;
  --bg-alt: #f5ede3;
  --surface: #ffffff;
  --text: #2a2118;
  --text-muted: #6b5d4f;
  --accent: #c45a3f;
  --accent-dark: #9e3e28;
  --accent-soft: #f4d8cf;
  --gold: #b8893a;
  --gold-soft: #f0e4cf;
  --border: #e2d5c7;
  --shadow: 0 2px 12px rgba(42, 33, 24, 0.06);
  --radius: 10px;
  --radius-sm: 6px;
  --max-width: 1080px;
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand-mark { color: var(--accent); }
.brand-text em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.site-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--accent); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--gold-soft) 100%);
  padding: 4rem 1.5rem 3rem;
}
.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 0 0 0.75rem;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--text);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-ghost:hover { background: var(--accent-soft); text-decoration: none; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.82rem; }

/* Sections */
section {
  padding: 3rem 1.5rem;
}
section:nth-child(even) {
  background: var(--bg-alt);
}
.section-head {
  max-width: var(--max-width);
  margin: 0 auto 2rem;
  text-align: center;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
}
.section-head p {
  color: var(--text-muted);
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Compare panel */
.compare-panel {
  max-width: var(--max-width);
  margin: 0 auto;
}
.compare-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}
.control {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-width: 180px;
}
.control span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.control select {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
}
.control-actions {
  flex-direction: row;
  gap: 0.5rem;
  align-items: flex-end;
}
.compare-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}
.compare-table th,
.compare-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.compare-table thead th {
  background: var(--bg-alt);
  font-weight: 600;
  font-size: 0.85rem;
}
.compare-table tbody tr:hover {
  background: var(--bg-alt);
}
.compare-table td:first-child {
  font-weight: 600;
  color: var(--text-muted);
  width: 30%;
}
.compare-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}
.copy-confirm {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 500;
}
.song-detail {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow);
}
.song-detail h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
}
.song-detail p {
  margin: 0;
  color: var(--text-muted);
}

/* Timeline */
.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}
.timeline-list::before {
  content: '';
  position: absolute;
  left: 5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-list li {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}
.tl-year {
  flex-shrink: 0;
  width: 4rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  text-align: right;
  padding-top: 0.2rem;
}
.tl-body {
  background: var(--surface);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1;
  position: relative;
}
.tl-body::before {
  content: '';
  position: absolute;
  left: -0.6rem;
  top: 1rem;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}
.tl-body h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}
.tl-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Song list */
.song-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 700px;
}
.song-list li {
  margin-bottom: 0.5rem;
}
.song-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  text-align: left;
  transition: all 0.15s ease;
}
.song-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.song-name {
  font-weight: 600;
}
.song-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.song-panel {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.song-panel p { margin: 0; }

/* Collector */
.collector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.collector-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.collector-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-family: var(--font-serif);
}
.collector-card p {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.collector-tag {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  margin: 0;
}

/* About */
.about-body {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Tips */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.tip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.tip h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}
.tip p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--text);
  color: #d5ccc2;
  padding: 2.5rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.footer-brand {
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}
.footer-inner p {
  font-size: 0.85rem;
  margin: 0;
}
.footer-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 0.3rem; }
.footer-links a {
  color: #d5ccc2;
  font-size: 0.85rem;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem;
  color: #9a8f82;
}

/* Print */
@media print {
  .site-header, .site-footer, .hero-actions, .compare-actions, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  section { padding: 1rem 0; break-inside: avoid; }
  .compare-table-wrap { box-shadow: none; }
  .song-panel { display: block !important; }
}

/* Responsive */
@media (max-width: 640px) {
  .hero { padding: 2.5rem 1rem 2rem; }
  section { padding: 2rem 1rem; }
  .compare-controls { flex-direction: column; }
  .control { min-width: 100%; }
  .timeline-list::before { left: 3.5rem; }
  .tl-year { width: 3rem; font-size: 0.95rem; }
  .timeline-list li { gap: 1rem; }
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
