/* ============================================
   NO PARKING SIGN ARCHIVE
   Brutalist · minimal · black
   ============================================ */

@font-face {
  font-family: "Feixen Sans";
  src: url("fonts/StudioFeixenSans.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Feixen Edgy";
  src: url("fonts/StudioFeixenEdgy.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Feixen Mono";
  src: url("fonts/StudioFeixenMono.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

:root {
  --bg: #000000;
  --fg: #f2f2f2;
  --muted: #6a6a6a;
  --dim: #2a2a2a;
  --line: #1a1a1a;
  --hot: #ff2d2d;

  --sans: "Feixen Sans", "Helvetica Neue", Arial, sans-serif;
  --edgy: "Feixen Edgy", "Feixen Sans", Arial, sans-serif;
  --mono: "Feixen Mono", "JetBrains Mono", monospace;

  --gutter: clamp(16px, 2.5vw, 32px);
  --rule: 1px;
}

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

html,
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  font-variation-settings: "wght" 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

::selection {
  background: var(--fg);
  color: var(--bg);
}

/* ============================================
   TOP STRIP — brutalist linear header
   ============================================ */

.strip {
  border-bottom: var(--rule) solid var(--fg);
  position: relative;
  z-index: 10;
}

.strip__row {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  font-family: var(--mono);
  font-size: 11px;
  font-variation-settings: "wght" 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.strip__row > * {
  padding: 10px var(--gutter);
  border-left: var(--rule) solid var(--fg);
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.strip__row a {
  transition: background 80ms linear, color 80ms linear;
}

.strip__row a:hover {
  background: var(--fg);
  color: var(--bg);
}

.strip__row a.is-active {
  color: var(--muted);
}

#back {
  margin-right: auto;
  border-left: none;
  border-right: 1px solid #fff;
}

/* ============================================
   HERO — type-driven, no images
   ============================================ */

.hero {
  border-bottom: var(--rule) solid var(--fg);
  padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(20px, 3vw, 36px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 2.5vw, 32px);
}

.hero__display {
  font-family: var(--edgy);
  font-variation-settings: "wght" 900;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(64px, 13vw, 220px);
  line-height: 0.82;
  letter-spacing: -0.035em;
  margin: 0;
  /* one solid line per row */
  display: block;
}

.hero__display .row {
  display: block;
  white-space: nowrap;
}

.hero__display .ltr {
  display: inline-block;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  /* individual letters get inline style overrides via direct-edit */
}

.hero__display .slash {
  color: var(--muted);
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--gutter);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-top: var(--rule) solid var(--dim);
  padding-top: 14px;
}

.hero__meta-lead {
  color: var(--fg);
  font-variation-settings: "wght" 500;
}

.hero__meta-count {
  color: var(--muted);
  white-space: nowrap;
}

.hero__meta-count span {
  color: var(--fg);
  font-variation-settings: "wght" 500;
}

@media (max-width: 520px) {
  .hero__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

/* ============================================
   GALLERY — tiled wall
   ============================================ */

.gallery {
  padding: clamp(20px, 3vw, 40px) var(--gutter) clamp(40px, 6vw, 96px);
}

/* --- Masonry layout (default): honour native aspect ratios --- */
.gallery__grid {
  column-count: 2;
  column-gap: clamp(6px, 0.8vw, 14px);
}

@media (min-width: 900px) {
  .gallery__grid {
    column-count: 4;
  }
}

@media (max-width: 520px) {
  .gallery__grid {
    column-count: 1;
    column-gap: 26px;
  }

  .gallery__grid .tile {
    margin-bottom: 26px;
  }

  .tile__num {
    opacity: 1;
  }

  .tile__img {
    opacity: 1;
  }
}

.gallery__grid .tile {
  break-inside: avoid;
  margin: 0 0 clamp(6px, 0.8vw, 14px);
  display: block;
  width: 100%;
}

/* --- Grid layout (alternative): uniform 4:5 crop --- */
.gallery__grid--uniform {
  column-count: initial;
  column-gap: initial;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 48px);
}

@media (min-width: 900px) {
  .gallery__grid--uniform {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 520px) {
  .gallery__grid--uniform {
    grid-template-columns: 1fr;
  }
}

.gallery__grid--uniform .tile {
  margin: 0;
}

.tile {
  display: block;
  position: relative;
  background: #0a0a0a;
  overflow: hidden;
  isolation: isolate;
}

/* In masonry mode, real images dictate the tile height; placeholders use --ar. */
.tile--placeholder {
  aspect-ratio: var(--ar, 4 / 5);
}

/* In uniform-grid mode every tile is force-cropped to 4:5 */
.gallery__grid--uniform .tile {
  aspect-ratio: 4 / 5;
}

.tile__img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.8;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 200ms linear,
              filter 200ms linear;
  filter: grayscale(0) contrast(1);
}

.gallery__grid--uniform .tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile:hover .tile__img {
  transform: scale(1.02);
  opacity: 1;
}

.tile__num {
  position: absolute;
  bottom: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  font-family: var(--mono);
  font-variation-settings: "wght" 500;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #fff;
  background: rgba(0, 0, 0, 0.8);
  padding: 3px 6px;
  z-index: 2;
  opacity: 0;
  transition: opacity 160ms linear;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile:hover .tile__num {
  opacity: 1;
}

/* Placeholder treatment when no image is available */
.tile--placeholder {
  background: #060606;
  border: var(--rule) solid var(--line);
}

.tile--placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0 14px,
      rgba(255, 255, 255, 0.02) 14px 15px
    );
  pointer-events: none;
}

.tile__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--edgy);
  font-variation-settings: "wght" 900;
  font-size: clamp(48px, 10vw, 120px);
  color: var(--dim);
  letter-spacing: -0.03em;
  line-height: 1;
  user-select: none;
}

/* ============================================
   FOOTER — minimal
   ============================================ */

.foot {
  border-top: var(--rule) solid var(--fg);
  padding: 14px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.foot a:hover {
  color: var(--fg);
}

/* ============================================
   DETAIL VIEW
   ============================================ */

.detail {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-rows: 1fr auto;
}

.detail__stage {
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 56px) var(--gutter);
  position: relative;
}

.detail__img {
  max-width: min(100%, 1400px);
  max-height: calc(100vh - 240px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #0a0a0a;
}

.detail__placeholder {
  width: min(90vw, 800px);
  aspect-ratio: 4 / 5;
  background: #060606;
  border: var(--rule) solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--edgy);
  font-variation-settings: "wght" 900;
  color: var(--dim);
  font-size: clamp(64px, 14vw, 200px);
  position: relative;
}

.detail__placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,255,255,0.02) 14px 15px);
}

.detail__archive {
  border-top: var(--rule) solid var(--fg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detail__field {
  padding: 16px var(--gutter);
  border-right: var(--rule) solid var(--dim);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 76px;
}

.detail__field:last-child {
  border-right: none;
}

.detail__field dt {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.detail__field dd {
  color: var(--fg);
  font-variation-settings: "wght" 500;
  font-size: 12px;
  letter-spacing: 0.02em;
}

@media (max-width: 520px) {
  .detail__archive { grid-template-columns: 1fr; }
  .detail__field { border-right: none; border-bottom: var(--rule) solid var(--dim); }
}

.detail__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  padding: 24px 28px;
  font-family: var(--mono);
  font-size: 44px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--muted);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  z-index: 5;
  transition: color 80ms linear;
}

.detail__nav:hover { color: var(--fg); }
.detail__nav--prev { left: 0; }
.detail__nav--next { right: 0; }

/* ============================================
   ABOUT
   ============================================ */

[data-screen-label="03 About"] {
  display: flex;
  flex-direction: column;
}

[data-screen-label="03 About"] .about {
  flex: 1;
}

.about {
  padding: clamp(40px, 8vw, 120px) var(--gutter);
  max-width: 720px;
}

.about h1 {
  font-family: var(--edgy);
  font-variation-settings: "wght" 900;
  text-transform: uppercase;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: clamp(24px, 4vw, 48px);
}

.about p {
  font-family: var(--sans);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.5;
  margin-bottom: 1em;
  max-width: 56ch;
  color: var(--fg);
}

.about p a {
  border-bottom: 1px solid var(--muted);
  transition: border-color 120ms linear;
}

.about p a:hover {
  border-color: var(--fg);
}

.about__meta {
  margin-top: clamp(32px, 5vw, 64px);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ============================================
   UTIL
   ============================================ */

.no-js .needs-js { display: none; }
