/* UNKNWNKID — preview. Dark & moody, 1930s NYC enamel signs as accents. */

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("../fonts/oswald-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("../fonts/oswald-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/source-sans-3-italic-latin.woff2") format("woff2");
}

:root {
  --bg: #080808;
  --bg-2: #0c0c0c;
  --text: #c9c4b8;
  --text-dim: #8a867c;
  --cream: #efe6c8;
  --cream-hi: #f4eed8;
  --cream-lo: #e2d4a8;
  --ink: #161512;
  --rim: #1a3a6e;
  --rim-deep: #12284f;
  --rust: #6e3a20;
  --rust-hi: #8a4c28;
  --metal: #2a241c;
  --gap: 8px;
  --pad: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}
.hero,
.shot,
.lightbox,
.lightbox__img-wrap,
.lightbox__shield {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
a { color: inherit; }
button { font: inherit; }

/* ---------- Enamel street signs ---------- */

.sign {
  font-size: 16px;
  font-weight: 600;
  --sign-pad-y: 0.35em;
  --sign-pad-x: 0.7em;
  --sign-rim: 5px;
  --sign-size: 0.82rem;
  --hole: 6px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: var(--sign-rim);
  border: none;
  border-radius: 3px;
  background:
    /* outer rusted metal lip */
    linear-gradient(180deg, #3a2a1c 0%, #2a1c14 100%);
  box-shadow:
    0 1px 0 #1a120c,
    0 2px 0 #0a0806,
    0 4px 10px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(90, 50, 28, 0.45);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}

.sign__rim {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background:
    radial-gradient(ellipse 90% 80% at 50% 0%, rgba(70, 110, 180, 0.35), transparent 55%),
    linear-gradient(180deg, #234785 0%, var(--rim) 40%, var(--rim-deep) 100%);
  border-radius: 2px;
  padding: var(--sign-pad-y) var(--sign-pad-x);
  /* chipped / worn blue enamel edge — rust showing through at corners & edges */
  box-shadow:
    inset 0 0 0 1px rgba(10, 22, 48, 0.55),
    inset 0 1px 0 rgba(180, 200, 230, 0.22);
}

/* rust chips eating the blue rim — different for variety via modifiers */
.sign__rim::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 9px 6px at 12% 0%, var(--rust) 0 45%, transparent 70%),
    radial-gradient(ellipse 7px 5px at 88% 100%, var(--rust-hi) 0 40%, transparent 68%),
    radial-gradient(circle 3px at 4% 70%, #4a2c18 0 60%, transparent 75%),
    radial-gradient(circle 2.5px at 97% 28%, #5a341c 0 55%, transparent 75%);
  opacity: 0.92;
  z-index: 0;
}

.sign--b .sign__rim::before {
  background:
    radial-gradient(ellipse 8px 5px at 70% 0%, var(--rust) 0 40%, transparent 68%),
    radial-gradient(ellipse 10px 6px at 8% 100%, var(--rust-hi) 0 42%, transparent 70%),
    radial-gradient(circle 3px at 96% 75%, #4a2c18 0 60%, transparent 75%);
}
.sign--c .sign__rim::before {
  background:
    radial-gradient(ellipse 7px 6px at 30% 100%, var(--rust) 0 40%, transparent 68%),
    radial-gradient(ellipse 6px 4px at 98% 8%, var(--rust-hi) 0 45%, transparent 70%),
    radial-gradient(circle 2.5px at 2% 40%, #5a341c 0 55%, transparent 75%);
}
.sign--d .sign__rim::before {
  background:
    radial-gradient(ellipse 11px 5px at 50% 0%, var(--rust) 0 35%, transparent 65%),
    radial-gradient(ellipse 6px 7px at 0% 60%, var(--rust-hi) 0 40%, transparent 68%),
    radial-gradient(circle 3px at 94% 90%, #4a2c18 0 60%, transparent 75%);
}

.sign__face {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  background:
    linear-gradient(185deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 42%, rgba(90, 70, 30, 0.07) 100%),
    linear-gradient(180deg, var(--cream-hi) 0%, var(--cream) 48%, var(--cream-lo) 100%);
  color: var(--ink);
  font-family: "Oswald", "Arial Narrow", "Helvetica Condensed", sans-serif;
  font-weight: 600;
  font-size: var(--sign-size);
  font-stretch: condensed;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.12em 0.35em 0.08em;
  border-radius: 1px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 248, 220, 0.28),
    inset 0 0 18px rgba(90, 70, 30, 0.07);
  overflow: hidden;
}

/* worn enamel grain */
.sign__face::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/enamel-grain.png");
  background-size: 128px 128px;
  opacity: 0.38;
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* mounting holes — four corners on logo, two on small plates */
.sign__hole {
  position: absolute;
  width: var(--hole);
  height: var(--hole);
  border-radius: 50%;
  z-index: 2;
  background:
    radial-gradient(circle at 38% 32%, #4a4844 0 18%, #161614 42%, #0a0a0a 62%, #3a2a20 76%, #5a4030 86%, transparent 88%);
  box-shadow:
    inset 0 1px 1px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(80, 52, 32, 0.7),
    0 0 3px 1px rgba(110, 58, 28, 0.45);
  pointer-events: none;
}
.sign__hole--tl { top: 3px; left: 3px; }
.sign__hole--tr { top: 3px; right: 3px; }
.sign__hole--bl { bottom: 3px; left: 3px; }
.sign__hole--br { bottom: 3px; right: 3px; }

/* two-hole small signs: mid-left / mid-right */
.sign--sm .sign__hole--tl,
.sign--sm .sign__hole--tr { top: 50%; transform: translateY(-50%); }
.sign--sm .sign__hole--bl,
.sign--sm .sign__hole--br { display: none; }
.sign--sm { --hole: 5px; --sign-rim: 4px; --sign-pad-y: 0.32em; --sign-pad-x: 0.85em; --sign-size: 0.78rem; }
.sign--sm .sign__face { padding: 0.08em 0.55em 0.06em; }

/* stacked logo */
.sign--logo {
  --sign-rim: 7px;
  --sign-pad-y: 0.55em;
  --sign-pad-x: 0.75em;
  --sign-size: 1.72rem;
  --hole: 8px;
  cursor: pointer;
}
.sign--logo .sign__face {
  padding: 0.22em 0.55em 0.18em;
  gap: 0;
}
.sign--logo .sign__name {
  font-size: 1em;
  letter-spacing: 0.08em;
  line-height: 0.92;
}
.sign--logo .sign__suffix {
  font-size: 0.78em;
  letter-spacing: 0.18em;
  line-height: 0.95;
  margin-top: 0.06em;
  padding-top: 0.08em;
  /* thin rule like the divider on some enamel plates */
  border-top: 1px solid rgba(22, 21, 18, 0.28);
}

.sign--heading {
  --sign-rim: 6px;
  --sign-pad-y: 0.42em;
  --sign-pad-x: 1.05em;
  --sign-size: 1.15rem;
  --hole: 6px;
  cursor: default;
  pointer-events: none;
}

/* interactive states */
a.sign:hover,
button.sign:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 #1a120c,
    0 3px 0 #0a0806,
    0 8px 16px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(90, 50, 28, 0.45);
}
a.sign:hover .sign__face,
button.sign:hover .sign__face {
  filter: brightness(1.05);
}
a.sign:active,
button.sign:active { transform: translateY(0); }

a.sign:focus-visible,
button.sign:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 4px;
}

button.sign.is-active {
  box-shadow:
    0 1px 0 #1a120c,
    0 2px 0 #0a0806,
    0 0 0 2px var(--cream-lo),
    0 4px 14px rgba(239, 230, 200, 0.18);
}
button.sign.is-active .sign__face {
  background:
    linear-gradient(185deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #f7f1dc 0%, #efe6c8 55%, #e8d9b0 100%);
}

@media (prefers-reduced-motion: reduce) {
  a.sign, button.sign { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Header ---------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px var(--pad) 20px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.12) 65%, transparent 100%);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 6px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: #000;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 58%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(8, 8, 8, 0.55) 0%, transparent 28%),
    radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.28) 100%);
}

.hero__cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-decoration: none;
}

/* ---------- Work / gallery ---------- */

.section {
  padding: 88px var(--pad) 48px;
}

.section__head {
  display: flex;
  justify-content: center;
  margin: 0 0 36px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin: 0 0 36px;
}

.gallery {
  position: relative;
  width: 100%;
  /* CSS-columns fallback before JS justified layout */
  columns: 3;
  column-gap: var(--gap);
}
.gallery.is-justified {
  columns: auto;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.gallery__row {
  display: flex;
  gap: var(--gap);
  width: 100%;
  justify-content: flex-start;
}

.shot {
  display: block;
  break-inside: avoid;
  margin: 0 0 var(--gap);
  position: relative;
  background: #111;
  overflow: hidden;
  cursor: zoom-in;
  text-decoration: none;
  color: inherit;
}
.gallery.is-justified .shot { margin: 0; flex-shrink: 0; }
.gallery.is-justified .shot.is-hidden { display: none; }
.shot.is-hidden { display: none; }

.shot img {
  width: 100%;
  height: auto;
  vertical-align: middle;
  transition: opacity 0.35s ease, transform 0.55s ease;
}
.gallery.is-justified .shot img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.shot:hover img,
.shot:focus-visible img {
  opacity: 0.88;
  transform: scale(1.015);
}
.shot:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

.shot__title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.8em 0.7em 0.5em;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 100%);
  color: var(--cream);
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
@media (hover: hover) {
  .shot:hover .shot__title,
  .shot:focus-visible .shot__title { opacity: 1; }
}

@media (max-width: 900px) {
  .gallery:not(.is-justified) { columns: 2; }
}
@media (max-width: 560px) {
  .gallery:not(.is-justified) { columns: 1; }
}

/* ---------- About / Contact ---------- */

.prose-section {
  padding: 96px var(--pad) 88px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.prose-section .section__head { margin-bottom: 32px; }

.prose-section p {
  margin: 0 0 1.1em;
  color: var(--text);
  font-weight: 300;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.placeholder-flag {
  display: inline-block;
  margin: 0 0 14px;
  padding: 2px 8px;
  border: 1px dashed rgba(201, 196, 184, 0.35);
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.placeholder-email {
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  color: var(--cream);
  margin: 8px 0 28px;
}

.x-link {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 196, 184, 0.35);
  letter-spacing: 0.04em;
  padding-bottom: 2px;
}
.x-link:hover { color: var(--cream); border-bottom-color: var(--cream); }
.x-link:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; }

.prose-section p.follow-links { margin-top: 28px; font-size: 0.95rem; letter-spacing: 0.06em; }
.dot { margin: 0 10px; opacity: 0.6; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px var(--pad) 56px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}
.site-footer p { margin: 0 0 6px; }
.site-footer .copyright {
  max-width: 38em;
  margin: 0 auto 8px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.preview-note { font-style: italic; color: #6a6660; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050505;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox__img-wrap {
  position: relative;
  max-width: 94vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__img-wrap img {
  max-width: 94vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
.lightbox__shield {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
}

.lightbox__btn {
  position: absolute;
  background: transparent;
  border: 0;
  color: var(--cream);
  cursor: pointer;
  padding: 12px;
  opacity: 0.75;
  font-family: "Oswald", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  line-height: 1;
  z-index: 2;
}
.lightbox__btn:hover,
.lightbox__btn:focus-visible { opacity: 1; }
.lightbox__btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); font-size: 2.4rem; }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); font-size: 2.4rem; }
.lightbox__close { top: 16px; right: 18px; font-size: 1.1rem; }
.lightbox__meta {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  max-width: 90vw;
  pointer-events: none;
  z-index: 2;
}
.lightbox__caption {
  color: var(--cream);
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 4px;
}
.lightbox__count {
  color: var(--text-dim);
  font-family: "Oswald", sans-serif;
  font-weight: 500;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
}

body.lb-open { overflow: hidden; }

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .site-header {
    padding: 14px 14px 16px;
    gap: 10px;
    align-items: center;
  }
  .sign--logo {
    --sign-size: 1.22rem;
    --sign-rim: 5px;
    --hole: 6px;
    --sign-pad-y: 0.4em;
    --sign-pad-x: 0.55em;
  }
  .site-nav { padding-top: 0; gap: 6px; }
  .sign--sm { --sign-size: 0.68rem; --sign-rim: 3px; --hole: 4px; --sign-pad-x: 0.65em; }
  .hero { min-height: 100svh; }
  .section { padding: 48px 12px 28px; }
  .prose-section { padding: 64px 22px 56px; }
  .filters { margin-bottom: 24px; }
  .lightbox__prev, .lightbox__next { font-size: 1.8rem; }
  .lightbox__prev { left: 0; }
  .lightbox__next { right: 0; }
}

@media (max-width: 400px) {
  .site-header { padding: 12px 10px 14px; gap: 8px; }
  .sign--logo { --sign-size: 1.08rem; --sign-rim: 4px; --hole: 5px; }
  .sign--sm { --sign-size: 0.62rem; --sign-pad-x: 0.55em; }
}
