:root {
  --bg: #fff0f2;
  --ink: #2b0c10;
  --mute: #80595f;
  --line: #f2d2d6;
  --acc: #c41425;
  --hero-opacity: 0.7;
  --text-glow: 0 0 12px #fff0f2, 0 0 4px #fff0f2;
}

@media(prefers-color-scheme:dark) {
  :root {
    --bg: #140d0f;
    --ink: #fcedee;
    --mute: #b39fa1;
    --line: #2e1f22;
    --acc: #ff6b75;
    --hero-opacity: 0.30;
    --text-glow: 0 0 12px #140d0f, 0 0 4px #140d0f;
  }
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 5px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--acc);
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a {
  color: var(--acc);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

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

header {
  border-bottom: 1px solid var(--line);
}

header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .5rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.brand {
  font: 700 1.35rem Georgia, "Times New Roman", serif;
  color: var(--ink);
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  margin-left: 1.3rem;
  color: var(--mute);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
}

nav a:hover {
  color: var(--acc);
}

nav a[aria-current] {
  color: var(--acc);
  font-weight: 600;
}

nav a[aria-current]::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--acc);
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
}

h1 { font-size: 2.3rem; margin: 2.5rem 0 .8rem; }

h2 {
  font-size: 1.5rem;
  margin: 2rem 0 .3rem;
  padding-left: 0.7rem;
  border-left: 3px solid var(--acc);
}

h3 { font-size: 1.15rem; margin: 0 0 .2rem; }

.hero {
  padding: 4rem 0 5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.hero > div:first-child {
  opacity: var(--hero-opacity) !important;
  will-change: background-position;
}

.hero .wrap {
  text-shadow: var(--text-glow);
}

.lead { font-size: 1.15rem; color: var(--mute); }
.meta { color: var(--mute); font-size: .9rem; margin: 0 0 .6rem; }
article { border-top: 1px solid var(--line); padding: 1rem 0; }

.grid {
  display: block !important;
  column-count: 2 !important;
  column-gap: 1.5rem !important;
  margin: 1.5rem 0 3rem !important;
}

figure {
  margin: 0 0 1.5rem 0 !important;
  break-inside: avoid !important;
  position: relative;
  background: var(--bg) !important;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 1rem 1rem 3.5rem 1rem !important;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.25s ease, box-shadow 0.25s ease !important;
}

figure:hover {
  transform: translateY(-4px);
  border-color: var(--acc) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
}

figure::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -40%;
  width: 180%;
  height: 180%;
  background: inherit; 
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  filter: blur(120px) brightness(0.4) contrast(1.2);
  z-index: 1;
}

figure img {
  position: relative;
  z-index: 2;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  mix-blend-mode: multiply;
  padding-bottom: 2.7rem !important;
}

figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Monaco, Consolas, monospace;
  font-size: 1rem !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 1rem 0.8rem !important;
  background: var(--bg) !important; 
  color: var(--ink) !important;
  text-align: center;
  z-index: 3;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

figcaption::before { content: "🐾"; opacity: 0.7; font-size: 0.9rem; }
figcaption::after { content: "🐾"; opacity: 0.7; font-size: 0.9rem; }

footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding: 1.5rem 0;
  color: var(--mute);
  font-size: .9rem;
}

@media (max-width: 600px) {
  .grid {
    column-count: 1 !important;
  }
}
