:root {
  --paper: #f8f6f1;
  --ink: #23262b;
  --muted: #6d7076;
  --emerald: #1f8f63;
  --amber: #d99a2b;
  --cobalt: #2f6fb3;
  --ruby: #c14a44;
  --hairline: rgba(35, 38, 43, 0.14);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(120% 90% at 50% 22%, rgba(217, 154, 43, 0.10), transparent 55%),
    radial-gradient(80% 70% at 50% 118%, rgba(47, 111, 179, 0.07), transparent 60%),
    var(--paper);
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.1rem 1.6rem;
  border-bottom: 1px solid var(--hairline);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand__mark {
  height: 40px;
  width: auto;
  display: block;
}

.brand__word {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.footer {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1.4rem 1.6rem;
  border-top: 1px solid var(--hairline);
}

.footer a {
  text-decoration: none;
}

.pill {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(35, 38, 43, 0.35);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pill:hover {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #ffffff;
}

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 5rem) 1.5rem;
}

.eyebrow {
  margin: 0 0 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--emerald);
  animation: fadeUp 0.7s ease both;
}

.hero__title {
  margin: 0;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(1.1rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
  animation: fadeUp 0.7s ease 0.08s both;
}

.accent {
  color: var(--emerald);
  text-shadow: 0 1px 12px rgba(31, 143, 99, 0.22);
}

.hero__line {
  white-space: nowrap;
}

.hero__tagline {
  margin: 1.4rem 0 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  color: var(--muted);
  animation: fadeUp 0.7s ease 0.16s both;
}

.hero__message {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero__contact {
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero__contact a {
  color: var(--emerald);
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 143, 99, 0.35);
}

.hero__contact a:hover {
  border-bottom-color: var(--emerald);
}

/* ---------- Ornament (signature) ---------- */
.ornament {
  position: relative;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: inline-block;
  animation: fadeUp 0.8s ease 0.24s both;
}

.ornament::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(217, 154, 43, 0.24),
    rgba(47, 111, 179, 0.10) 42%,
    rgba(31, 143, 99, 0.07) 56%,
    transparent 72%
  );
  filter: blur(16px);
  animation: glowPulse 5.5s ease-in-out infinite;
}

.ornament__swing {
  position: relative;
  z-index: 1;
  display: block;
  transform-origin: top center;
  perspective: 900px;
  animation: sway 6s ease-in-out infinite;
}

.ornament__img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  cursor: pointer;
  filter:
    drop-shadow(0 16px 26px rgba(35, 38, 43, 0.22))
    drop-shadow(0 0 20px rgba(217, 154, 43, 0.18));
}

.ornament__img.is-spinning {
  animation: spin 1.4s ease-in-out;
}

/* ---------- Motion ---------- */
@keyframes sway {
  0%,
  100% {
    transform: rotate(-2.2deg);
  }
  50% {
    transform: rotate(2.2deg);
  }
}

@keyframes spin {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(720deg);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Accessibility ---------- */
.pill:focus-visible,
a:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }
  .ornament::before {
    opacity: 0.85;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}