/* LSAV Nocturne — editorial noturno */

:root {
  --void: #070708;
  --ink: #0e0e10;
  --raised: #161618;
  --raised-2: #1c1c1f;
  --line: rgba(196, 165, 116, 0.16);
  --line-strong: rgba(196, 165, 116, 0.34);
  --gold: #c4a574;
  --gold-bright: #e4cfa0;
  --wine: #8f2d45;
  --wine-deep: #5c1a2c;
  --ember: #c45c6a;
  --cream: #f3ebe1;
  --text: #d4cbc2;
  --muted: #8a827a;
  --black: #050505;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --ui: "Outfit", "Segoe UI", sans-serif;
  --body: "Source Serif 4", Georgia, serif;
  --wrap: 1200px;
  --narrow: 720px;
  --header: 76px;
  --radius: 18px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(143, 45, 69, 0.16), transparent 50%),
    radial-gradient(900px 420px at 100% 0%, rgba(196, 165, 116, 0.08), transparent 46%),
    var(--void);
  color: var(--text);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 8;
}

img,
video { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: var(--cream); }

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 80;
  padding: 10px 14px;
  background: var(--cream);
  color: var(--void);
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.narrow { width: min(var(--narrow), calc(100% - 40px)); margin-inline: auto; }

.btn,
.btn:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, #a83d55 0%, var(--wine-deep) 100%);
  color: var(--cream);
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(92, 26, 44, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--gold-bright);
  color: #fff;
}

.btn--ghost,
.btn--ghost:hover {
  background: transparent;
  box-shadow: none;
  color: var(--gold-bright);
}

.btn--book,
.btn--book:hover {
  width: 100%;
  background: #111;
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 7, 8, 0.78);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand { display: flex; flex-direction: column; min-width: 0; }
.brand__wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
}
.brand__mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--gold-bright), var(--wine));
  box-shadow: 0 0 16px rgba(196, 165, 116, 0.45);
}
.brand__name {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}
.brand__tag {
  display: none;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__list a {
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav__list a:hover,
.nav__list .current-menu-item a { color: var(--gold-bright); }
.nav__toggle { display: none; }

.search-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
  border-radius: 50%;
  cursor: pointer;
}

.search-overlay {
  position: absolute;
  inset: var(--header) 0 auto;
  padding: 28px 20px 32px;
  background: rgba(7, 7, 8, 0.96);
  border-bottom: 1px solid var(--line);
}
.search-overlay__box { width: min(680px, 100%); margin: 0 auto; }
.search-overlay__kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.search-form { display: flex; gap: 10px; }
.search-form__input {
  flex: 1;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--display);
  font-size: 22px;
}
.search-form__submit {
  border: 0;
  background: var(--wine);
  color: var(--cream);
  padding: 0 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Hero */

.hero {
  position: relative;
  min-height: min(78vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero--empty { min-height: 58vh; align-items: center; }
.hero__media,
.hero__image { position: absolute; inset: 0; }
.hero__image { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) contrast(1.05); }
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 7, 8, 0.15) 0%, rgba(7, 7, 8, 0.28) 36%, rgba(7, 7, 8, 0.92) 100%),
    linear-gradient(90deg, rgba(7, 7, 8, 0.55), transparent 42%);
}
.hero__copy {
  position: relative;
  z-index: 1;
  padding: 72px 0 64px;
  max-width: 860px;
}
.hero__kicker,
.band__kicker,
.page-head__kicker,
.books__kicker,
.age-gate__kicker,
.empty__kicker,
.site-footer__kicker,
.share__label {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.hero__title {
  margin: 14px 0 16px;
  font-family: var(--display);
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--cream);
}
.hero__title a { color: inherit; }
.hero__lead {
  max-width: 36ch;
  margin: 0 0 28px;
  color: var(--text);
  font-family: var(--body);
  font-size: 19px;
}
.hero__actions { display: flex; align-items: center; gap: 18px; }
.hero__meta { color: var(--muted); font-size: 13px; letter-spacing: 0.08em; }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--gold-bright);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.badge--dark { border-color: rgba(196, 92, 106, 0.45); color: #e7b4bb; }
.badge--mm-dark { border-color: var(--gold); color: var(--cream); background: rgba(92, 26, 44, 0.45); }

.cat-rail { border-bottom: 1px solid var(--line); background: var(--ink); }
.cat-rail__inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 16px 0;
  scrollbar-width: none;
}
.cat-rail__item {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cat-rail__item.is-active,
.cat-rail__item:hover {
  color: var(--cream);
  border-color: var(--gold);
}

.band { padding: 72px 0 24px; }
.band__head { margin-bottom: 28px; }
.band__title,
.page-head__title,
.empty__title,
.comments__title,
.comments__reply-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  color: var(--cream);
  line-height: 1.05;
}

.page-head { padding: 56px 0 12px; }
.page-head--center { text-align: center; padding-top: 80px; }
.page-head__desc { color: var(--muted); max-width: 48ch; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  padding: 36px 0 96px;
  align-items: start;
}
.layout--story { padding-top: 56px; }
.no-sidebar .layout { grid-template-columns: 1fr; }

.card-grid,
.card-grid--3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.story-list { display: grid; gap: 22px; }

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(22, 22, 24, 0.72);
  border-radius: var(--radius);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}
.card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--wine-deep), #141218 60%);
}
.card__image,
.card__fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.card:hover .card__image { transform: scale(1.06); }
.card__fallback {
  display: block;
  background:
    radial-gradient(circle at 30% 20%, rgba(196, 165, 116, 0.2), transparent 40%),
    linear-gradient(160deg, #2a1218, #0e0e10);
}
.card__body { padding: 18px 18px 20px; }
.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.card__time { color: var(--muted); font-size: 12px; }
.card__title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
}
.card__title a { color: var(--cream); }
.card__excerpt {
  margin: 0 0 14px;
  color: var(--muted);
  font-family: var(--body);
  font-size: 15px;
}
.card__more {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.more-row { margin: 36px 0 0; }

/* Sidebar + books */

.sidebar { position: sticky; top: calc(var(--header) + 24px); display: grid; gap: 28px; }

.books {
  padding: 22px 20px 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0%, rgba(196, 165, 116, 0.1), transparent 46%),
    var(--raised);
  border-radius: var(--radius);
}
.books__title {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 30px;
  color: var(--cream);
  font-weight: 500;
}
.books__viewport { position: relative; }
.book { display: none; text-align: center; }
.book.is-active { display: block; animation: fadeBook 0.45s ease; }
.book__cover {
  margin: 0 auto 16px;
  width: min(100%, 210px);
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55));
}
.book__image,
.book__placeholder {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #3a1b24, #12090c);
}
.book__placeholder {
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.1;
}
.book__serie {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.book__name {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 26px;
  color: var(--cream);
  font-weight: 500;
}
.book__blurb {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}
.books__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}
.books__arrow,
.books__dot {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold-bright);
  cursor: pointer;
}
.books__arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 20px;
}
.books__dots { display: flex; gap: 6px; }
.books__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 50%;
}
.books__dot.is-active { background: var(--gold); border-color: var(--gold); }

.widget { margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.widget__title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 24px;
  color: var(--cream);
}
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.widget a { color: var(--text); }
.widget a:hover { color: var(--gold-bright); }

/* Story */

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 50;
  background: transparent;
}
.read-progress__bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--wine), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
}

.story__mast {
  padding: 72px 0 28px;
  border-bottom: 1px solid var(--line);
}
.story__meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.story__title {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.96;
  color: var(--cream);
  font-weight: 500;
}
.story__deck {
  max-width: 46ch;
  margin: 0;
  font-family: var(--body);
  font-size: 22px;
  color: var(--muted);
  font-style: italic;
}
.story__figure { margin: 0; }
.story__image {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  filter: saturate(0.88);
}

.meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.meta__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.entry-content {
  font-family: var(--body);
  font-size: 19.5px;
  line-height: 1.8;
  color: #ddd4cb;
}
.entry-content > p:first-of-type::first-letter {
  float: left;
  margin: 8px 10px 0 0;
  font-family: var(--display);
  font-size: 86px;
  line-height: 0.75;
  color: var(--gold);
}
.entry-content p { margin: 0 0 1.25em; }
.entry-content h2,
.entry-content h3 {
  font-family: var(--display);
  color: var(--cream);
  line-height: 1.15;
}
.entry-content a { text-decoration: underline; text-decoration-color: rgba(196, 165, 116, 0.45); }
.entry-content blockquote {
  margin: 2em 0;
  padding: 0 0 0 22px;
  border-left: 1px solid var(--gold);
  color: var(--cream);
  font-style: italic;
}

.share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 48px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}
.share__links { display: flex; gap: 8px; }
.share__btn {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 36px 0 64px;
}
.story-nav__item {
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--cream);
  background: var(--raised);
}
.story-nav__item span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.story-nav__item strong { font-family: var(--display); font-size: 22px; font-weight: 500; }
.story-nav__item--next { text-align: right; }

.related { padding-top: 12px; }

.comments { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.comments__list { margin: 24px 0; padding: 0; list-style: none; }
.comment-body { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.comment-reply-title,
.comment-form label { color: var(--cream); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  margin: 6px 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
}
.comment-form textarea { min-height: 140px; }
.custom-logo { max-height: 42px; width: auto; }

.form-submit input[type="submit"] {
  display: inline-flex;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--gold);
  background: var(--wine-deep);
  color: var(--cream);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.empty { padding: 48px 0; }
.empty--full { width: min(640px, calc(100% - 40px)); margin: 80px auto 120px; text-align: center; }
.empty__text { color: var(--muted); font-family: var(--body); font-size: 18px; }

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: #050506;
}
.site-footer__glow {
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: radial-gradient(circle at 50% 120%, rgba(143, 45, 69, 0.22), transparent 60%);
}
.site-footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 72px 0 48px;
}
.site-footer__name {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 40px;
  color: var(--cream);
}
.site-footer__bio { margin: 0; max-width: 36ch; color: var(--muted); }
.footer-menu,
.social { margin: 0; padding: 0; list-style: none; }
.footer-menu a,
.social a { color: var(--text); }
.social { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.site-footer__legal { border-top: 1px solid var(--line); }
.site-footer__legal-inner { padding: 18px 0; color: var(--muted); font-size: 12px; letter-spacing: 0.06em; }

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 5, 6, 0.84);
  backdrop-filter: blur(16px);
}
.age-gate[hidden] { display: none; }
.age-gate__panel {
  width: min(520px, 100%);
  padding: 40px 32px;
  border: 1px solid var(--line-strong);
  background: var(--ink);
  text-align: center;
  box-shadow: var(--shadow);
}
.age-gate__title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 42px;
  color: var(--cream);
  line-height: 1;
}
.age-gate__text { color: var(--muted); font-family: var(--body); }
.age-gate__actions { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
body.age-locked { overflow: hidden; }

.nav-links,
.pagination,
.navigation.pagination .nav-links {
  display: flex;
  gap: 8px;
  margin-top: 36px;
}
.page-numbers,
.nav-links a {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
}
.page-numbers.current { border-color: var(--gold); color: var(--gold-bright); }

@keyframes fadeBook {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .layout,
  .site-footer__grid,
  .card-grid,
  .card-grid--3 { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero { min-height: 88vh; }
  .brand__tag { display: none; }
}

@media (max-width: 820px) {
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--cream);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .nav__toggle-lines,
  .nav__toggle-lines::before,
  .nav__toggle-lines::after {
    display: block;
    width: 18px;
    height: 1px;
    background: currentColor;
    position: relative;
  }
  .nav__toggle-lines::before,
  .nav__toggle-lines::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .nav__toggle-lines::before { top: -6px; }
  .nav__toggle-lines::after { top: 6px; }
  .nav__panel {
    display: none;
    position: absolute;
    inset: var(--header) 0 auto;
    padding: 20px;
    background: rgba(7, 7, 8, 0.96);
    border-bottom: 1px solid var(--line);
  }
  .nav__panel.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 16px; }
  .story-nav { grid-template-columns: 1fr; }
  .story-nav__item--next { text-align: left; }
  .hero__copy { padding-bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card,
  .card__image,
  .btn,
  .book { transition: none; animation: none; }
}
