@font-face {
  font-family: "Cooper Light";
  font-style: normal;
  font-weight: 300 400;
  src:
    local("Cooper Light"),
    local("Cooper Light BT"),
    local("CooperStd-Light"),
    url("fonts/CooperLight.woff") format("woff");
  font-display: swap;
}

/* NaMe Magazine — 032c-inspired brutalist editorial */

:root {
  --bg: #ffffff;
  --bg-alt: #ffffff;
  --bg-elevated: #ffffff;
  --bg-dark: #000000;
  --text: #000000;
  --text-muted: #666666;
  --text-dim: #999999;
  --accent: #000000;
  --text-inverse: #ffffff;
  --text-inverse-muted: rgba(255, 255, 255, 0.65);
  --border: #e5e5e5;
  --border-strong: #000000;
  --surface-hover: rgba(0, 0, 0, 0.05);
  --header-bg: #ffffff;
  --overlay: rgba(0, 0, 0, 0.88);
  --shadow: none;
  --color-error: #000000;
  --color-success: #000000;
  --serif: "Cooper Light", Georgia, serif;
  --sans: "Cooper Light", Georgia, serif;
  --header-h: 72px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --section-pad: clamp(2rem, 5vw, 4rem);
  --home-marquee-duration: 28s;
  --hero-slide-count: 7;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  font-synthesis: none;
}

::selection {
  background: var(--text);
  color: var(--text-inverse);
}

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

img {
  display: block;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

select {
  font: inherit;
  cursor: pointer;
}

/* ─── Header ─── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-strong);
  transition: transform 0.3s var(--ease);
}

.header--hidden {
  transform: translateY(-100%);
}

.header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  gap: 1rem;
}

/* Preserve NaMe brand casing — uppercase CSS turns NaMe into NAME */
.brand-mark,
.logo,
.footer__logo,
.admin-sidebar__logo,
[data-i18n="footerMagazine"],
[data-i18n="communityLabel"],
[data-i18n="modalTitle"],
[data-i18n="authTitle"],
[data-i18n="aboutTitle"],
[data-i18n="communityShareTitle"],
[data-i18n="communityPageHeading"],
.community-banner__label,
.community-hero__label {
  text-transform: none;
}

.logo {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.12em;
}

.header__actions {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header__actions a:hover {
  opacity: 0.7;
}

.header__actions #auth-link {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-transform: inherit;
}

html.auth-optimistic-early #header-subscribe-link,
html.auth-optimistic-early .header__actions a[href*="subscribe.html"],
html.auth-optimistic-early .mobile-bar a[href*="subscribe.html"] {
  display: none !important;
}

html.auth-optimistic-early.auth-optimistic-admin .header__actions a[href*="submission.html"],
html.auth-optimistic-early.auth-optimistic-admin .mobile-bar a[href*="submission.html"] {
  display: none !important;
}

html.auth-optimistic-early.auth-optimistic-admin #admin-link {
  display: inline !important;
}

html.auth-optimistic-early:not(.auth-ui-checked) #auth-link {
  font-size: 0;
}

html.auth-optimistic-early:not(.auth-ui-checked) #auth-link::after {
  content: var(--auth-user-label);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html.auth-optimistic-early.auth-ui-checked #auth-link::after {
  content: none;
}

.header__menu-btn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
}

.header__menu-btn span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.header__menu-btn[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.header__menu-btn[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.header__secondary {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem) 1rem;
  border-top: 1px solid var(--border-strong);
}

.header__secondary.is-open {
  display: flex;
}

.header__secondary--solo {
  border-top: none;
  padding-top: 0;
  margin-top: -0.35rem;
}

.header__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  flex: 1;
  min-width: 0;
  padding: 0;
  border-top: none;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header__lang {
  flex-shrink: 0;
  align-self: center;
}

.header__nav a:hover {
  opacity: 0.7;
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav-dropdown__main {
  letter-spacing: inherit;
  text-transform: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.nav-dropdown__main:not(a) {
  cursor: default;
  user-select: none;
}

.nav-dropdown__main:hover,
.nav-dropdown.is-active .nav-dropdown__main {
  opacity: 0.7;
}

.nav-dropdown__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  color: inherit;
  opacity: 0.55;
  flex-shrink: 0;
}

.nav-dropdown__toggle:hover {
  opacity: 1;
}

.nav-dropdown__caret {
  display: block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s var(--ease);
}

.nav-dropdown.is-open .nav-dropdown__caret {
  transform: rotate(180deg);
}

.nav-dropdown__menu {
  display: none;
  flex-direction: column;
  gap: 0.65rem;
}

.nav-dropdown__menu a {
  letter-spacing: inherit;
  text-transform: inherit;
  font-size: inherit;
  font-weight: inherit;
  white-space: nowrap;
}

.nav-dropdown__menu a.is-current {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

@media (min-width: 900px) {
  .nav-dropdown:hover .nav-dropdown__caret,
  .nav-dropdown:focus-within .nav-dropdown__caret {
    transform: rotate(180deg);
  }

  .nav-dropdown:hover .nav-dropdown__menu,
  .nav-dropdown:focus-within .nav-dropdown__menu,
  .nav-dropdown.is-open .nav-dropdown__menu {
    display: flex;
    position: absolute;
    top: calc(100% + 0.65rem);
    left: 0;
    min-width: 9rem;
    padding: 0.85rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
    z-index: 10;
  }

  .nav-dropdown__menu a {
    font-size: 10px;
  }
}

@media (max-width: 899px) {
  .nav-dropdown {
    flex-wrap: wrap;
    width: 100%;
    gap: 0 0.35rem;
  }

  .nav-dropdown__main:not(a) {
    cursor: pointer;
  }

  .nav-dropdown__menu {
    flex-basis: 100%;
    padding: 0.35rem 0 0.15rem 1.25rem;
    border-left: 1px solid var(--border);
    margin-left: 0.15rem;
  }

  .nav-dropdown.is-open .nav-dropdown__menu {
    display: flex;
  }
}

.lang-select select {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.25rem 0.5rem;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header__lang select {
  min-width: 7.25rem;
}

@media (max-width: 899px) {
  .header__secondary {
    flex-direction: column;
    align-items: stretch;
  }

  .header__lang {
    align-self: flex-end;
  }

  .header__secondary--solo {
    display: flex;
    border-top: none;
    padding-top: 0;
    margin-top: -0.5rem;
    padding-bottom: 0.75rem;
  }
}

@media (max-width: 899px) {
  .header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-left: auto;
    margin-right: 0.25rem;
    font-size: 9px;
    letter-spacing: 0.08em;
    flex-shrink: 1;
    min-width: 0;
  }

  #header-subscribe-link,
  .header__actions a[href*="submission.html"] {
    display: none !important;
  }

  .header__actions #auth-link {
    max-width: 14ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header__top {
    gap: 0.5rem;
  }
}

@media (min-width: 900px) {
  .header__actions {
    display: flex;
    margin-left: auto;
  }

  .header__menu-btn {
    display: none;
  }

  .header__secondary {
    display: flex;
    border-top: none;
    padding-top: 0;
    margin-top: -0.5rem;
  }

  .header__secondary--solo {
    margin-top: -0.5rem;
    padding-bottom: 0.85rem;
  }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  margin-top: var(--header-h);
  overflow: hidden;
}

.hero--marquee {
  height: calc(100vh - var(--header-h));
  min-height: 520px;
  max-height: 920px;
  overflow: hidden;
}

.hero--split {
  height: calc(100vh - var(--header-h));
  min-height: 520px;
  max-height: 920px;
}

.hero__layout {
  display: grid;
  grid-template-columns: auto 1fr;
  height: 100%;
}

.hero__panel {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--bg-dark);
  color: var(--text-inverse);
  border-right: 1px solid var(--border-strong);
}

.hero__panel--controls-only {
  justify-content: flex-end;
  gap: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.hero__panel--controls-only .hero__controls {
  margin-top: 0;
}

.hero__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--bg-dark);
  overflow: hidden;
}

.hero__fit {
  width: 100%;
  aspect-ratio: calc(var(--hero-slide-count, 7) * 819 / 1024);
  height: auto;
  overflow: hidden;
  transform: scale(var(--hero-strip-scale, 1));
  transform-origin: center center;
  container-type: inline-size;
  container-name: hero-fit;
}

.hero__track {
  display: flex;
  align-items: stretch;
  height: 100%;
  width: max-content;
  animation: home-marquee var(--home-marquee-duration, 28s) linear infinite;
  will-change: transform;
}

.hero__set {
  display: flex;
  flex: 0 0 100cqw;
  width: 100cqw;
  height: 100%;
}

.hero__slide {
  flex: 0 0 calc(100cqw / var(--hero-slide-count, 7));
  height: 100%;
  margin: 0;
}

.hero__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

@keyframes home-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.hero--split .hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s var(--ease);
}

.hero--split .hero__slide--active {
  opacity: 1;
  z-index: 1;
}

.hero--split .hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--text-inverse);
}

.hero__meta {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-inverse-muted);
  max-width: 28ch;
}

.hero__cta {
  display: inline-block;
  align-self: flex-start;
  margin-top: 0.5rem;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-inverse);
  border-bottom: 1px solid var(--text-inverse);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.hero__cta:hover {
  opacity: 0.65;
}

.hero__controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.hero__arrow {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--text-inverse);
  font-size: 1.25rem;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s;
}

.hero__arrow:hover {
  background: var(--text-inverse);
  color: var(--bg-dark);
  border-color: var(--text-inverse);
}

.hero__counter {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-inverse-muted);
  min-width: 5rem;
  text-align: center;
}

.hero__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
}

.hero__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--text-inverse);
}

@media (max-width: 899px) {
  .hero--marquee {
    height: auto;
    min-height: calc(100vh - var(--header-h));
    max-height: none;
  }

  .hero__media {
    min-height: calc(100vh - var(--header-h));
  }
}

@media (max-width: 899px) {
  .hero--split {
    height: auto;
    min-height: calc(100vh - var(--header-h));
    max-height: none;
  }

  .hero__layout {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    min-height: calc(100vh - var(--header-h));
  }

  .hero__media {
    min-height: 58vh;
    order: -1;
  }

  .hero__panel {
    border-right: none;
    border-top: 1px solid var(--border-strong);
    min-height: 42vh;
  }

  .hero__panel--controls-only {
    min-height: auto;
    flex-direction: row;
    justify-content: center;
    padding: 1.25rem;
  }
}

/* ─── Home marquee ─── */
.home-marquee {
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 0.85rem 0;
  background: var(--bg);
}

.home-marquee__track {
  display: flex;
  width: max-content;
  animation: home-marquee var(--home-marquee-duration, 28s) linear infinite;
  will-change: transform;
}

.home-marquee__set {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem;
}

.home-marquee__track span {
  flex-shrink: 0;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.home-marquee__track span:nth-child(odd) {
  color: var(--text);
}

/* ─── Home index (032c-style story list) ─── */
.home-index {
  padding: var(--section-pad) clamp(1.5rem, 5vw, 3rem);
  border-bottom: 1px solid var(--border-strong);
  opacity: 1;
  transform: none;
}

.home-index__head {
  max-width: 1400px;
  margin: 0 auto 2rem;
}

.home-index__title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.home-index__list {
  list-style: none;
  max-width: 1400px;
  margin: 0 auto;
  border-top: 1px solid var(--border-strong);
}

.home-index__item {
  border-bottom: 1px solid var(--border);
}

.home-index__link {
  position: relative;
  display: grid;
  grid-template-columns: 3rem 7rem 1fr;
  gap: 1rem 1.5rem;
  align-items: baseline;
  padding: 1.35rem 0;
  transition: color 0.2s, padding-left 0.25s var(--ease);
}

.home-index__link:hover {
  color: var(--text-muted);
  padding-left: 0.35rem;
}

.home-index__num {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.home-index__type {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.home-index__name {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.home-index__preview {
  display: none;
}

.home-index__loading,
.home-index__empty {
  padding: 2rem 0;
  color: var(--text-muted);
  text-align: center;
}

@media (min-width: 900px) {
  .home-index__link {
    grid-template-columns: 3.5rem 8rem minmax(0, 1fr);
    padding: 1.6rem 0;
  }

  .home-index__preview {
    display: block;
    position: fixed;
    top: 50%;
    right: clamp(1.5rem, 5vw, 4rem);
    width: min(280px, 22vw);
    aspect-ratio: 3 / 4;
    object-fit: cover;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-50%) scale(0.96);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    z-index: 50;
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
  }

  .home-index__link:hover .home-index__preview {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

@media (max-width: 640px) {
  .home-index__link {
    grid-template-columns: 2.5rem 1fr;
    grid-template-rows: auto auto;
    gap: 0.35rem 1rem;
  }

  .home-index__type {
    grid-column: 2;
  }

  .home-index__name {
    grid-column: 1 / -1;
  }
}

/* ─── Scroll reveal ─── */
.home-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.home-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .home-marquee__track {
    animation: none;
  }

  .hero__track {
    animation: none;
    transform: translateX(0);
  }

  .home-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─── Community banner ─── */
.community-banner {
  background: var(--bg);
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border);
}

.community-banner__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--section-pad) clamp(1.5rem, 5vw, 3rem);
  text-align: center;
}

.community-banner__label {
  display: inline-block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.community-banner__title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.community-banner__text {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 1.5rem;
  font-size: 15px;
}

.community-banner__link {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.community-banner__link:hover {
  opacity: 0.7;
}

/* ─── Sections & carousels ─── */
.section {
  padding: var(--section-pad) 0;
}

.section--alt {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--film {
  padding-bottom: calc(var(--section-pad) * 1.5);
}

.section--exclusive {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__head-text {
  max-width: 640px;
}

.section__label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.section__intro {
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 520px;
}

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
}

.section__title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.carousel-nav {
  display: flex;
  gap: 0.25rem;
}

.carousel-nav__btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}

.carousel-nav__btn:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 clamp(1rem, 4vw, 2.5rem) 0.5rem;
}

.carousel::-webkit-scrollbar {
  display: none;
}

/* ─── Cards ─── */
.card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  transition: opacity 0.2s;
}

.card:hover {
  opacity: 0.85;
}

.card--article {
  width: min(280px, 75vw);
}

.card--editorial {
  width: min(320px, 80vw);
}

.card--film {
  width: min(240px, 70vw);
}

.card--short {
  width: min(140px, 40vw);
  aspect-ratio: 9 / 16;
}

.card--exclusive {
  width: min(300px, 78vw);
}

.card__img {
  overflow: hidden;
  background: var(--bg-elevated);
  margin-bottom: 0.75rem;
}

.card--article .card__img {
  aspect-ratio: 4 / 5;
}

.card--editorial .card__img {
  aspect-ratio: 3 / 4;
}

.card--film .card__img {
  aspect-ratio: 16 / 9;
}

.card--short .card__img {
  height: 100%;
  margin-bottom: 0;
}

.card--exclusive .card__img {
  aspect-ratio: 4 / 5;
}

.card__img img {
  width: 100%;
  transition: transform 0.6s var(--ease);
}

.card:hover .card__img img {
  transform: scale(1.03);
}

.card__meta {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.card__title {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.3;
}

.card--editorial .card__title,
.card--film .card__title {
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

/* ─── Shorts ─── */
.shorts {
  margin-top: 3rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.shorts__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.shorts__badge {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
}

.carousel--shorts {
  padding-left: 0;
  padding-right: 0;
}

/* ─── Newsletter ─── */
.newsletter {
  text-align: center;
  padding: calc(var(--section-pad) * 1.5) clamp(1.5rem, 5vw, 3rem);
  border-top: 1px solid var(--border-strong);
}

.newsletter__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.newsletter__text {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 15px;
}

.newsletter__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter__form input {
  flex: 1 1 220px;
  min-width: 200px;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
}

.newsletter__form input::placeholder {
  color: var(--text-dim);
}

.newsletter__form input:focus {
  outline: none;
  border-color: var(--text-muted);
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: opacity 0.2s, background 0.2s;
}

.btn--primary {
  background: var(--text);
  color: var(--text-inverse);
  border: 1px solid var(--text);
}

.btn--primary:hover {
  background: var(--text-inverse);
  color: var(--text);
}

.btn--ghost {
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.btn--ghost:hover {
  color: var(--text);
}

/* ─── Modal ─── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.modal__panel {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  padding: 2.5rem 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  transform: translateY(12px);
  transition: transform 0.3s var(--ease);
}

.modal.is-open .modal__panel {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  line-height: 1;
}

.modal__close:hover {
  color: var(--text);
}

.modal__title {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.modal__text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.modal__panel .btn--primary {
  width: 100%;
}

/* ─── Footer ─── */
.footer {
  padding: 3rem clamp(1.5rem, 5vw, 3rem) 6rem;
  border-top: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
}

@media (min-width: 768px) {
  .footer {
    padding-bottom: 3rem;
  }
}

.footer__grid {
  display: grid;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer__logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.footer__address {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer__links a:hover {
  color: var(--text);
}

.footer__social {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer__social a[aria-label="YouTube"] {
  display: none;
}

.footer__social a:hover {
  color: var(--text);
}

.footer__copy {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  max-width: 1200px;
  margin: 0 auto;
}

/* ─── Mobile bottom bar ─── */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  justify-content: space-around;
  padding: 0.75rem 0.5rem;
  background: var(--header-bg);
  border-top: 1px solid var(--border-strong);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mobile-bar a {
  opacity: 0.8;
}

.mobile-bar a:hover {
  opacity: 1;
}

.mobile-bar a[hidden] {
  display: none !important;
}

.mobile-bar #mobile-auth-link.is-user {
  opacity: 1;
}

html.auth-optimistic-early #mobile-auth-link {
  font-size: 0;
}

html.auth-optimistic-early #mobile-auth-link::after {
  content: var(--auth-user-label);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

html.auth-optimistic-early.auth-ui-checked #mobile-auth-link::after {
  content: none;
}

@media (max-width: 767px) {
  body:has(.mobile-bar) {
    padding-bottom: 4.5rem;
  }
}

@media (min-width: 768px) {
  .mobile-bar {
    display: none;
  }
}

/* ─── Auth ─── */
.modal__panel--wide {
  max-width: 420px;
  text-align: left;
}

.auth-error {
  color: var(--color-error);
  font-size: 13px;
  margin-bottom: 1rem;
}

.auth-error.auth-error--success {
  color: var(--color-success);
}

.auth-resend {
  margin: 0;
  text-align: center;
}

.auth-resend__btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: pointer;
}

.auth-resend__btn:hover {
  color: var(--text);
}

.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.auth-tabs__btn {
  flex: 1;
  padding: 0.5rem;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.auth-tabs__btn.is-active {
  border-color: var(--border-strong);
  background: var(--text);
  color: var(--text-inverse);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-form.is-hidden {
  display: none;
}

.auth-join-links {
  display: none;
}

.auth-form__note {
  margin: 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-form__note a {
  color: var(--text-dim);
}

.auth-form__note a:hover {
  color: var(--text);
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-dim);
  cursor: pointer;
}

.auth-check input[type="checkbox"] {
  width: auto;
  margin-top: 0.15rem;
  flex-shrink: 0;
  padding: 0;
}

.auth-check a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-form input:not([type="checkbox"]) {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

/* ─── Account page (login / join) ─── */
.page-account {
  background: var(--bg);
}

.page-account .header--minimal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: transparent;
  border: none;
}

.page-account .header--minimal .header__top {
  padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem);
}

.page-account .header--minimal .brand-mark {
  color: var(--text-inverse);
}

.page-account .auth-page__back {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-inverse-muted);
}

.page-account .auth-page__back:hover {
  color: var(--text-inverse);
}

.auth-page {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
}

@media (min-width: 900px) {
  .auth-page {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.auth-page__visual {
  position: relative;
  min-height: 38vh;
  background: var(--bg-dark);
  color: var(--text-inverse);
  overflow: hidden;
}

@media (min-width: 900px) {
  .auth-page__visual {
    min-height: 100vh;
    min-height: 100dvh;
  }
}

.auth-page__visual-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.auth-page__visual-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.82) 72%),
    rgba(0, 0, 0, 0.2);
}

.auth-page__visual-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: inherit;
  padding: clamp(5rem, 12vw, 7rem) clamp(1.5rem, 5vw, 4rem) clamp(2rem, 6vw, 4rem);
}

.auth-page__eyebrow {
  margin: 0 0 1rem;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-inverse-muted);
}

.auth-page__headline {
  margin: 0;
  max-width: 12ch;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.auth-page__lead {
  margin: 1.5rem 0 0;
  max-width: 36ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-inverse-muted);
}

.auth-page__benefits {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.auth-page__benefits li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.auth-page__benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.auth-page__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3rem);
}

.auth-page__panel-inner {
  width: min(100%, 420px);
}

.auth-page__panel-label {
  margin: 0 0 0.75rem;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.auth-page__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1;
}

.auth-page__subtitle {
  margin: 0.85rem 0 2rem;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.auth-tabs--luxury {
  gap: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.auth-tabs--luxury .auth-tabs__btn {
  flex: 0 0 auto;
  padding: 0 0 0.85rem;
  border: none;
  background: none;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.auth-tabs--luxury .auth-tabs__btn.is-active {
  background: none;
  color: var(--text);
  border-bottom-color: var(--text);
}

.auth-form--luxury {
  gap: 1.25rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.auth-field > span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.auth-form--luxury input:not([type="checkbox"]) {
  padding: 0.9rem 0;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  font-size: 15px;
}

.auth-form--luxury input:not([type="checkbox"]):focus {
  outline: none;
  border-bottom-color: var(--text);
}

.btn--luxury {
  width: 100%;
  margin-top: 0.5rem;
  padding: 1rem 1.5rem;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.page-account .auth-form__note,
.page-account .auth-resend {
  margin-top: 0.25rem;
}

@media (max-width: 899px) {
  .page-account .header--minimal .brand-mark,
  .page-account .auth-page__back {
    color: var(--text);
  }

  .page-account .auth-page__back {
    opacity: 0.7;
  }
}

/* ─── Member profile ─── */
.page-profile,
.page-member {
  background: var(--bg);
}

.page-profile .header--minimal,
.page-member .header--minimal {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.profile-page {
  min-height: calc(100vh - 72px);
  display: flex;
  justify-content: center;
  padding: 3rem 1.25rem 4rem;
}

.profile-page__shell {
  width: min(560px, 100%);
}

.profile-page__eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.profile-page__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.profile-page__lead {
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.profile-form__avatar-block {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.profile-form__avatar {
  flex-shrink: 0;
}

.profile-form__avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.profile-form__upload {
  cursor: pointer;
}

.profile-form__hint {
  margin: 0;
  font-size: 12px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text-dim);
  max-width: 16rem;
  line-height: 1.45;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.profile-field input,
.profile-field textarea {
  text-transform: none;
  letter-spacing: normal;
  font-size: 15px;
  color: var(--text);
  border: 1px solid var(--border);
  background: transparent;
  padding: 0.75rem 0.9rem;
  border-radius: 0;
  font-family: inherit;
  resize: vertical;
}

.profile-field__hint {
  font-size: 12px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--text-dim);
}

.profile-field--readonly .profile-field__value {
  text-transform: none;
  letter-spacing: normal;
  font-size: 15px;
  color: var(--text);
}

.profile-form__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.profile-form__status {
  font-size: 14px;
  color: var(--text-dim);
}

.profile-form__status.is-success {
  color: #2f6b3a;
}

.member-page__shell {
  width: min(935px, 100%);
}

.member-page__loading,
.member-page__empty {
  color: var(--text-dim);
  text-align: center;
  padding: 2rem 0;
}

.member-page__head {
  margin-bottom: 2.5rem;
}

.member-page__hero {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  flex-wrap: wrap;
}

.member-page__avatar {
  flex-shrink: 0;
}

.user-avatar--profile {
  width: clamp(88px, 18vw, 150px);
  height: clamp(88px, 18vw, 150px);
  font-size: clamp(2rem, 5vw, 3rem);
}

.member-page__identity {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: min(100%, 240px);
}

.member-page__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.member-page__stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  font-size: 14px;
  color: var(--text);
}

.member-page__stat strong {
  font-size: 14px;
  font-weight: 400;
}

.member-page__stat span {
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.member-page__name {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 400;
  line-height: 1.15;
}

.member-page__signature {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  max-width: 36rem;
}

.member-page__edit {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.member-page__posts {
  border-top: 1px solid var(--border);
}

.member-page__tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  border-bottom: 1px solid var(--border);
}

.member-page__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 0.25rem;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: none;
  border: none;
  border-top: 1px solid transparent;
  margin-top: -1px;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.member-page__tab:hover {
  color: var(--text);
}

.member-page__tab.is-active {
  color: var(--text);
  border-top-color: var(--text);
}

.member-page__tab-icon {
  font-size: 14px;
  line-height: 1;
}

.member-tab-panel {
  padding-top: 4px;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.member-grid__item {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  border: none;
  background: var(--border);
  cursor: pointer;
  overflow: hidden;
}

.member-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s var(--ease);
}

.member-grid__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: rgba(0, 0, 0, 0.45);
  color: var(--text-inverse);
  font-size: 14px;
  font-weight: 400;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.member-grid__item:hover img,
.member-grid__item:focus-visible img {
  transform: scale(1.03);
}

.member-grid__item:hover .member-grid__overlay,
.member-grid__item:focus-visible .member-grid__overlay {
  opacity: 1;
}

.member-grid__empty {
  text-align: center;
  color: var(--text-dim);
  padding: 3rem 1rem;
  font-size: 14px;
}

@media (max-width: 640px) {
  .member-page__hero {
    align-items: center;
  }

  .member-page__stats {
    gap: 1.25rem;
  }

  .member-tab-panel {
    padding-top: 2px;
  }

  .member-grid {
    gap: 2px;
  }
}

.user-avatar-link {
  display: inline-flex;
  border-radius: 50%;
  transition: opacity 0.2s var(--ease);
}

.user-avatar-link:hover {
  opacity: 0.82;
}

.author-name-link,
.comment__author.author-name-link,
.pin-card__author,
.pin-detail__author,
.pin-comment__author {
  color: inherit;
  text-decoration: none;
}

.author-name-link:hover,
.comment__author.author-name-link:hover,
.pin-card__author:hover,
.pin-detail__author:hover,
.pin-comment__author:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: var(--border);
  color: var(--text);
  font-weight: 400;
  object-fit: cover;
}

img.user-avatar {
  display: block;
}

.user-avatar--initial {
  line-height: 1;
}

.user-avatar--sm {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

.user-avatar--md {
  width: 44px;
  height: 44px;
  font-size: 16px;
}

.user-avatar--xl {
  width: 112px;
  height: 112px;
  font-size: 2.25rem;
}

.comment__avatar {
  overflow: hidden;
}

.comment__avatar .user-avatar {
  width: 40px;
  height: 40px;
  font-size: 14px;
}

.comment__author-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.comment__signature,
.pin-detail__signature,
.pin-comment__signature {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.pin-card__avatar,
.pin-detail__avatar,
.pin-comment__avatar {
  overflow: hidden;
  border-radius: 50%;
  flex-shrink: 0;
}

.pin-card__avatar .user-avatar,
.pin-detail__avatar .user-avatar,
.pin-comment__avatar .user-avatar {
  display: block;
}

.btn--sm {
  padding: 0.4rem 1rem;
  font-size: 11px;
}

/* ─── Post page ─── */
.page-post .header,
.page-admin .header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.post-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem clamp(1.5rem, 5vw, 3rem) 4rem;
}

.post-page__back {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.post-page__back:hover {
  color: var(--text);
}

.post__hero-img,
.post__video {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  margin: 0 auto 2rem;
}

.post-gallery {
  position: relative;
  margin-bottom: 2rem;
  outline: none;
}

.post-gallery__viewport {
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated, #111);
  cursor: pointer;
  user-select: none;
}

.post-gallery__track {
  display: flex;
  transition: transform 0.32s ease;
  will-change: transform;
  align-items: center;
}

.post-gallery__slide {
  flex: 0 0 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-gallery__slide img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  background: var(--bg-elevated, #111);
}

.post-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
}

.post-gallery__viewport:hover .post-gallery__nav,
.post-gallery__nav:focus-visible {
  opacity: 1;
}

.post-gallery__nav:hover {
  background: rgba(0, 0, 0, 0.65);
}

.post-gallery__nav--prev {
  left: 0.75rem;
}

.post-gallery__nav--next {
  right: 0.75rem;
}

.post-gallery__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 0 0;
}

.post-gallery__dots {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.post-gallery__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border-strong);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.post-gallery__dot.is-active {
  background: var(--text);
  transform: scale(1.25);
}

.post-gallery__counter {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .post-gallery__nav {
    opacity: 1;
    width: 1.85rem;
    height: 1.85rem;
    font-size: 1.1rem;
  }
}

.post__meta {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.post__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.post__type {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.post__type--exclusive {
  color: var(--text);
}

.post__dates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin: -0.75rem 0 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.post__date-sep {
  color: var(--border-strong);
}

.post--exclusive .post__title {
  font-size: clamp(2rem, 5vw, 3rem);
}

.post__content {
  line-height: 1.8;
  color: var(--text-muted);
}

.post__content p {
  margin-bottom: 1rem;
}

.post__content .post__figure,
.post__figure {
  margin: 2rem 0;
}

.post__content .post__figure img,
.post__figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── Comments ─── */
.comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-strong);
}

.comments__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.comments__hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.comments__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.comments__form textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  resize: vertical;
}

.comments__empty {
  color: var(--text-dim);
  font-size: 14px;
}

.comment {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.comment--reply {
  margin-left: 2.5rem;
  margin-top: 0.75rem;
}

.comment__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 400;
}

.comment__head {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.comment__author {
  font-weight: 400;
  font-size: 14px;
}

.comment__time {
  font-size: 12px;
  color: var(--text-dim);
}

.comment__body {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.comment__actions {
  display: flex;
  gap: 1rem;
  font-size: 12px;
}

.comment__like,
.comment__reply,
.comment__delete {
  color: var(--text-muted);
}

.comment__like.is-liked {
  color: var(--text);
}

.comment__reply-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.comment__reply-form.is-hidden {
  display: none;
}

.comment__reply-form input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
}

/* ─── Admin dashboard ─── */
.page-admin {
  background: var(--bg);
}

/* Hide gate + app until auth is checked — prevents flash on every admin page load */
.page-admin #admin-gate,
.page-admin #admin-app {
  display: none !important;
}

.page-admin.admin-auth-checked #admin-gate:not(.is-hidden) {
  display: flex !important;
}

.page-admin.admin-auth-checked #admin-app:not(.is-hidden) {
  display: grid !important;
}

.page-admin.admin-optimistic #admin-gate {
  display: none !important;
}

.page-admin.admin-optimistic #admin-app {
  display: grid !important;
}

html.admin-optimistic-early .page-admin #admin-gate {
  display: none !important;
}

html.admin-optimistic-early .page-admin #admin-app {
  display: grid !important;
}

.page-admin:not(.admin-auth-checked):not(.admin-optimistic)::after {
  display: none;
}

.admin-nav-loading .admin-main {
  pointer-events: none;
}

.admin-nav-loading .admin-topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--text), transparent);
  animation: admin-nav-progress 0.9s ease-in-out infinite;
}

@keyframes admin-nav-progress {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.admin-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.admin-gate__shell {
  display: grid;
  grid-template-columns: minmax(220px, 38%) 1fr;
  width: min(920px, 100%);
  min-height: min(520px, calc(100vh - 4rem));
  border: 1px solid var(--border-strong);
}

.admin-gate__brand {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding: clamp(2rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.admin-gate__brand .logo {
  color: var(--text-inverse);
}

.admin-gate__eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-inverse-muted);
}

.admin-gate__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--bg);
}

.admin-gate__panel h1 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.admin-gate__text {
  color: var(--text);
  line-height: 1.6;
  max-width: 36ch;
}

.admin-gate__hint {
  margin-top: 0.75rem;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 38ch;
}

.admin-gate__status {
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border-strong);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface-hover);
}

.admin-gate__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
}

.admin-gate__back {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.admin-gate__back:hover {
  color: var(--text);
}

@media (max-width: 720px) {
  .admin-gate__shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .admin-gate__brand {
    min-height: 180px;
  }
}

.admin-app {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

@media (max-width: 900px) {
  .admin-app {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(280px, 86vw);
    z-index: 120;
    transform: translateX(-100%);
    transition: transform 0.3s var(--ease);
    overflow-y: auto;
  }

  .admin-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.18);
  }

  .admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 110;
    border: none;
    background: rgba(0, 0, 0, 0.45);
  }

  .admin-sidebar-backdrop[hidden] {
    display: none !important;
  }
}

.admin-sidebar {
  background: var(--bg-dark);
  color: var(--text-inverse);
  border-right: 1px solid var(--border-strong);
  padding: 1.75rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.admin-sidebar__logo {
  margin-bottom: 0.35rem;
  color: var(--text-inverse);
}

.admin-sidebar__label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-inverse-muted);
  margin-bottom: 1.25rem;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.admin-nav__item {
  display: block;
  text-align: left;
  padding: 0.65rem 0.75rem;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-inverse-muted);
  border: 1px solid transparent;
  width: 100%;
  background: none;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.admin-nav__item:hover,
.admin-nav__item.is-active {
  color: var(--text-inverse);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.admin-sidebar__foot {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-sidebar__foot a,
.admin-sidebar__foot button {
  text-align: left;
  color: var(--text-inverse-muted);
}

.admin-sidebar__foot a:hover,
.admin-sidebar__foot button:hover {
  color: var(--text-inverse);
}

.admin-main {
  padding: 0;
  overflow-x: auto;
  background: var(--bg);
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid var(--border-strong);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 40;
}

.admin-topbar__menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-right: 0.25rem;
}

.admin-topbar__menu span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--text);
}

@media (max-width: 900px) {
  .admin-topbar__menu {
    display: flex;
  }
}

.admin-topbar__title {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 400;
}

.admin-topbar__user {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-panel {
  display: none;
  padding: clamp(1.5rem, 3vw, 2rem);
  max-width: 1200px;
}

.admin-panel.is-active {
  display: block;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-stat {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  padding: 1.25rem;
}

.admin-stat--wide {
  grid-column: span 2;
}

@media (max-width: 600px) {
  .admin-stat--wide {
    grid-column: span 1;
  }
}

.admin-stat__n {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.admin-stat__l {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.admin-stat__meta {
  font-size: 12px;
  color: var(--text-dim);
  display: block;
  margin-top: 0.5rem;
}

.admin-card {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.admin-card--flush {
  padding: 0;
  overflow: hidden;
}

.admin-card h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.admin-toolbar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.admin-toolbar input,
.admin-toolbar select {
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 14px;
  min-width: 180px;
}

.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-data-table th,
.admin-data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.admin-data-table th {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
  background: var(--bg);
  border-bottom: 1px solid var(--border-strong);
}

.admin-data-table tr:hover td {
  background: var(--surface-hover);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.admin-table th {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 400;
  border-bottom: 1px solid var(--border-strong);
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-strong);
}

.admin-actions {
  white-space: nowrap;
}

.admin-actions a,
.admin-actions button {
  margin-right: 0.75rem;
  font-size: 12px;
  color: var(--text-muted);
}

.admin-actions button.danger,
button.danger {
  color: var(--color-error);
}

.admin-table__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.admin-table__row small {
  color: var(--text-dim);
}

.text-dim {
  color: var(--text-dim);
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 640px;
}

.admin-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 500px) {
  .admin-form__grid {
    grid-template-columns: 1fr;
  }
}

.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  text-transform: none;
}

.admin-form__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.modal__panel--admin {
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  text-align: left;
}

.page-admin .header {
  display: none;
}

/* Legacy single-column admin (unused) */
.admin {
  max-width: 560px;
  margin: 0 auto;
  padding: 3rem clamp(1.5rem, 5vw, 3rem);
}

.admin__title {
  font-family: var(--serif);
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.admin__text,
.admin__denied {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.admin__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin__form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.admin__form input,
.admin__form select,
.admin__form textarea {
  padding: 0.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  text-transform: none;
}

.admin__check {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.admin__status {
  font-size: 13px;
  color: var(--text-muted);
}

.admin__list {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-strong);
}

.admin__list h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.admin-post {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.admin-post button {
  color: var(--color-error);
  font-size: 12px;
}

.is-hidden {
  display: none !important;
}

/* Upload page */
.admin-upload-page {
  max-width: 1100px;
}

.admin-upload-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 640px;
}

.admin-exclusive-list {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-strong);
}

.admin-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-panel__head h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.admin-upload-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .admin-upload-layout {
    grid-template-columns: 1fr;
  }
}

.admin-upload-preview {
  position: sticky;
  top: 5rem;
}

.admin-upload-preview h2 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.admin-upload-preview__card {
  border: 1px solid var(--border);
  background: var(--bg-alt);
  overflow: hidden;
}

.admin-upload-preview__img {
  aspect-ratio: 4/5;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 12px;
}

.admin-upload-preview__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-upload-preview__meta {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.75rem 1rem 0;
}

.admin-upload-preview__title {
  font-family: var(--serif);
  font-size: 1.25rem;
  padding: 0.25rem 1rem 0.5rem;
}

.admin-upload-preview__type {
  font-size: 11px;
  color: var(--text-dim);
  padding: 0 1rem 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-upload-drop__hint {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 0.35rem;
  text-transform: none;
  letter-spacing: 0;
}

.admin-upload-success {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  background: var(--surface-hover);
}

.admin-upload-success p {
  margin-bottom: 0.75rem;
}

.admin-upload-success .btn {
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}

.admin-body-images {
  margin-top: 0.65rem;
}

.admin-body-images__label {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.admin-body-images__preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.75rem 0 0.25rem;
}

.admin-body-images__thumb {
  margin: 0;
  width: 72px;
}

.admin-body-images__thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.admin-body-images__thumb figcaption {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 0.2rem;
}

.admin-body-images__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

.admin-body-images__upload {
  cursor: pointer;
  margin: 0;
}

.admin-body-images__url {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1;
  min-width: 200px;
}

.admin-body-images__url-input {
  flex: 1;
  min-width: 160px;
}

.admin-body-images__hint {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

#upload-video-wrap.is-hidden {
  display: none;
}

/* Comment moderation */
.admin-moderation-intro {
  margin-bottom: 1.5rem;
  max-width: 720px;
}

.admin-moderation-intro p {
  color: var(--text-muted);
  line-height: 1.6;
}

.admin-moderation-body {
  margin-bottom: 0.35rem;
  line-height: 1.5;
}

.admin-moderation-comment small {
  color: var(--text-dim);
  font-size: 11px;
}

.admin-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-right: 0.5rem;
}

.admin-community-grid {
  display: grid;
  gap: 1rem;
}

.admin-community-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--border);
  background: var(--bg);
}

.admin-community-card.is-hidden {
  opacity: 0.65;
}

.admin-community-card__img {
  width: 120px;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--border);
}

.admin-community-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-community-card__body p {
  margin: 0.25rem 0 0;
  color: var(--text-dim);
  font-size: 13px;
}

.admin-community-card__meta {
  font-size: 12px;
}

.admin-community-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.admin-community-card__delete {
  color: #8b2e2e;
}

@media (max-width: 720px) {
  .admin-community-card {
    grid-template-columns: 88px 1fr;
  }

  .admin-community-card__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

.btn--danger {
  color: var(--text-inverse);
  background: var(--bg-dark);
  border: 1px solid var(--bg-dark);
  padding: 0.4rem 0.75rem;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn--danger:hover {
  background: transparent;
  color: var(--text);
}

.btn--sm {
  padding: 0.35rem 0.65rem;
  font-size: 10px;
}

.comment__delete--mod {
  color: var(--color-error);
  font-weight: 400;
}

/* ─── Auth callback (email verification) ─── */
.auth-callback {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.auth-callback__main {
  max-width: 420px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
}

.auth-callback__label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.auth-callback__title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 300;
  margin-bottom: 1rem;
}

.auth-callback__text {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.auth-callback__btn {
  display: inline-block;
}

.register-complete__email {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 1.25rem;
  word-break: break-word;
}

.register-complete__email-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: min(100%, 22rem);
  margin: 0 auto 1.25rem;
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.register-complete__email-field input {
  text-transform: none;
  letter-spacing: normal;
  font-size: 15px;
  color: var(--text);
  border: 1px solid var(--border);
  background: transparent;
  padding: 0.75rem 0.9rem;
  font-family: inherit;
}

.register-complete__status {
  width: min(100%, 28rem);
  margin: 0 auto 1rem;
  font-size: 14px;
  line-height: 1.5;
}

.register-complete__status--success {
  color: #2f6b3a;
}

.register-complete__status--error {
  color: var(--text);
}

.register-complete__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: min(100%, 22rem);
  margin: 0 auto;
}

.register-complete__resend:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.register-complete__hint {
  margin-top: 1.25rem;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.page-static.auth-callback .header {
  position: sticky;
  top: 0;
  z-index: 10;
}

.page-static.auth-callback .auth-callback__main {
  min-height: calc(100vh - 72px);
  min-height: calc(100dvh - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.register-verified__hint {
  margin-bottom: 1.5rem;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 28rem;
}

.register-verified__status {
  margin-top: 1rem;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
}

/* ─── Static pages (About, Contact, etc.) ─── */
.page-static .header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.static-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem clamp(1.5rem, 5vw, 3rem) 5rem;
}

.static-page--legal {
  max-width: 640px;
}

.static-page__back {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.static-page__back:hover {
  color: var(--text);
}

.static-page__label {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.static-page__title {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.static-page__content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
}

.static-page__content .static-page__lead {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 2rem;
}

.static-page__content h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin: 2rem 0 1rem;
}

.static-page__content p {
  margin-bottom: 1rem;
}

.static-page__content ul {
  margin: 0 0 1.5rem 1.25rem;
}

.static-page__content li {
  margin-bottom: 0.5rem;
}

.static-page__content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.static-page__content a:hover {
  opacity: 0.8;
}

.static-page__cta {
  margin-top: 2.5rem;
}

.static-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-strong);
}

.static-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.static-form input,
.static-form textarea {
  padding: 0.85rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
}

.static-form__status {
  font-size: 14px;
  color: var(--text-muted);
}

/* ─── Browse pages (Magazine / Editorial / Articles) ─── */
.page-browse .header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.browse-page {
  padding-bottom: 4rem;
}

.browse-hero {
  text-align: center;
  padding: 2.5rem clamp(1.5rem, 5vw, 3rem) 2rem;
  border-bottom: 1px solid var(--border-strong);
  background: var(--bg);
}

.browse-hero__back {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.browse-hero__label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.browse-hero__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  margin-bottom: 1rem;
}

.browse-hero__text {
  max-width: 520px;
  margin: 0 auto;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 15px;
}

.browse-hero__text p {
  margin: 0;
}

.browse-hero__role {
  margin-top: 0.35rem;
  color: var(--text-dim);
  font-size: 14px;
  letter-spacing: 0.02em;
}

.stories-categories {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.stories-categories__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem clamp(1.5rem, 5vw, 3rem);
}

.stories-categories__link {
  display: inline-block;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.stories-categories__link:hover {
  color: var(--text-inverse);
  border-color: var(--text);
  background: var(--text);
}

.browse-grid .card__type {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.browse-hero--exclusive {
  background: var(--bg-elevated);
}

.browse-hero--film {
  background: var(--text);
  color: var(--text-inverse);
}

.browse-hero--film .browse-hero__back,
.browse-hero--film .browse-hero__label,
.browse-hero--film .browse-hero__text {
  color: var(--text-inverse-muted);
}

.browse-hero--film .browse-hero__back:hover,
.browse-hero--film .browse-hero__title {
  color: var(--text-inverse);
}

.browse-feed--film {
  background: var(--bg-alt);
}

.browse-feed {
  background: var(--bg);
}

.browse-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--section-pad) clamp(1.5rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2.5rem 1.5rem;
}

.browse-grid .card {
  flex: none;
  width: 100%;
  max-width: none;
}

.browse-grid__loading,
.browse-grid__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 1rem;
}

.section__head-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.section__view-all {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.section__view-all:hover {
  color: var(--text);
}

/* ─── Community page ─── */
.page-community .header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.community-page {
  padding-bottom: 4rem;
}

.community-hero {
  text-align: center;
  padding: 2.5rem clamp(1.5rem, 5vw, 3rem) 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.community-hero__back {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.community-hero__label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.community-hero__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  margin-bottom: 1rem;
}

.community-hero__text {
  max-width: 520px;
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 15px;
}

.community-hero__stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.community-feed {
  padding: 2rem clamp(1rem, 4vw, 2rem) 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.community-feed__grid {
  column-count: 2;
  column-gap: 1rem;
}

@media (min-width: 640px) {
  .community-feed__grid {
    column-count: 3;
  }
}

@media (min-width: 1024px) {
  .community-feed__grid {
    column-count: 4;
  }
}

.community-feed__loading,
.community-feed__empty {
  column-span: all;
  text-align: center;
  color: var(--text-muted);
  padding: 3rem;
}

.pin-card {
  break-inside: avoid;
  margin-bottom: 1rem;
  cursor: pointer;
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-alt);
}

.pin-card__img img {
  width: 100%;
  display: block;
  vertical-align: bottom;
}

.pin-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 55%);
  color: var(--text-inverse);
  opacity: 0;
  transition: opacity 0.25s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
}

.pin-card:hover .pin-card__overlay {
  opacity: 1;
}

.pin-card__title {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.pin-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  color: var(--text-inverse-muted);
}

.pin-card__avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

.pin-card__counts {
  margin-left: auto;
  opacity: 0.8;
}

.modal__panel--pin {
  max-width: min(1100px, 96vw);
  width: 100%;
  max-height: min(900px, 92vh);
  height: min(900px, 92vh);
  overflow: hidden;
  text-align: left;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.pin-modal__frame {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: min(calc(1100px + 7rem), 98vw);
  max-width: 98vw;
}

.pin-modal__frame .modal__panel--pin {
  flex: 1;
  min-width: 0;
  max-width: min(1100px, calc(98vw - 7rem));
}

.pin-detail {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.pin-detail__loading,
.pin-detail__error {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
  margin: auto;
}

.pin-detail__error {
  color: #8b2e2e;
}

.pin-detail__layout--ig {
  display: grid;
  grid-template-columns: 1fr;
  height: 100%;
  min-height: 0;
}

@media (min-width: 768px) {
  .pin-detail__layout--ig {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 400px);
  }
}

.pin-detail__media {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  max-height: min(900px, 92vh);
  position: relative;
}

.pin-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: none;
  color: #fff;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: opacity 0.15s ease;
}

.pin-modal__close:hover {
  opacity: 1;
}

.pin-modal__nav {
  flex-shrink: 0;
  position: relative;
  z-index: 5;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #262626;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.pin-modal__nav svg {
  pointer-events: none;
}

.pin-modal__nav:hover {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.pin-modal__nav[hidden] {
  display: none;
}

.pin-detail__slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #262626;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.15s ease;
}

.pin-detail__slide-nav:hover {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
}

.pin-detail__slide-nav--prev {
  left: 1rem;
}

.pin-detail__slide-nav--next {
  right: 1rem;
}

.pin-detail__carousel-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.pin-detail__carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.25s ease;
}

.pin-detail__slide {
  flex: 0 0 100%;
  margin: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-detail__dots {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  z-index: 3;
}

.pin-detail__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.pin-detail__dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

.pin-detail__media img {
  width: 100%;
  height: 100%;
  max-height: min(900px, 92vh);
  object-fit: contain;
  display: block;
}

.pin-detail__panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg);
  border-left: 1px solid var(--border);
}

.pin-detail__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.pin-detail__header-name {
  font-size: 14px;
  font-weight: 400;
}

.pin-detail__header-avatar .user-avatar {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.pin-detail__delete {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8b2e2e;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.pin-detail__moderation {
  display: flex;
  gap: 1rem;
  padding: 0.65rem 0 0.75rem;
  margin-bottom: 0.25rem;
  border-top: 1px solid var(--border);
}

.pin-detail__delete--mod {
  color: #8b2e2e;
}

.pin-detail__delete--own {
  color: var(--text-dim);
}

.pin-detail__scroll {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  min-height: 0;
}

.pin-detail__caption-row {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.pin-detail__caption-text {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 0.25rem;
}

.pin-detail__caption-text strong {
  font-weight: 400;
  margin-right: 0.35rem;
}

.pin-detail__comments-loading,
.pin-detail__comments-empty {
  font-size: 13px;
  color: var(--text-dim);
}

.pin-detail__footer {
  border-top: 1px solid var(--border);
  padding: 0.75rem 1rem 1rem;
  flex-shrink: 0;
}

.pin-detail__toolbar {
  display: flex;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

.pin-detail__action {
  font-size: 22px;
  line-height: 1;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  transition: opacity 0.15s ease;
}

.pin-detail__action:hover {
  opacity: 0.65;
}

.pin-detail__like.is-liked {
  color: #c0392b;
}

.pin-detail__likes {
  font-size: 14px;
  margin: 0 0 0.35rem;
}

.pin-detail__posted {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 0.75rem;
}

.pin-detail__comment-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.pin-detail__comment-form input {
  flex: 1;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  padding: 0.35rem 0;
  outline: none;
}

.pin-detail__post-btn {
  border: none;
  background: none;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.35rem 0;
}

.pin-detail__post-btn:not(:disabled):hover {
  color: var(--text);
}

@media (max-width: 767px) {
  .modal__panel--pin {
    height: auto;
    max-height: 94vh;
    overflow-y: auto;
  }

  .pin-modal__frame {
    width: 100%;
    gap: 0;
  }

  .pin-modal__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
  }

  .pin-modal__nav--prev {
    left: 0.5rem;
  }

  .pin-modal__nav--next {
    right: 0.5rem;
  }

  .pin-detail__panel {
    border-left: none;
    border-top: 1px solid var(--border);
    max-height: 50vh;
  }

  .pin-detail__media {
    max-height: 45vh;
  }

  .pin-detail__media img {
    max-height: 45vh;
  }
}

.pin-detail__img img {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  display: block;
}

.pin-detail__side {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pin-detail__author {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.pin-detail__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
}

.pin-detail__time,
.pin-comment__time {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
}

.pin-detail__title {
  font-family: var(--serif);
  font-size: 1.35rem;
}

.pin-detail__caption {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 14px;
}

.pin-detail__actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.pin-detail__like {
  font-size: 14px;
  color: var(--text-muted);
}

.pin-detail__like.is-liked {
  color: var(--text);
}

.pin-detail__comments h4 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.pin-detail__comments-list {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 0.75rem;
}

.pin-comment {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  font-size: 14px;
}

.pin-comment__body {
  flex: 1;
  min-width: 0;
}

.pin-comment__text {
  margin: 0;
  line-height: 1.45;
}

.pin-comment__text strong {
  font-weight: 400;
  margin-right: 0.35rem;
}

.pin-comment__avatar .user-avatar {
  width: 32px;
  height: 32px;
  font-size: 12px;
}
  font-size: 11px;
  flex-shrink: 0;
}

.pin-detail__comment-form {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.pin-detail__comment-form input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
}

.community-share-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.community-share-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.community-share-form input,
.community-share-form textarea {
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
}

.community-share-hint {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* ─── Submission page ─── */
.page-submission .header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.submission-page {
  padding-bottom: 4rem;
}

.submission-hero {
  text-align: center;
  padding: 2.5rem clamp(1.5rem, 5vw, 3rem) 2rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.submission-hero__back {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.submission-hero__label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.submission-hero__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  margin-bottom: 1rem;
}

.submission-hero__text {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 15px;
}

.submission-gate,
.submission-app {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--section-pad) clamp(1.5rem, 5vw, 3rem);
}

.submission-gate {
  text-align: center;
}

.submission-gate p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.submission-gate .btn {
  margin: 0 0.35rem;
}

.submission-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 600px) {
  .submission-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.submission-stat {
  padding: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  text-align: center;
}

.submission-stat__n {
  display: block;
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.2;
}

.submission-stat__l {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.submission-section__title {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.submission-section__hint {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.submission-form label {
  display: block;
  margin-bottom: 1.25rem;
}

.submission-form label > span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.submission-form input,
.submission-form select,
.submission-form textarea {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
}

.submission-file__hint {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

.submission-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.submission-gallery__preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.submission-gallery__thumb {
  margin: 0;
  width: 88px;
}

.submission-gallery__thumb img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.submission-gallery__thumb figcaption {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 0.25rem;
}

.submission-item__preview,
.submission-item__gallery-img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.submission-item__gallery {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin-bottom: 0.75rem;
  padding-bottom: 0.25rem;
}

.submission-item__gallery-img {
  width: 120px;
  min-width: 120px;
  max-height: 120px;
  margin-bottom: 0;
}

.submission-form__status {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 14px;
}

.submission-history {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-strong);
}

.submission-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.submission-list__loading,
.submission-list__empty {
  color: var(--text-muted);
  font-size: 14px;
}

.submission-item {
  padding: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.submission-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.submission-item__title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
}

.submission-item__badge {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.submission-item--published .submission-item__badge {
  color: var(--text);
  border-color: var(--text);
}

.submission-item--rejected .submission-item__badge {
  opacity: 0.65;
}

.submission-item__meta {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.submission-item__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.submission-item__actions {
  font-size: 13px;
}

.submission-item__actions a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.submission-item__note {
  margin-top: 0.75rem;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── Admin submissions ─── */
.admin-submissions-counts {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.admin-submissions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .admin-submissions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.admin-submission-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

@media (max-width: 600px) {
  .admin-submission-card {
    grid-template-columns: 1fr;
  }
}

.admin-submission-card__media {
  overflow: hidden;
  background: var(--bg);
  min-height: 100px;
}

.admin-submission-card__img,
.admin-submission-card__video {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  display: block;
}

.admin-submission-card__gallery {
  display: flex;
  gap: 4px;
  height: 100%;
  min-height: 120px;
}

.admin-submission-card__gallery-img {
  flex: 1;
  min-width: 0;
  height: 120px;
  object-fit: cover;
  display: block;
}

.admin-submission-card__file {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 1rem;
  font-size: 13px;
  text-align: center;
  word-break: break-all;
}

.admin-submission-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.admin-submission-card__head h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
}

.admin-submission-card__meta,
.admin-submission-card__date {
  font-size: 12px;
  color: var(--text-dim);
}

.admin-submission-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0.5rem 0;
}

.admin-submission-card__note {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

.admin-submission-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.75rem;
}

.admin-submission-card__actions a {
  font-size: 12px;
  text-decoration: underline;
}

.admin-publish-summary {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.admin-submissions-empty {
  color: var(--text-muted);
  padding: 2rem 0;
}

/* ─── Subscribe page ─── */
.page-subscribe .header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.subscribe-page {
  padding-bottom: 4rem;
}

.subscribe-hero {
  text-align: center;
  padding: 3rem clamp(1.5rem, 5vw, 3rem) 2.5rem;
  background: var(--text);
  color: var(--text-inverse);
}

.subscribe-hero__back {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-inverse-muted);
  margin-bottom: 1.5rem;
}

.subscribe-hero__back:hover {
  color: var(--text-inverse);
}

.subscribe-hero__label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-inverse-muted);
  margin-bottom: 0.75rem;
}

.subscribe-hero__title {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  max-width: 640px;
  margin: 0 auto 1.25rem;
}

.subscribe-hero__text {
  max-width: 480px;
  margin: 0 auto;
  color: var(--text-inverse-muted);
  line-height: 1.7;
  font-size: 15px;
}

.subscribe-perks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .subscribe-perks {
    grid-template-columns: repeat(3, 1fr);
  }
}

.subscribe-perk {
  padding: 2rem clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

@media (min-width: 768px) {
  .subscribe-perk {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }

  .subscribe-perk:last-child {
    border-right: none;
  }
}

.subscribe-perk__n {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.subscribe-perk__title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.65rem;
}

.subscribe-perk__text {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 14px;
}

.subscribe-signup {
  padding: calc(var(--section-pad) * 1.25) clamp(1.5rem, 5vw, 3rem);
  text-align: center;
}

.subscribe-signup__inner {
  max-width: 520px;
  margin: 0 auto;
}

.subscribe-signup__title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.subscribe-form__field {
  flex: 1 1 240px;
  min-width: 200px;
}

.subscribe-form input {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
}

.subscribe-form input::placeholder {
  color: var(--text-dim);
}

.subscribe-form input:focus {
  outline: none;
  border-color: var(--text-muted);
}

.subscribe-form__status {
  min-height: 1.25rem;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.subscribe-form__status--error {
  color: var(--color-error);
}

.subscribe-signup__note {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}

.subscribe-signup__note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

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