:root {
  --navy: #071426;
  --navy-soft: #10233d;
  --ink: #162033;
  --muted: #657086;
  --cream: #fffaf0;
  --paper: #ffffff;
  --gold: #d7ad4c;
  --gold-light: #f5dc91;
  --purple: #4d2472;
  --purple-deep: #2a143f;
  --line: rgba(22, 32, 51, 0.12);
  --shadow: 0 24px 70px rgba(7, 20, 38, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbfaf6;
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(255, 250, 240, 0.92);
  border-bottom: 1px solid rgba(215, 173, 76, 0.22);
  backdrop-filter: blur(16px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--navy);
}

.logo {
  width: 100%;
  height: auto;
  flex: 0 0 auto;
}

.logo-header {
  max-width: 60px;
}

.logo-hero {
  max-width: 95px;
  margin-bottom: 24px;
}

.logo-footer {
  max-width: 65px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  border-radius: 999px;
  padding: 9px 14px;
  color: #23304a;
  font-size: 0.94rem;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--navy);
  background: rgba(215, 173, 76, 0.18);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(7, 20, 38, 0.14);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

.section-shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.section-pad {
  padding: clamp(72px, 9vw, 118px) 0;
}

.hero.section-shell {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(36px, 7vw, 82px);
  padding: clamp(54px, 8vw, 96px) max(20px, calc((100% - 1120px) / 2));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(7, 20, 38, 0.98), rgba(12, 31, 56, 0.94) 48%, rgba(20, 34, 58, 0.78)),
    radial-gradient(circle at 78% 25%, rgba(215, 173, 76, 0.28), transparent 34%);
}

.hero {
  position: relative;
  color: var(--cream);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

h2 {
  max-width: 760px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.hero-text {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 250, 240, 0.82);
  font-size: clamp(1rem, 2vw, 1.16rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 14px 30px rgba(215, 173, 76, 0.24);
}

.button-secondary {
  color: var(--cream);
  border-color: rgba(245, 220, 145, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.button-ghost {
  color: var(--cream);
  border-color: rgba(255, 255, 255, 0.25);
}

.button-gold {
  margin-top: 12px;
  color: var(--purple-deep);
  background: linear-gradient(135deg, #fff0b2, var(--gold));
  box-shadow: 0 16px 34px rgba(245, 220, 145, 0.2);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.portrait-frame {
  position: relative;
  overflow: visible;
  isolation: isolate;
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 18% 5% 3%;
  z-index: -1;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(245, 220, 145, 0.42), rgba(77, 36, 114, 0.24));
  filter: blur(28px);
}

.portrait-frame-hero {
  width: min(100%, 420px);
  border: 0;
  border-radius: 28px;
  background: transparent;
  box-shadow: none;
  animation: floatPortrait 7s ease-in-out infinite;
}

.portrait-frame-about {
  width: min(100%, 380px);
  border: 0;
  border-radius: 22px;
  background: transparent;
  box-shadow: none;
}

.apostle-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  transform-origin: center;
  filter: drop-shadow(0 30px 34px rgba(7, 20, 38, 0.26));
  transition: opacity 720ms ease, transform 520ms ease, filter 520ms ease;
}

.portrait-frame.reveal .apostle-image {
  opacity: 0;
  transform: scale(0.96);
  filter: saturate(0.9) contrast(0.98) drop-shadow(0 18px 24px rgba(7, 20, 38, 0.18));
}

.portrait-frame.reveal.is-visible .apostle-image {
  opacity: 1;
  transform: scale(1);
  filter: saturate(1) contrast(1) drop-shadow(0 30px 34px rgba(7, 20, 38, 0.26));
}

.portrait-frame:hover .apostle-image {
  transform: scale(1.025);
  filter: saturate(1.05) contrast(1.03) drop-shadow(0 36px 42px rgba(7, 20, 38, 0.3));
}

.hero-image {
  max-width: 420px;
}

.about-image {
  max-width: 380px;
}

.section-heading {
  margin-bottom: 34px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(250px, 380px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(34px, 6vw, 72px);
}

.about-copy {
  max-width: 710px;
  color: #39445a;
  font-size: 1.08rem;
}

.about-copy p {
  margin: 0 0 18px;
}

.anniversary {
  color: #fffaf0;
  background:
    linear-gradient(135deg, rgba(42, 20, 63, 0.98), rgba(77, 36, 114, 0.94)),
    radial-gradient(circle at 78% 18%, rgba(245, 220, 145, 0.26), transparent 34%);
}

.anniversary h2 {
  color: #fffaf0;
}

.anniversary-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(36px, 6vw, 72px);
}

.anniversary-copy p:not(.eyebrow):not(.event-date) {
  max-width: 640px;
  color: rgba(255, 250, 240, 0.82);
  font-size: 1.08rem;
}

.event-date {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 12px;
  border: 1px solid rgba(245, 220, 145, 0.42);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--gold-light);
  font-weight: 800;
}

.event-date span {
  color: #fffaf0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.anniversary-visual {
  overflow: hidden;
  border: 1px solid rgba(245, 220, 145, 0.35);
  border-radius: 22px;
  background: rgba(255, 250, 240, 0.08);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.3);
}

.anniversary-visual img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center top;
  transform-origin: center top;
  transition: transform 650ms ease, filter 650ms ease;
}

.anniversary-visual.reveal img {
  transform: scale(1.04);
  filter: saturate(0.9) contrast(0.98);
}

.anniversary-visual.reveal.is-visible img {
  animation: anniversaryImageSettle 1200ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  filter: saturate(1.04) contrast(1.02);
}

.anniversary-visual:hover img {
  transform: scale(1.035) translateY(-4px);
}

.tribute {
  background: #fbfaf6;
}

.tribute-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 860px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 36px);
  background: var(--paper);
  box-shadow: 0 18px 54px rgba(7, 20, 38, 0.08);
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row-full,
.form-button {
  grid-column: 1 / -1;
}

label {
  color: var(--navy);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(22, 32, 51, 0.16);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(215, 173, 76, 0.18);
}

textarea {
  resize: vertical;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 42px 0;
}

.contact-inner p {
  max-width: 560px;
  color: var(--muted);
}

.contact-actions {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.email-link {
  color: var(--navy);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 800;
  word-break: break-word;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #2c3750;
  font-weight: 700;
}

.social-link svg {
  width: 24px;
  height: 24px;
  max-width: 28px;
  max-height: 28px;
  flex: 0 0 auto;
  fill: #2f4e95;
}

.site-footer {
  color: rgba(255, 250, 240, 0.78);
  background: var(--navy);
  padding: 34px clamp(20px, 4vw, 56px);
}

.footer-inner {
  width: min(1120px, 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  color: #fffaf0;
}

.footer-inner p {
  margin: 0;
  text-align: center;
}

.footer-inner a:not(.footer-brand) {
  color: var(--gold-light);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 680ms ease, transform 680ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatPortrait {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes anniversaryImageSettle {
  from {
    transform: scale(1.05) translateY(10px);
  }

  to {
    transform: scale(1) translateY(0);
  }
}

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

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

@media (max-width: 860px) {
  .site-header {
    padding: 12px 20px;
  }

  .logo-header {
    max-width: 48px;
  }

  .logo-hero {
    max-width: 75px;
  }

  .logo-footer {
    max-width: 50px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid rgba(7, 20, 38, 0.12);
    border-radius: 8px;
    padding: 10px;
    background: #fffaf0;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-radius: 8px;
  }

  .hero,
  .about-grid,
  .anniversary-grid,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

  .hero-visual {
    order: -1;
  }

  .portrait-frame-hero,
  .portrait-frame-about {
    width: min(100%, 320px);
    margin-inline: auto;
  }

  .hero-image,
  .about-image {
    max-width: 320px;
  }

  .tribute-form {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner p {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .section-shell {
    width: min(100% - 28px, 1120px);
  }

  .brand span {
    font-size: 0.92rem;
  }

  h1 {
    font-size: clamp(2.5rem, 14vw, 3.6rem);
  }

  .button-row,
  .button {
    width: 100%;
  }

  .button {
    padding-inline: 14px;
  }
}
