/* Public static site styles. Ported from the React app's theme.css (the public
   subset only): design tokens + site header, hero, masonry, lightbox, about. Keep
   visual parity with web/src so the generated site matches the SPA design. */
:root {
  --bg: #060608;
  --bg-raised: rgba(255, 255, 255, 0.025);

  --text: #e8e8ea;
  --text-strong: #f3f3f5;
  --text-body: #b2b2b8;
  --text-muted: #86868c;
  --text-dim: #7a7a80;
  --text-faint: #56565c;

  --border: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.32);
  --focus: rgba(120, 150, 210, 0.55);
  --accent-danger: #cf8585;

  --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --maxw: 1320px;

  font-family: var(--font-sans);
  color-scheme: dark;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.error-text {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--accent-danger);
}

/* Nav links. */
.navlink {
  appearance: none;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 200ms ease, border-color 200ms ease;
}
.navlink:hover {
  color: var(--text);
}

/* ---- Public site ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 30px;
  background: rgba(6, 6, 8, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header__name {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(60px, 12vw, 150px) 30px 60px;
}
.hero__title {
  margin: 0;
  font-weight: 200;
  font-size: clamp(40px, 6.4vw, 82px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--text-strong);
  min-height: 1em;
}
.hero__subtitle {
  margin: 22px 0 0;
  max-width: 540px;
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.65;
  color: var(--text-muted);
  font-weight: 300;
}

/* Responsive masonry of published photos (images only — no captions). CSS
   multi-column keeps tiles in source order top-to-bottom within each column. */
.masonry {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px 90px;
  column-width: 360px;
  column-gap: 18px;
}
.masonry__item {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  break-inside: avoid;
  line-height: 0;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}
.masonry__img {
  display: block;
  width: 100%;
  height: auto;
  background: rgba(255, 255, 255, 0.03);
  opacity: 0.88;
  transition: opacity 700ms ease;
}
.masonry__item:hover .masonry__img {
  opacity: 1;
}

/* Single-photo lightbox (rendered client-side over the homepage). */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: rgba(4, 4, 6, 0.975);
  backdrop-filter: blur(8px);
  overscroll-behavior: contain;
  animation: lightbox-fade 220ms ease;
}
@keyframes lightbox-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.lightbox__bar {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  padding: 18px 24px;
  z-index: 2;
}
.lightbox__close {
  cursor: pointer;
}
.lightbox__stage {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  min-height: 0;
  z-index: 2;
}
.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
}
.lightbox__meta {
  flex: 0 0 auto;
  padding: 26px 24px 44px;
  text-align: center;
  z-index: 2;
}
.lightbox__title {
  margin: 0;
  font-weight: 400;
  font-size: 21px;
  color: var(--text-strong);
}
.lightbox__date {
  margin: 9px 0 0;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.lightbox__comment {
  margin: 18px auto 0;
  max-width: 600px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-body);
  font-weight: 300;
}
.lightbox__nav {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 15%;
  min-width: 64px;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 30px;
  font-weight: 300;
  display: flex;
  align-items: center;
  z-index: 1;
  transition: color 300ms ease;
}
.lightbox__nav:hover {
  color: var(--text);
}
.lightbox__nav--prev {
  left: 0;
  padding-left: 24px;
}
.lightbox__nav--next {
  right: 0;
  justify-content: flex-end;
  padding-right: 24px;
}

.about {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(50px, 9vw, 110px) 30px;
}
.about__title {
  margin: 0 0 26px;
  font-weight: 200;
  font-size: 34px;
  letter-spacing: -0.015em;
  color: var(--text-strong);
}
.about__body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
  font-weight: 300;
  white-space: pre-wrap;
}
.about__instagram {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 3px;
}
.about__back {
  margin-top: 40px;
}
