:root {
  --bg: #201c18;
  --bg-soft: #2a2420;
  --cream: #f3ead8;
  --cream-dim: #c4b29e;
  --moss: #6b8f71;
  --moss-deep: #4f6d55;
  --lavender: #9b8aa8;
  --path: #8a8680;
  --amber: #c9a46c;
  --ink: #161310;
  --card: #2f2823;
  --line: rgba(243, 234, 216, 0.12);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --serif: "Fraunces", "Times New Roman", serif;
  --sans: "Nunito", "Segoe UI", sans-serif;
  --radius: 18px;
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 20; background: var(--cream); color: var(--ink); padding: 0.4rem 0.7rem; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(32, 28, 24, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--cream);
  text-decoration: none;
}
.nav { display: flex; gap: 1.15rem; flex-wrap: wrap; }
.nav a {
  color: var(--cream-dim);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}
.nav a:hover, .nav a:focus-visible { color: var(--cream); }

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 46% 42%;
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16, 13, 11, 0.92) 0%, rgba(16, 13, 11, 0.35) 42%, rgba(16, 13, 11, 0.12) 70%, rgba(16, 13, 11, 0.2) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 3.5rem 1.5rem 3rem;
  max-width: 720px;
}
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(3.4rem, 12vw, 7.2rem);
  letter-spacing: 0.06em;
  line-height: 0.95;
}
.tagline {
  margin: 0.6rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 3.4vw, 1.85rem);
  color: var(--cream-dim);
}
.hero-lead { margin: 1rem 0 0; max-width: 36ch; color: var(--cream-dim); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform .12s ease, background .12s ease, color .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: #fff6e8; }
.btn-moss { background: var(--moss); color: #f6fff6; }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  box-shadow: inset 0 0 0 1.5px rgba(243, 234, 216, 0.45);
}
.btn-small { padding: 0.4rem 0.8rem; font-size: 0.85rem; }

.eyebrow {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber);
}
h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 0.8rem;
}

.about, .depot-section, .gallery, .pfp-section, .community, .site-footer {
  scroll-margin-top: 5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2rem;
  align-items: start;
}
.about-copy p { margin: 0 0 1rem; color: var(--cream-dim); }
.about-copy blockquote {
  margin: 0 0 1rem;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 3px solid var(--amber);
  font-family: var(--serif);
  font-style: italic;
  color: var(--cream);
}
.about-fig img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 3/4;
}

.community-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.contract { margin-top: 1rem; color: var(--cream-dim); font-size: 0.9rem; }
.contract code { color: var(--cream); word-break: break-all; }

.depot-card {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: center;
  text-decoration: none;
  color: var(--cream);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0.9rem;
  box-shadow: var(--shadow);
  transition: transform .12s ease;
}
.depot-card:hover, .depot-card:focus-visible { transform: translateY(-2px); outline: none; }
.depot-thumb {
  display: block;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink);
}
.depot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.depot-body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; min-width: 0; }
.depot-site { font-size: 0.75rem; letter-spacing: 0.04em; color: var(--cream-dim); font-weight: 700; }
.depot-title { font-family: var(--serif); font-size: 1.7rem; line-height: 1.15; }
.depot-line { color: var(--cream-dim); max-width: 42ch; }
.depot-btn { margin-top: 0.35rem; }

.gallery-sub, .pfp-lead { color: var(--cream-dim); max-width: 50ch; margin: 0 0 1.6rem; }
.gallery-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.7rem;
}
.gal-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--ink);
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 1;
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gal-item:hover img, .gal-item:focus-visible img { transform: scale(1.04); }

.lightbox {
  position: fixed; inset: 0; z-index: 30;
  background: rgba(10, 8, 7, 0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 3rem 3.5rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(92vw, 900px); max-height: 86vh; border-radius: 12px; box-shadow: var(--shadow); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: transparent;
  color: var(--cream);
  border: 0;
  font-size: 2.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.5rem;
}
.lightbox-close { top: 0.6rem; right: 0.9rem; }
.lightbox-prev { left: 0.4rem; }
.lightbox-next { right: 0.4rem; }

.pfp-section {
  background: linear-gradient(180deg, transparent, rgba(47, 40, 35, 0.65) 8%, rgba(47, 40, 35, 0.65) 100%);
  border-radius: 32px;
  margin-bottom: 2rem;
}
.pfp-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: start;
}
.pfp-drop {
  display: block;
  border: 1.5px dashed rgba(243, 234, 216, 0.35);
  border-radius: var(--radius);
  padding: 1.6rem 1rem;
  text-align: center;
  cursor: pointer;
  background: rgba(16, 13, 11, 0.35);
}
.pfp-drop:focus-visible, .pfp-drag { border-color: var(--amber); }
.pfp-drop input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pfp-drop-big { display: block; font-weight: 700; }
.pfp-drop-small { display: block; color: var(--cream-dim); font-size: 0.88rem; margin-top: 0.25rem; }
.pfpai-src { display: flex; gap: 0.8rem; align-items: center; margin: 0.8rem 0; }
.pfpai-src img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.pfp-label { display: block; font-size: 0.8rem; color: var(--cream-dim); font-weight: 700; }
.pfp-go { width: 100%; margin-top: 0.6rem; }
.pfp-msg { margin: 0.8rem 0 0.2rem; color: var(--cream); }
.pfp-msg.pfpai-bad { color: #e8b4a0; }
.pfpai-fine { margin: 0; color: var(--cream-dim); font-size: 0.85rem; }

.pfpai-stage {
  position: relative;
  aspect-ratio: 1;
  background: #181512;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
}
.pfpai-stage img { width: 100%; height: 100%; object-fit: cover; }
.pfpai-placeholder { color: var(--cream-dim); padding: 1rem; text-align: center; }
.pfpai-loading {
  position: absolute; inset: 0;
  background: rgba(16, 13, 11, 0.78);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.7rem; padding: 1.2rem; text-align: center;
}
.pfpai-spin {
  width: 36px; height: 36px;
  border: 3px solid rgba(243,234,216,0.2);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pfpai-bar { width: min(240px, 80%); height: 6px; background: rgba(243,234,216,0.15); border-radius: 99px; overflow: hidden; }
.pfpai-bar span { display: block; height: 100%; width: 3%; background: var(--amber); border-radius: 99px; }
.pfpai-load-txt { margin: 0; font-family: var(--serif); }
.pfpai-load-sub { margin: 0; color: var(--cream-dim); font-size: 0.88rem; }

.site-footer {
  text-align: center;
  color: var(--cream-dim);
  padding-top: 1rem;
  padding-bottom: 2.5rem;
  font-family: var(--serif);
  font-style: italic;
}

@media (max-width: 800px) {
  .about-grid, .depot-card, .pfp-wrap { grid-template-columns: 1fr; }
  .hero { min-height: 86vh; }
  .hero-copy { padding: 2.5rem 1.15rem 2.2rem; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .nav { gap: 0.8rem; }
  .depot-title { font-size: 1.4rem; }
  .depot-btn { align-self: stretch; text-align: center; }
}
@media (max-width: 520px) {
  .site-header { padding: 0.65rem 0.9rem; }
  .wordmark { font-size: 1.15rem; }
  .nav a { font-size: 0.85rem; }
}
