/* ============================================================
   Thorne Lumière — Stylesheet
   Dark, lowkey, high-class.
   ============================================================ */

:root {
  --bg:          #0c0a0d;
  --bg-raised:   #141117;
  --bg-card:     #17131a;
  --ink:         #d8d2c8;
  --ink-dim:     #8d8578;
  --ink-faint:   #57504a;
  --gold:        #b9975b;
  --gold-bright: #d9bc85;
  --line:        rgba(185, 151, 91, 0.28);
  --line-soft:   rgba(216, 210, 200, 0.08);
  --shadow:      0 18px 50px rgba(0, 0, 0, 0.65);

  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Jost", "Futura", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 18px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Subtle vignette over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 35%, transparent 55%, rgba(0,0,0,0.55) 100%);
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

::selection { background: var(--gold); color: #0c0a0d; }

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

a { color: var(--gold); text-decoration: none; transition: color .3s ease; }
a:hover { color: var(--gold-bright); }

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  color: var(--gold);
}

/* Ornamental divider:  ─── ◆ ─── */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin: 2.2rem auto;
  color: var(--gold);
}
.divider::before,
.divider::after {
  content: "";
  height: 1px;
  width: min(110px, 22vw);
  background: linear-gradient(90deg, transparent, var(--line));
}
.divider::after {
  background: linear-gradient(90deg, var(--line), transparent);
}
.divider span { font-size: 0.55rem; letter-spacing: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  padding: 1.05rem 2.6rem;
  border: 1px solid var(--line);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: all .45s ease;
}
.btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #0c0a0d;
}
.btn--ghost {
  border-color: var(--line-soft);
  color: var(--ink-dim);
}
.btn--ghost:hover {
  background: transparent;
  border-color: var(--ink-dim);
  color: var(--ink);
}

/* ---------- Header / Nav ---------- */

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  padding: 3.2rem 1.5rem 2.4rem;
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.1rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
}
.brand:hover { color: var(--gold-bright); }

.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 300;
  letter-spacing: 0.52em;
  text-indent: 0.52em;
  color: var(--gold);
  margin-top: 0.55rem;
}

.site-nav {
  display: flex;
  gap: 2.8rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}
.site-nav a { color: var(--ink-dim); padding-bottom: 0.35rem; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a.active { color: var(--gold); border-bottom-color: var(--line); }

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

.site-footer {
  margin-top: 6rem;
  padding: 2.8rem 1.5rem 3.4rem;
  border-top: 1px solid var(--line-soft);
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 2.4;
}

/* ---------- Layout ---------- */

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.page-intro {
  text-align: center;
  padding: 4.5rem 1rem 1rem;
  max-width: 720px;
  margin: 0 auto;
}
.page-intro h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-top: 1.2rem;
}
.page-intro p { color: var(--ink-dim); margin-top: 1.2rem; }

/* ============================================================
   Age Gate (index.html)
   ============================================================ */

.gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.gate-panel {
  max-width: 620px;
  width: 100%;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 4rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(185,151,91,0.05), transparent 40%),
    var(--bg-raised);
  box-shadow: var(--shadow);
  animation: gate-in 1.1s ease both;
  position: relative;
}
/* double-rule frame */
.gate-panel::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid var(--line-soft);
  pointer-events: none;
}

@keyframes gate-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

.gate-brand {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.9rem);
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  text-transform: uppercase;
  margin-top: 1.4rem;
}

.gate-warning {
  margin: 1.6rem auto 0;
  max-width: 420px;
  color: var(--ink-dim);
  font-size: 0.92rem;
}
.gate-warning strong { color: var(--ink); font-weight: 400; }

.gate-age {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  margin-top: 1.8rem;
}

.gate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.4rem;
}

.gate-legal {
  margin-top: 2.2rem;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

/* ============================================================
   Home (home.html)
   ============================================================ */

.hero {
  text-align: center;
  padding: clamp(4rem, 12vh, 6rem) 1.25rem 3rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-style: italic;
  font-weight: 400;
  margin-top: 1.6rem;
  line-height: 1.25;
}

.hero-statement {
  max-width: 640px;
  margin: 2rem auto 0;
  color: var(--ink-dim);
  font-size: 1.15rem;
}
.hero-statement em { color: var(--ink); font-style: italic; }

.hero .btn { margin-top: 3rem; }

.home-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  margin-top: 2rem;
}
.home-note {
  background: var(--bg);
  padding: 2.6rem 2rem;
  text-align: center;
}
.home-note h3 {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 0.8rem;
}
.home-note p { font-size: 0.94rem; color: var(--ink-dim); }

/* ============================================================
   Gallery — album list (gallery.html)
   ============================================================ */

.album-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.6rem;
  padding: 3.5rem 0 1rem;
}

.album-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  transition: border-color .45s ease, transform .45s ease, box-shadow .45s ease;
}
.album-card:hover {
  border-color: var(--line);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.album-card figure {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  position: relative;
}
.album-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.92);
  transition: filter .6s ease, transform .9s ease;
}
.album-card:hover img {
  filter: saturate(1) brightness(1);
  transform: scale(1.035);
}
/* gradient scrim at the base of the cover */
.album-card figure::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(12,10,13,0.85), transparent);
  pointer-events: none;
}

.album-card-body {
  padding: 1.6rem 1.6rem 2rem;
  text-align: center;
}
.album-card-body .eyebrow { font-size: 0.6rem; }
.album-card-body h2 {
  font-size: 1.55rem;
  font-style: italic;
  margin-top: 0.6rem;
}
.album-card-body p {
  margin-top: 0.8rem;
  font-size: 0.94rem;
  color: var(--ink-dim);
}
.album-card-body .count {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ============================================================
   Album detail (album.html)
   ============================================================ */

.album-hero {
  text-align: center;
  padding: 4rem 1rem 0;
}
.album-hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-style: italic;
  margin-top: 1.1rem;
}
.album-hero .subtitle {
  color: var(--ink-dim);
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-style: italic;
  margin-top: 0.6rem;
}

.album-story {
  max-width: 750px;
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
  color: var(--ink-dim);
  font-size: 1.05rem;
}
.album-story p { margin-bottom: 1.3rem; }
.album-story p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.1em;
  float: left;
  line-height: 0.85;
  padding-right: 0.12em;
  color: var(--gold);
}
.album-story em { color: var(--ink); }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.1rem;
  padding: 3rem 0 1rem;
}

.photo-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--bg-card);
  cursor: pointer;
  padding: 0;
  transition: border-color .4s ease;
}
.photo-thumb:hover { border-color: var(--line); }
/* Horizontal photographs: same ratio, flipped — wider than tall,
   centered vertically within the row. Still a centered cover crop. */
.photo-thumb.landscape {
  aspect-ratio: 5 / 4;
  align-self: center;
}
.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.88);
  transition: filter .5s ease, transform .8s ease;
}
.photo-thumb:hover img {
  filter: brightness(1);
  transform: scale(1.04);
}
.photo-thumb .num {
  position: absolute;
  bottom: 0.65rem;
  right: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-style: italic;
  color: rgba(216, 210, 200, 0.75);
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
  pointer-events: none;
}

.back-link {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.back-link:hover { color: var(--gold); }

/* ============================================================
   Lightbox
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(7, 6, 8, 0.96);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
  padding: 3.5rem 1rem 2rem;
}
.lightbox.open { opacity: 1; visibility: visible; }

.lightbox-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.lightbox-stage img {
  max-width: min(1100px, 94vw);
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.8);
  animation: photo-in .45s ease both;
}
@keyframes photo-in {
  from { opacity: 0; transform: scale(0.985); }
  to   { opacity: 1; transform: none; }
}

.lightbox-caption {
  margin-top: 1.4rem;
  text-align: center;
  max-width: 620px;
  min-height: 2.6rem;
}
.lightbox-caption .counter {
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}
.lightbox-caption .text {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-dim);
}

.lightbox button {
  position: absolute;
  background: transparent;
  border: none;
  color: var(--ink-dim);
  font-family: var(--font-body);
  cursor: pointer;
  transition: color .3s ease;
  z-index: 101;
}
.lightbox button:hover { color: var(--gold-bright); }

.lb-close {
  top: 1.4rem;
  right: 1.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 0.6rem;
}

.lb-prev, .lb-next {
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 2.4rem;
  padding: 1.2rem 1rem;
  line-height: 1;
}
.lb-prev { left: 0.8rem; }
.lb-next { right: 0.8rem; }

@media (max-width: 640px) {
  .lb-prev, .lb-next { font-size: 1.8rem; padding: 0.8rem 0.6rem; }
  .site-nav { gap: 1.6rem; }
}

/* ---------- Fade-up entrance for content blocks ---------- */
.fade-up {
  animation: fade-up .9s ease both;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   Articles — list (articles.html)
   ============================================================ */

.article-list {
  display: flex;
  flex-direction: column;
  gap: 2.6rem;
  max-width: 1020px;
  margin: 0 auto;
  padding: 3rem 0 1rem;
}

.article-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  color: var(--ink);
  transition: border-color .45s ease, transform .45s ease, box-shadow .45s ease;
}
.article-card:hover {
  color: var(--ink);
  border-color: var(--line);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.article-card.no-cover { grid-template-columns: 1fr; }

.article-card figure {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  height: 100%;
}
.article-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.92);
  transition: filter .6s ease, transform .9s ease;
}
.article-card:hover img {
  filter: saturate(1) brightness(1);
  transform: scale(1.035);
}

.article-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.2rem 2.6rem;
}
.article-card-body h2 {
  font-size: 1.9rem;
  font-style: italic;
  line-height: 1.2;
  margin-top: 0.8rem;
}
.article-card-body .subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-dim);
  margin-top: 0.35rem;
}
.article-card-body .excerpt {
  margin-top: 1rem;
  font-size: 0.94rem;
  color: var(--ink-dim);
}
.read-more {
  margin-top: 1.5rem;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color .3s ease;
}
.article-card:hover .read-more { color: var(--gold); }

.article-meta {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.empty-note {
  text-align: center;
  padding: 3rem 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink-faint);
}

@media (max-width: 760px) {
  .article-card { grid-template-columns: 1fr; }
  .article-card-body { padding: 1.8rem 1.6rem 2rem; }
}

/* ============================================================
   Article — reader (article.html)
   ============================================================ */

.article-hero {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 1rem 0;
}
.article-hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-style: italic;
  line-height: 1.2;
  margin-top: 1.1rem;
}
.article-hero .subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--ink-dim);
  margin-top: 0.6rem;
}
.article-hero .article-meta { display: block; margin-top: 1.3rem; }

.article-cover {
  max-width: 1020px;
  margin: 0 auto 3.2rem;
}
.article-cover img {
  max-height: 85vh;
  margin: 0 auto;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
  color: var(--ink-dim);
  font-size: 1.05rem;
  line-height: 1.85;
}
.article-body p { margin-bottom: 1.4rem; }
.article-body > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.1em;
  float: left;
  line-height: 0.85;
  padding-right: 0.12em;
  color: var(--gold);
}
.article-body h2 {
  font-size: 1.9rem;
  font-style: italic;
  line-height: 1.25;
  margin: 3rem 0 1rem;
}
.article-body h3 {
  font-size: 1.4rem;
  color: var(--gold-bright);
  margin: 2.2rem 0 0.8rem;
}
.article-body h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 2rem 0 0.6rem;
}
.article-body strong { color: var(--ink); font-weight: 400; }
.article-body em { color: var(--ink); }
.article-body a { border-bottom: 1px solid var(--line); }
.article-body code {
  font-family: Consolas, Menlo, monospace;
  font-size: 0.85em;
  color: var(--ink);
  background: var(--bg-raised);
  padding: 0.1em 0.4em;
}
.article-body ul,
.article-body ol { margin: 0 0 1.4rem 1.4rem; }
.article-body li { margin-bottom: 0.4rem; padding-left: 0.3rem; }
.article-body li::marker { color: var(--gold); }

.article-body blockquote {
  margin: 2.4rem 0;
  padding: 0.3rem 0 0.3rem 1.8rem;
  border-left: 1px solid var(--gold);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.5;
  color: var(--ink);
}
.article-body blockquote p { margin-bottom: 0.6rem; }
.article-body blockquote p:last-child { margin-bottom: 0; }

.article-body .divider { margin: 3rem auto; }

/* Photographs break out of the text column, wider than the prose. */
.article-body > .article-figure,
.article-body > .article-figures {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: min(980px, 92vw);
  margin-top: 2.8rem;
  margin-bottom: 2.8rem;
}
.article-figure img {
  max-width: 100%;
  max-height: 85vh;
  margin: 0 auto;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.article-figure figcaption {
  text-align: center;
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-faint);
}
.article-figures {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}
.article-figures .article-figure { margin: 0; }
.article-figures .article-figure img { width: 100%; max-height: none; }
.article-body p img { display: inline-block; vertical-align: middle; cursor: zoom-in; }

@media (max-width: 640px) {
  .article-figures { grid-template-columns: 1fr; }
}

/* ---------- Ad slot inside an article (js/ads.js) ---------- */

.article-body .article-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  overflow: hidden;
  margin: 2.8rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.article-body .article-ad--end { margin: 3.4rem 0 0; }
.article-ad-label {
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.7rem;
}
