/* =============================================
   WEEKEND DAMAGE REPORT — Global Styles
   Hungover Medical Report Design System
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --cream: #FDFAF4;
  --warm-white: #F9F5EC;
  --parchment: #EDE8DC;
  --ink: #1C1917;
  --muted: #78716C;
  --border: #D6CFC2;
  --sunday-red: #DC2626;
  --sunday-orange: #EA580C;
  --sunday-green: #16A34A;
  --sunday-blue: #2563EB;
  --sunday-purple: #7C3AED;
  --highlight: #FEF08A;
  --card: #FFFFFF;
  --shadow: 0 1px 3px rgba(28,25,23,0.08), 0 4px 16px rgba(28,25,23,0.06);
  --shadow-lg: 0 4px 6px rgba(28,25,23,0.07), 0 10px 40px rgba(28,25,23,0.12);
  --radius: 3px;
  --transition: 0.18s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Subtle dot grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(120,113,108,0.15) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3 {
  font-family: 'DM Serif Display', serif;
  line-height: 1.1;
}

a { color: var(--sunday-red); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.7; }

/* ---- NAV ---- */
nav {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 var(--border);
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo em { color: var(--sunday-red); font-style: italic; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
  letter-spacing: 0.01em;
}

.nav-links a:hover { color: var(--ink); opacity: 1; }

/* ---- FOOTER ---- */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 48px 24px 32px;
  margin-top: 80px;
}

.footer-inner { max-width: 1000px; margin: 0 auto; }

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}

.footer-brand .logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--highlight);
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  margin-top: 8px;
  max-width: 260px;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.3);
  margin-bottom: 12px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
  opacity: 1;
}
.footer-links a:hover { color: var(--highlight); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  font-family: 'DM Mono', monospace;
}

/* ---- COOKIE BANNER ---- */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--ink);
  border-top: 2px solid var(--sunday-red);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  z-index: 9998;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

#cookie-banner.visible { transform: translateY(0); }
#cookie-banner p { font-size: 0.875rem; line-height: 1.5; flex: 1; min-width: 200px; color: rgba(255,255,255,0.65); }
#cookie-banner a { color: var(--highlight); }

.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }

.btn-accept {
  background: var(--sunday-red);
  color: white;
  border: none;
  padding: 10px 20px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.btn-accept:hover { background: #b91c1c; }

.btn-decline {
  background: transparent;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 10px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.btn-decline:hover { border-color: rgba(255,255,255,0.4); color: white; }

/* ---- UTILITY ---- */
.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

.tag {
  display: inline-block;
  background: var(--highlight);
  color: var(--ink);
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 2px;
}

.tag-red { background: var(--sunday-red); color: white; }

.btn-primary {
  display: inline-block;
  background: var(--sunday-red);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 32px;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(220,38,38,0.3);
}

.btn-primary:hover {
  background: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(220,38,38,0.35);
  opacity: 1;
  color: white;
}

/* ---- LEGAL PAGES ---- */
.legal-page { max-width: 720px; margin: 0 auto; padding: 48px 24px 80px; position: relative; z-index: 1; }
.legal-page h1 { font-size: 2.8rem; color: var(--ink); margin-bottom: 4px; }
.legal-page .last-updated { color: var(--muted); font-size: 0.8rem; margin-bottom: 40px; font-family: 'DM Mono', monospace; }
.legal-page h2 { font-size: 1.2rem; margin: 36px 0 12px; }
.legal-page p { line-height: 1.75; color: #57534e; margin-bottom: 16px; font-size: 0.95rem; }
.legal-page ul { padding-left: 20px; margin-bottom: 16px; }
.legal-page li { line-height: 1.75; color: #57534e; margin-bottom: 6px; font-size: 0.95rem; }

@media (max-width: 600px) {
  .nav-links { display: none; }
  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
