@font-face {
  font-family: 'Clash Display';
  src: url('/static/fonts/ClashDisplay-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Clash Display';
  src: url('/static/fonts/ClashDisplay-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}

:root {
  --bg: #ffffff;
  --surface: #f5f5f5;
  --card: #fff;
  --border: #e5e5e5;
  --border-hover: #d5d5d5;
  --text: #1a1a1a;
  --text-secondary: #7a7a7a;
  --accent: #1a1a1a;
  --accent-hover: #404040;
  --accent-muted: rgba(26, 26, 26, 0.06);
  --green: #22c55e;
  --green-muted: rgba(34, 197, 94, 0.12);
  --radius: 12px;
  --radius-lg: 16px;
  --font-display: 'Clash Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Nav --- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1.1rem;
  font-size: .85rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, opacity .15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-lg {
  padding: .85rem 2.5rem;
  font-size: 1rem;
  border-radius: var(--radius);
}

/* --- Layout --- */

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page {
  min-height: calc(100vh - 56px);
}

/* --- Landing --- */

.landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - 56px - 5rem);
  padding: 4rem 1.5rem;
}

.landing-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 10vw, 6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.03em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.landing-tagline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 420px;
  margin-bottom: 3rem;
  line-height: 1.5;
}

.landing-store-note {
  margin-top: 1rem;
  font-size: .8rem;
  color: var(--text-secondary);
  letter-spacing: .02em;
}

/* --- Event Detail (share pages) --- */

.event-detail {
  max-width: 640px;
  margin: 0 auto;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.event-hero-image {
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.event-hero-image img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.event-detail h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.event-detail .description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.detail-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem 0;
  font-size: .9rem;
}

.detail-row + .detail-row {
  border-top: 1px solid var(--border);
}

.detail-icon {
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.tag {
  display: inline-block;
  padding: .15rem .5rem;
  font-size: .7rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: capitalize;
}

.tag-category {
  background: var(--accent-muted);
  color: var(--accent);
}

.tag-recurring {
  background: var(--green-muted);
  color: var(--green);
}

.rsvp-banner {
  text-align: center;
  padding: 1.25rem;
  background: var(--accent-muted);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.rsvp-banner strong {
  color: var(--accent);
  font-size: 1.5rem;
}

.rsvp-banner p {
  font-size: .9rem;
  color: var(--text-secondary);
  margin-top: .25rem;
}

.cta-block {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .15s;
  margin-bottom: 1rem;
}

.cta-block:hover { background: var(--accent-hover); color: #fff; }

.cta-subtitle {
  text-align: center;
  font-size: .8rem;
  color: var(--text-secondary);
}

/* --- List share page (read-only curator view) --- */

.list-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
}

.list-page-header {
  margin-bottom: 1.5rem;
}

.list-page-creator {
  font-size: .85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .35rem;
}

.list-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.list-page-meta {
  margin-top: .75rem;
  font-size: .85rem;
  color: var(--text-secondary);
}

.list-page-items {
  list-style: none;
  display: grid;
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.list-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s;
}

.list-item:hover {
  border-color: var(--border-hover);
}

.list-item-empty {
  display: block;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: .9rem;
}

.list-item-image {
  background: var(--surface);
}

.list-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 110px;
}

.list-item-body {
  padding: .85rem 1rem .85rem 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.list-item-kind {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-secondary);
}

.list-item-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.005em;
  text-transform: uppercase;
  line-height: 1.15;
}

.list-item-meta {
  font-size: .85rem;
  color: var(--text-secondary);
}

.list-item-link {
  margin-top: .35rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
}

.list-page-cta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

@media (max-width: 480px) {
  .list-item {
    grid-template-columns: 84px 1fr;
  }
  .list-item-image img {
    min-height: 96px;
  }
}

/* --- Legal (privacy / terms) --- */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 0 3.5rem;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.legal h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2rem 0 .5rem;
}

.legal h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.25rem 0 .35rem;
}

.legal p,
.legal li {
  font-size: .95rem;
  color: var(--text);
  line-height: 1.65;
}

.legal p { margin-bottom: 1rem; }

.legal ul {
  margin: 0 0 1rem 1.25rem;
  display: grid;
  gap: .35rem;
}

.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-meta {
  color: var(--text-secondary);
  font-size: .85rem;
  margin-bottom: 1.5rem;
}

.legal-footer-links {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: .9rem;
}

/* --- Footer --- */

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  font-size: .8rem;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: .75rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-weight: 600;
}

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

/* --- Responsive --- */

@media (max-width: 640px) {
  .landing { padding: 3rem 1.5rem; }
}
