:root {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: #120b04;
  background-color: #f2ead9;
  --tan: #f2ead9;
  --deep-forest: #03160a;
  --sand: #d7b88b;
  --emerald: #2ef5a9;
  --lime: #c7f4c8;
  --urgent: #a00415;
  --panel: rgba(3, 22, 10, 0.92);
  --border: rgba(3, 22, 10, 0.25);
  --text-muted: rgba(18, 11, 4, 0.7);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.42), transparent 42%),
    radial-gradient(circle at 80% 26%, rgba(215, 184, 139, 0.26), transparent 46%),
    linear-gradient(180deg, #efe5d0 0%, #e4cfaa 100%);
  min-height: 100vh;
}

.announcement-bar {
  font-family: 'Archivo Narrow', 'Segoe UI', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 0.9rem clamp(1rem, 3vw, 3rem);
  background: linear-gradient(120deg, #d7b88b, #f7ead3);
  border-bottom: 3px solid var(--deep-forest);
  color: var(--deep-forest);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}
.announcement-bar__logo {
  width: 240px;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.45));
}
.announcement-bar__logo--property {
  width: 220px;
}
.announcement-bar__copy {
  text-align: center;
  color: var(--deep-forest);
}
.announcement-bar__copy strong {
  display: block;
  font-size: 0.95rem;
}
.announcement-bar__copy span {
  display: block;
  font-size: 0.75rem;
}
.primary-nav {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex: 1;
  font-size: 0.85rem;
}
.primary-nav a {
  color: var(--deep-forest);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.2rem;
  transition: border-color 0.2s ease;
}
.primary-nav a:hover {
  border-color: var(--urgent);
}

.hero {
  position: relative;
  margin: 2rem;
  border-radius: 36px;
  overflow: hidden;
  border: 2px solid var(--deep-forest);
  min-height: 540px;
  display: flex;
  align-items: stretch;
  box-shadow: 0 30px 60px rgba(3, 22, 10, 0.3);
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(3, 22, 10, 0.72), rgba(3, 22, 10, 0.34) 45%, rgba(3, 22, 10, 0.72));
  z-index: 1;
  pointer-events: none;
}
.hero__slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero__slide--active {
  opacity: 1;
}
.hero__slide-caption {
  display: none;
}
.hero__info {
  position: relative;
  z-index: 2;
  margin: 1.5rem;
  max-width: min(600px, calc(100% - 3rem));
  padding: 2.35rem;
  background: linear-gradient(180deg, rgba(246, 236, 211, 0.496), rgba(227, 204, 164, 0.448));
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hero__title {
  margin: 0;
  font-family: 'Special Elite', 'Courier New', serif;
  font-size: clamp(3.25rem, 6vw, 5rem);
  letter-spacing: 0.1rem;
  color: var(--urgent);
}
.hero__desc {
  color: var(--deep-forest);
  line-height: 1.6;
  max-width: 52ch;
  font-size: 1.05rem;
}
.hero__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}
.hero__metrics div {
  padding: 1rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(3, 22, 10, 0.2);
  text-align: center;
}
.hero__metrics span {
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  color: var(--emerald);
}
.hero__metrics p {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}
.hero__actions--stacked {
  flex-direction: column;
}
.hero__badge {
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 2px solid var(--emerald);
  color: var(--emerald);
  font-size: 0.85rem;
}
.hero__property {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  border-radius: 1.2rem;
  background: #fff;
  border: 1px solid rgba(3, 22, 10, 0.15);
}
.hero__property img {
  width: 210px;
  border-radius: 50%;
  background: #fff;
  padding: 0.5rem;
}
.hero__property small {
  color: var(--text-muted);
}
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  font-weight: 700;
  font-size: 0.78rem;
  color: #09572f;
}
.cta {
  font-family: 'Archivo Narrow', 'Segoe UI', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.4rem;
  border-radius: 999px;
  background: var(--emerald);
  color: #021106;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cta--secondary {
  background: transparent;
  color: #fff;
  border: 2px solid var(--sand);
}
.cta--earth {
  background: transparent;
  color: var(--deep-forest);
  border: 2px solid var(--deep-forest);
}
.cta--ghost {
  background: transparent;
  color: var(--deep-forest);
  border: 2px solid rgba(3, 22, 10, 0.45);
}
.cta--small {
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.03rem;
}

.philosophy-cta {
  margin: 2rem;
  padding: 2rem;
  border-radius: 28px;
  background: linear-gradient(135deg, #04130b, #0f341c);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 2px solid var(--emerald);
  color: #fff;
}
.philosophy-cta h2 {
  margin: 0.3rem 0 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-family: 'Bebas Neue', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(46, 245, 169, 0.4);
}

main {
  padding: 0 2rem 4rem;
}
.section {
  margin-top: 3rem;
}
.section__header h2 {
  margin-bottom: 0.5rem;
  font-size: 2rem;
  font-family: 'Special Elite', 'Courier New', serif;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
}
.section__header p {
  color: var(--text-muted);
  max-width: 60ch;
}
.phase-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.phase-grid article,
.budget-grid article {
  background: rgba(3, 22, 10, 0.85);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 1.4rem;
  padding: 1.75rem;
  box-shadow: 0 18px 35px rgba(3, 22, 10, 0.18);
}
.phase-grid h3,
.budget-grid h3 {
  margin-top: 0;
  font-size: 1.2rem;
}
.highlight {
  color: var(--sand);
  font-weight: 600;
  margin-top: 0.9rem;
}
.budget {
  margin-top: 4rem;
}
.budget-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.budget-summary {
  background: linear-gradient(160deg, rgba(46, 245, 169, 0.18), rgba(3, 22, 10, 0.95));
  border: 2px solid var(--deep-forest);
}
.section.management {
  text-align: center;
}
.management p {
  color: var(--deep-forest);
  max-width: 65ch;
  line-height: 1.6;
  margin: 0 auto;
}
.form-section {
  margin-top: 3rem;
  background: #1f2b1d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2.5rem;
}
.form-section .section__header h2,
.form-section .section__header p {
  color: #fff;
}
.contact-form {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}
.contact-form input,
.contact-form textarea {
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
}
.contact-form textarea {
  resize: vertical;
  grid-column: 1 / -1;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--emerald);
  outline: none;
}
.full-width {
  grid-column: 1 / -1;
}
footer {
  padding: 2rem;
  text-align: center;
  color: var(--deep-forest);
  font-weight: 500;
  border-top: 2px solid var(--deep-forest);
  margin-top: 3rem;
}
@media (max-width: 720px) {
  .hero {
    margin: 1rem;
    border-radius: 24px;
    min-height: auto;
  }
  .hero__info {
    margin: 1rem;
    max-width: calc(100% - 2rem);
    padding: 1.9rem;
  }
  .announcement-bar {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

.pitfalls-teaser {
  margin: 2rem;
  padding: 2rem;
  border-radius: 28px;
  background: linear-gradient(135deg, #021006, #04301c);
  border: 2px solid var(--emerald);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.pitfalls-teaser h2 {
  margin: 0.3rem 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: 0.1rem;
}
.pitfalls-teaser p {
  margin: 0;
  max-width: 52ch;
}
.pitfalls-page {
  min-height: 100vh;
  background: #f1ead8;
}
.pitfalls-hero {
  margin: 2rem;
  border-radius: 32px;
  padding: 3rem;
  border: 2px solid var(--deep-forest);
  background: linear-gradient(135deg, #f9f5ec, #f0e3c4);
  box-shadow: 0 24px 45px rgba(3, 22, 10, 0.25);
}
.pitfalls-hero h1 {
  margin: 0.2rem 0;
  font-family: 'Special Elite', 'Courier New', serif;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  color: var(--urgent);
}
.pitfalls-hero p {
  max-width: 60ch;
  line-height: 1.6;
  color: var(--deep-forest);
}
.pitfalls-hero__actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.pitfall-list {
  margin: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.pitfall-card {
  border-radius: 24px;
  padding: 1.75rem;
  background: #fff7ef;
  border: 2px solid rgba(3, 22, 10, 0.18);
  box-shadow: 0 16px 32px rgba(3, 22, 10, 0.2);
}
.pitfall-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
  letter-spacing: 0.05rem;
}
.pitfall-card p {
  line-height: 1.5;
  margin: 0.65rem 0;
}
.pitfall-card strong {
  color: var(--deep-forest);
}
.pitfall-card .pitfall-highlight {
  color: #034d24;
  font-weight: 600;
}
.pitfalls-support {
  margin: 2rem 2rem 4rem;
  padding: 2rem;
  border-radius: 26px;
  background: rgba(3, 22, 10, 0.9);
  color: #fff;
  border: 2px solid var(--emerald);
}
.pitfalls-support h2 {
  margin-top: 0;
  font-size: 1.6rem;
}
.pitfalls-support p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}
.pitfalls-support strong {
  color: var(--sand);
}

.restoration-plan {
  margin-top: 3rem;
}
.plan-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}
.plan-card {
  padding: 1.8rem;
  border-radius: 1.5rem;
  background: #fff;
  border: 2px solid rgba(3, 22, 10, 0.18);
  box-shadow: 0 20px 40px rgba(3, 22, 10, 0.12);
}
.plan-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
  letter-spacing: 0.05rem;
}
.plan-card__amount {
  font-size: 1.05rem;
  margin: 0.2rem 0 0.9rem;
  font-weight: 700;
  color: #0c3b1d;
}
.plan-card ul {
  padding-left: 1.15rem;
  margin: 0.5rem 0 0;
  color: var(--text-muted);
  line-height: 1.5;
}
.plan-summary {
  margin-top: 2.5rem;
  padding: 1.8rem;
  border-radius: 1.4rem;
  background: rgba(3, 22, 10, 0.85);
  color: #fff;
  border: 2px solid var(--emerald);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.plan-summary p {
  margin: 0;
}
.plan-summary__total {
  font-size: 1.1rem;
  color: var(--sand);
  margin-top: 0.4rem;
  width: 100%;
  text-align: right;
}
.contact-cta {
  background: radial-gradient(circle farthest-side, rgba(46, 245, 169, 0.3), rgba(3, 22, 10, 0));
  padding: 1.5rem 0;
  text-align: center;
}
.contact-cta .cta--secondary {
  background: var(--emerald);
  color: #04120a;
  border: none;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.25);
}

.memories-teaser {
  margin: 2rem;
  padding: 2rem;
  border-radius: 28px;
  background: linear-gradient(130deg, #f8f3e8, #edd8b2);
  border: 2px solid rgba(3, 22, 10, 0.35);
  color: var(--deep-forest);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.memories-teaser h2 {
  margin: 0.3rem 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: 0.1rem;
}
.memories-teaser p {
  margin: 0;
  max-width: 52ch;
}
.memories-page {
  min-height: 100vh;
  background: #f1ead8;
}
.memories-hero {
  margin: 2rem;
  border-radius: 32px;
  padding: 3rem;
  border: 2px solid var(--deep-forest);
  background: linear-gradient(135deg, #f9f5ec, #f0e3c4);
  box-shadow: 0 24px 45px rgba(3, 22, 10, 0.2);
}
.memories-hero h1 {
  margin: 0.3rem 0;
  font-family: 'Bebas Neue', 'Franklin Gothic', sans-serif;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  color: var(--urgent);
}
.memories-hero p {
  margin: 0;
  max-width: 62ch;
  line-height: 1.6;
  color: var(--deep-forest);
}
.memories-hero__nav-link {
  background: transparent;
  border: 2px solid var(--deep-forest);
  color: var(--deep-forest);
  padding-inline: 1.4rem;
}
.memories-layout {
  margin: 0 2rem 3rem;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
}
.memories-upload {
  border-radius: 24px;
  background: rgba(3, 22, 10, 0.9);
  color: #fff;
  padding: 1.6rem;
  border: 2px solid var(--emerald);
  position: sticky;
  top: 1.2rem;
}
.memories-upload h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.35rem;
}
.memories-upload h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
}
.memory-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.memory-form label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}
.memory-form input,
.memory-form textarea {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.75rem;
  padding: 0.8rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.memory-form textarea {
  resize: vertical;
}
.upload-status {
  min-height: 1.2rem;
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
}
.upload-status--info {
  color: #cde9d6;
}
.upload-status--success {
  color: #7fffbb;
}
.upload-status--error {
  color: #ffd2d2;
}
.moderation-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1100;
  border: 1px solid rgba(3, 22, 10, 0.35);
  background: rgba(255, 255, 255, 0.9);
  color: #102014;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04rem;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(3, 22, 10, 0.18);
}
.moderation-fab:hover {
  background: #fff;
}
.moderation-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
}
.moderation-modal[hidden],
.memory-lightbox[hidden] {
  display: none !important;
}
.moderation-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.moderation-modal__panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 430px);
  border-radius: 18px;
  background: rgba(3, 22, 10, 0.96);
  border: 2px solid var(--emerald);
  color: #fff;
  padding: 1rem 1rem 1.1rem;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.45);
}
.moderation-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  border: none;
  border-radius: 999px;
  width: 2rem;
  height: 2rem;
  background: rgba(255, 255, 255, 0.9);
  color: #04120a;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.moderation-modal__panel h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
}
.moderation-modal__panel p {
  margin: 0.55rem 0 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.86rem;
  line-height: 1.45;
}
.moderation-modal-open {
  overflow: hidden;
}
.memories-moderation__controls {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
}
.memories-moderation__controls input {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.memories-moderation__controls .cta--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.memories-moderation__toggle {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.85);
}
.admin-status {
  min-height: 1rem;
  margin-top: 0.55rem;
  font-size: 0.84rem;
}
.admin-status--info {
  color: rgba(255, 255, 255, 0.8);
}
.admin-status--success {
  color: #7fffbb;
}
.admin-status--error {
  color: #ffd2d2;
}
.memories-gallery {
  border-radius: 24px;
  border: 2px solid rgba(3, 22, 10, 0.2);
  background: #fff7e9;
  padding: 1.5rem;
}
.memories-gallery__header h2 {
  margin: 0;
  font-size: 1.6rem;
}
.memories-gallery__header p {
  margin: 0.3rem 0 1rem;
  color: var(--text-muted);
}
.memories-toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.7rem;
  align-items: end;
  margin-bottom: 0.7rem;
}
.memories-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  color: #2d1c10;
  font-size: 0.82rem;
  font-weight: 600;
}
.memories-toolbar input {
  border: 1px solid rgba(3, 22, 10, 0.25);
  border-radius: 0.65rem;
  background: #fff;
  padding: 0.55rem 0.65rem;
  color: #1c1209;
  font-family: inherit;
}
.memories-toolbar__actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.gallery-status {
  margin: 0 0 0.9rem;
  font-size: 0.86rem;
  min-height: 1rem;
}
.gallery-status--info {
  color: #4d3b2d;
}
.gallery-status--success {
  color: #14542d;
}
.gallery-status--error {
  color: var(--urgent);
}
.memories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}
.memories-grid__placeholder {
  margin: 0;
  color: var(--deep-forest);
}
.memories-grid__placeholder--error {
  color: var(--urgent);
}
.memories-sentinel {
  width: 100%;
  height: 12px;
}
.memories-load-more {
  margin-top: 1rem;
}
.memory-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(3, 22, 10, 0.18);
  background: #fff;
  box-shadow: 0 16px 28px rgba(3, 22, 10, 0.12);
}
.memory-card--hidden {
  opacity: 0.72;
  border-color: rgba(160, 4, 21, 0.38);
}
.memory-card__button {
  border: none;
  padding: 0;
  display: block;
  width: 100%;
  background: #d7b88b;
  cursor: zoom-in;
  position: relative;
}
.memory-card__button::after {
  content: 'Expand';
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}
.memory-card__button:focus-visible {
  outline: 3px solid #27d893;
  outline-offset: -3px;
}
.memory-card img {
  display: block;
  width: 100%;
  height: 185px;
  object-fit: cover;
}
.memory-card__body {
  padding: 0.85rem;
}
.memory-card__description {
  margin: 0;
  color: #24180c;
  line-height: 1.4;
}
.memory-card__meta {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.memory-card__uploader {
  margin: 0;
  color: #3e2b1d;
  font-size: 0.82rem;
  font-weight: 600;
}
.memory-card__status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03rem;
}
.memory-card__status--pending {
  background: rgba(160, 4, 21, 0.12);
  color: #7d1120;
}
.memory-card__status--approved {
  background: rgba(15, 104, 59, 0.15);
  color: #0a4a27;
}
.memory-card__time {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.memory-card__actions {
  margin-top: 0.65rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.memory-action {
  border: 1px solid rgba(3, 22, 10, 0.2);
  background: #fef7ec;
  color: #1f140b;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02rem;
  padding: 0.32rem 0.62rem;
  cursor: pointer;
}
.memory-action--moderate {
  border-color: rgba(15, 103, 58, 0.5);
}
.memory-action--danger {
  border-color: rgba(160, 4, 21, 0.45);
  color: #7a0b16;
}
.memory-lightbox-open {
  overflow: hidden;
}
.memory-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
}
.memory-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(5px);
}
.memory-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(98vw, 1400px);
  max-height: 100vh;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem;
}
.memory-lightbox__close {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 2.6rem;
  height: 2.6rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #03160a;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.memory-lightbox__close:hover {
  background: #fff;
}
.memory-lightbox__nav {
  width: 2.6rem;
  height: 2.6rem;
  border: none;
  border-radius: 999px;
  font-size: 1.8rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.92);
  color: #03160a;
  cursor: pointer;
}
.memory-lightbox__figure {
  margin: 0;
  width: min(94vw, 1280px);
  max-height: calc(100vh - 2rem);
  background: #121212;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
}
.memory-lightbox__figure img {
  display: block;
  width: auto;
  max-width: min(94vw, 1280px);
  max-height: calc(100vh - 10.5rem);
  margin: 0 auto;
  object-fit: contain;
  background: #000;
}
.memory-lightbox__figure figcaption {
  padding: 0.9rem 1rem 1rem;
  background: #fff;
}
.memory-lightbox__figure p {
  margin: 0;
  color: #1d1208;
  line-height: 1.45;
}
.memory-lightbox__figure time {
  display: block;
  margin-top: 0.45rem;
  color: #665344;
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .pitfalls-teaser,
  .memories-teaser {
    margin: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .memories-hero {
    margin: 1rem;
    padding: 2rem;
  }
  .memories-layout {
    margin: 0 1rem 2rem;
    grid-template-columns: 1fr;
  }
  .memories-upload {
    position: static;
  }
  .memories-moderation__controls {
    grid-template-columns: 1fr;
  }
  .moderation-fab {
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.4rem 0.65rem;
  }
  .moderation-modal__panel {
    width: min(95vw, 420px);
    padding-top: 1.2rem;
  }
  .memories-toolbar {
    grid-template-columns: 1fr;
  }
  .memories-toolbar__actions {
    justify-content: flex-start;
  }
  .memory-lightbox__panel {
    width: 100vw;
    max-height: 100vh;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.5rem;
  }
  .memory-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }
  .memory-lightbox__nav--prev {
    left: 0.65rem;
  }
  .memory-lightbox__nav--next {
    right: 0.65rem;
  }
  .memory-lightbox__figure {
    border-radius: 12px;
    width: 100%;
  }
  .memory-lightbox__figure img {
    max-width: 100%;
    max-height: calc(100vh - 11.5rem);
  }
  .memory-lightbox__close {
    top: 0.65rem;
    right: 0.65rem;
    z-index: 3;
  }
}

/* Memories polish */
.memories-page {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.45), transparent 40%),
    radial-gradient(circle at 82% 28%, rgba(215, 184, 139, 0.3), transparent 45%),
    linear-gradient(180deg, #eee3cd 0%, #e5d2ae 100%);
  color: #1d140b;
}
.memories-page .announcement-bar__copy strong,
.memories-page .announcement-bar__copy span {
  font-family: 'Archivo Narrow', 'Segoe UI', sans-serif;
}
.memories-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) minmax(220px, 280px);
  grid-template-areas: 'art content actions';
  align-items: start;
  justify-content: space-between;
  gap: clamp(1rem, 2.4vw, 2rem);
  padding: 3.75rem 3rem;
  border: 3px double rgba(3, 22, 10, 0.5);
  background:
    linear-gradient(135deg, rgba(250, 243, 231, 0.97), rgba(240, 224, 191, 0.97)),
    repeating-linear-gradient(0deg, rgba(120, 94, 68, 0.045) 0, rgba(120, 94, 68, 0.045) 1px, transparent 1px, transparent 22px);
}
.memories-hero::after {
  content: '';
  position: absolute;
  right: -54px;
  top: -54px;
  width: 170px;
  height: 170px;
  border: 3px solid rgba(160, 4, 21, 0.45);
  border-radius: 50%;
  opacity: 0.45;
  transform: rotate(-14deg);
}
.memories-hero__content {
  grid-area: content;
  max-width: 62ch;
  justify-self: stretch;
  align-self: start;
  position: relative;
  z-index: 1;
}
.memories-hero__time-art {
  grid-area: art;
  margin: 0;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 220px;
  justify-self: center;
  align-self: start;
  margin-top: 0.35rem;
}
.memories-hero__time-art img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(43, 27, 16, 0.24));
}
.memories-hero h1 {
  font-family: 'Special Elite', 'Courier New', serif;
  letter-spacing: 0.06rem;
  color: #7a0c1c;
  margin: 0.25rem 0 0.65rem;
}
.memories-hero p {
  font-size: 1.15rem;
  color: #2a1d11;
}
.memories-hero__actions {
  grid-area: actions;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
  align-self: end;
  justify-self: stretch;
  width: min(100%, 260px);
  position: relative;
  z-index: 1;
}
.memories-hero__actions .cta {
  width: 100%;
}
.memories-hero__jump-link {
  width: 100%;
  border-color: rgba(3, 22, 10, 0.42);
  color: #1f140a;
  background: rgba(255, 251, 240, 0.78);
}
.memories-hero__upload-button {
  background: linear-gradient(145deg, #0f4f2f, #082c19);
  color: #f6f0df;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 14px 24px rgba(7, 36, 22, 0.38);
  font-family: 'Archivo Narrow', 'Segoe UI', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.07rem;
}
.memories-layout {
  margin: 0 2rem 3rem;
  display: block;
}
.memories-gallery {
  position: relative;
  border: 3px solid rgba(3, 22, 10, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 249, 235, 0.95), rgba(255, 242, 218, 0.95)),
    repeating-linear-gradient(0deg, rgba(90, 70, 45, 0.035) 0, rgba(90, 70, 45, 0.035) 1px, transparent 1px, transparent 18px);
  box-shadow: 0 22px 44px rgba(67, 43, 24, 0.24);
}
.memories-gallery__header h2 {
  font-family: 'Special Elite', 'Courier New', serif;
  color: #6d0f1f;
  letter-spacing: 0.04rem;
}
.personal-galleries {
  margin-top: 1.3rem;
  border-radius: 24px;
  border: 3px solid rgba(3, 22, 10, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 247, 231, 0.95), rgba(255, 238, 209, 0.95)),
    repeating-linear-gradient(0deg, rgba(88, 63, 41, 0.03) 0, rgba(88, 63, 41, 0.03) 1px, transparent 1px, transparent 16px);
  padding: 1.35rem;
  box-shadow: 0 20px 38px rgba(67, 43, 24, 0.2);
}
.personal-galleries__header h2 {
  margin: 0;
  font-family: 'Special Elite', 'Courier New', serif;
  color: #6d0f1f;
  letter-spacing: 0.04rem;
}
.personal-galleries__header p {
  margin: 0.35rem 0 1rem;
  color: #3f2f20;
}
.personal-galleries__list {
  display: grid;
  gap: 1rem;
}
.personal-gallery {
  border: 2px solid rgba(70, 48, 31, 0.3);
  border-radius: 16px;
  padding: 0.9rem;
  background: rgba(255, 254, 248, 0.92);
}
.personal-gallery__header {
  margin-bottom: 0.65rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.personal-gallery__header h3 {
  margin: 0;
  color: #24160d;
  letter-spacing: 0.03rem;
}
.personal-gallery__header p {
  margin: 0;
  font-family: 'Archivo Narrow', 'Segoe UI', sans-serif;
  color: #5a4939;
  font-size: 0.9rem;
}
.personal-gallery__description {
  margin: 0 0 0.7rem;
  color: #2f2115;
  line-height: 1.35;
}
.personal-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}
.personal-gallery__item {
  margin: 0;
}
.personal-gallery__button {
  padding: 0;
  display: block;
  width: 100%;
  border: 1px solid rgba(70, 48, 31, 0.26);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
}
.personal-gallery__button:focus-visible {
  outline: 3px solid #27d893;
  outline-offset: 1px;
}
.personal-gallery__item img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
}
.personal-gallery__item figcaption {
  margin-top: 0.25rem;
  font-size: 0.76rem;
  color: #5c4736;
  line-height: 1.2;
  word-break: break-word;
}
.memories-toolbar label {
  font-family: 'Archivo Narrow', 'Segoe UI', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04rem;
}
.gallery-status {
  font-family: 'Archivo Narrow', 'Segoe UI', sans-serif;
}
.memory-card {
  position: relative;
  border: 1px solid rgba(70, 48, 31, 0.38);
  box-shadow: 0 16px 22px rgba(61, 42, 24, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.memories-grid .memory-card:nth-child(odd) {
  transform: rotate(-0.8deg);
}
.memories-grid .memory-card:nth-child(even) {
  transform: rotate(0.6deg);
}
.memory-card:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 0 22px 28px rgba(61, 42, 24, 0.32);
}
.memory-card::before,
.memory-card::after {
  content: '';
  position: absolute;
  top: 9px;
  width: 28px;
  height: 10px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(100, 100, 100, 0.25);
  transform: rotate(-8deg);
  z-index: 2;
}
.memory-card::before {
  left: 10px;
}
.memory-card::after {
  right: 10px;
  transform: rotate(8deg);
}
.memory-card__button::after {
  content: 'View Full';
  font-family: 'Archivo Narrow', 'Segoe UI', sans-serif;
}
.memory-card__status {
  font-family: 'Archivo Narrow', 'Segoe UI', sans-serif;
}
.memory-card__description {
  font-size: 1.03rem;
}
.memory-card__uploader,
.memory-card__time {
  font-family: 'Archivo Narrow', 'Segoe UI', sans-serif;
}
.memory-action {
  font-family: 'Archivo Narrow', 'Segoe UI', sans-serif;
  text-transform: uppercase;
}
.moderation-fab {
  font-family: 'Archivo Narrow', 'Segoe UI', sans-serif;
  background: rgba(255, 250, 238, 0.86);
}
.upload-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
}
.upload-modal[hidden] {
  display: none !important;
}
.upload-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}
.upload-modal__panel {
  position: relative;
  z-index: 1;
  width: min(94vw, 540px);
  border-radius: 20px;
  border: 3px solid rgba(216, 195, 153, 0.75);
  background:
    linear-gradient(150deg, rgba(14, 40, 24, 0.96), rgba(6, 23, 13, 0.96)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 16px);
  color: #fff;
  padding: 1.2rem 1.2rem 1.35rem;
  box-shadow: 0 26px 44px rgba(0, 0, 0, 0.5);
}
.upload-modal__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  border: none;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #03160a;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}
.upload-modal__panel h2 {
  margin: 0.1rem 0 0.2rem;
  font-family: 'Special Elite', 'Courier New', serif;
  color: #fff3d5;
}
.upload-modal__panel p {
  margin: 0 0 0.9rem;
  color: rgba(255, 255, 255, 0.84);
}
.upload-modal-open {
  overflow: hidden;
}
.memory-lightbox__figure {
  border: 2px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}
.memory-lightbox__figure figcaption {
  background: linear-gradient(180deg, #fff, #f8f0df);
}
.memory-lightbox__figure p {
  font-size: 1.05rem;
}
.memory-lightbox__panel--personal {
  grid-template-columns: minmax(0, 1fr);
}

/* Nostalgia polish for index and pitfalls pages */
.hero,
.pitfalls-hero {
  background:
    linear-gradient(135deg, rgba(250, 243, 231, 0.97), rgba(237, 219, 185, 0.97)),
    repeating-linear-gradient(0deg, rgba(100, 78, 54, 0.035) 0, rgba(100, 78, 54, 0.035) 1px, transparent 1px, transparent 20px);
  border: 3px double rgba(3, 22, 10, 0.5);
}
.hero__info {
  background:
    linear-gradient(180deg, rgba(249, 241, 224, 0.48), rgba(232, 211, 173, 0.432)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.192), transparent 48%);
}
.plan-card,
.pitfall-card {
  position: relative;
  background:
    linear-gradient(180deg, #fffdf9, #fff3dc),
    repeating-linear-gradient(0deg, rgba(90, 65, 41, 0.03) 0, rgba(90, 65, 41, 0.03) 1px, transparent 1px, transparent 18px);
}
.plan-card::before,
.pitfall-card::before {
  content: '';
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 11px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(100, 100, 100, 0.25);
  transform: rotate(8deg);
}
.plan-card h3,
.pitfall-card h3 {
  font-family: 'Special Elite', 'Courier New', serif;
}
.plan-summary,
.pitfalls-support {
  border-style: double;
  border-width: 3px;
}
footer {
  font-family: 'Archivo Narrow', 'Segoe UI', sans-serif;
  letter-spacing: 0.03rem;
}

@media (max-width: 860px) {
  .memories-layout {
    margin: 0 1rem 2rem;
  }
  .memories-gallery {
    padding: 1rem;
  }
  .memories-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      'content'
      'art'
      'actions';
    align-items: start;
    padding: 2.5rem 2rem;
  }
  .memories-hero__content,
  .memories-hero__time-art,
  .memories-hero__actions {
    grid-area: auto;
  }
  .memories-hero__time-art {
    max-width: 180px;
    justify-self: start;
  }
  .memories-hero__jump-link {
    width: 100%;
  }
  .memories-hero__upload-button {
    width: 100%;
  }
  .personal-galleries {
    padding: 1rem;
  }
  .personal-gallery__grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  .memory-card,
  .memories-grid .memory-card:nth-child(odd),
  .memories-grid .memory-card:nth-child(even) {
    transform: none;
  }
  .memory-card::before,
  .memory-card::after {
    display: none;
  }
  .upload-modal__panel {
    width: min(96vw, 520px);
    padding-top: 1.45rem;
  }
  .moderation-fab {
    right: 0.7rem;
    bottom: 0.7rem;
  }
}
