:root {
  --bg: #0c0b0a;
  --paper: #141210;
  --ink: #f4eee6;
  --muted: #b7aea3;
  --gold: #d4b483;
  --line: rgba(244, 238, 230, 0.12);
  --serif: "Cormorant Garamond", "Noto Serif SC", serif;
  --sans: "Noto Sans SC", sans-serif;
}

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

html,
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  min-height: 100%;
}

body {
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px 36px;
  background: rgba(12, 11, 10, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--gold);
}

.brand-name {
  font-family: var(--serif);
  letter-spacing: 0.28em;
  font-size: 15px;
}

.brand-sub {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.filters {
  display: flex;
  gap: 8px;
}

.chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.chip.active,
.chip:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.status {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.status-label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.status-time {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7dcea0;
  box-shadow: 0 0 0 0 rgba(125, 206, 160, 0.6);
  animation: pulse 1.8s infinite;
}

.pulse.updating {
  background: var(--gold);
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(125, 206, 160, 0);
  }
}

.refresh-btn,
.more-btn,
.lb-close {
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  padding: 8px 14px;
  cursor: pointer;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  position: relative;
}

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: kenburns 18s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from {
    transform: scale(1.04) translateY(0);
  }
  to {
    transform: scale(1.12) translateY(-2%);
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 40%, #0c0b0a 96%);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 56px 64px 8px;
}

.eyebrow {
  color: var(--gold);
  letter-spacing: 0.28em;
  font-size: 12px;
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 84px);
  font-weight: 400;
  line-height: 0.95;
  margin-bottom: 24px;
}

.lede {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 300;
}

.hero-meta {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.dot {
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

main {
  padding: 48px 36px 80px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.toolbar p {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.masonry {
  columns: 4 240px;
  column-gap: 18px;
}

.card {
  break-inside: avoid;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  background: var(--paper);
  cursor: pointer;
  animation: rise 0.7s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.card img {
  width: 100%;
  display: block;
  filter: saturate(0.92) contrast(1.05);
  transition: transform 0.8s ease, filter 0.8s ease;
}

.card:hover img {
  transform: scale(1.06);
  filter: saturate(1.05) contrast(1.08);
}

.card-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(transparent, rgba(8, 7, 6, 0.88));
  opacity: 0;
  transform: translateY(8px);
  transition: 0.35s ease;
}

.card:hover .card-meta {
  opacity: 1;
  transform: none;
}

.card-title {
  font-family: var(--serif);
  font-size: 22px;
}

.card-by {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.more-btn {
  min-width: 180px;
  padding: 12px 20px;
}

footer {
  padding: 24px 36px 48px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(8, 7, 6, 0.94);
  display: grid;
  place-items: center;
  padding: 48px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-height: 82vh;
  max-width: min(920px, 90vw);
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.lb-close {
  position: absolute;
  top: 24px;
  right: 24px;
}

.lb-info {
  position: absolute;
  left: 48px;
  bottom: 36px;
}

.lb-info p {
  font-family: var(--serif);
  font-size: 28px;
}

.lb-info a {
  color: var(--gold);
  font-size: 13px;
}

@media (max-width: 980px) {
  .nav,
  .hero {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 16px;
  }

  .hero-copy {
    padding: 36px 24px 56px;
  }

  .hero-veil {
    background: linear-gradient(transparent 40%, #0c0b0a);
  }

  .masonry {
    columns: 2 160px;
  }

  main,
  .nav,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}
