:root {
  --ink: #111111;
  --paper: #f6f4ef;
  --sepia: #8b6f47;
  --dust: #6b6b6b;
  --panel: rgba(246, 244, 239, 0.84);
  --panel-strong: rgba(246, 244, 239, 0.92);
  --shadow: 0 24px 60px rgba(17, 17, 17, 0.16);
  --border: rgba(139, 111, 71, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Libre Baskerville", Georgia, serif;
  background:
    linear-gradient(rgba(246, 244, 239, 0.72), rgba(246, 244, 239, 0.8)),
    url("img/background.png") center top / cover no-repeat fixed;
}

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

a {
  color: inherit;
  text-decoration-color: rgba(139, 111, 71, 0.65);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
  color: var(--sepia);
}

a:focus-visible {
  outline: 2px solid var(--sepia);
  outline-offset: 4px;
}

.page-shell {
  position: relative;
  overflow: clip;
  min-height: 100vh;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.32), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(17, 17, 17, 0.08));
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 72rem);
  margin: 0 auto;
  padding: 3rem 0 8rem;
  display: grid;
  gap: 1.5rem;
}

.panel {
  position: relative;
  padding: clamp(1.5rem, 2vw + 1rem, 3rem);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
  animation: panel-fade 800ms ease both;
}

.panel-hero {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}

.eyebrow,
.kicker {
  margin: 0;
  color: var(--sepia);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-art {
  margin: 1rem auto 1.5rem;
  width: min(100%, 38rem);
}

.hero-banner {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 24px rgba(17, 17, 17, 0.16));
}

.hero-copy {
  max-width: 42rem;
  margin: 0 auto;
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 600;
  line-height: 0.95;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.hero-lede,
.deck,
p,
address {
  font-size: clamp(0.98rem, 0.18vw + 0.94rem, 1.08rem);
  line-height: 1.8;
}

.hero-lede {
  margin: 1rem auto 0;
  max-width: 34rem;
  color: var(--dust);
}

.section-heading {
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin-top: 0.35rem;
}

.deck {
  margin: 0 0 1.25rem;
  color: var(--sepia);
}

.panel p:last-child {
  margin-bottom: 0;
}

.contact-card {
  margin-top: 1.25rem;
  padding: 1.25rem 1.35rem;
  display: grid;
  gap: 0.35rem;
  font-style: normal;
  background: rgba(17, 17, 17, 0.06);
  border-left: 3px solid var(--sepia);
  border-radius: 0.75rem;
}

.contact-name {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
}

.footer-plaque {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 20rem);
  margin: 0 auto 2rem;
  padding: 0;
}

.footer-logo {
  width: 100%;
  height: auto;
}

.decor {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  opacity: 0.88;
}

.decor-balloon {
  top: 14rem;
  right: clamp(-8rem, -2vw, -1rem);
  width: min(34vw, 29rem);
  transform-origin: 55% 30%;
  animation: balloon-drift 8s ease-in-out infinite;
}

.decor-compass {
  left: clamp(0.5rem, 4vw, 4rem);
  bottom: 1.25rem;
  width: min(20vw, 12rem);
  opacity: 0.8;
  transform-origin: 50% 50%;
  animation: compass-wiggle 15s ease-in-out infinite;
}

@keyframes balloon-drift {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-16px) rotate(1deg);
  }
}

@keyframes compass-wiggle {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(4deg);
  }
}

@keyframes panel-fade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  body {
    background-attachment: scroll;
  }

  .decor-balloon {
    top: 12rem;
    right: -9rem;
    width: min(42vw, 22rem);
    opacity: 0.58;
  }

  .decor-compass {
    width: min(24vw, 9rem);
  }
}

@media (max-width: 720px) {
  .page {
    width: min(100% - 1rem, 42rem);
    padding-top: 1rem;
    padding-bottom: 6rem;
  }

  .panel {
    border-radius: 1.1rem;
  }

  .hero-art {
    width: min(100%, 28rem);
  }

  .decor-balloon {
    top: 8.5rem;
    right: -7.5rem;
    width: 16rem;
    opacity: 0.36;
  }

  .decor-compass {
    left: -1.25rem;
    bottom: 5.75rem;
    width: 6.5rem;
    opacity: 0.28;
  }

  .footer-plaque {
    width: min(100% - 1rem, 18rem);
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .page {
    width: calc(100% - 0.75rem);
    gap: 0.85rem;
  }

  .panel {
    padding: 1.2rem;
  }

  .eyebrow,
  .kicker {
    letter-spacing: 0.16em;
  }

  .hero-lede,
  .deck,
  p,
  address {
    line-height: 1.7;
  }

  .decor-balloon {
    top: 7.5rem;
    right: -8.25rem;
    width: 14rem;
    opacity: 0.22;
  }

  .decor-compass {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
