:root {
  --bg: #fbf4e8;
  --bg-soft: #fffaf2;
  --text: #3c2a1f;
  --text-muted: #8a6f5a;
  --accent: #b77745;
  --accent-soft: #e6c5a8;
  --border: rgba(92, 60, 36, 0.16);
  --shadow: rgba(68, 42, 24, 0.18);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.9), transparent 36rem),
    radial-gradient(circle at bottom left, rgba(216, 160, 105, 0.18), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: radial-gradient(circle at 1px 1px, #3c2a1f 1px, transparent 0);
  background-size: 18px 18px;
  z-index: 0;
}

/* Topbar */
.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding: 1.1rem 1.75rem 0;
}

.topbar__nav {
  display: flex;
  gap: 0.25rem;
}

.topbar__link {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  transition: color 160ms ease, background-color 160ms ease;
}

.topbar__link:hover {
  color: var(--accent);
  background: var(--bg-soft);
}

.topbar__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.page {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 3rem);
  display: grid;
  place-items: center;
  padding: 3rem 1.25rem;
}

.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Photo frame */
.photo-frame {
  position: relative;
  margin: 0;
  width: min(560px, 88vw);
  border-radius: 22px;
  padding: 10px;
  background: rgba(255, 250, 242, 0.72);
  border: 1px solid var(--border);
  box-shadow:
    0 24px 70px var(--shadow),
    0 2px 0 rgba(255, 255, 255, 0.75) inset;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: contain;
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 16px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.58) 0%,
    rgba(0, 0, 0, 0.22) 32%,
    rgba(0, 0, 0, 0) 60%
  );
  pointer-events: none;
}

/* Headline overlay */
h1 {
  position: absolute;
  left: clamp(1.1rem, 3vw, 1.75rem);
  right: clamp(1.1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 2.6vw, 1.5rem);
  margin: 0;
  z-index: 1;
  color: #fffaf2;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3.3vw, 2.1rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.018em;
  text-align: left;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.h1-heart {
  display: inline-block;
  margin-left: 0.25em;
  color: var(--accent-soft);
  font-size: 0.78em;
  vertical-align: 0.05em;
  opacity: 0.95;
}

@media (hover: hover) {
  .photo-frame:hover {
    transform: translateY(-2px);
    box-shadow:
      0 30px 85px rgba(68, 42, 24, 0.22),
      0 2px 0 rgba(255, 255, 255, 0.75) inset;
  }
}

/* Leaf stems */
.leaf {
  position: absolute;
  z-index: 0;
  color: rgba(183, 119, 69, 0.22);
  pointer-events: none;
}

.leaf svg {
  width: 180px;
  height: auto;
  display: block;
}

.leaf path:not(:first-child),
.leaf circle {
  fill: currentColor;
}

.leaf-left {
  left: clamp(1rem, 8vw, 8rem);
  bottom: clamp(2rem, 10vh, 7rem);
  transform: rotate(-8deg);
}

.leaf-right {
  right: clamp(1rem, 8vw, 8rem);
  bottom: clamp(2rem, 10vh, 7rem);
  transform: scaleX(-1) rotate(-8deg);
}

/* Mobile */
@media (max-width: 640px) {
  .topbar {
    padding: 0.85rem 1rem 0;
  }

  .topbar__link {
    font-size: 0.85rem;
    padding: 0.4rem 0.7rem;
  }

  .page {
    padding: 2rem 1rem;
  }

  h1 {
    font-size: clamp(1.15rem, 5.5vw, 1.6rem);
    left: 1rem;
    right: 1rem;
    bottom: 0.9rem;
  }

  .photo-frame {
    width: 100%;
    border-radius: 18px;
    padding: 7px;
  }

  .photo-frame img {
    border-radius: 12px;
  }

  .photo-frame::after {
    inset: 7px;
    border-radius: 12px;
  }

  .leaf {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-frame {
    transition: none;
  }
  .photo-frame:hover {
    transform: none;
  }
}
