/* LPS of Atlanta — shared styles. Colors, type and layout follow the approved mockups. */

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/playfair-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/playfair-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/playfair-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/playfair-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --burgundy: #5a0f1c;
  --burgundy-deep: #2a0710;
  --hero-shade: #28050c;
  --gold: #e8b04a;
  --cream: #fbe9c6;
  --bg: #fffaf2;
  --text: #2a1a14;
  --muted: #7a5a4a;
  --footer-text: #d9bfa8;
  --btn-text: #3a0a12;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(90, 15, 28, 0.1);
  --serif: "Playfair Display", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pad: 20px;
  --max: 1320px;
  --nav-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: 0;
  transform: translateY(-120%);
  z-index: 200;
  background: var(--gold);
  color: var(--btn-text);
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--burgundy);
  color: var(--cream);
  position: relative;
  z-index: 50;
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--pad);
  gap: 16px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--cream);
  min-width: 0;
}
.brand img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.brand-text b {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.3px;
  display: block;
  line-height: 1.15;
}
.brand-text small {
  display: none;
  font-size: 12px;
  opacity: 0.75;
  font-weight: 400;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.nav-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 10px 9px;
  cursor: pointer;
  margin-right: -4px;
  border-radius: 8px;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--cream);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle:checked + .nav-burger span:nth-child(2) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle:checked + .nav-burger span:nth-child(3) { opacity: 0; }
.nav-toggle:checked + .nav-burger span:nth-child(4) {
  transform: translateY(-7px) rotate(-45deg);
}
.nav-toggle:focus-visible + .nav-burger {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.nav-links {
  display: none;
  flex-direction: column;
  gap: 0;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--burgundy);
  padding: 8px var(--pad) 20px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  font-size: 16px;
}
.nav-toggle:checked ~ .nav-links { display: flex; }

.nav-links a {
  text-decoration: none;
  color: var(--cream);
  padding: 12px 0;
  border-bottom: 1px solid rgba(251, 233, 198, 0.12);
}
.nav-links a:last-child { border-bottom: 0; }
.nav-links a[aria-current="page"] { color: var(--gold); font-weight: 600; }
.nav-links .btn { margin-top: 8px; text-align: center; padding: 11px 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--btn-text);
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid var(--gold);
  line-height: 1.2;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: #f0c062; border-color: #f0c062; }
.btn.outline {
  background: transparent;
  border: 2px solid var(--cream);
  color: var(--cream);
}
.btn.outline:hover { background: rgba(251, 233, 198, 0.12); }
.btn-lg { font-size: 18px; padding: 16px 32px; }

a:focus-visible,
.btn:focus-visible,
.nav-burger:focus-visible,
.gallery-grid a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 520px;
  height: 70vh;
  max-height: 640px;
  background: var(--hero-shade) url("../images/photos/05.jpg") 30% center / cover no-repeat;
  color: #fff;
  display: flex;
  align-items: flex-end;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(40, 5, 12, 0.95) 0%, rgba(40, 5, 12, 0.7) 50%, rgba(40, 5, 12, 0.15) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--pad) 28px;
}
.kicker {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 11px;
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.1;
  margin: 10px 0 12px;
  color: #fff;
}
.hero p {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.45;
  margin: 0 0 18px;
  max-width: 36em;
}
.hero-actions { display: flex; flex-direction: column; gap: 10px; }
.hero-actions .btn { width: 100%; padding: 13px 22px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--burgundy);
  color: var(--cream);
  padding: 36px var(--pad);
}
.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 32px;
  color: #fff;
  margin: 8px 0 10px;
  line-height: 1.15;
}
.page-hero p {
  margin: 0;
  opacity: 0.85;
  font-size: 16px;
  max-width: 40em;
}

/* ---------- Sections ---------- */
main { flex: 1; }

.section {
  padding: 36px var(--pad);
  max-width: calc(var(--max) + var(--pad) * 2);
  margin: 0 auto;
  width: 100%;
}
.section h2,
.prose h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
  color: var(--burgundy);
  margin: 0 0 8px;
}
.sub {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 16px;
}

/* ---------- Event cards ---------- */
.event-list { display: flex; flex-direction: column; gap: 12px; }

.card {
  display: flex;
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  min-height: 110px;
}
.card .im {
  width: 110px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}
.card .bd { padding: 14px 16px 14px 14px; min-width: 0; }
.tag {
  display: inline-block;
  background: var(--cream);
  color: var(--burgundy);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  margin-bottom: 6px;
}
.card h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  margin: 0;
  color: var(--text);
}
.card p { color: var(--muted); font-size: 13px; margin: 2px 0 0; }

/* ---------- Gallery mosaic (home) ---------- */
.mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 140px 140px 140px;
  gap: 10px;
}
.mosaic a {
  display: block;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.mosaic .big { grid-column: 1 / -1; grid-row: span 1; min-height: 180px; }
.mosaic a:focus-visible { outline-offset: 2px; }

/* Full gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gallery-grid a {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: #edd9c4;
}
.gallery-grid a.tall { aspect-ratio: 3 / 4; }
.gallery-grid a.wide { aspect-ratio: 16 / 9; grid-column: 1 / -1; }
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-grid a:hover img { transform: scale(1.04); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 3, 8, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 56px 16px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.lightbox:target {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: min(1200px, 96vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4);
}
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 16px;
  color: var(--cream);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 12px;
}
.lightbox-close:hover { color: #fff; }

/* ---------- Dues band ---------- */
.dues {
  background: var(--burgundy);
  color: var(--cream);
  border-radius: 18px;
  margin: 0 var(--pad) 36px;
  padding: 26px 22px;
  max-width: var(--max);
  width: calc(100% - var(--pad) * 2);
  margin-left: auto;
  margin-right: auto;
}
.dues h2 {
  font-family: var(--serif);
  font-weight: 700;
  color: #fff;
  font-size: 28px;
  margin: 0 0 8px;
}
.dues p {
  font-size: 14px;
  opacity: 0.85;
  margin: 0 0 16px;
  max-width: 40em;
}
.dues .btn { width: 100%; padding: 13px 22px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--burgundy-deep);
  color: var(--footer-text);
  padding: 32px var(--pad);
  font-size: 14px;
  margin-top: auto;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.site-footer b { color: var(--cream); }
.site-footer .foot-name { line-height: 1.45; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.footer-links a { text-decoration: none; color: var(--footer-text); }
.footer-links a:hover { color: var(--cream); }
.footer-domain { letter-spacing: 0.02em; }

/* ---------- About / prose ---------- */
.prose { max-width: 40em; }
.prose p { font-size: 17px; color: var(--text); margin: 0 0 16px; line-height: 1.6; }
.feature-photo {
  border-radius: 18px;
  overflow: hidden;
  margin: 8px 0 28px;
  box-shadow: var(--shadow);
}
.feature-photo img { width: 100%; height: auto; }

.placeholder {
  background: #fff;
  border: 1px dashed #c9a27a;
  border-radius: 14px;
  padding: 18px 20px;
  color: var(--muted);
  margin: 20px 0;
}
.placeholder-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--burgundy);
  margin: 0 0 6px;
}
.placeholder p { margin: 0; font-size: 15px; line-height: 1.5; }
.placeholder p + p { margin-top: 8px; }

/* Contact list */
.contact-list {
  display: grid;
  gap: 14px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  max-width: 40em;
}
.contact-list li {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.contact-list h2 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--burgundy);
  margin: 0 0 6px;
}
.contact-list p { margin: 0; color: var(--muted); font-size: 16px; }

/* Board */
.board-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.board-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px 16px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.board-avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--burgundy);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.board-avatar img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(1) sepia(0.35) brightness(1.6);
}
.board-card h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 4px;
  color: var(--text);
}
.board-card .role {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Membership details */
.detail-grid {
  display: grid;
  gap: 14px;
  margin: 8px 0 12px;
}
.detail-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.detail-card h2 {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--burgundy);
  margin: 0 0 10px;
}

/* 404 */
main:has(.not-found) {
  display: flex;
  align-items: center;
  justify-content: center;
}
.not-found {
  text-align: center;
  padding: 64px var(--pad) 80px;
  max-width: 36em;
  margin: 0 auto;
}
.not-found h1 {
  font-family: var(--serif);
  font-size: 40px;
  color: var(--burgundy);
  margin: 0 0 12px;
}
.not-found p { color: var(--muted); font-size: 17px; margin: 0 0 24px; }
.not-found .btn { min-width: 180px; }

/* ---------- Desktop ---------- */
@media (min-width: 800px) {
  :root { --pad: 48px; --nav-h: 92px; }

  .nav { padding: 18px var(--pad); }
  .brand { gap: 14px; }
  .brand img { width: 56px; height: 56px; }
  .brand-text b { font-size: 22px; }
  .brand-text small { display: block; }

  .nav-burger { display: none; }
  .nav-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: static;
    padding: 0;
    box-shadow: none;
    gap: 26px;
    font-size: 15px;
  }
  .nav-links a {
    padding: 0;
    border: 0;
  }
  .nav-links .btn { margin-top: 0; padding: 11px 22px; }

  .hero {
    height: 620px;
    max-height: none;
    min-height: 0;
    align-items: center;
    background-position: center;
  }
  .hero::after {
    background: linear-gradient(90deg, rgba(40, 5, 12, 0.92) 0%, rgba(40, 5, 12, 0.8) 40%, rgba(40, 5, 12, 0.1) 75%);
  }
  .hero-inner {
    padding: 0 var(--pad);
    max-width: var(--max);
  }
  .hero-copy { max-width: 620px; }
  .kicker { letter-spacing: 3px; font-size: 13px; }
  .hero h1 { font-size: 62px; line-height: 1.05; margin: 14px 0 18px; }
  .hero p { font-size: 19px; line-height: 1.5; margin-bottom: 30px; }
  .hero-actions { flex-direction: row; gap: 14px; }
  .hero-actions .btn { width: auto; padding: 11px 22px; }

  .page-hero { padding: 56px var(--pad); }
  .page-hero h1 { font-size: 48px; }

  .section { padding: 80px var(--pad); }
  .section h2, .prose h2 { font-size: 40px; }
  .sub { font-size: 17px; margin-bottom: 36px; }

  .event-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
  }
  .card {
    flex-direction: column;
    border-radius: 18px;
    min-height: 0;
  }
  .card .im { width: 100%; height: 210px; }
  .card .bd { padding: 22px; }
  .tag { font-size: 12px; padding: 5px 10px; border-radius: 6px; margin-bottom: 10px; }
  .card h3 { font-size: 24px; margin-bottom: 6px; }
  .card p { font-size: 15px; margin-top: 0; }

  .mosaic {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 240px 240px;
    gap: 14px;
  }
  .mosaic .big { grid-column: auto; grid-row: span 2; min-height: 0; }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .gallery-grid a.wide { grid-column: auto; aspect-ratio: 4 / 3; }
  .gallery-grid a.lead {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
  }

  .dues {
    border-radius: 24px;
    margin-bottom: 0;
    padding: 48px 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
  }
  .dues h2 { font-size: 40px; margin: 0 0 8px; }
  .dues p { font-size: 17px; margin: 0; }
  .dues .btn { width: auto; flex-shrink: 0; }

  .site-footer { padding: 40px var(--pad); margin-top: 80px; }
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
  }

  .board-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .board-avatar { width: 120px; height: 120px; }
  .board-card { padding: 32px 20px 28px; }
  .board-card h3 { font-size: 22px; }

  .contact-list {
    grid-template-columns: 1fr 1fr;
    max-width: none;
    gap: 26px;
  }

  .detail-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .prose p { font-size: 18px; }
  .not-found { padding: 100px var(--pad); }
  .not-found h1 { font-size: 56px; }
}

@media (min-width: 1100px) {
  :root { --pad: 64px; }
  .nav-links { gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .gallery-grid a:hover img { transform: none; }
}
