:root{
  --bg: #F7F1E3;
  --surface: #FFFDF6;
  --surface-hover: #FBF3DE;
  --text: #26221A;
  --text-muted: #8A8071;
  --accent: #FF2E93;
  --hairline: rgba(38,34,26,0.1);
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

.hero{
  padding: 7rem 2rem 4rem;
  border-bottom: 1px solid var(--hairline);
  animation: rise 0.7s ease-out;
}

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

.hero-inner{
  max-width: 820px;
  margin: 0 auto;
}

.wordmark{
  font-family: 'Architects Daughter', cursive;
  font-weight: 400;
  font-size: clamp(3.5rem, 11vw, 7.5rem);
  line-height: 1.02;
  color: var(--accent);
  margin: 0 0 1.5rem;
  transform: rotate(-1deg);
}

.hero-desc{
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 2rem;
}

/* ---------- Marquee ---------- */

.marquee-strip{
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
  padding: 0.5rem 0;
}

.marquee-track{
  display: inline-flex;
  width: max-content;
  animation: scroll-left 26s linear infinite;
}

.marquee-track img{
  height: 34px;
  width: auto;
  flex-shrink: 0;
  margin-right: 2rem;
}

.marquee-track span{
  font-family: 'Architects Daughter', cursive;
  font-size: 1.4rem;
  color: var(--accent);
  padding-right: 3rem;
  flex-shrink: 0;
}

@keyframes scroll-left{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce){
  .marquee-track{ animation: none; }
}

/* ---------- Gallery grid ---------- */

.gallery{
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem 3rem;
}

.card{
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  text-align: left;
  font-family: inherit;
  color: inherit;
}

.card-frame{
  border-radius: 2px;
  overflow: hidden;
}

.card-frame img{
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.card:hover .card-frame img{ transform: scale(1.02); }

.card-label{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: 1rem;
}

.card-title{
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.3;
}

.card-num{
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

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

.site-footer{
  border-top: 1px solid var(--hairline);
  padding: 1.75rem 1.5rem 3rem;
  text-align: center;
}

.site-footer p{
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

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

.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 6, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 50;
}

.lightbox[hidden]{ display: none; }

.lightbox-figure{
  margin: 0;
  max-width: min(640px, 90vw);
}

.lightbox-figure img{
  border-radius: 4px;
  width: 100%;
}

.lightbox-figure figcaption{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1rem;
}

.lightbox-title{
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.25rem;
}

.lightbox-num{
  color: var(--text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
}

.lightbox-close{
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  font-family: 'Fraunces', serif;
}

.lightbox-close:hover{ color: var(--accent); }

/* ---------- Accessibility ---------- */

a:focus-visible, button:focus-visible, input:focus-visible, .card:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce){
  .hero{ animation: none; }
  .card-frame img{ transition: none; }
}

@media (max-width: 720px){
  .gallery{ grid-template-columns: 1fr; gap: 3rem; padding: 3rem 1.5rem 4rem; }
}

@media (max-width: 480px){
  .hero{ padding: 3.5rem 1.25rem 2.5rem; }
}
