/* Base reset and variables */
:root {
  --bg: #0f1115;
  --bg-elev: #171a21;
  --text: #e6e8ee;
  --text-dim: #a5abb7;
  --brand: #e86813;
  --brand-strong: #fe6702;
  --brand-10: rgba(255, 81, 0, 0.10);
  --brand-25: rgba(255, 81, 0, 0.25);
  --accent: #68c47a;           /* supportive green for brand */
  --accent-10: rgba(104, 196, 122, 0.10);
  --accent-25: rgba(104, 196, 122, 0.25);
  --card: #151923;
  --border: #242a36;
  --danger: #ff6b6b;
}


/* body { font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial; } */

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  /* optional tuning for Fraunces variable axes */
  font-optical-sizing: auto;
  /* font-weight: <weight>; */
  font-style: normal;
}

.brand-subtitle {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: linear-gradient(180deg, var(--bg) 0%, #0c0e13 100%);
  color: var(--text);
}

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

/* App shell */
.site {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 17, 21, 0.8);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  padding: 14px 20px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.brand-text { display: inline-flex; flex-direction: column; line-height: 1.05; align-items: center; }
.brand-title { text-transform: uppercase; letter-spacing: 0.08em; }
.brand-subtitle { color: var(--accent); letter-spacing: 0.4em; opacity: 0.9; font-size: 1.1rem; font-weight: 400; }
.letter { display: inline-block; }
.letter.orange { color: var(--brand); }
.letter.green { color: var(--accent); }

.site-desc {
  color: var(--text-dim);
  margin: 0;
  flex-basis: 100%;
  padding-left: 22px; /* roughly aligns with brand dot spacing */
}

.subnav {
  display: flex;
  gap: 12px;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.subnav a {
  color: var(--text-dim);
  font-size: 14px;
  padding: 4px 6px;
  border-radius: 8px;
  white-space: nowrap;
  border: 1px solid transparent;
}

.subnav a:hover {
  color: var(--text);
  border-color: #3a2c22;
  background: #1a1612;
}

.subnav a.active {
  color: var(--brand);
  background: var(--brand-10);
  border-color: var(--brand-25);
}

.site-main {
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.site[data-page="index"] .header-inner {
  padding-top: 22px;
  padding-bottom: 22px;
}

.site[data-page="index"] .brand-title {
  font-size: clamp(1.6rem, 2.6vw + 0.9rem, 2.8rem);
}

/* Album sub-pages (viewer) brand sizing and rhythm */
.site[data-page="viewer"] .brand-title {
  font-size: clamp(1.25rem, 1.6vw + 0.7rem, 2.0rem);
  letter-spacing: 0.09em;
  font-weight: 400;
}
.site[data-page="viewer"] .brand-subtitle {
  font-size: 0.95rem;
  letter-spacing: 0.20em;
  font-weight: 400;
}
.site[data-page="index"] .brand .dot {
  width: 12px;
  height: 12px;
}

/* brand-subtitle already sized; no separate site-desc used */

.intro {
  max-width: 68ch;
  color: var(--text-dim);
  font-size: 0.98rem;
}

/* Grid of galleries */
.gallery-grid {
  --min: 260px;
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--min), 1fr));
  gap: 16px;
}

.card {
  background: linear-gradient(180deg, var(--card), #111521);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #4a3a2f;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.28);
}

.thumb {
  position: relative;
  width: 100%;
  background: #0d1018;
  overflow: hidden;
}

.thumb::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 */
}

.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.thumb .fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #cdd3df;
  background: radial-gradient(1200px 500px at 20% 0%, #1a2131 0%, #0f1524 45%, #0c101b 100%);
  letter-spacing: 0.2px;
}

.card-body {
  padding: 14px 14px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.card-title {
  font-weight: 600;
}

.open-pill {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--brand-10);
  color: var(--brand);
  border: 1px solid var(--brand-25);
}

/* Viewer page */
.viewer {
  height: calc(100vh - 56px);
}

.viewer-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #0b0e14;
}

.header-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #131722;
  color: var(--text);
  font-size: 14px;
}

.btn:hover {
  background: #1c1712;
  border-color: #3a2c22;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .header-inner {
    padding: 12px 16px;
  }
  .container {
    padding: 18px 16px 36px;
  }
  .gallery-grid {
    --min: 200px;
  }
}

