:root {
  --bg: #0c0d10;
  --bg-alt: #14171c;
  --panel: #171a20;
  --panel-soft: #1a1d24;
  --muted: #b1b5bb;
  --text: #f3f4f6;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #ebc39b;
  --accent-strong: #d78e56;
  --shadow: rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: rgba(12, 13, 16, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #14171c;
  font-size: 0.8rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
}

.link-text {
  opacity: 0.8;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-weight: 500;
  line-height: 1;
}

.social-link img,
.social-link svg {
  width: 15px;
  height: 15px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.social-link:hover,
.nav-links a:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}

.page-shell {
  padding-bottom: 20px;
}

.hero {
  padding: 72px 0 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: start;
  gap: 32px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
}

.intro-links {
  margin: 10px 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  list-style: disc;
}

.intro-links li + li {
  margin-top: 8px;
}

.intro-links a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.intro {
  margin: 18px 0 0;
  max-width: 500px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 18px 60px var(--shadow);
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  min-height: 440px;
}

.featured-item {
  position: relative;
  min-height: 120px;
}

.mini-grid .featured-tile,
.mini-grid .placeholder {
  display: block;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(215, 142, 86, 0.9), rgba(255, 255, 255, 0.08));
  background-size: cover;
  background-position: center;
  min-height: 120px;
}

.featured-item .featured-tile {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.mini-grid .tall {
  min-height: 200px;
}

.mini-grid .wide {
  grid-column: 1 / span 2;
  min-height: 180px;
}

.featured-love {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
}

.gallery-section {
  padding: 28px 0 70px;
}

.collections-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.collections-left,
.collections-right {
  min-width: 0;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.9rem);
  letter-spacing: -0.05em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.collections-left .gallery-grid {
  grid-template-columns: 1fr;
  gap: 18px;
}

.tutelage-content {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow: auto;
  max-height: 1200px;
}

.tutelage-content > *:first-child {
  margin-top: 0;
}

.tutelage-content > *:last-child {
  margin-bottom: 0;
}

.tutelage-content h1,
.tutelage-content h2,
.tutelage-content h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 1.3em 0 0.6em;
}

.tutelage-content h1 {
  font-size: 1.5rem;
}

.tutelage-content h2 {
  font-size: 1.2rem;
}

.tutelage-content h3 {
  font-size: 1.05rem;
}

.tutelage-content p {
  margin: 0 0 0.95rem;
  color: rgba(243, 244, 246, 0.94);
}

.tutelage-content ul,
.tutelage-content ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.tutelage-content li + li {
  margin-top: 0.35rem;
}

.tutelage-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.15rem 0;
}

.tutelage-content em {
  color: var(--muted);
}

.tutelage-content strong {
  color: #f0c299;
}

.tutelage-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8rem 0 1.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.tutelage-content th,
.tutelage-content td {
  padding: 0.62rem 0.65rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.tutelage-content th:last-child,
.tutelage-content td:last-child {
  border-right: 0;
}

.tutelage-content tr:last-child td {
  border-bottom: 0;
}

.tutelage-content th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 600;
}

.gallery-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.image-wrap {
  position: relative;
  aspect-ratio: 4 / 1;
  overflow: hidden;
  background: #0a0c0f;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.gallery-card:hover img {
  transform: scale(1.03);
}

.card-body {
  padding: 18px 18px 20px;
}

.card-body h3 {
  margin: 0;
  font-size: 1.1rem;
}

.meta {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.gallery-card img,
.featured-tile {
  cursor: pointer;
}

.gallery-card {
  cursor: pointer;
}

.gallery-card:focus-visible,
.gallery-thumb:focus-visible,
.dialog-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.image-actions,
.lightbox-actions {
  position: absolute;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.image-actions {
  top: 10px;
  right: 10px;
}

.lightbox-actions {
  top: 62px;
  right: 12px;
}

.image-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(12, 13, 16, 0.72);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.image-action svg {
  width: 18px;
  height: 18px;
  display: block;
}

.like-count {
  position: absolute;
  right: -5px;
  bottom: -4px;
  min-width: 16px;
  padding: 1px 4px;
  border-radius: 999px;
  background: rgba(10, 12, 15, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  font-size: 0.6rem;
  line-height: 1.1;
  text-align: center;
}

.image-action:hover {
  background: rgba(255, 255, 255, 0.1);
}

.love-action.is-loved {
  color: #f38ca8;
  border-color: rgba(243, 140, 168, 0.45);
}

.love-action.is-loved svg {
  transform: scale(1.04);
}

.featured-tile {
  border: 0;
  padding: 0;
}

.image-dialog {
  width: min(92vw, 1100px);
  max-width: calc(100vw - 32px);
  border: 0;
  padding: 0;
  background: transparent;
}

.image-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.dialog-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

#lightboxPanel {
  gap: 14px;
}

#dialogImage {
  display: block;
  width: min(100%, 1000px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(12, 13, 16, 0.72);
  color: var(--text);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-prev {
  left: -10px;
}

.lightbox-next {
  right: -10px;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(12, 13, 16, 0.82);
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.gallery-dialog {
  width: min(94vw, 1180px);
  max-width: calc(100vw - 24px);
  border: 0;
  padding: 0;
  background: transparent;
}

.gallery-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.gallery-dialog-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-height: 86vh;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(14, 16, 20, 0.98);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.gallery-dialog-heading h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  letter-spacing: -0.04em;
}

.gallery-dialog-meta {
  margin: 8px 0 0;
  color: var(--muted);
}

.gallery-dialog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  overflow: auto;
  padding-right: 4px;
}

.gallery-thumb {
  border: 0;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #101318;
  aspect-ratio: 1 / 1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.gallery-thumb-card {
  position: relative;
}

.gallery-thumb-love {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

.info-page {
  padding: 56px 0 80px;
}

.info-shell {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
}

.article-card {
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 18px 60px var(--shadow);
}

.article-card h1 {
  margin-bottom: 18px;
}

.article-card p,
.article-card li {
  color: var(--text);
  line-height: 1.75;
  font-size: 1.02rem;
}

.article-card strong {
  color: var(--accent);
}

.article-card .lead {
  font-size: 1.08rem;
  color: var(--muted);
}

.article-card ul,
.article-card ol {
  padding-left: 1.2rem;
  margin: 16px 0 26px;
}

.article-card li + li {
  margin-top: 10px;
}

.article-card a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.article-card a:hover {
  color: #f6d2af;
}

.article-card .back-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
}

.journal-list {
  margin: 20px 0 28px;
  padding-left: 1.3rem;
  list-style: disc;
}

.journal-list li + li {
  margin-top: 12px;
}

.journal-list a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (max-width: 760px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 14px 0;
  }

  .nav-links {
    gap: 10px 12px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .collections-split {
    grid-template-columns: 1fr;
  }

  .tutelage-content {
    max-height: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-dialog-panel {
    padding: 18px;
    max-height: 90vh;
  }

  .gallery-dialog-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .lightbox-nav {
    width: 46px;
    height: 46px;
    font-size: 2rem;
  }

  .lightbox-prev {
    left: -4px;
  }

  .lightbox-next {
    right: -4px;
  }

  .lightbox-actions {
    top: 58px;
    right: 8px;
  }
}
