/* ==========================================================================
   Local Scoop Design System
   Premium editorial design -- restraint, hierarchy, readability
   ========================================================================== */

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root {
  /* Brand -- used sparingly */
  --brand: #0f6654;
  --brand-dark: #0a4f40;
  --brand-subtle: #e8f5f0;

  /* Editorial palette */
  --ink: #121212;
  --text: #1a1a1a;
  --text-secondary: #555555;
  --muted: #888888;
  --subtle: #aaaaaa;
  --rule: #e0e0e0;
  --rule-light: #eeeeee;
  --surface: #fafafa;
  --white: #ffffff;

  /* Typography */
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing (8px grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 48px;
  --space-10: 64px;
  --space-12: 80px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Navigation / Masthead
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-5);
  height: 56px;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.nav-logo-text {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
}

.nav-logo-text span {
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 150ms ease;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--white);
  background: var(--ink);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms ease;
  min-height: 36px;
}

.nav-cta:hover {
  background: #333;
}

/* Dark nav variant (city pages) */
.nav-dark {
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-dark .nav-logo-text {
  color: var(--white);
}

.nav-dark .nav-logo-text span {
  color: rgba(255,255,255,0.4);
}

.nav-dark .nav-links a {
  color: rgba(255,255,255,0.5);
}

.nav-dark .nav-links a:hover {
  color: var(--white);
}

.nav-proof {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

/* ==========================================================================
   Hero / Page Headers
   ========================================================================== */

.hero {
  padding: var(--space-10) var(--space-5) var(--space-8);
  text-align: center;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

.hero-inner {
  max-width: 600px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero .subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
  line-height: 1.6;
}

.hero-proof {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 12px;
}

.hero-proof strong {
  color: var(--ink);
  font-weight: 700;
}

/* ==========================================================================
   Search
   ========================================================================== */

.search-wrap {
  max-width: 400px;
  margin: 0 auto var(--space-4);
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  font-size: 0.9375rem;
  font-family: var(--sans);
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 150ms ease;
}

.search-input:focus {
  border-color: var(--ink);
}

.search-input::placeholder {
  color: var(--subtle);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  display: none;
  overflow: hidden;
  z-index: 20;
}

.search-dropdown.open { display: block; }

.search-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 150ms ease;
  text-decoration: none;
  color: var(--ink);
}

.search-option:hover {
  background: var(--surface);
}

.search-option-city {
  font-weight: 600;
  font-size: 0.875rem;
}

.search-option-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 2px;
}

.search-option-tag.live {
  color: var(--brand);
  background: var(--brand-subtle);
}

.search-option-tag.soon {
  color: var(--muted);
  background: var(--surface);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-5) var(--space-6);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--rule);
}

.section-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ==========================================================================
   City Cards (Homepage)
   ========================================================================== */

.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1px;
  border: 1px solid var(--rule);
  background: var(--rule);
}

.city-card {
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  background: var(--white);
  text-decoration: none;
  color: var(--ink);
  transition: background 150ms ease;
  position: relative;
}

.city-card:hover {
  background: var(--surface);
}

.city-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.city-name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink);
}

.city-state {
  font-weight: 400;
  color: var(--muted);
}

.city-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  padding: 2px 8px;
  background: var(--brand-subtle);
  border-radius: 2px;
}

.city-headline {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 8px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.city-headline.loading {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-style: italic;
}

.city-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--rule-light);
}

.city-meta {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.city-arrow {
  font-size: 0.8125rem;
  color: var(--muted);
  transition: color 150ms ease;
}

.city-card:hover .city-arrow {
  color: var(--ink);
}

/* Coming soon card */
.city-card-soon {
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  background: var(--white);
  position: relative;
}

.city-card-soon .city-name {
  font-size: 0.875rem;
  color: var(--muted);
}

.soon-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 2px 8px;
  background: var(--surface);
  border-radius: 2px;
}

.soon-text {
  font-size: 0.8125rem;
  color: var(--subtle);
  margin-bottom: 8px;
}

/* Notify form */
.notify-form {
  display: flex;
  gap: 4px;
}

.notify-input {
  flex: 1;
  padding: 8px 12px;
  font-size: 0.8125rem;
  font-family: var(--sans);
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  min-width: 0;
}

.notify-input:focus {
  border-color: var(--ink);
}

.notify-input::placeholder {
  color: var(--subtle);
}

.notify-btn {
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--sans);
  color: var(--white);
  background: var(--ink);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 150ms ease;
}

.notify-btn:hover {
  background: #333;
}

.notify-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.notify-msg {
  font-size: 0.8125rem;
  margin-top: 4px;
  font-weight: 500;
}

.notify-msg.ok { color: var(--brand); }
.notify-msg.err { color: #cc0000; }

/* ==========================================================================
   Featured Story
   ========================================================================== */

.featured {
  max-width: 820px;
  margin: -16px auto 0;
  padding: 0 var(--space-5);
  position: relative;
  z-index: 5;
}

.featured-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--rule);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 150ms ease;
}

.featured-card:hover {
  border-color: #ccc;
}

.featured-body {
  padding: 24px 28px;
}

.featured-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
  margin-bottom: 8px;
}

.featured-title {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  line-height: 1.25;
  margin-bottom: 8px;
}

.featured-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.featured-hidden { display: none; }

/* ==========================================================================
   Expanding Banner
   ========================================================================== */

.expanding {
  text-align: center;
  padding: var(--space-6) var(--space-5);
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.expanding p {
  font-size: 0.9375rem;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
}

.expanding .expanding-sub {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 400;
}

/* ==========================================================================
   Footer -- multi-column, editorial
   ========================================================================== */

.footer {
  padding: var(--space-8) var(--space-5) var(--space-6);
  border-top: 1px solid var(--rule);
  background: var(--white);
  margin-top: auto;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }
}

.footer-brand-col .footer-brand-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.footer-brand-col .footer-tagline {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 12px;
}

.footer-col-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col-links a {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-col-links a:hover {
  color: var(--ink);
}

.footer-bottom {
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule-light);
  font-size: 0.75rem;
  color: var(--subtle);
}

.footer-bottom a {
  color: var(--subtle);
  text-decoration: underline;
}

.footer-bottom a:hover {
  color: var(--text-secondary);
}

/* ==========================================================================
   Content Pages (About, Privacy, Submit, etc.)
   ========================================================================== */

.page {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-5) var(--space-12);
}

.page h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.5rem);
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.page .subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
  line-height: 1.6;
}

.page-section {
  margin-bottom: var(--space-6);
}

.page-section h2 {
  font-family: var(--serif);
  font-size: 1.375rem;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.page-section p {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 12px;
}

.page-section ul {
  padding-left: 24px;
  margin-bottom: 12px;
}

.page-section li {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 4px;
}

/* Highlight / callout */
.highlight {
  background: var(--surface);
  border-left: 3px solid var(--ink);
  padding: 20px 24px;
  margin: 24px 0;
}

.highlight p {
  color: var(--ink);
  margin: 0;
}

/* Proof banner */
.proof-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 16px 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.proof-item { text-align: center; }

.proof-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
}

.proof-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.step {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 24px 20px;
  text-align: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  font-size: 0.8125rem;
  margin-bottom: 12px;
}

.step h3 {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.step p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Trust grid */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}

/* City chips */
.city-grid-small {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.city-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--rule);
  text-decoration: none;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 150ms ease;
}

.city-chip:hover {
  border-color: #ccc;
}

.city-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* ==========================================================================
   Cards (advertising/pricing)
   ========================================================================== */

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  max-width: 480px;
  margin: 0 auto var(--space-5);
  padding: 28px 24px;
}

/* Stats */
.stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin: 24px auto;
  max-width: 500px;
}

.stat { text-align: center; }

.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 640px) {
  .nav { padding: 0 16px; }
  .hero { padding: var(--space-8) 16px var(--space-6); }
  .featured { padding: 0 16px; }
  .section { padding: var(--space-6) 16px var(--space-5); }
  .section-header { flex-direction: column; gap: 4px; }
  .city-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nav-proof { display: none; }
  .nav-links { gap: 12px; }
}
