@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Playfair+Display:wght@500;600;700&family=Caveat:wght@500&display=swap');

:root {
  --cream: #f7f1e8;
  --ink: #2f2419;
  --terracotta: #c26a41;
  --sage: #748c60;
  --sand: #d8c7b2;
  --accent: #d89b5e;
  --paper: #f3eadf;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  background: var(--cream) url('https://images.pexels.com/photos/235985/pexels-photo-235985.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=900') repeat;
  color: var(--ink);
  letter-spacing: 0.01em;
  position: relative;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M5 10c5 4 18 4 22 0s7-8 13-8 11 8 14 10 13 5 17 1' fill='none' stroke='%23d8c7b2' stroke-width='1' stroke-opacity='0.35'/%3E%3C/svg%3E");
  opacity: 0.4;
  mix-blend-mode: multiply;
  z-index: 1;
}

.page-enter {
  opacity: 0;
}

.page-enter.page-ready {
  opacity: 1;
  transition: opacity 0.6s ease;
}

.page-leave {
  opacity: 0;
  transition: opacity 0.4s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 241, 232, 0.94);
  border-bottom: 1px solid rgba(58, 42, 26, 0.1);
  backdrop-filter: blur(1px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  position: relative;
  background: var(--paper);
  box-shadow: -4px 4px 0 var(--terracotta);
}

.brand-mark::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 2px solid var(--sage);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav-links a {
  position: relative;
  padding-bottom: 6px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60%;
  height: 2px;
  background: var(--terracotta);
  transform: scaleX(0.2);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.main {
  position: relative;
  z-index: 2;
}

section {
  padding: 70px 7vw;
  position: relative;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  margin: 0 0 18px;
  line-height: 1.1;
}

.section-kicker {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--terracotta);
  margin-bottom: 8px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 38px;
  align-items: start;
}

.hero-copy {
  max-width: 720px;
}

.hero-copy h1 {
  font-family: 'Playfair Display', serif;
  font-size: 54px;
  line-height: 1.05;
  margin: 10px 0 18px;
}

.hero-copy p {
  font-size: 20px;
  max-width: 560px;
}

.hero-accent {
  font-family: 'Caveat', cursive;
  font-size: 26px;
  color: var(--sage);
  margin-top: -6px;
}

.collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 14px;
  position: relative;
}

.collage img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  box-shadow: -10px 10px 0 rgba(0,0,0,0.12);
  border: 6px solid #fffdf7;
  transform: rotate(-2deg);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.collage img:nth-child(2) { transform: rotate(3deg); }
.collage img:nth-child(3) { transform: rotate(-5deg); }
.collage img:nth-child(4) { transform: rotate(1deg); }

.collage img:hover {
  transform: translateY(-6px) rotate(0deg) scale(1.03);
  box-shadow: -14px 14px 0 rgba(0,0,0,0.18);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px dashed var(--ink);
  padding: 10px 14px;
  border-radius: 14px;
  box-shadow: -6px 6px 0 rgba(0,0,0,0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #fffaf1;
  border: 2px solid var(--ink);
  box-shadow: -8px 8px 0 rgba(0,0,0,0.12);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(200, 131, 82, 0.15);
  transform: translateX(-100%);
  transition: transform 0.35s ease;
}

.btn:hover::after {
  transform: translateX(0);
}

.btn:hover {
  box-shadow: -10px 10px 0 rgba(0,0,0,0.16);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  background: #fffdf8;
  border: 1px solid rgba(47, 36, 25, 0.12);
  padding: 18px;
  box-shadow: -10px 10px 0 rgba(0,0,0,0.10);
  position: relative;
  overflow: hidden;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-family: 'Playfair Display', serif;
}

.card p {
  margin: 0 0 12px;
  line-height: 1.5;
}

.card .tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--sage);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.polaroid {
  background: #fffefa;
  padding: 12px 12px 18px;
  border: 2px solid #e7d8c7;
  box-shadow: -12px 12px 0 rgba(0,0,0,0.14);
  transform: rotate(-1.5deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.polaroid:hover {
  transform: translateY(-8px) rotate(1deg);
  box-shadow: -14px 14px 0 rgba(0,0,0,0.18);
}

.polaroid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 10px;
  filter: saturate(0.9) contrast(1.02);
}

.list-flex {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.list-flex li {
  list-style: none;
  background: var(--paper);
  padding: 10px 14px;
  border-left: 3px solid var(--terracotta);
  box-shadow: -8px 8px 0 rgba(0,0,0,0.10);
}

.split {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 32px;
  align-items: start;
}

.marker {
  font-family: 'Caveat', cursive;
  color: var(--terracotta);
  font-size: 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.muted {
  color: rgba(47, 36, 25, 0.8);
}

.ticker {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ticker::before {
  content: '✦';
  color: var(--terracotta);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.note-paper {
  background: #fffaf1;
  border: 1px dashed rgba(47,36,25,0.4);
  padding: 16px;
  box-shadow: -10px 10px 0 rgba(0,0,0,0.10);
  position: relative;
}

.note-paper::after {
  content: '';
  position: absolute;
  right: 18px;
  top: -12px;
  width: 28px;
  height: 28px;
  background: var(--sage);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  opacity: 0.5;
}

footer {
  padding: 50px 7vw 70px;
  background: #efe3d3;
  border-top: 1px solid rgba(47,36,25,0.12);
  position: relative;
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 22px;
}

.footer-grid h4 {
  margin-top: 0;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.04em;
}

.footer-grid a {
  display: inline-block;
  margin-bottom: 8px;
}

.signature {
  font-family: 'Caveat', cursive;
  font-size: 26px;
  color: var(--terracotta);
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 50;
  mix-blend-mode: multiply;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--terracotta);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.8px solid var(--ink);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: border-color 0.2s ease;
}

#introOverlay {
  position: fixed;
  inset: 0;
  background: #f4ebdf;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 200;
  padding: 40px;
  text-align: center;
}

#introOverlay.active {
  display: flex;
}

.intro-box {
  max-width: 720px;
  background: #fffaf2;
  padding: 34px;
  border: 2px solid #d6c2ab;
  box-shadow: -18px 18px 0 rgba(0,0,0,0.16);
  position: relative;
}

.intro-box::after {
  content: '';
  position: absolute;
  left: -20px;
  top: -20px;
  width: 60px;
  height: 60px;
  border: 2px solid var(--sage);
  opacity: 0.4;
}

.intro-text {
  font-size: 26px;
  line-height: 1.4;
  margin: 0 0 20px;
}

.float-leaf {
  position: fixed;
  width: 18px;
  height: 28px;
  background: var(--sage);
  opacity: 0.18;
  clip-path: ellipse(50% 50% at 50% 50%);
  animation: drift 18s linear infinite;
  z-index: 3;
}

@keyframes drift {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(8deg); }
  100% { transform: translateY(0) rotate(-8deg); }
}

[data-parallax] {
  will-change: transform;
}

.lede {
  font-size: 18px;
  line-height: 1.7;
  max-width: 640px;
}

.story-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.story-tag::before {
  content: '—';
}

.table-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.table-list div {
  background: #fffefa;
  padding: 12px;
  border-left: 3px solid var(--sage);
}

.audio-toggle {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 40;
}

.audio-toggle button {
  background: #fff7ec;
  border: 2px solid var(--ink);
  padding: 10px 14px;
  box-shadow: -8px 8px 0 rgba(0,0,0,0.12);
  cursor: pointer;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.04em;
}

.quote {
  font-size: 22px;
  line-height: 1.4;
  border-left: 3px solid var(--terracotta);
  padding-left: 14px;
  margin: 0 0 12px;
}

@media (max-width: 980px) {
  .hero-grid, .split {
    grid-template-columns: 1fr;
  }
  .collage {
    grid-template-columns: repeat(2, 1fr);
  }
  header {
    position: sticky;
  }
}

@media (max-width: 640px) {
  .navbar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav-links { flex-wrap: wrap; gap: 12px; }
  .hero-copy h1 { font-size: 38px; }
  section { padding: 50px 6vw; }
  .collage img { height: 160px; }
  .footer-grid { grid-template-columns: 1fr; }
  .intro-box { padding: 24px; }
}
