@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #0b0f14;
  --panel: #121923;
  --panel-2: #17212f;
  --text: #e8edf3;
  --muted: #97a4b5;
  --accent: #4f8cff;
  --border: #223044;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Fraunces', 'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: linear-gradient(180deg, #0b0f14 0%, #0f1520 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Editorial serif for hero titles site-wide */
h1.title, .hero h1, .hero .title, .garden-hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
}

a { color: #8eb6ff; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 20px; }

header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(11, 15, 20, .7);
  border-bottom: 1px solid var(--border);
}

nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px clamp(10px, 1.6vw, 18px);
  max-width: 1440px;
  margin: 0 auto;
  gap: 10px;
}

.brand { font-weight: 700; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}
.brand-mark:hover { text-decoration: none; }
.brand-mark svg {
  width: 28px;
  height: 28px;
  display: block;
}
.brand-mark .brand-text {
  font-family: var(--font-serif);
  font-size: 16px;
}

.links {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  flex-wrap: nowrap;
  min-width: 0;
}
.links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid rgba(142, 182, 255, 0.24);
  border-radius: 8px;
  background: rgba(255,255,255,0.045);
  color: #d8e5ff;
  font-weight: 650;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none;
}
.links a:hover,
.links a[aria-current="page"] {
  border-color: rgba(142, 182, 255, 0.5);
  background: rgba(79, 140, 255, 0.18);
  color: #ffffff;
  text-decoration: none;
}

.theme-toggle {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(142, 182, 255, 0.24);
  border-radius: 8px;
  background: rgba(255,255,255,0.045);
  color: #d8e5ff;
  cursor: pointer;
}
.theme-toggle:hover {
  border-color: rgba(142, 182, 255, 0.5);
  background: rgba(79, 140, 255, 0.18);
}

@media (max-width: 720px) {
  header nav,
  header#site-nav > nav {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
  }
  .brand-mark,
  .brand {
    min-width: 0;
    order: 1;
  }
  .theme-toggle {
    justify-self: end;
    order: 2;
  }
  .links {
    grid-column: 1 / -1;
    order: 3;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
}

.hero {
  margin-top: 20px;
  padding: 24px;
  background: radial-gradient(circle at 10% 10%, #253854, #111a27 55%);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.card h2 { margin-top: 0; margin-bottom: 8px; }

.col-4 { grid-column: span 4; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .col-4,
  .col-6,
  .col-8 {
    grid-column: span 12;
  }
}

.kicker {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}

.title { margin: 6px 0 10px; font-size: 26px; }
.muted { color: var(--muted); }

.list { display: flex; flex-direction: column; gap: 10px; }

.item {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-2);
}

.item-card { padding: 12px; }
.item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.item-title {
  color: var(--text);
  font-weight: 600;
}

.badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  border: 1px solid var(--border);
  color: var(--muted);
  background: #152234;
}

.badge.live { color: #8ef0c2; border-color: #2f6e57; }
.badge.in-progress { color: #cce0ff; border-color: #395f9d; }
.badge.planned,
.badge.coming-soon { color: #d5c8ff; border-color: #5f4d9f; }

.news-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  align-items: center;
}

button,
.control,
.btn {
  background: #1d2a3d;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
}

button:hover { background: #22344d; cursor: pointer; }

.control {
  min-height: 36px;
}

#news-query {
  min-width: 220px;
}

.news-meta { color: var(--muted); font-size: 12px; }

.news-grid {
  display: block;
}

.news-section-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  letter-spacing: 0.02em;
}

.news-inner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  grid-auto-flow: dense;
  align-items: start;
  margin-bottom: 1rem;
}

.news-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #111a27;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}

.news-card.featured {
  grid-column: span 2;
}

.news-card.compact {
  grid-column: span 1;
}

.news-card-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  background: #0c1118;
}

.news-card.compact .news-card-img {
  height: 110px;
}

.news-card-body {
  padding: 12px;
}

.news-card-title {
  color: var(--text);
  font-weight: 650;
  line-height: 1.35;
}

.news-card p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.4;
}

.news-card.compact .news-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card.compact p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

footer {
  margin: 24px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery-card {
  margin: 0;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-card figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .news-inner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-card.featured {
    grid-column: span 2;
  }

  .news-card.compact {
    grid-column: span 1;
  }
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .news-inner-grid {
    grid-template-columns: 1fr;
  }

  .news-card.featured,
  .news-card.compact {
    grid-column: span 1;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card img {
    height: auto;
  }
}
