:root {
  --bg: #ffffff;
  --bg-strong: #fcf8f9;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --text: #1f1a1c;
  --muted: #726569;
  --line: rgba(52, 31, 38, 0.09);
  --accent: #b54860;
  --accent-strong: #8f3248;
  --accent-soft: #f8e9ee;
  --soft: #f5eff1;
  --shadow: 0 20px 52px rgba(96, 45, 59, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Outfit", sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(circle at top right, rgba(181, 72, 96, 0.08), transparent 28%),
    radial-gradient(circle at top left, rgba(181, 72, 96, 0.05), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-strong) 100%);
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(52, 31, 38, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  line-height: 1;
}

.brand-mark,
.brand-text {
  position: static;
  overflow: visible;
  clip: auto;
  white-space: normal;
  border: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: transparent;
  background: center / contain no-repeat url("assets/lovv-heart-mark.svg");
  flex-shrink: 0;
}

.brand-text {
  display: inline-block;
  color: var(--accent);
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 0.9;
  text-transform: uppercase;
  transform: translateY(2px);
}

.nav-toggle-input,
.nav-toggle {
  display: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-nav a:hover,
.footer-links a:hover {
  color: var(--accent-strong);
}

.header-auth {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.header-auth .button,
.header-auth button {
  width: auto;
  padding: 10px 14px;
  box-shadow: none;
}

.header-auth .button:hover,
.header-auth button:hover {
  box-shadow: none;
}

.button,
button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 14px 30px rgba(143, 50, 72, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.button:hover,
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(143, 50, 72, 0.22);
}

.button-secondary,
.ghost-button,
.member-actions button:last-child {
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: none;
  border: 1px solid var(--line);
}

.button-secondary:hover,
.ghost-button:hover,
.member-actions button:last-child:hover {
  box-shadow: none;
}

.utility-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 16px;
}

.utility-pill,
.chip,
.meta-chip,
.tag-row span {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.utility-pill strong {
  color: var(--text);
  margin-left: 6px;
}

main {
  padding: 8px 0 60px;
}

.section,
.hero {
  padding: 22px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 1.04fr);
  gap: 42px;
  align-items: start;
}

.hero-copy h1,
.section-head h1,
.section-head h2,
.legal-card h1,
.legal-card h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.96;
}

.hero-copy h1 {
  font-size: clamp(3.7rem, 8.4vw, 6.2rem);
  max-width: 8ch;
}

.lead,
.section-head p,
.member-line,
.member-focus,
.story-body p,
.info-card p,
.event-body p,
.step-card p,
.standard-card p,
.note-box p,
.mini-note,
.footer p,
.legal-card p,
.legal-card li {
  color: var(--muted);
}

.lead {
  max-width: 42ch;
  margin: 18px 0 0;
  font-size: 1.08rem;
}

.eyebrow {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-note-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-note-row span {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--muted);
  font-size: 0.92rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.stat-card,
.surface,
.member-card,
.story-card,
.info-card,
.plan-card,
.event-card,
.step-card,
.standard-card,
.note-box,
.page-card,
.legal-card,
.panel,
.empty-box {
  background: var(--surface);
  border: 1px solid rgba(23, 33, 29, 0.06);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.stat-card,
.info-card,
.plan-card,
.step-card,
.standard-card,
.note-box,
.page-card,
.panel,
.empty-box {
  padding: 22px;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 8px;
}

.hero-visual {
  padding: 18px;
}

.hero-main-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  object-fit: cover;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.hero-mini-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  object-fit: cover;
}

.hero-home {
  padding-top: 34px;
}

.hero-portrait-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 154px;
  gap: 16px;
  padding: 18px;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 242, 244, 0.94)),
    radial-gradient(circle at top right, rgba(181, 72, 96, 0.12), transparent 40%);
  border: 1px solid rgba(52, 31, 38, 0.06);
  box-shadow: var(--shadow);
}

.portrait-tile {
  margin: 0;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(23, 33, 29, 0.06);
  background: #fff;
}

.portrait-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-tile.is-wide {
  grid-column: span 2;
  grid-row: span 2;
}

.portrait-tile.is-tall {
  grid-row: span 2;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.section-head h1,
.section-head h2 {
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  max-width: 11ch;
}

.chip-row,
.tag-row,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.strip-card {
  display: grid;
  gap: 6px;
  padding: 20px 22px;
  border-radius: 24px;
  border: 1px solid rgba(23, 33, 29, 0.06);
  background: linear-gradient(180deg, #ffffff, #fff8fa);
  box-shadow: var(--shadow);
}

.strip-card strong {
  font-size: 1.8rem;
  line-height: 1;
}

.strip-card span {
  color: var(--muted);
}

.member-grid,
.story-grid,
.plan-grid,
.event-grid,
.steps-grid,
.standards-grid,
.page-grid,
.info-grid,
.compare-grid,
.form-shell,
.field-grid {
  display: grid;
  gap: 18px;
}

.member-grid,
.story-grid,
.page-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.standards-grid,
.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compare-grid,
.form-shell {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.member-card,
.story-card,
.event-card {
  overflow: hidden;
}

.member-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.story-card img,
.event-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.member-body,
.story-body,
.event-body {
  padding: 18px;
}

.flyer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(280px, 0.66fr);
  gap: 18px;
  align-items: stretch;
}

.flyer-frame {
  margin: 0;
  padding: 18px;
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 233, 238, 0.95)),
    radial-gradient(circle at top right, rgba(181, 72, 96, 0.16), transparent 45%);
  border: 1px solid rgba(52, 31, 38, 0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.flyer-frame img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  object-fit: cover;
}

.flyer-notes {
  display: grid;
  align-content: start;
  gap: 12px;
}

.flyer-notes .flyer-note {
  margin: 0;
}

.flyer-notes .chip-row {
  margin-top: 4px;
}

.flyer-notes .button {
  width: fit-content;
}

.member-body h3,
.story-body h3,
.info-card h3,
.plan-card h3,
.event-body h3,
.step-card h3,
.standard-card h3,
.page-card h3,
.panel h3 {
  margin: 8px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem;
  line-height: 1;
}

.member-line,
.member-focus {
  margin: 8px 0 0;
}

.tag-row {
  margin-top: 14px;
}

.member-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.member-actions button {
  flex: 1;
}

.member-actions [data-save].is-active,
.plan-card.is-active {
  outline: 2px solid rgba(181, 72, 96, 0.24);
}

.plan-card ul,
.legal-card ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.plan-card button {
  margin-top: 18px;
}

.page-card {
  display: grid;
  gap: 10px;
}

.page-card p,
.step-card p,
.standard-card p,
.note-box p,
.panel p {
  margin: 8px 0 0;
}

.panel h3 {
  margin-top: 0;
}

.field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.field.full,
.panel .button,
.feedback {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(181, 72, 96, 0.38);
  box-shadow: 0 0 0 4px rgba(181, 72, 96, 0.1);
}

.feedback {
  display: none;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(181, 72, 96, 0.18);
  background: rgba(255, 255, 255, 0.8);
}

.feedback a,
.legal-card a {
  color: var(--accent-strong);
}

.feedback.is-visible {
  display: block;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-modal[hidden] {
  display: none;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 26, 28, 0.42);
  backdrop-filter: blur(14px);
}

.auth-panel {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  padding: 26px;
  border-radius: 30px;
  border: 1px solid rgba(52, 31, 38, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 243, 245, 0.98)),
    #fff;
  box-shadow: 0 36px 80px rgba(31, 26, 28, 0.18);
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: auto;
  padding: 8px 12px;
}

.auth-subtitle {
  margin: 12px 0 0;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.auth-form[hidden] {
  display: none;
}

.auth-switch {
  width: 100%;
  margin-top: 12px;
  padding: 0;
  border: 0;
  color: var(--accent-strong);
  background: transparent;
  box-shadow: none;
}

.auth-switch:hover {
  transform: none;
  box-shadow: none;
}

.field-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.field-toggle input {
  width: 20px;
  height: 20px;
}

.list-plain {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.list-plain li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.list-plain strong {
  font-size: 1rem;
}

.mini-note {
  margin-top: 14px;
  font-size: 0.94rem;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border-radius: 30px;
  border: 1px solid rgba(52, 31, 38, 0.06);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(250, 241, 244, 0.95)),
    radial-gradient(circle at top right, rgba(181, 72, 96, 0.1), transparent 34%);
  box-shadow: var(--shadow);
}

.cta-copy h2 {
  margin: 8px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 0.98;
}

.cta-copy .mini-note {
  margin-bottom: 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 48px;
  border-top: 1px solid rgba(52, 31, 38, 0.06);
  margin-top: 12px;
}

.footer p {
  max-width: 44ch;
  margin: 10px 0 0;
}

.legal-main {
  padding: 10px 0 60px;
}

.legal-card {
  padding: 30px;
}

.legal-card h1 {
  font-size: clamp(3rem, 8vw, 4.8rem);
  margin-bottom: 16px;
}

.legal-card h2 {
  font-size: 2rem;
  margin-top: 26px;
}

.credit-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.empty-box {
  color: var(--muted);
}

.account-shell,
.message-layout {
  display: grid;
  gap: 18px;
}

.account-shell {
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
}

.account-stack,
.thread-shell,
.thread-list,
.message-stream,
.thread-compose {
  display: grid;
  gap: 14px;
}

.status-pill-row,
.membership-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid rgba(181, 72, 96, 0.12);
  font-size: 0.9rem;
  font-weight: 600;
}

.message-layout {
  grid-template-columns: 320px minmax(0, 1fr);
}

.thread-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  text-align: left;
  box-shadow: none;
}

.thread-item:hover {
  box-shadow: none;
}

.thread-item.is-active {
  border-color: rgba(181, 72, 96, 0.22);
  background: rgba(248, 233, 238, 0.75);
}

.thread-meta,
.thread-preview {
  color: var(--muted);
  font-size: 0.92rem;
}

.thread-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.message-stream {
  min-height: 280px;
  max-height: 540px;
  overflow-y: auto;
  padding-right: 4px;
}

.bubble {
  max-width: min(460px, 88%);
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(52, 31, 38, 0.06);
}

.bubble.me {
  margin-left: auto;
  background: linear-gradient(180deg, rgba(248, 233, 238, 0.92), rgba(255, 255, 255, 0.98));
}

.bubble-meta {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(23, 33, 29, 0.92);
  color: #fff;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
  box-shadow: 0 22px 44px rgba(23, 33, 29, 0.32);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .hero,
  .compare-grid,
  .form-shell,
  .footer {
    grid-template-columns: 1fr;
  }

  .member-grid,
  .story-grid,
  .page-grid,
  .plan-grid,
  .event-grid,
  .flyer-layout,
  .steps-grid,
  .standards-grid,
  .info-grid,
  .home-strip,
  .message-layout,
  .account-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    row-gap: 14px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 11px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font-weight: 600;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .brand-text {
    font-size: 1.75rem;
    letter-spacing: 0.12em;
  }

  .site-nav {
    display: none;
    justify-content: flex-start;
  }

  .header-cta {
    display: none;
  }

  .header-auth {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .header-auth .button,
  .header-auth button {
    flex: 1;
  }

  .nav-toggle-input:checked ~ .site-nav {
    display: flex;
    flex-direction: column;
    grid-column: 1 / -1;
    gap: 14px;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(52, 31, 38, 0.08);
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-toggle-input:checked ~ .header-cta {
    display: inline-flex;
    grid-column: 1 / -1;
    width: 100%;
  }

  .hero,
  .member-grid,
  .story-grid,
  .page-grid,
  .plan-grid,
  .event-grid,
  .flyer-layout,
  .steps-grid,
  .standards-grid,
  .info-grid,
  .field-grid,
  .stat-grid,
  .home-strip,
  .message-layout,
  .account-shell {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .section-head h2 {
    max-width: none;
  }

  .hero-copy h1 {
    font-size: clamp(3.1rem, 17vw, 4.6rem);
  }

  .flyer-frame {
    padding: 14px;
    border-radius: 28px;
  }

  .flyer-frame img {
    border-radius: 22px;
  }

  .flyer-notes .button {
    width: 100%;
  }

  .member-actions,
  .footer-links {
    flex-direction: column;
  }

  .button,
  button {
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-portrait-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 132px;
    padding: 14px;
  }

  .portrait-tile.is-wide {
    grid-column: span 2;
  }

  .portrait-tile.is-tall {
    grid-row: span 1;
  }

  .surface,
  .member-card,
  .story-card,
  .info-card,
  .plan-card,
  .event-card,
  .step-card,
  .standard-card,
  .note-box,
  .page-card,
  .legal-card,
  .panel,
  .empty-box {
    border-radius: 24px;
  }

  .cta-panel {
    padding: 24px;
  }

  .footer {
    flex-direction: column;
  }
}
