/* lomo.joker.art.pl */

:root {
  --paper: #f3ede0;
  --paper-dark: #e8e0cc;
  --ink: #1a1814;
  --ink-soft: #4a463d;
  --ink-faint: #8a8378;
  --accent: #c8421f;
  --accent-soft: #e8a87c;
  --frame: #faf6ec;
  --shadow: rgba(26, 24, 20, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1a1814;
    --paper-dark: #0f0d0a;
    --ink: #f3ede0;
    --ink-soft: #c8c0b0;
    --ink-faint: #7a7368;
    --frame: #2a2620;
    --shadow: rgba(0, 0, 0, 0.4);
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

/* film grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: -5%;            /* 5% bigger than viewport so translate ±3% never exposes edges */
  pointer-events: none;
  z-index: 1000;
  opacity: 0.18;
  background-image: url('/assets/img/grain.svg');
  mix-blend-mode: multiply;
  animation: grain 1.6s steps(6) infinite;
}

@media (prefers-color-scheme: dark) {
  body::before { mix-blend-mode: screen; }
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-3%, -2%); }
  20% { transform: translate(2%, -3%); }
  30% { transform: translate(-2%, 4%); }
  40% { transform: translate(3%, 2%); }
  50% { transform: translate(-3%, 1%); }
  60% { transform: translate(2%, -2%); }
  70% { transform: translate(-1%, 3%); }
  80% { transform: translate(3%, -3%); }
  90% { transform: translate(-2%, 2%); }
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HEADER */
header {
  padding: 64px 0 32px;
  border-bottom: 1px solid var(--paper-dark);
  animation: fadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.brand {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(36px, 6vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variation-settings: 'SOFT' 60, 'WONK' 1, 'opsz' 144;
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

.brand-title .dot {
  color: var(--accent);
  display: inline-block;
  animation: blink 5s ease-in-out infinite;
}

/* Stagger so each dot blinks at a different moment.
   Negative delays start mid-cycle so the offset is visible on page load. */
.brand-title .dot:nth-of-type(1) { animation-delay:  0s;   }
.brand-title .dot:nth-of-type(2) { animation-delay: -1.7s; }
.brand-title .dot:nth-of-type(3) { animation-delay: -3.3s; }

@keyframes blink {
  0%, 70%, 100% { opacity: 1; }
  78%           { opacity: 0.2; }
  86%           { opacity: 1; }
}

.brand-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: right;
  line-height: 1.6;
}

.brand-meta .camera-line {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.cam-icon {
  width: 14px;
  height: 14px;
  fill: var(--ink-faint);
}

.tagline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 14px;
  font-variation-settings: 'SOFT' 100;
}

.archive-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  color: var(--accent);
  opacity: 0.65;
  text-decoration: none;
  font-variation-settings: 'SOFT' 100;
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: relative;
  padding-left: 16px;
}

.archive-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
  transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.archive-link:hover {
  opacity: 1;
}

.archive-link:hover::before {
  width: 14px;
}

.archive-link .arrow {
  font-style: normal;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  opacity: 0.7;
}

/* PROJECTS NAV */
nav.projects {
  display: flex;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--paper-dark);
  font-size: 13px;
  overflow-x: auto;
  scrollbar-width: none;
  animation: fadeUp 0.9s 0.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

nav.projects::-webkit-scrollbar { display: none; }

.proj {
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  padding: 4px 0;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.proj:hover { color: var(--ink); }

.proj.active {
  color: var(--ink);
  font-weight: 500;
}

.proj.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  animation: slideIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.proj .count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-faint);
  margin-left: 4px;
}

@keyframes slideIn {
  from { transform: scaleX(0); transform-origin: left; }
  to { transform: scaleX(1); transform-origin: left; }
}

/* FEED */
.feed { padding: 40px 0 80px; }

article.photo {
  margin-bottom: 72px;
}

/* Scroll-fade-in is JS-driven; only enable when JS has marked the document.
   Until prompt_09 wires the IntersectionObserver, photos are visible by default. */
html.js article.photo {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

html.js article.photo.visible {
  opacity: 1;
  transform: translateY(0);
}

.photo-frame {
  position: relative;
  background: var(--frame);
  padding: 14px 14px 18px;
  box-shadow: 0 1px 2px var(--shadow), 0 12px 28px -8px var(--shadow);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  margin-bottom: 18px;
  cursor: pointer;
}

.photo-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px var(--shadow), 0 24px 48px -12px var(--shadow);
}

.photo-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.92);
  transition: filter 0.5s ease;
}

.photo-frame:hover img {
  filter: contrast(1.08) saturate(1);
}

/* date stamp like an old digital camera */
.date-stamp {
  position: absolute;
  right: 22px;
  bottom: 26px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #ffb347;
  letter-spacing: 0.05em;
  text-shadow: 0 0 4px rgba(255, 100, 0, 0.4);
  opacity: 0.85;
  pointer-events: none;
}

.photo-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
  gap: 16px;
}

.photo-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-variation-settings: 'SOFT' 80, 'opsz' 48;
}

.photo-title a {
  color: inherit;
  text-decoration: none;
}

.photo-title a:hover { color: var(--accent); }

.photo-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-faint);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.photo-tags {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
  margin-bottom: 12px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

.photo-tags .proj-tag {
  color: var(--accent);
  text-decoration: none;
}

.photo-tags .proj-tag:hover { text-decoration: underline; }

.photo-desc {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 16px;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 18px;
  line-height: 1.6;
  font-variation-settings: 'SOFT' 100;
}

.desc-wrap { position: relative; margin-bottom: 18px; }
.desc-wrap .photo-desc { margin-bottom: 0; }

.desc-wrap.clamped .photo-desc {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.desc-wrap.clamped::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  height: 32px;
  background: linear-gradient(to bottom, transparent, var(--paper));
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.desc-wrap.expanded::after { opacity: 0; }

.read-more {
  display: none;
  background: none;
  border: none;
  padding: 6px 0 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.desc-wrap.has-overflow .read-more { display: inline-block; }
.read-more::after { content: ' →'; transition: transform 0.3s ease; display: inline-block; }
.desc-wrap.expanded .read-more::after { content: ' ←'; }
.read-more:hover { opacity: 0.7; }

.photo-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--paper-dark);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.action {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  padding: 0;
  transition: color 0.2s ease;
  text-decoration: none;
}

.action:hover { color: var(--ink); }

.heart {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  transition: fill 0.3s ease, stroke 0.3s ease, transform 0.3s ease;
}

.action.liked .heart {
  fill: var(--accent);
  stroke: var(--accent);
  animation: pop 0.4s cubic-bezier(0.2, 0.8, 0.2, 1.5);
}

.action.liked { color: var(--accent); }

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.action.permalink { margin-left: auto; }

/* sprocket divider */
.sprocket {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 32px 0;
  opacity: 0.4;
}

.sprocket span {
  width: 18px;
  height: 12px;
  background: var(--ink-faint);
  border-radius: 2px;
}

/* footer */
footer {
  text-align: center;
  padding: 40px 0 64px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

footer .foot-row { line-height: 1.8; }

footer a {
  color: var(--ink-soft);
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.2s ease;
}

footer a:hover { color: var(--accent); }

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

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 10, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img-wrap {
  position: relative;
  max-width: min(95vw, 1400px);
  max-height: 75vh;
  transform: scale(0.96);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lightbox.open .lightbox-img-wrap { transform: scale(1); }

.lightbox-img-wrap img {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  filter: contrast(1.05) saturate(0.95);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.lightbox-stamp {
  position: absolute;
  right: 14px;
  bottom: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #ffb347;
  letter-spacing: 0.05em;
  text-shadow: 0 0 6px rgba(255,100,0,0.5);
  opacity: 0.8;
}

.lightbox-info {
  margin-top: 20px;
  max-width: 640px;
  text-align: center;
  color: #f3ede0;
}

.lightbox-info .lb-title {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 400;
  font-variation-settings: 'SOFT' 80;
  margin-bottom: 4px;
}

.lightbox-info .lb-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.65;
  margin-bottom: 10px;
}

.lightbox-info .lb-meta .proj-tag { color: var(--accent-soft); }

.lightbox-info .lb-desc {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.85;
  font-variation-settings: 'SOFT' 100;
  max-height: 22vh;
  overflow-y: auto;
}

.lb-close, .lb-nav {
  position: absolute;
  background: none;
  border: none;
  color: #f3ede0;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-family: 'JetBrains Mono', monospace;
  user-select: none;
}

.lb-close:hover, .lb-nav:hover { opacity: 1; }

.lb-close {
  top: 20px;
  right: 24px;
  font-size: 22px;
  width: 36px;
  height: 36px;
}

.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-nav.prev { left: 20px; }
.lb-nav.next { right: 20px; }
.lb-nav:hover { transform: translateY(-50%) scale(1.15); }

.lb-counter {
  position: absolute;
  top: 24px;
  left: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #f3ede0;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

body.lb-open { overflow: hidden; }

@media (max-width: 600px) {
  .lb-nav { font-size: 22px; width: 40px; height: 40px; }
  .lb-nav.prev { left: 4px; }
  .lb-nav.next { right: 4px; }
  .lightbox-img-wrap { max-height: 60vh; }
  .lightbox-img-wrap img { max-height: 60vh; }
}

/* mobile tweaks */
@media (max-width: 600px) {
  header { padding: 40px 0 24px; }
  .brand-meta { text-align: left; }
  .brand-meta .camera-line { justify-content: flex-start; }
  .photo-frame { padding: 10px 10px 14px; }
  .date-stamp { right: 16px; bottom: 20px; font-size: 10px; }
  article.photo { margin-bottom: 56px; }
}

/* EMPTY STATE + PAGINATION */
.empty-state {
  text-align: center;
  padding: 80px 0;
}

.empty-state p {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  color: var(--ink-soft);
  opacity: 0.75;
  font-variation-settings: 'SOFT' 100;
  line-height: 1.6;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0 16px;
  border-top: 1px solid var(--paper-dark);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pagination .page-link {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.pagination .page-link:hover { color: var(--accent); }

.pagination .page-counter {
  color: var(--ink-faint);
}

/* PROJECT PAGE */
.project-page { padding: 32px 0 80px; }

.project-header {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--paper-dark);
}

.project-status-row {
  display: flex;
  gap: 16px;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.project-status {
  padding: 3px 8px;
  border: 0.5px solid currentColor;
  border-radius: 2px;
}
.project-status.status-aktywny { color: var(--accent); }
.project-status.status-cykliczny { color: var(--ink-soft); }
.project-status.status-zamkniety { color: var(--ink-faint); }

.project-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(28px, 5vw, 42px);
  font-variation-settings: 'SOFT' 60, 'WONK' 1, 'opsz' 144;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.project-desc {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 22px;
  font-variation-settings: 'SOFT' 100;
}

.project-progress { margin-bottom: 22px; }
.progress-bar {
  height: 4px;
  background: var(--paper-dark);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.progress-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(45, 1fr);
  gap: 2px;
  margin-top: 10px;
  max-width: 360px;
}
.heat-cell {
  aspect-ratio: 1;
  background: var(--paper-dark);
  border-radius: 1px;
  transition: background 0.2s ease;
}
.heat-cell.on { background: var(--accent); opacity: 0.85; }

.empty-state-text {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 16px;
  color: var(--ink-soft);
  opacity: 0.7;
  text-align: center;
  padding: 60px 0;
  font-variation-settings: 'SOFT' 100;
}

/* PROJECTS INDEX */
.projects-index { padding: 32px 0 80px; }
.page-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(28px, 5vw, 42px);
  font-variation-settings: 'SOFT' 60, 'WONK' 1, 'opsz' 144;
  margin-bottom: 32px;
}

.projects-group { margin-bottom: 48px; }
.group-heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--frame);
  padding: 12px 12px 16px;
  box-shadow: 0 1px 2px var(--shadow);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 2px var(--shadow), 0 16px 32px -8px var(--shadow);
}
.project-card-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  margin-bottom: 12px;
  overflow: hidden;
}
.project-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.92);
}
.project-card .closed-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--paper);
  color: var(--ink-soft);
  padding: 4px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 0.5px solid var(--paper-dark);
}
.project-card-body h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 18px;
  font-variation-settings: 'SOFT' 80;
  margin-bottom: 6px;
}
.project-card-body p {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 10px;
  font-variation-settings: 'SOFT' 100;
}
.project-card-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* PHOTO PERMALINK */
.photo-page { padding: 32px 0 80px; }

.photo.single {
  margin-bottom: 48px;
}
.photo.single .photo-frame {
  margin-bottom: 24px;
  cursor: default;
}
.photo.single .photo-frame:hover { transform: none; }

.photo-header-block {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.photo-title-single {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(26px, 4vw, 36px);
  font-variation-settings: 'SOFT' 60, 'WONK' 1, 'opsz' 96;
  letter-spacing: -0.01em;
}
.photo-date-single {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.photo-tags-single { font-size: 12px; margin-bottom: 24px; }

.photo-body {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 17px;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.7;
  font-variation-settings: 'SOFT' 100;
  margin-bottom: 28px;
}

.photo-neighbours {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 16px;
  padding: 24px 0;
  margin-bottom: 56px;
  border-top: 1px solid var(--paper-dark);
  border-bottom: 1px solid var(--paper-dark);
}
.neighbour {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink-soft);
  flex: 1;
  padding: 12px;
  transition: color 0.3s ease, transform 0.3s ease;
}
.neighbour:hover { color: var(--accent); transform: translateY(-1px); }
.neighbour.next { justify-content: flex-end; text-align: right; }
.neighbour.empty { flex: 1; }
.neighbour .arrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
}
.neighbour .label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}
.neighbour .title {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 400;
  font-variation-settings: 'SOFT' 80;
}

.comments-section { margin-top: 48px; }
.section-heading {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 22px;
  font-variation-settings: 'SOFT' 80;
  margin-bottom: 18px;
}
.comments-placeholder {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--ink-faint);
  opacity: 0.7;
  padding: 32px 0;
  text-align: center;
}

/* ARCHIVE + CLOSED */
.archive-page, .closed-projects-page { padding: 32px 0 80px; }

.page-lead {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 40px;
  font-variation-settings: 'SOFT' 100;
}

.archive-month { margin-bottom: 48px; }
.month-heading {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 20px;
  font-variation-settings: 'SOFT' 80;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--paper-dark);
  padding-bottom: 8px;
}
.month-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-left: 6px;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.archive-thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  text-decoration: none;
  background: var(--frame);
  overflow: hidden;
  transition: transform 0.3s ease;
}
.archive-thumb:hover { transform: translateY(-1px); }
.archive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.92);
  transition: filter 0.3s ease;
}
.archive-thumb:hover img { filter: contrast(1.08) saturate(1); }
.archive-thumb-meta {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(20,16,10,0.7), transparent);
  color: #f3ede0;
  padding: 14px 10px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: baseline;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.archive-thumb:hover .archive-thumb-meta { opacity: 1; }
.archive-thumb .day { font-weight: 500; font-size: 14px; }
.archive-thumb .title {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 12px;
  font-variation-settings: 'SOFT' 100;
  text-transform: none;
  letter-spacing: 0;
}

.closed-grid .project-card.closed {
  filter: contrast(0.97) saturate(0.85);
  transition: filter 0.4s ease, transform 0.4s ease;
}
.closed-grid .project-card.closed:hover {
  filter: contrast(1.05) saturate(0.95);
}

/* COMMENTS */
.comments-list { margin-bottom: 32px; }
.comment {
  padding: 16px 0;
  border-bottom: 0.5px solid var(--paper-dark);
}
.comment:last-child { border-bottom: none; }
.comment-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}
.comment-author {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  font-variation-settings: 'SOFT' 60;
}
.comment-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.comment-body {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 15px;
  font-variation-settings: 'SOFT' 100;
  line-height: 1.7;
  color: var(--ink-soft);
}
.comment-body a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(200,66,31,0.4); text-underline-offset: 2px; }

/* COMMENT FORM */
.comment-form {
  margin-top: 32px;
  padding: 24px;
  background: var(--frame);
  border: 0.5px solid var(--paper-dark);
}
.comment-form .form-row {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}
.comment-form .form-row.two-col {
  grid-template-columns: 1fr 1fr;
}
.comment-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}
.optional { opacity: 0.6; text-transform: lowercase; letter-spacing: 0; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  padding: 10px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  border: 1px solid var(--paper-dark);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s ease;
  width: 100%;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.comment-form textarea {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-variation-settings: 'SOFT' 60;
  resize: vertical;
}
.honeypot-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.btn-primary {
  padding: 10px 18px;
  background: var(--accent);
  color: var(--paper);
  border: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.5; cursor: wait; }
.form-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-faint);
}
.form-status.error { color: var(--accent); }
.form-status.ok { color: #1d9e75; }

/* DAY-OF-WEEK LABELS (under date) */
.photo-date-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  white-space: nowrap;
}

.photo-day-label {
  /* Match the apparent size of .photo-date (which is mono 11px).
     Fraunces 11px italic actually reads larger than mono 11px because
     of x-height differences, so drop one px for visual parity. */
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 10px;
  color: var(--ink-faint);
  font-variation-settings: 'SOFT' 100;
  text-transform: lowercase;
  letter-spacing: 0;
  opacity: 0.9;
}

.photo-date-block-single {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  white-space: nowrap;
}

.photo-day-label-single {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 12px;          /* match .photo-date-single (which is mono 12px) */
  color: var(--ink-faint);
  font-variation-settings: 'SOFT' 100;
  text-transform: lowercase;
  letter-spacing: 0;
  opacity: 0.9;
}

/* STATIC / ABOUT PAGES */
.static-page { padding: 32px 0 80px; }
.about-intro { margin-bottom: 40px; }
.about-page section { margin-bottom: 40px; }

.section-text {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 16px;
  font-variation-settings: 'SOFT' 100;
  color: var(--ink-soft);
  margin-bottom: 16px;
  line-height: 1.7;
}
.section-text a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(200,66,31,0.4); text-underline-offset: 2px; }

.spec-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}
.spec-list dt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  align-self: baseline;
}
.spec-list dd {
  color: var(--ink);
  line-height: 1.6;
}
.spec-list dd a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(200,66,31,0.4);
  text-underline-offset: 2px;
}
.spec-list.stats dd {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'SOFT' 60;
  font-size: 16px;
}

.contact-block { margin: 48px 0; }

/* ERROR PAGES */
.error-page { padding: 80px 0 120px; text-align: center; }
.error-block { display: inline-block; }
.error-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 88px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.error-block h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 28px;
  font-variation-settings: 'SOFT' 80;
  margin-bottom: 16px;
}
.error-block p {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  font-variation-settings: 'SOFT' 100;
  color: var(--ink-soft);
  max-width: 420px;
}
.error-block a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(200,66,31,0.4); }

/* ACCESSIBILITY */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: var(--paper);
  padding: 8px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

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

/* PRINT */
@media print {
  body::before,
  nav.projects,
  footer,
  .photo-actions,
  .read-more,
  .lightbox { display: none !important; }

  body { background: #fff; color: #000; }
  .container { max-width: none; padding: 0; }
  header { padding: 0 0 16px; border-bottom: 1px solid #ccc; }
  article.photo { opacity: 1; transform: none; page-break-inside: avoid; margin-bottom: 32px; }
  .photo-frame { box-shadow: none; background: #fff; padding: 0; cursor: default; }
  .photo-frame img { filter: none; }
  .date-stamp { color: #888; text-shadow: none; }
}

/* ---- GA consent banner ---- */
.lomo-consent {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 320px;
  padding: 16px 18px 14px;
  background: var(--frame);
  border: 1px solid var(--paper-dark);
  box-shadow: 0 4px 16px var(--shadow);
  z-index: 950;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  line-height: 1.55;
  animation: fadeUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lomo-consent[hidden] { display: none; }
.lomo-consent__text {
  margin: 0 0 12px 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}
.lomo-consent__buttons {
  display: flex;
  gap: 8px;
}
.lomo-consent__btn {
  flex: 1;
  padding: 7px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--paper-dark);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.lomo-consent__btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--ink);
}
.lomo-consent__btn--secondary {
  color: var(--ink-faint);
}
.lomo-consent__btn--secondary:hover {
  color: var(--ink-soft);
}
@media (max-width: 600px) {
  .lomo-consent {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }
}

.ga-consent-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-faint);
  font-style: italic;
  font-family: 'Fraunces', serif;
  font-variation-settings: 'SOFT' 100;
  line-height: 1.6;
}
