:root {
  --ink: #211d1a;
  --muted: #71675f;
  --paper: #fbf7f1;
  --soft: #eee2d4;
  --rose: #a85c58;
  --wine: #6f3136;
  --gold: #b89052;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(77, 45, 35, 0.16);
  --soft-shadow: 0 16px 38px rgba(63, 39, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  align-items: center;
  background: rgba(255, 250, 244, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(127, 54, 59, 0.12);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
}

.brand-logo {
  background: #f1e7da;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(33, 29, 26, 0.18);
  filter: invert(1) contrast(1.08);
  height: 46px;
  object-fit: cover;
  padding: 4px;
  width: 46px;
}

.brand strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.site-nav a {
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  padding: 10px 13px;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--wine);
  color: var(--white);
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 42px;
  padding: 8px;
  width: 42px;
}

.nav-toggle span {
  background: var(--ink);
  display: block;
  height: 2px;
  margin: 6px 0;
  width: 100%;
}

.hero {
  align-items: end;
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  padding: 120px clamp(20px, 6vw, 84px) 70px;
  position: relative;
}

.hero-media {
  inset: 0;
  position: absolute;
  z-index: 0;
}

.hero-media::after {
  background: linear-gradient(90deg, rgba(35, 20, 18, 0.76), rgba(35, 20, 18, 0.42) 50%, rgba(35, 20, 18, 0.16));
  content: "";
  inset: 0;
  position: absolute;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-content {
  color: var(--white);
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.closing h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 0.95;
  margin: 0;
}

.hero h1 {
  font-size: clamp(62px, 10vw, 132px);
  max-width: 760px;
}

.hero p:not(.eyebrow) {
  font-size: clamp(18px, 2.2vw, 24px);
  max-width: 620px;
}

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

.button {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  min-height: 48px;
  padding: 12px 22px;
}

.button.primary {
  background: var(--white);
  color: var(--wine);
}

.button.secondary {
  color: var(--white);
}

.intro,
.timeline,
.gallery,
.closing {
  padding: clamp(70px, 9vw, 120px) clamp(20px, 6vw, 84px);
}

.intro {
  background: var(--white);
}

.story-layout {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 70px);
  grid-template-columns: 0.6fr 1.2fr;
}

.story-layout img {
  box-shadow: var(--shadow);
  height: min(74vh, 720px);
  object-fit: cover;
  width: 100%;
}

.quote-panel {
  max-width: 980px;
}

blockquote {
  border-left: 6px solid var(--gold);
  margin: 0;
  padding: 10px 0 10px clamp(24px, 5vw, 56px);
}

blockquote p {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
  margin: 0 0 26px;
}

cite {
  color: var(--wine);
  font-style: normal;
  font-weight: 800;
}

.section-heading {
  margin-bottom: 36px;
  max-width: 760px;
}

.section-heading h2,
.closing h2 {
  font-size: clamp(44px, 6vw, 82px);
}

.section-heading p,
.closing p {
  color: var(--muted);
  font-size: 18px;
}

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

.timeline-grid article {
  background: var(--white);
  border: 1px solid rgba(127, 54, 59, 0.1);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(77, 45, 35, 0.08);
  min-height: 230px;
  padding: 28px;
}

.timeline-grid span {
  color: var(--gold);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 36px;
  font-weight: 700;
}

.timeline-grid h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  line-height: 1;
  margin: 18px 0 12px;
}

.timeline-grid p {
  color: var(--muted);
  margin: 0;
}

.gallery {
  background: #2b2220;
  color: var(--white);
}

.album-first {
  background: var(--paper);
  color: var(--ink);
}

.gallery .section-heading p {
  color: var(--muted);
}

.photo-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.15fr 0.7fr;
}

.album-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.album-stats {
  color: var(--muted);
  font-weight: 800;
}

.album-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.album-filter {
  background: var(--white);
  border: 1px solid rgba(127, 54, 59, 0.16);
  color: var(--wine);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 12px;
}

.album-filter.is-active,
.album-filter:hover {
  background: var(--wine);
  color: var(--white);
}

.album-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.photo-card {
  background: #211816;
  border: 0;
  color: var(--white);
  cursor: zoom-in;
  display: block;
  font: inherit;
  margin: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
}

.photo-card img {
  aspect-ratio: 4 / 3;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 500ms ease;
  width: 100%;
}

.photo-card:hover img {
  transform: scale(1.035);
}

.photo-card span {
  background: rgba(34, 24, 22, 0.72);
  bottom: 14px;
  color: var(--white);
  font-weight: 800;
  left: 14px;
  padding: 8px 12px;
  position: absolute;
}

.photo-card-wide {
  grid-row: span 2;
}

.photo-card-wide img {
  min-height: 520px;
}

.photo-card-tall img {
  aspect-ratio: 3 / 4;
}

.upload-note {
  align-content: center;
  background: var(--white);
  border: 1px solid rgba(127, 54, 59, 0.1);
  box-shadow: 0 14px 36px rgba(77, 45, 35, 0.08);
  color: var(--ink);
  display: grid;
  min-height: 260px;
  padding: 34px;
}

.upload-note span {
  color: var(--wine);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
}

.upload-note h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 42px;
  line-height: 1;
  margin: 12px 0;
}

.upload-note p {
  color: var(--muted);
  margin: 0;
}

.closing {
  background: var(--soft);
  text-align: center;
}

.closing p {
  margin-left: auto;
  margin-right: auto;
  max-width: 650px;
}

footer {
  align-items: center;
  background: var(--wine);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  padding: 26px clamp(20px, 6vw, 84px);
}

footer p {
  margin: 0;
}

footer a {
  font-weight: 800;
}

.inner-header {
  position: sticky;
}

.album-hero {
  min-height: 78vh;
}

.section-index,
.preview-strip,
.instagram-page,
.admin-shell {
  padding: clamp(70px, 9vw, 120px) clamp(20px, 6vw, 84px);
}

.section-cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.section-card {
  background: var(--white);
  border: 1px solid rgba(127, 54, 59, 0.1);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
  display: grid;
  gap: 10px;
  overflow: hidden;
}

.section-card img {
  aspect-ratio: 1 / 1;
  border-radius: 0 0 18px 18px;
  object-fit: cover;
  width: 100%;
}

.section-card span,
.section-card strong {
  padding: 0 16px;
}

.section-card span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-card strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  line-height: 1;
  padding-bottom: 18px;
}

.instagram-page {
  background: var(--paper);
  min-height: 100vh;
  padding-top: 110px;
}

.profile-band {
  align-items: center;
  border-bottom: 1px solid #dedede;
  display: grid;
  gap: 26px;
  grid-template-columns: auto 1fr auto;
  margin: 0 auto 24px;
  max-width: 1180px;
  padding-bottom: 28px;
}

.profile-mark {
  align-items: center;
  background: #f1e7da;
  border-radius: 50%;
  box-shadow: var(--soft-shadow);
  display: grid;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  height: 112px;
  justify-content: center;
  width: 112px;
}

.profile-mark img {
  border-radius: 50%;
  filter: invert(1) contrast(1.08);
  height: 100%;
  object-fit: cover;
  padding: 8px;
  width: 100%;
}

.profile-band h1,
.admin-hero h1,
.auth-panel h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  margin: 0;
}

.profile-band p {
  color: var(--muted);
  margin: 4px 0 0;
}

.story-row {
  display: flex;
  gap: 14px;
  margin: 0 auto 34px;
  max-width: 1180px;
  overflow-x: auto;
  padding: 4px 0 14px;
}

.story-chip {
  align-items: center;
  color: var(--ink);
  display: grid;
  flex: 0 0 104px;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.story-chip span {
  align-items: center;
  background: var(--white);
  border: 3px solid var(--gold);
  border-radius: 50%;
  display: grid;
  font-weight: 900;
  height: 72px;
  justify-content: center;
  width: 72px;
}

.story-chip.is-active span {
  background: var(--wine);
  color: var(--white);
}

.story-chip strong,
.story-chip small {
  font-size: 12px;
  line-height: 1.1;
}

.story-chip small {
  color: var(--muted);
}

.insta-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
}

.insta-grid.compact {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.insta-post {
  background: var(--white);
  border: 0;
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
  cursor: zoom-in;
  display: block;
  padding: 0;
  position: relative;
}

.insta-post img {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.empty-state {
  background: var(--white);
  margin: 0 auto;
  max-width: 720px;
  padding: 42px;
  text-align: center;
}

.admin-body {
  background: #f6f2ee;
}

.admin-header {
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid rgba(127, 54, 59, 0.12);
  display: flex;
  justify-content: space-between;
  padding: 16px clamp(20px, 6vw, 84px);
}

.admin-header nav {
  display: flex;
  gap: 16px;
  font-weight: 800;
}

.admin-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.admin-hero {
  margin-bottom: 24px;
}

.admin-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.admin-card,
.auth-panel {
  background: var(--white);
  border: 1px solid rgba(127, 54, 59, 0.1);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
  padding: 28px;
}

.admin-card h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 36px;
  line-height: 1;
  margin: 0 0 20px;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-form label {
  color: var(--muted);
  display: grid;
  font-weight: 800;
  gap: 8px;
}

.admin-form input,
.admin-form select {
  border: 1px solid rgba(127, 54, 59, 0.22);
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 10px 12px;
}

.button.dark,
.button.dark-outline {
  border-color: var(--wine);
}

.button.dark {
  background: var(--wine);
  color: var(--white);
}

.button.dark-outline {
  color: var(--wine);
}

.alert {
  background: #fff0f0;
  border: 1px solid #df9a9a;
  color: #7f2020;
  font-weight: 800;
  margin-bottom: 18px;
  padding: 12px 14px;
}

.alert.success {
  background: #eff9f1;
  border-color: #8ec995;
  color: #27622f;
}

.section-table {
  display: grid;
  gap: 8px;
}

.section-table a {
  align-items: center;
  background: #faf7f4;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  padding: 12px 14px;
}

.auth-panel {
  margin: 10vh auto;
  max-width: 460px;
}

.lightbox {
  align-items: center;
  background: rgba(24, 17, 16, 0.94);
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 24px;
  position: fixed;
  z-index: 50;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  max-height: 82vh;
  max-width: min(1100px, 94vw);
  object-fit: contain;
}

.lightbox p {
  color: var(--white);
  font-weight: 800;
  margin: 14px 0 0;
  text-align: center;
}

.lightbox-close {
  background: var(--white);
  border: 0;
  color: var(--wine);
  cursor: pointer;
  font-size: 34px;
  height: 46px;
  position: absolute;
  right: 22px;
  top: 18px;
  width: 46px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    background: var(--paper);
    border-bottom: 1px solid rgba(127, 54, 59, 0.12);
    display: none;
    left: 0;
    padding: 12px 20px 18px;
    position: absolute;
    right: 0;
    top: 100%;
  }

  .site-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-grid,
  .photo-grid,
  .story-layout {
    grid-template-columns: 1fr;
  }

  .photo-card-wide {
    grid-row: auto;
  }

  .photo-card img {
    min-height: 320px;
  }

  .story-layout img {
    height: auto;
  }

  .profile-band,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .profile-mark {
    height: 88px;
    width: 88px;
  }
}

@media (max-width: 560px) {
  .brand strong {
    font-size: 21px;
  }

  .brand-logo {
    height: 40px;
    width: 40px;
  }

  .hero {
    min-height: 86vh;
    padding-top: 108px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .site-nav.is-open {
    grid-template-columns: 1fr;
  }

  blockquote p {
    font-size: 28px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .insta-grid {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
