:root {
  --bg: #f3ede3;
  --bg-deep: #ebe3d6;
  --bg-panel: #fffbf6;
  --text: #1b1612;
  --text-soft: #3f372f;
  --text-muted: #6b6258;
  --ember: #b44a2e;
  --ember-deep: #8c3420;
  --cyan: #b44a2e;
  --cyan-glow: rgba(180, 74, 46, 0.42);
  --leaf: #3f5c4e;
  --gold: #9a6b3c;
  --line: rgba(27, 22, 18, 0.12);
  --font: "Manrope", "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --nav-h: 88px;
  --max: 1120px;
  --radius: 18px;
  --ease: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 18px 40px rgba(27, 22, 18, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--ember);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* -------------------------------------------------------------------------- */
/* Header                                                                     */
/* -------------------------------------------------------------------------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.1rem var(--pad) 0.85rem;
  transition: background var(--ease), box-shadow var(--ease), backdrop-filter var(--ease);
}

.header--scrolled,
.is-page .header {
  background: rgba(243, 237, 227, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 28px rgba(27, 22, 18, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  gap: 1.25rem;
}

.nav__brand {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
}

.nav__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: clamp(0.95rem, 2.2vw, 2.1rem);
}

.nav__link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  padding-bottom: 0.4rem;
  letter-spacing: 0.01em;
  transition: color var(--ease);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--text);
}

.nav__link--active {
  color: var(--text);
}

.nav__link--active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--ember);
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 44px;
  padding: 0 1.05rem 0 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 251, 246, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 0.9rem;
  font-weight: 500;
  flex-shrink: 0;
  transition: background var(--ease), border-color var(--ease);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  position: relative;
}

.notify {
  position: relative;
}

.notify-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 251, 246, 0.7);
}

.notify-bell {
  font-size: 1.05rem;
  line-height: 1;
}

.notify-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--ember);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
}

.notify-panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  z-index: 120;
  width: min(22rem, calc(100vw - 2rem));
  max-height: min(70vh, 24rem);
  overflow: auto;
  padding: 0.7rem 0 0.5rem;
  border-radius: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.notify-panel[hidden] {
  display: none;
}

.notify-panel__title {
  padding: 0.2rem 1.1rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
}

.notify-empty {
  padding: 0.4rem 1.1rem 0.8rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.notify-list {
  list-style: none;
}

.notify-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
  padding: 0.75rem 1.1rem;
  text-align: left;
  background: transparent;
  color: inherit;
  border: 0;
  text-decoration: none;
  cursor: pointer;
}

.notify-item:hover,
.notify-item:focus-visible {
  background: rgba(180, 74, 46, 0.06);
}

.notify-item.is-unread {
  background: rgba(180, 74, 46, 0.08);
}

.notify-item__type {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.notify-item__title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}

.notify-item__date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.announce-video {
  margin-top: 1rem;
  max-width: 100%;
}

.announce-video video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  background: #1b1612;
}

.menu-btn:hover,
.menu-btn:focus-visible {
  background: #fff;
  border-color: rgba(27, 22, 18, 0.22);
}

.menu-btn__divider {
  width: 1px;
  height: 14px;
  background: rgba(27, 22, 18, 0.2);
}

.menu-btn__dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.menu-btn__dots::before,
.menu-btn__dots::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.mobile-menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: var(--pad);
  min-width: 230px;
  padding: 0.7rem 0;
  border-radius: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__link {
  display: block;
  padding: 0.75rem 1.4rem;
  color: var(--text-soft);
  font-weight: 500;
}

.mobile-menu__link:hover,
.mobile-menu__link--active {
  color: var(--ember);
  background: rgba(180, 74, 46, 0.06);
}

/* -------------------------------------------------------------------------- */
/* Hero — typography and atmosphere, no photographic background               */
/* -------------------------------------------------------------------------- */

.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 88% 12%, rgba(180, 74, 46, 0.16), transparent 58%),
    radial-gradient(ellipse 50% 45% at 8% 88%, rgba(63, 92, 78, 0.14), transparent 55%),
    linear-gradient(165deg, #f7f2ea 0%, #eee4d6 48%, #e7dccb 100%);
}

.hero__aura,
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__aura::before {
  content: "";
  position: absolute;
  right: clamp(-4rem, 8vw, 6rem);
  top: 18%;
  width: min(38vw, 28rem);
  height: min(38vw, 28rem);
  border: 1px solid rgba(180, 74, 46, 0.22);
  border-radius: 50%;
}

.hero__aura::after {
  content: "";
  position: absolute;
  right: clamp(-1rem, 12vw, 10rem);
  top: 26%;
  width: min(26vw, 18rem);
  height: min(26vw, 18rem);
  border: 1px solid rgba(154, 107, 60, 0.28);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(180, 74, 46, 0.12), transparent 68%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(40rem, calc(100% - 2 * var(--pad)));
  margin-left: clamp(1.5rem, 8vw, 8rem);
  margin-top: 4.5rem;
  padding-bottom: 3rem;
}

.logo {
  display: flex;
  align-items: baseline;
  margin-bottom: 1.35rem;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 8vw, 6.2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 0.92;
  color: var(--text);
}

.logo__a {
  position: relative;
  display: inline-block;
}

.logo__leaf {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 0.3em;
  height: 0.4em;
  transform: translate(-50%, -42%) rotate(-18deg);
  pointer-events: none;
}

.logo__quote {
  font-weight: 600;
  margin-left: 0.02em;
  color: var(--ember);
}

.hero__title {
  margin-bottom: 1.35rem;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero__paragraph {
  margin-bottom: 1rem;
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-soft);
  max-width: 36rem;
}

.hero__closing {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 600;
  font-style: italic;
  color: var(--ember-deep);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.85rem;
}

.hero__actions .btn-site {
  margin-top: 0;
}

/* -------------------------------------------------------------------------- */
/* Shared sections                                                            */
/* -------------------------------------------------------------------------- */

.section {
  position: relative;
  padding: clamp(4.5rem, 9vw, 7.5rem) var(--pad);
  background:
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(180, 74, 46, 0.05), transparent 55%),
    var(--bg);
}

.section::before {
  content: "";
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180, 74, 46, 0.28), transparent);
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
}

.section__heading {
  max-width: 18em;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 4vw, 3.1rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.section__lead {
  max-width: 46rem;
  margin-bottom: 2.75rem;
  font-size: 1.08rem;
  color: var(--text-soft);
  line-height: 1.75;
}

/* -------------------------------------------------------------------------- */
/* About                                                                      */
/* -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.about-panel {
  padding: 1.85rem 1.7rem;
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about-panel h2,
.about-panel h3 {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--gold);
}

.about-panel p {
  color: var(--text-soft);
}

.values-title {
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.value-card {
  padding: 1.7rem 1.45rem 1.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-panel);
}

.value-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  color: var(--ember);
}

.value-card__icon svg {
  width: 32px;
  height: 32px;
}

.value-card h3,
.value-card h4 {
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* -------------------------------------------------------------------------- */
/* Services                                                                   */
/* -------------------------------------------------------------------------- */

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.service-card {
  padding: 2.1rem 1.9rem 2rem;
  border-radius: 22px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.service-card__visual {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.2rem;
  border-radius: 18px;
  color: var(--ember);
  background: rgba(180, 74, 46, 0.08);
  border: 1px solid rgba(180, 74, 46, 0.18);
}

.service-card__visual svg {
  width: 36px;
  height: 36px;
}

.service-card h2,
.service-card h3 {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
}

.service-card p {
  margin-bottom: 1.35rem;
  color: var(--text-soft);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ember);
}

.text-link::after {
  content: "→";
  transition: transform var(--ease);
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* -------------------------------------------------------------------------- */
/* Library                                                                    */
/* -------------------------------------------------------------------------- */

.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.book-card {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-panel);
  box-shadow: var(--shadow);
}

.book-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  padding: 0.85rem;
  background: #2a221c;
}

.book-cover img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.book-card__cover {
  display: grid;
  place-items: center;
  height: 168px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #f6f0e6;
}

.book-card__cover--1 {
  background:
    radial-gradient(circle at 70% 20%, rgba(180, 74, 46, 0.4), transparent 42%),
    linear-gradient(160deg, #3a2a22, #1b1612);
}

.book-card__cover--2 {
  background:
    radial-gradient(circle at 30% 80%, rgba(154, 107, 60, 0.35), transparent 45%),
    linear-gradient(160deg, #2e3a32, #1b1612);
}

.book-card__cover--3 {
  background:
    radial-gradient(circle at 80% 70%, rgba(63, 92, 78, 0.38), transparent 46%),
    linear-gradient(160deg, #2a3228, #1b1612);
}

.book-card__body {
  padding: 1.3rem 1.25rem 1.45rem;
}

.book-card__meta {
  margin-bottom: 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.book-card h3 {
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1.35;
}

.book-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* -------------------------------------------------------------------------- */
/* Blog                                                                       */
/* -------------------------------------------------------------------------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.blog-card {
  padding: 0 0 1.55rem;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-panel);
  box-shadow: var(--shadow);
}

.blog-card__date {
  margin: 1.15rem 1.4rem 0.8rem;
  font-size: 0.8rem;
  color: var(--ember);
  letter-spacing: 0.04em;
}

.blog-card h3 {
  margin: 0 1.4rem 0.7rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.35;
}

.blog-card p {
  margin-left: 1.4rem;
  margin-right: 1.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* -------------------------------------------------------------------------- */
/* Annonces (legacy list layout, still styled)                                */
/* -------------------------------------------------------------------------- */

.news-list {
  display: grid;
  gap: 1rem;
}

.news-item {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.45rem 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg-panel);
}

.news-item time {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  padding-top: 0.2rem;
}

.news-item h2,
.news-item h3 {
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.28rem;
}

.news-item p {
  color: var(--text-muted);
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */

body.is-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

body.is-page main {
  flex: 1;
}

body.is-reading {
  --text: #f6f0e6;
  --text-soft: rgba(246, 240, 230, 0.86);
  --text-muted: rgba(246, 240, 230, 0.68);
  --line: rgba(246, 240, 230, 0.12);
  background: #1b1612;
}

body.is-reading main {
  padding: 0;
  width: 100%;
}

.page--empty {
  padding-top: 6.5rem;
}

.is-page .section {
  padding-top: clamp(6.5rem, 12vw, 8.5rem);
}

.footer {
  padding: 3rem var(--pad) 2.4rem;
  background: #1b1612;
  color: #f6f0e6;
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.footer__tagline {
  margin: 0.4rem 0 1.1rem;
  color: rgba(246, 240, 230, 0.78);
}

.footer__copy {
  font-size: 0.82rem;
  color: rgba(246, 240, 230, 0.55);
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */

@media (min-width: 1600px) {
  :root {
    --max: 1200px;
  }

  .hero__content {
    width: min(44rem, 36vw);
  }
}

@media (min-width: 1281px) {
  .menu-btn {
    display: none;
  }
}

@media (max-width: 1280px) {
  .nav__links {
    display: none;
  }

  .hero__content {
    width: min(36rem, calc(100% - 2 * var(--pad)));
    margin-left: var(--pad);
    margin-right: var(--pad);
  }
}

@media (max-width: 1100px) {
  .about-grid,
  .values,
  .services,
  .library-grid,
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    align-items: flex-start;
    min-height: 100svh;
  }

  .hero__content {
    width: min(40rem, calc(100% - 2.3rem));
    margin: 6.2rem 1.15rem 2.8rem;
  }

  .hero__aura::before,
  .hero__aura::after {
    opacity: 0.55;
    right: -18%;
    top: auto;
    bottom: -8%;
  }

  .logo {
    font-size: clamp(3rem, 14vw, 3.6rem);
  }

  .about-grid,
  .values,
  .services,
  .library-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .section__heading {
    max-width: none;
  }

  .mobile-menu {
    left: 1.15rem;
    right: 1.15rem;
    min-width: 0;
  }

  .notify-panel {
    right: auto;
    left: 0;
    width: min(20.5rem, calc(100vw - 2rem));
  }

  .announce-video video {
    max-height: 70vh;
  }
}

@media (max-width: 480px) {
  .hero__content {
    width: min(40rem, calc(100% - 2.1rem));
    margin: 5.6rem 1.05rem 2.2rem;
    padding-bottom: 2rem;
  }

  .logo {
    font-size: 2.7rem;
    margin-bottom: 0.9rem;
  }

  .hero__title {
    max-width: none;
    margin-bottom: 0.95rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn-site {
    width: 100%;
    text-align: center;
    min-height: 44px;
  }

  .menu-btn {
    min-height: 44px;
    padding-inline: 0.95rem;
  }

  .section {
    padding-left: 1.05rem;
    padding-right: 1.05rem;
  }
}

@media (max-width: 360px) {
  .hero__content {
    width: min(40rem, calc(100% - 1.5rem));
    margin: 5.2rem 0.75rem 1.8rem;
  }

  .logo {
    font-size: 2.2rem;
  }

  .hero__title {
    font-size: 1.35rem;
  }

  .nav__brand {
    font-size: 1.2rem;
  }
}

@media (max-width: 320px) {
  .hero__content {
    margin: 4.9rem 0.65rem 1.5rem;
  }

  .logo {
    font-size: 1.95rem;
  }

  .btn-site,
  button.btn-site {
    padding: 0.72rem 1rem;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    align-items: flex-start;
  }

  .hero__content {
    margin-top: 4.6rem;
    padding-bottom: 1.6rem;
  }

  .logo {
    font-size: clamp(2.2rem, 8vh, 3rem);
    margin-bottom: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

.member-form label {
  display: block;
  margin: 0.8rem 0 0.35rem;
  font-size: 0.9rem;
}

.member-form input {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--text);
  font-family: inherit;
}

.member-form input:focus {
  outline: 2px solid rgba(180, 74, 46, 0.45);
  outline-offset: 1px;
}

.btn-site,
button.btn-site {
  display: inline-block;
  margin-top: 1.1rem;
  min-height: 44px;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  background: var(--ember);
  color: #fff;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--ease), transform var(--ease);
}

.btn-site:hover,
button.btn-site:hover {
  background: var(--ember-deep);
}

.btn-site-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-site-ghost:hover {
  background: rgba(27, 22, 18, 0.04);
}

.member-meta {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.member-meta a { color: var(--ember); }

.level-notice {
  margin-bottom: 2rem;
  padding: 1.4rem 1.3rem;
  border-radius: 20px;
  border: 1px solid rgba(180, 74, 46, 0.22);
  background: rgba(180, 74, 46, 0.08);
}

.level-notice h2 {
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.level-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.flash-public {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(63, 92, 78, 0.12);
}

.flash-public-error {
  background: rgba(180, 74, 46, 0.12);
}

.book-card__image {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.media-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.85rem 0 1rem;
  padding: 0.8rem;
  border-radius: 16px;
  background: #2a221c;
}

.media-frame--cover {
  width: 100%;
  min-height: 0;
  aspect-ratio: 3 / 4;
  padding: 8px;
  background: #2a221c;
}

.blog-card .media-frame--cover,
.news-item--rich .media-frame--announce {
  display: block;
  width: 100%;
  max-width: none;
  height: 300px;
  aspect-ratio: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: #2a221c;
  flex-shrink: 0;
}

.media-frame--hero { min-height: 220px; margin-bottom: 1.5rem; }

button.media-frame--announce {
  cursor: zoom-in;
  font: inherit;
  color: inherit;
}

.media-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}

.blog-card .media-frame--cover img,
.news-item--rich .media-frame--announce img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

.news-item--rich {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0 1.5rem;
  overflow: hidden;
  scroll-margin-top: 6rem;
}

.news-item--rich time {
  padding: 1.15rem 1.5rem 0.2rem;
}

.news-item--rich > div {
  padding: 0 1.5rem;
}

@media (max-width: 768px) {
  .news-item {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .news-item--rich {
    gap: 0;
  }

  .blog-card .media-frame--cover,
  .news-item--rich .media-frame--announce {
    height: min(56vw, 280px);
  }
}

.reader-app {
  width: 100%;
  min-height: 100svh;
  overflow-x: hidden;
  background: #1b1612;
}

.reader-app:fullscreen {
  overflow: auto;
  background: #1b1612;
}

.reader-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.75rem 1.1rem;
  background: rgba(27, 22, 18, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(246, 240, 230, 0.08);
}

.reader-top h1 {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
}

.reader-top a {
  color: var(--text-muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.reader-top a:hover { color: #f0c7b8; }

.reader-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  min-width: 0;
}

.reader-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
}

.reader-tool:hover {
  color: #fff;
  background: rgba(180, 74, 46, 0.28);
}

#reader-progress {
  min-width: 3.4rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: right;
}

.reader-status {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-muted);
}

.reader-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.6rem 0.8rem 4.5rem;
  overflow-x: hidden;
}

.reader-pages {
  width: min(780px, 100%);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.reader-sheet {
  width: 100%;
  min-height: 42vh;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border-radius: 2px;
  background: #101614;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 46px rgba(0, 0, 0, 0.32);
}

.reader-sheet.is-ready {
  min-height: 0;
}

.reader-sheet canvas {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .reader-top {
    flex-wrap: wrap;
    padding: 0.65rem 0.75rem;
  }

  .reader-top h1 {
    order: -1;
    flex-basis: 100%;
    font-size: 0.8rem;
  }

  .reader-pages { width: 100%; }
  .reader-sheet { margin-bottom: 0.85rem; }
}

.article-body {
  color: var(--text-soft);
  line-height: 1.8;
  font-size: 1.05rem;
}

.blog-card h2,
.book-card h2 {
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1.35;
}

.blog-card h2 {
  margin-left: 1.4rem;
  margin-right: 1.4rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  background: rgba(27, 22, 18, 0.94);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__viewport {
  flex: 1;
  min-height: 0;
  overflow: auto;
  cursor: grab;
  touch-action: none;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.lightbox__viewport.is-dragging {
  cursor: grabbing;
}

.lightbox__canvas {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__canvas img {
  display: block;
  flex: 0 0 auto;
  max-width: none;
  max-height: none;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  flex-shrink: 0;
  padding: 0.75rem 1rem 1rem;
}

.lightbox__tools button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(246, 240, 230, 0.2);
  background: rgba(27, 22, 18, 0.92);
  color: #f6f0e6;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  touch-action: manipulation;
}

.lightbox__tools button:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 2px;
}

body.lightbox-open {
  overflow: hidden;
}
