/* Roe Glass — torch-studio palette
   Colors come from the glass: cooled soot, bone-white highlights,
   electrum ember, a faint opal flash for focus. */

:root {
  --void: #08070c;
  --soot: #121018;
  --clinker: #1c1924;
  --bone: #f3ece1;
  --ash: #a49c91;
  --ember: #d7a45c;
  --iris: #c9b7f2;
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", system-ui, sans-serif;
  --pad: clamp(1.25rem, 3.6vw, 3.5rem);
  --max: 1240px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

html, body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
}

body {
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--bone);
  color: var(--void);
  padding: 0.5rem 0.8rem;
  z-index: 40;
}
.skip:focus {
  top: 0.75rem;
}

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

/* Nav
   -------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem var(--pad);
  background: color-mix(in srgb, var(--void) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--bone) 8%, transparent);
}

.wordmark {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: italic;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-variation-settings: "SOFT" 60, "opsz" 36;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding-top: 0.8rem;
    padding-bottom: 0.75rem;
  }

  .site-nav nav {
    justify-content: flex-start;
    gap: 0.85rem;
    width: 100%;
  }
}

.site-nav nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.25rem;
}

.site-nav nav a {
  text-decoration: none;
  color: var(--ash);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav nav a:hover,
.wordmark:hover {
  color: var(--bone);
}

/* Hero
   -------------------------------- */
.hero {
  min-height: calc(100svh - 3.6rem);
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 1.5rem;
  padding: 1.5rem var(--pad) 3rem;
}

.hero-copy {
  max-width: 22em;
  padding-top: 1.5rem;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 350;
  font-style: italic;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 70, "opsz" 144;
  font-size: clamp(3.6rem, 12vw, 8.25rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
}

.lede {
  margin: 1.25rem 0 0;
  color: var(--ash);
  font-size: 1.12rem;
  max-width: 18em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 0.85rem;
  margin: 1.75rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  background: var(--bone);
  color: var(--void);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.95rem;
  border: 1px solid var(--bone);
  border-radius: 2px;
}

.btn:hover {
  background: var(--ember);
  border-color: var(--ember);
  color: var(--void);
}

.btn-ghost {
  background: transparent;
  color: var(--bone);
}

.btn-ghost:hover {
  background: transparent;
  color: var(--ember);
  border-color: var(--ember);
}

.hero-figure {
  margin: 0;
  justify-self: center;
  width: min(100%, 420px);
}

.hero-figure img {
  width: 100%;
  height: auto;
  background: #000;
}

.hero-figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--ash);
  line-height: 1.35;
  max-width: 28em;
}

.hero-figure figcaption span {
  display: block;
  color: color-mix(in srgb, var(--ash) 80%, var(--ember));
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: minmax(18rem, 0.9fr) minmax(22rem, 1fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 6rem);
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-copy {
    padding-bottom: 4rem;
  }

  .hero-figure {
    width: min(100%, 560px);
    justify-self: end;
    padding: 2.5rem 0;
  }
}

/* Work
   -------------------------------- */
.work {
  padding: 4.5rem var(--pad) 5rem;
  border-top: 1px solid color-mix(in srgb, var(--bone) 8%, transparent);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.work h2,
.craft h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 40, "opsz" 48;
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.filters {
  display: flex;
  gap: 0.15rem 0.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -0.3rem;
  padding-bottom: 0.15rem;
}
.filters::-webkit-scrollbar { display: none; }

.filters button {
  appearance: none;
  background: none;
  border: 0;
  color: var(--ash);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}

.filters button:hover {
  color: var(--bone);
}

.filters button.is-active {
  color: var(--bone);
  border-bottom-color: var(--ember);
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 0.7rem;
  max-width: var(--max);
  margin: 0 auto;
}

@media (min-width: 720px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 1.6rem 1rem; }
}

@media (min-width: 1080px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}

.card {
  margin: 0;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  color: inherit;
  cursor: zoom-in;
  width: 100%;
  font: inherit;
}

.card .frame {
  background: #0a090f;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: transform 280ms ease, filter 280ms ease;
}

.card:hover img,
.card:focus-visible img {
  transform: scale(1.03);
  filter: brightness(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .card:hover img,
  .card:focus-visible img {
    transform: none;
    filter: brightness(1.08);
  }
}

.card figcaption {
  margin-top: 0.55rem;
}

.card .name {
  display: block;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--bone);
}

.card .meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--ash);
}

.empty {
  max-width: var(--max);
  margin: 2rem auto 0;
  color: var(--ash);
}

/* Craft
   -------------------------------- */
.craft {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 0 var(--pad) 5.5rem;
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 0 auto;
  align-items: center;
}

.craft-figure {
  margin: 0;
  background: #000;
}

.craft-figure img {
  width: 100%;
  height: auto;
}

.craft-copy {
  max-width: 34em;
}

.craft-copy p {
  color: var(--ash);
  margin: 1rem 0 0;
  font-size: 1.05rem;
  max-width: 38ch;
}

.craft-copy p:first-of-type {
  color: color-mix(in srgb, var(--bone) 78%, var(--ash));
}

@media (min-width: 860px) {
  .craft {
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(2rem, 6vw, 5.5rem);
    padding-bottom: 7rem;
  }

  .craft-figure {
    position: sticky;
    top: 5rem;
  }
}

/* Footer
   -------------------------------- */
.site-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.25rem var(--pad) 1.75rem;
  border-top: 1px solid color-mix(in srgb, var(--bone) 8%, transparent);
  color: var(--ash);
  font-size: 0.85rem;
}

.site-foot p { margin: 0; }

.site-foot a {
  color: var(--ash);
  text-decoration: none;
  margin-left: 1rem;
}

.site-foot a:first-child { margin-left: 0; }

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

/* Lightbox
   -------------------------------- */
.lightbox {
  width: min(1100px, 100vw);
  max-width: 100vw;
  height: 100%;
  max-height: 100%;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: color-mix(in srgb, var(--void) 94%, black);
  color: var(--bone);
}

.lightbox::backdrop {
  background: rgb(5 4 8 / 0.88);
}

.lightbox[open] {
  display: grid;
  grid-template-rows: 1fr auto;
}

.lb-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 3.25rem 3.25rem 0.5rem;
}

.lb-stage img {
  max-height: min(78vh, 920px);
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #000;
}

.lb-meta {
  padding: 0.85rem var(--pad) 1.4rem;
  display: grid;
  gap: 0.35rem 1rem;
  align-items: end;
}

.lb-meta h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

#lb-price {
  margin: 0;
  color: var(--ash);
  font-size: 0.92rem;
}

.lb-meta .btn {
  justify-self: start;
  margin-top: 0.55rem;
}

.lb-thumbs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.45rem;
}

.lb-thumbs button {
  padding: 0;
  border: 1px solid transparent;
  background: #000;
  cursor: pointer;
  width: 52px;
  height: 68px;
}

.lb-thumbs button.is-active,
.lb-thumbs button:hover {
  border-color: var(--ember);
}

.lb-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--bone);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  padding: 0.55rem 0.7rem;
  z-index: 2;
}

.lb-close { top: 0.6rem; right: 0.5rem; }
.lb-prev { top: 42%; left: 0.15rem; }
.lb-next { top: 42%; right: 0.15rem; }

.lb-close:hover,
.lb-prev:hover,
.lb-next:hover { color: var(--ember); }

@media (max-width: 640px) {
  .lb-stage { padding: 3.2rem 0.75rem 0.4rem; }
  .lb-prev, .lb-next { top: auto; bottom: 7.5rem; }
  .lb-prev { left: 0.3rem; }
  .lb-next { right: 0.3rem; }
}

/* Hidden cards stay out of the layout */
.card[hidden] { display: none; }
