/* Kol Tregaskes Photography — Portfolio Design System */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

:root {
  /* Palette — muted, warm, lets images breathe */
  --bg: #0c0b0a;
  --bg-elevated: #141312;
  --bg-card: #1a1918;
  --text: #e8e4df;
  --text-secondary: #9c9590;
  --text-muted: #6b6560;
  --accent: #c4a882;
  --accent-hover: #d4bc9a;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;

  /* Spacing */
  --pad-x: clamp(20px, 5vw, 80px);
  --content-max: 1400px;
  --gallery-gap: 6px;
}

/* Light theme override */
[data-theme="light"] {
  --bg: #faf8f5;
  --bg-elevated: #ffffff;
  --bg-card: #f5f2ee;
  --text: #1a1715;
  --text-secondary: #6b6560;
  --text-muted: #9c9590;
  --accent: #8b7355;
  --accent-hover: #6b5540;
  --border: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(0, 0, 0, 0.12);
}

/* ─── Reset ────────────────────────────────────────────────────── */

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body { min-height: 100vh; }
body.nav-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

::selection { background: var(--accent); color: var(--bg); }

/* ─── Header ───────────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 var(--pad-x);
  background: transparent;
  transition: background 0.4s, backdrop-filter 0.4s;
}

.site-header.scrolled {
  background: rgba(12, 11, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

[data-theme="light"] .site-header.scrolled {
  background: rgba(250, 248, 245, 0.9);
}

.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.site-name span {
  font-weight: 300;
  opacity: 0.5;
}

.main-nav { display: flex; gap: 2rem; align-items: center; }

.main-nav a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active { color: var(--text); }

.nav-toggle { display: none; }

/* ─── Hero (Homepage) ──────────────────────────────────────────── */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  /* Placeholder — will be replaced with actual photo */
  background-color: #1a1918;
  background-image: linear-gradient(135deg, #1a1918 0%, #2a2520 50%, #1a1918 100%);
}

.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(12,11,10,0.15) 0%, rgba(12,11,10,0.0) 40%, rgba(12,11,10,0.6) 100%);
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 var(--pad-x) 80px;
}

.hero-content-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 1rem;
  max-width: 400px;
  letter-spacing: 0.02em;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.7rem 1.8rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.3s, background 0.3s;
}

.hero-cta:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
}

/* ─── Gallery Grid ─────────────────────────────────────────────── */

.gallery-section {
  padding: 80px var(--pad-x);
}

.gallery-section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--gallery-gap);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  aspect-ratio: 3/2;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0, 0.15, 1), opacity 0.4s;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item.is-placeholder {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    linear-gradient(135deg, rgba(196, 168, 130, 0.12), rgba(20, 19, 18, 0.95));
}

.gallery-item.is-placeholder img,
.gallery-item img.is-missing {
  opacity: 0;
  transform: none;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item.is-placeholder .gallery-item-overlay {
  opacity: 1;
  background: linear-gradient(to top, rgba(12, 11, 10, 0.82) 0%, rgba(12, 11, 10, 0.2) 100%);
}

.gallery-item-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: #fff;
}

.gallery-item-meta {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.25rem;
  letter-spacing: 0.05em;
}

.gallery-item.is-placeholder .gallery-item-title {
  color: var(--text);
}

.gallery-item.is-placeholder .gallery-item-meta {
  color: var(--text-secondary);
}

/* Masonry variant */
.gallery-masonry {
  columns: 3;
  column-gap: var(--gallery-gap);
}

.gallery-masonry .gallery-item {
  break-inside: avoid;
  margin-bottom: var(--gallery-gap);
  aspect-ratio: auto;
}

/* ─── Featured row (homepage) ──────────────────────────────────── */

.featured-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--gallery-gap);
  margin-bottom: var(--gallery-gap);
}

.featured-row .gallery-item:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
  min-height: 500px;
}

/* ─── About ────────────────────────────────────────────────────── */

.about-section {
  padding: 120px var(--pad-x);
}

.about-inner {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 60px;
}

.about-portrait {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
}

.about-portrait-wrap {
  display: grid;
  place-items: center;
  width: 200px;
  margin: 0 auto;
}

.about-portrait,
.about-portrait-fallback {
  grid-area: 1 / 1;
}

.about-portrait.is-missing {
  visibility: hidden;
}

.about-portrait-fallback {
  width: 200px;
  height: 200px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 30% 30%, rgba(196, 168, 130, 0.2), rgba(20, 19, 18, 0.98) 68%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 2.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-text h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  max-width: 600px;
}

.about-text .highlight {
  color: var(--text);
  font-weight: 400;
}

/* ─── Contact ──────────────────────────────────────────────────── */

.contact-section {
  padding: 120px var(--pad-x);
  text-align: center;
}

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

.contact-inner h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.contact-inner p {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}

.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.contact-link svg { width: 16px; height: 16px; }

/* ─── Footer ───────────────────────────────────────────────────── */

.site-footer {
  padding: 40px var(--pad-x);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

/* ─── Lightbox ─────────────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  cursor: zoom-out;
}

.lightbox.active { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 1.5rem;
  transition: color 0.2s;
}

.lightbox-close:hover { color: #fff; }

/* ─── Page header (gallery, about, contact) ────────────────────── */

.page-hero {
  padding: 140px var(--pad-x) 60px;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.page-hero p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Responsive ───────────────────────────────────────────────── */

@media (max-width: 768px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 200;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
  }

  .main-nav.open a {
    font-size: 1.2rem;
    color: var(--text);
  }

  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-masonry { columns: 2; }
  .featured-row { grid-template-columns: 1fr; }
  .featured-row .gallery-item:first-child { min-height: 300px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-masonry { columns: 1; }
}

/* ─── Scrollbar ────────────────────────────────────────────────── */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ─── Animations ───────────────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.6s ease-out forwards;
  opacity: 0;
}

.fade-up-d1 { animation-delay: 0.1s; }
.fade-up-d2 { animation-delay: 0.2s; }
.fade-up-d3 { animation-delay: 0.3s; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.nav-toggle:focus-visible,
.lightbox-close:focus-visible {
  outline-offset: 5px;
}

.hero-image {
  background-color: #1a1918;
  background-image: linear-gradient(135deg, #1a1918 0%, #2a2520 50%, #1a1918 100%);
}

.hero-image--home {
  background-image:
    linear-gradient(135deg, rgba(12, 11, 10, 0.22), rgba(12, 11, 10, 0.58)),
    url('images/hero.jpg');
}

.hero-cta-muted {
  color: var(--text);
  border-color: var(--border);
}

.gallery-item[role="button"] {
  width: 100%;
  text-align: inherit;
}

.gallery-item:focus-visible {
  outline-offset: -4px;
}

.gallery-filter-bar {
  text-align: center;
  padding: 0 var(--pad-x) 2rem;
}

.gallery-filter-row {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.filter-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-secondary);
}

.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
}

.gallery-cta-row {
  text-align: center;
  margin-top: 3rem;
}

.about-inner-centered,
.about-text-centered {
  text-align: center;
}

.about-copy {
  margin: 0 auto 1rem;
}

.about-copy.is-last {
  margin-bottom: 2rem;
}

.about-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.section-label-spaced {
  margin-bottom: 1rem;
}

.contact-note {
  margin-top: 3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.section-tight {
  padding-top: 0;
}

.content-shell-medium {
  max-width: 800px;
}

.content-shell-narrow {
  max-width: 760px;
}

.journal-entry p {
  margin-bottom: 1rem;
}

.journal-entry p:last-child {
  margin-bottom: 0;
}

.journal-date {
  margin-bottom: 1rem;
}

.journal-title {
  margin-bottom: 1.5rem;
}

.blog-post {
  display: block;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.blog-post:hover {
  opacity: 0.85;
}

.blog-post-date {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.blog-post-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin-top: 0.3rem;
}

.blog-post-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  line-height: 1.7;
}

.news-page-shell {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.news-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.news-kicker::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.news-page-hero {
  padding-bottom: 44px;
}

.news-page-hero p {
  max-width: 64ch;
}

.news-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.95fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  text-align: left;
}

.news-hero-panel,
.news-status-panel {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.news-hero-panel {
  padding: 2rem;
}

.news-hero-panel h2,
.news-status-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 300;
  line-height: 1.05;
}

.news-hero-panel p,
.news-status-panel p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-top: 1rem;
}

.news-status-panel {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.news-status-note {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.65;
}

.news-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.news-metric {
  padding: 0.95rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}

.news-metric span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.news-metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
}

.news-dashboard {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 2rem;
  padding: 0 0 90px;
}

.news-sidebar {
  position: sticky;
  top: 104px;
  align-self: start;
  padding: 1.35rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.news-sidebar-section + .news-sidebar-section {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}

.news-sidebar h3 {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.news-sidebar p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.65;
}

.news-search {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  padding: 0.9rem 1rem;
  font: inherit;
}

.news-search::placeholder {
  color: var(--text-muted);
}

.news-select {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  padding: 0.9rem 1rem;
  font: inherit;
}

.news-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.news-chip {
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.55rem 0.75rem;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.news-chip:hover,
.news-chip.active {
  border-color: rgba(196, 168, 130, 0.45);
  color: var(--text);
  background: rgba(196, 168, 130, 0.08);
}

.news-source-list {
  display: grid;
  gap: 0.6rem;
}

.news-source-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.news-source-toggle label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.news-source-toggle input {
  accent-color: var(--accent);
}

.news-clear {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  color: var(--text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.news-main {
  min-width: 0;
}

.news-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.news-loading,
.news-empty {
  padding: 3rem 1.5rem;
  border: 1px dashed var(--border);
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.75;
}

.news-loading strong,
.news-empty strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.55rem;
}

.news-group + .news-group {
  margin-top: 3rem;
}

.news-group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}

.news-group-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
}

.news-group-header span {
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.news-article-grid {
  display: grid;
  gap: 1rem;
}

.news-card {
  padding: 1.35rem;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.015));
  transition: border-color 0.2s, transform 0.2s;
}

.news-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.news-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.news-card-topline strong {
  color: var(--accent);
  font-weight: 500;
}

.news-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 400;
  line-height: 1.18;
}

.news-card h3 a {
  transition: color 0.2s;
}

.news-card h3 a:hover {
  color: var(--accent);
}

.news-card p {
  margin-top: 0.85rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.news-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.news-tag {
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-read-link {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.error-code {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 300;
  opacity: 0.1;
  line-height: 1;
}

.error-title {
  margin-top: -1rem;
}

.contact-links-spaced {
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .news-hero-layout,
  .news-dashboard {
    grid-template-columns: 1fr;
  }

  .news-sidebar {
    position: static;
  }
}

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

  .news-summary,
  .news-group-header,
  .news-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

.footer-inner-stacked {
  display: grid;
  gap: 1.5rem;
}

.footer-brand-block {
  display: grid;
  gap: 0.45rem;
}

.footer-note {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.65;
}

.footer-note a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-group {
  display: grid;
  gap: 0.75rem;
}

.footer-heading {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-group .footer-links {
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
}

.contact-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.contact-panel {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 1.25rem;
  text-align: left;
}

.contact-panel h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
}

.contact-panel p {
  margin-bottom: 1rem;
}

.contact-panel .contact-link {
  justify-content: center;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  text-align: left;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-field {
  display: grid;
  gap: 0.45rem;
}

.contact-field span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  padding: 0.95rem 1rem;
  font: inherit;
}

.contact-field textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-form-help,
.contact-form-status {
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.contact-form-status[data-state="error"] {
  color: #d9a08b;
}

.contact-form-status[data-state="success"] {
  color: var(--accent);
}

.contact-form-submit {
  justify-self: start;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
}

.news-date-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.news-date-field {
  display: grid;
  gap: 0.4rem;
}

.news-date-field span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.news-date-input {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  padding: 0.8rem 0.85rem;
  font: inherit;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.news-tag:hover,
.news-tag:focus-visible {
  border-color: rgba(196, 168, 130, 0.45);
  color: var(--text);
  background: rgba(196, 168, 130, 0.08);
}

@media (max-width: 768px) {
  .footer-columns,
  .contact-card-grid,
  .contact-form-grid,
  .news-date-range {
    grid-template-columns: 1fr;
  }
}
