@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Variable-Italic.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --primary: #738f92;
  --primary-dark: #263b3f;
  --accent: #74a699;
  --bg: #ffffff;
  --text: #1a2b34;
  --muted: #6b7c85;
}

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

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main, .page-content {
  flex: 1;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: transparent;
  color: #fff;
  padding: 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.site-header.scrolled {
  background-color: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  text-shadow: none;
}

body.page .site-header {
  background-color: var(--primary-dark);
  text-shadow: none;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.brand h1 {
  font-size: 1.8rem;
  letter-spacing: 0.5px;
}

h1 {
  font-weight: 300;
}

h2 {
  font-weight: 400;
}

h3 {
  font-weight: 500;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  transition: background 0.2s ease;
  font-size: 0.95rem;
  font-weight: 300;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Hero / Slideshow */
.hero {
  padding: 0;
  background: #000;
  margin-top: 0;
}

.slideshow {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.slide-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.slide-btn.prev { left: 16px; }
.slide-btn.next { right: 16px; }

.dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s ease;
}

.dot.active {
  background: #fff;
}

/* Page content */
.page-content {
  padding-top: 100px;
  min-height: 60vh;
}

/* Content sections */
.content-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.content-section h2 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid rgb(105, 142, 132);
  display: inline-block;
  padding-bottom: 0.3rem;
}

.content-section p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

/* Updates ticker */
.updates-ticker {
  position: fixed;
  top: 130px;
  right: 0;
  width: 280px;
  bottom: 0;
  background: var(--primary-dark);
  color: #fff;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  z-index: 20;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  border-top-left-radius: 30px;
}

.ticker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem;
  background: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
  border-top-left-radius: 30px;
}

.ticker-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}

.ticker-body {
  padding: 0.8rem 1rem;
  flex: 1;
  overflow-y: auto;
}

.ticker-item {
  display: block;
  color: #fff;
  text-decoration: none;
  padding-bottom: 0.8rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid rgb(154, 176, 172);
  font-weight: 400;
}

.ticker-item:last-child {
  border-bottom: none;
}

.ticker-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.ticker-item time {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  display: block;
  margin-bottom: 0.4rem;
}

.ticker-item p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  margin: 0;
}

.ticker-item:hover strong {
  text-decoration: underline;
}

.ticker-loading,
.ticker-empty {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

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

/* Updates page */
.updates-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.update-card {
  padding: 1.5rem 0;
}

.post-divider {
  border: none;
  border-top: 1px solid #d6dee2;
  margin: 0;
}

.update-card h3 {
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.update-card time {
  font-size: 0.85rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.8rem;
}

.update-body p {
  color: var(--text);
  margin-bottom: 1rem;
}

.update-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 6px;
  margin: 1rem 0;
}

.update-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.update-body iframe,
.update-body .wp-block-embed__wrapper iframe {
  max-width: 100%;
  border-radius: 6px;
}

.update-body figure.wp-block-embed {
  margin: 1rem 0;
}

.update-body .wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.update-body .wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.update-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.no-updates,
.loading-msg {
  color: var(--muted);
}

/* PDF cards */
.pdf-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #f5f7f8;
  border-radius: 8px;
  padding: 0.8rem;
  margin: 1rem 0;
}

.pdf-thumbnail {
  position: relative;
  width: 140px;
  height: 180px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #d6dee2;
  background: #fff;
}

.pdf-thumbnail iframe {
  width: 140px;
  height: 180px;
  border: none;
  pointer-events: none;
}

.pdf-overlay {
  position: absolute;
  inset: 0;
  cursor: default;
}

.pdf-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
  min-height: 80px;
}

.pdf-name {
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.pdf-download {
  display: inline-block;
  color: #1c2928;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
  width: fit-content;
  font-weight: 700;
}

.pdf-download:hover {
  color: rgb(91, 129, 113);
}

@media (max-width: 500px) {
  .pdf-card { flex-direction: column; }
  .pdf-thumbnail { width: 100%; height: 200px; }
  .pdf-thumbnail iframe { width: 100%; height: 200px; }
}

/* Artifacts spotlight */
.spotlight {
  margin: 1.5rem 0;
}

.spotlight-placeholder {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 10px;
  padding: 3rem 2rem;
  text-align: center;
}

.spotlight-placeholder p {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.spotlight-placeholder span {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: #c9e7ee;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .slideshow { height: 70vh; }
  .brand h1 { font-size: 1.4rem; }
  .updates-ticker { width: 260px; right: 12px; bottom: 12px; }
  .main-nav ul { gap: 0.6rem; }
  .main-nav a { font-size: 0.8rem; padding: 0.3rem 0.4rem; }
}
