@import url('https://fonts.googleapis.com/css2?family=Cormorant+Infant:wght@300;400;500;600;700&family=Great+Vibes&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream: #f5e6c8;
  --amber: #d4a574;
  --dark: #262117;
  --amber-light: #e8c89a;
  --amber-dark: #b8864a;
  --dark-soft: #3a3020;
  --cream-dark: #ead5a8;
  --text-main: #262117;
  --text-muted: #6b5940;
  --radius-pill: 999px;
  --nav-h: 64px;
  --anchor-h: 40px;
  --aside-w: 220px;
  --font-serif: 'Cormorant Infant', 'Georgia', 'Times New Roman', serif;
  --font-script: 'Great Vibes', cursive;
  --font-sans: system-ui, -apple-system, sans-serif;
  scroll-behavior: smooth;
}

html {
  font-size: 18px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--cream);
  font-family: var(--font-serif);
}

body {
  overflow-x: hidden;
  background: var(--cream);
  position: relative;
}

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

a {
  color: var(--amber-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--dark);
}

ul {
  list-style: none;
}

/* ===== FILM GRAIN OVERLAY ===== */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23grain)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: grain-shift 0.15s steps(2) infinite;
}

@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3px, 2px); }
  50%  { transform: translate(2px, -2px); }
  75%  { transform: translate(-1px, 3px); }
  100% { transform: translate(3px, -1px); }
}

/* ===== LIGHT LEAK ===== */
.light-leak {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(ellipse at 90% 10%, rgba(212,165,116,0.18) 0%, transparent 55%),
              radial-gradient(ellipse at 5% 85%, rgba(245,230,200,0.12) 0%, transparent 45%);
  animation: leak-pulse 8s ease-in-out infinite alternate;
}

@keyframes leak-pulse {
  0%   { opacity: 0.6; }
  100% { opacity: 1; }
}

/* ===== PAGE WRAPPER ===== */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== SITE-ASIDE (structural contract) ===== */
.site-aside {
  display: none;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(245, 230, 200, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--amber-light);
  height: var(--nav-h);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--dark);
  font-family: var(--font-script);
  font-size: 1.8rem;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-link:hover {
  color: var(--amber-dark);
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-name {
  display: inline-block;
}

/* TOP NAV */
.top-nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--dark-soft);
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
  min-height: 40px;
}

.nav-pill:hover {
  background: var(--cream-dark);
  border-color: var(--amber-light);
  color: var(--dark);
}

.nav-pill.nav-cta {
  background: var(--dark);
  color: var(--cream);
  border-color: var(--dark);
  padding: 0.3rem 1.1rem;
}

.nav-pill.nav-cta:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
  color: var(--cream);
}

/* ===== STICKY ANCHOR BAR ===== */
.sticky-anchor-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 190;
  background: var(--dark);
  border-bottom: 2px solid var(--amber-dark);
  overflow-x: auto;
  scrollbar-width: none;
}

.sticky-anchor-bar::-webkit-scrollbar {
  display: none;
}

.sticky-anchor-bar ul {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 0;
  min-height: var(--anchor-h);
}

.sticky-anchor-bar li {
  flex-shrink: 0;
}

.sticky-anchor-bar a {
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  min-height: var(--anchor-h);
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--amber-light);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  border-right: 1px solid rgba(212,165,116,0.15);
}

.sticky-anchor-bar a:hover {
  color: var(--cream);
  background: rgba(212,165,116,0.12);
}

/* ===== HERO ===== */
.hero-section {
  min-height: 45vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--cream) 40%, var(--amber-light) 100%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-slash {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 80px;
  background: var(--amber);
  transform: skewX(-8deg) translateX(-50%);
  opacity: 0.18;
  pointer-events: none;
}

/* HERO MEDIA / COLLAGE */
.hero-media {
  position: relative;
  padding: 2.5rem 1rem 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 45vh;
}

.hero-collage {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 300px;
}

/* POLAROID */
.polaroid {
  position: absolute;
  background: #fff;
  padding: 10px 10px 32px 10px;
  box-shadow: 4px 6px 20px rgba(38,33,23,0.25), 0 1px 4px rgba(38,33,23,0.12);
  transition: transform 0.3s ease;
  filter: sepia(0.15) contrast(1.05) saturate(0.85);
}

.polaroid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245,230,200,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.polaroid-left {
  left: 0;
  top: 20px;
  width: 180px;
  transform: rotate(-4deg);
  z-index: 2;
}

.polaroid-right {
  right: 0;
  bottom: 10px;
  width: 165px;
  transform: rotate(3.5deg);
  z-index: 3;
}

.polaroid:hover {
  transform: rotate(0deg) scale(1.04);
  z-index: 10;
}

.polaroid-left:hover {
  transform: rotate(0deg) scale(1.04);
}

.polaroid-right:hover {
  transform: rotate(0deg) scale(1.04);
}

.polaroid-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--cream-dark);
}

.polaroid-frame img,
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--amber-light) 0%, var(--amber) 100%);
  opacity: 0.6;
}

.hero-img-placeholder-2 {
  background: linear-gradient(135deg, var(--cream-dark) 0%, var(--amber-light) 100%);
}

.polaroid-caption {
  text-align: center;
  font-family: var(--font-script);
  font-size: 0.9rem;
  color: var(--dark-soft);
  padding-top: 6px;
  line-height: 1.2;
}

/* HERO COPY */
.hero-copy {
  padding: 3rem 2.5rem 3rem 1rem;
  text-align: right;
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 0.6rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--amber);
  background: rgba(212,165,116,0.08);
}

.hero-h1 {
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 0.8rem;
  text-shadow: 1px 2px 8px rgba(38,33,23,0.08);
}

.hero-sub {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 320px;
  margin-bottom: 1.4rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.8rem;
  background: var(--amber-dark);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
  border: 2px solid var(--amber-dark);
  transition: background 0.25s, color 0.25s, transform 0.2s;
  min-height: 48px;
}

.hero-btn:hover {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--cream);
  transform: translateY(-2px);
}

/* ===== MAIN LAYOUT ===== */
.site-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr var(--aside-w);
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 1.5rem;
  align-items: start;
}

/* ===== CONTENT ARTICLE / SECTION ===== */
.content-article {
  min-width: 0;
  padding: 3rem 2.5rem 3rem 0;
}

.content-section {
  width: 100%;
}

/* Page content sections from CMS */
.page-content-section section {
  scroll-margin-top: calc(var(--nav-h) + var(--anchor-h) + 1rem);
  padding: 3rem 0;
  border-bottom: 1px solid rgba(212,165,116,0.2);
  position: relative;
}

.page-content-section section:last-child {
  border-bottom: none;
}

.page-content-section h2 {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.page-content-section h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark-soft);
  margin: 1.6rem 0 0.6rem;
}

.page-content-section p {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.page-content-section ul,
.page-content-section ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}

.page-content-section ul {
  list-style: disc;
}

.page-content-section ol {
  list-style: decimal;
}

.page-content-section li {
  margin-bottom: 0.4rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main);
}

.page-content-section blockquote {
  border-left: 3px solid var(--amber);
  padding: 0.8rem 1.2rem;
  margin: 1.5rem 0;
  background: rgba(212,165,116,0.07);
  font-style: italic;
  color: var(--text-muted);
}

.page-content-section strong {
  font-weight: 600;
  color: var(--dark);
}

.page-content-section em {
  color: var(--amber-dark);
  font-style: italic;
}

/* VHS tracking line effect on section entry */
.page-content-section section::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--amber) 30%, var(--amber-light) 70%, transparent 100%);
  margin-bottom: 2rem;
  opacity: 0.4;
}

/* ===== CONTENT ASIDE ===== */
.content-aside {
  position: sticky;
  top: calc(var(--nav-h) + var(--anchor-h) + 1.5rem);
  padding: 2rem 0 2rem 1.5rem;
  border-left: 1px solid rgba(212,165,116,0.25);
  align-self: start;
}

.aside-inner {
  background: rgba(245,230,200,0.6);
  padding: 1.2rem;
  border: 1px solid var(--amber-light);
  position: relative;
  overflow: hidden;
}

.aside-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

.aside-eyebrow {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.aside-nav-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.8rem;
  letter-spacing: 0.02em;
}

.aside-link-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.aside-link-list li a {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(212,165,116,0.12);
  transition: color 0.2s, padding-left 0.2s;
  line-height: 1.4;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.aside-link-list li a:hover {
  color: var(--dark);
  padding-left: 0.4rem;
}

.aside-note {
  padding-top: 0.6rem;
  border-top: 1px solid rgba(212,165,116,0.2);
}

.aside-note p {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.55;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: var(--cream);
  margin-top: 2rem;
}

.footer-cta-block {
  text-align: center;
  padding: 4rem 2rem 3.5rem;
  border-bottom: 1px solid rgba(212,165,116,0.2);
  position: relative;
  overflow: hidden;
}

.footer-cta-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,165,116,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.footer-eyebrow {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

.footer-cta-title {
  font-family: var(--font-script);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 2rem;
  background: var(--amber);
  color: var(--dark);
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
  border: 2px solid var(--amber);
  transition: background 0.25s, color 0.25s, transform 0.2s;
  min-height: 48px;
}

.footer-cta-btn:hover {
  background: var(--cream);
  color: var(--dark);
  border-color: var(--cream);
  transform: translateY(-2px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-address {
  font-style: normal;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--amber-light);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-address a {
  color: var(--amber-light);
}

.footer-address a:hover {
  color: var(--cream);
}

.footer-links {
  display: flex;
  gap: 0.2rem;
  flex-wrap: wrap;
  list-style: none;
}

.footer-links li a {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  font-family: var(--font-serif);
  font-size: 0.82rem;
  color: var(--amber-light);
  border-radius: var(--radius-pill);
  min-height: 40px;
  transition: color 0.2s, background 0.2s;
}

.footer-links li a:hover {
  color: var(--cream);
  background: rgba(212,165,116,0.15);
}

.footer-copy {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
}

/* ===== STAGGER ANIMATION ===== */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-content-section article {
  animation: fade-up 0.55s ease both;
}

.page-content-section article:nth-child(1) { animation-delay: 0.05s; }
.page-content-section article:nth-child(2) { animation-delay: 0.12s; }
.page-content-section article:nth-child(3) { animation-delay: 0.19s; }
.page-content-section article:nth-child(4) { animation-delay: 0.26s; }
.page-content-section article:nth-child(5) { animation-delay: 0.33s; }
.page-content-section article:nth-child(6) { animation-delay: 0.40s; }
.page-content-section article:nth-child(7) { animation-delay: 0.47s; }

/* VHS TRACKING MICRO-EFFECT */
@keyframes vhs-track {
  0%   { transform: skewX(0deg); opacity: 1; }
  92%  { transform: skewX(0deg); opacity: 1; }
  93%  { transform: skewX(0.4deg); opacity: 0.92; }
  94%  { transform: skewX(-0.3deg); opacity: 0.95; }
  95%  { transform: skewX(0deg); opacity: 1; }
  100% { transform: skewX(0deg); opacity: 1; }
}

.site-main {
  animation: vhs-track 12s linear infinite;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .grain-overlay,
  .light-leak {
    animation: none !important;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  :root {
    --aside-w: 180px;
  }

  .top-nav {
    display: none;
  }

  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media {
    min-height: 280px;
    padding: 2rem;
  }

  .hero-copy {
    padding: 1.5rem 2rem 2rem;
    text-align: center;
    align-items: center;
  }

  .hero-sub {
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  :root {
    --nav-h: 56px;
    --anchor-h: 36px;
  }

  .site-main {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .content-article {
    padding: 2rem 0;
  }

  .content-aside {
    position: static;
    border-left: none;
    border-top: 1px solid rgba(212,165,116,0.25);
    padding: 1.5rem 0;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-collage {
    height: 240px;
    max-width: 300px;
  }

  .polaroid-left {
    width: 145px;
  }

  .polaroid-right {
    width: 130px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .footer-copy {
    text-align: left;
  }

  .header-inner {
    padding: 0 1rem;
  }

  .sticky-anchor-bar ul {
    padding: 0 0.8rem;
  }

  .sticky-anchor-bar a {
    padding: 0 0.65rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 420px) {
  html {
    font-size: 16px;
  }

  .hero-h1 {
    font-size: 2rem;
  }

  .hero-copy {
    padding: 1rem 1rem 1.5rem;
  }

  .hero-media {
    padding: 1.5rem 1rem;
  }

  .polaroid-left {
    width: 128px;
  }

  .polaroid-right {
    width: 118px;
  }

  .hero-collage {
    height: 210px;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
