/* ebb n flow — site styles */

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

/* ===== CSS VARIABLES ===== */
:root {
  /* Brand colours */
  --sage: #7eb8a8;
  --light-sage: #c8e6dc;
  --deep-black: #0a0a0a;
  --near-black: #1a1a1a;
  --off-white: #e8e4df;
  --warm-white: #f5f0ea;

  /* Theme (dark default) */
  --bg: var(--deep-black);
  --bg-secondary: var(--near-black);
  --text: var(--off-white);
  --text-muted: #666;
  --text-subtle: #444;
  --border: rgba(255, 255, 255, 0.06);

  /* Mark colours (dark theme) */
  --mark-outer: var(--sage);
  --mark-middle: var(--sage);
  --mark-inner: var(--off-white);
  --mark-dot: var(--sage);
}

[data-theme="light"] {
  --bg: var(--warm-white);
  --bg-secondary: #ebe6e0;
  --text: var(--near-black);
  --text-muted: #888;
  --text-subtle: #bbb;
  --border: rgba(0, 0, 0, 0.06);

  /* Mark colours (light theme) */
  --mark-outer: var(--near-black);
  --mark-middle: var(--sage);
  --mark-inner: var(--near-black);
  --mark-dot: var(--near-black);
}

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

/* ===== BASE ===== */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
}

/* ===== TYPOGRAPHY ===== */
.font-display {
  font-family: 'Anybody', sans-serif;
  font-weight: 200;
}

.font-serif {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
}

.font-mono {
  font-family: 'Space Mono', monospace;
}

h1, h2, h3 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 60%, transparent 100%);
}

.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: 0.85;
  z-index: -1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-logo {
  font-family: 'Anybody', sans-serif;
  font-weight: 200;
  font-size: 14px;
  letter-spacing: 3px;
  text-decoration: none;
  color: var(--text);
}

.nav-logo .n {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--sage);
}

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

.nav-links a {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--sage);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 100;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--sage);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.5;
  transition: stroke 0.2s ease;
}

.theme-toggle:hover svg {
  stroke: var(--sage);
}

/* Hide moon in dark mode, sun in light mode */
.icon-sun { display: none; }
.icon-moon { display: block; }

[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(126, 184, 168, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

[data-theme="light"] .hero::before {
  background: radial-gradient(ellipse, rgba(126, 184, 168, 0.08) 0%, transparent 60%);
}

.hero-mark {
  width: 180px;
  height: 190px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.hero-mark svg {
  width: 100%;
  height: 100%;
}

.hero-wordmark {
  font-family: 'Anybody', sans-serif;
  font-weight: 200;
  font-size: 42px;
  letter-spacing: 6px;
  text-transform: lowercase;
  position: relative;
  z-index: 1;
}

.hero-wordmark .n {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--sage);
  margin: 0 2px;
}

.hero-sub {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

/* ===== MARK ANIMATION ===== */
@keyframes breathe-outer {
  0%, 100% { stroke-opacity: 1; }
  50% { stroke-opacity: 0.7; }
}

@keyframes breathe-middle {
  0%, 100% { stroke-opacity: 0.5; }
  50% { stroke-opacity: 0.3; }
}

@keyframes breathe-inner {
  0%, 100% { stroke-opacity: 0.35; }
  50% { stroke-opacity: 0.2; }
}

@keyframes breathe-dot {
  0%, 100% { fill-opacity: 0.8; }
  50% { fill-opacity: 0.5; }
}

.mark-outer {
  stroke-opacity: 1;
  animation: breathe-outer 5s ease-in-out infinite;
}

.mark-middle {
  stroke-opacity: 0.5;
  animation: breathe-middle 5s ease-in-out infinite 0.5s;
}

.mark-inner {
  stroke-opacity: 0.35;
  animation: breathe-inner 5s ease-in-out infinite 1s;
}

.mark-dot {
  fill-opacity: 0.8;
  animation: breathe-dot 5s ease-in-out infinite 1.5s;
}

/* ===== PAGE CONTENT ===== */
.page {
  min-height: 100vh;
  padding: 120px 40px 80px;
  max-width: 800px;
  margin: 0 auto;
}

.page-title {
  font-family: 'Instrument Serif', serif;
  font-size: 36px;
  margin-bottom: 12px;
}

.page-subtitle {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 48px;
}

.page p {
  margin-bottom: 24px;
  color: var(--text-muted);
}

.page p strong {
  color: var(--text);
  font-weight: 400;
}

/* ===== EVENTS ===== */
.event-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 20px;
  transition: border-color 0.2s ease;
}

.event-card:hover {
  border-color: var(--sage);
}

.event-date {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--sage);
  margin-bottom: 8px;
}

.event-title {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  margin-bottom: 6px;
}

.event-venue {
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== SOCIALS ===== */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.social-link:hover {
  border-color: var(--sage);
  background: var(--bg-secondary);
}

.social-link span {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
}

/* ===== CONTACT FORM ===== */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sage);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--sage);
  color: var(--deep-black);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.85;
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer p {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-subtle);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav {
    padding: 20px 24px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 9px;
  }

  .hero-mark {
    width: 140px;
    height: 148px;
  }

  .hero-wordmark {
    font-size: 32px;
    letter-spacing: 4px;
  }

  .page {
    padding: 100px 24px 60px;
  }

  .page-title {
    font-size: 28px;
  }
}
