/* ════════════════════════════════════════════════════════
   style.css
   Mobile-first · 3 breakpoints (600 / 900 / 1100)
   ════════════════════════════════════════════════════════ */

/* ─── Custom Properties ──────────────────────────────── */
:root {
  /* Palette */
  --bg:           #0f0703;
  --bg-glow:      #1e0c06;
  --bg-subtle:    #1a0a05;
  --gold:         #c4954a;
  --gold-bright:  #e2c07a;
  --gold-dim:     #84602b;
  --gold-border:  rgba(180, 130, 50, 0.22);
  --text:         #d8c08a;
  --text-muted:   #85694a;
  --text-light:   #eddaa0;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'PT Serif', Georgia, 'Times New Roman', serif;

  /* Layout */
  --max-w:    780px;
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --dur:      0.35s;
}

/* ─── Reset ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── Base ───────────────────────────────────────────── */
html {
  font-size: 17px;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--bg-glow) 0%, transparent 70%),
    radial-gradient(ellipse 100% 80% at 50% 100%, #180a04 0%, transparent 80%);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.85;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Fade-in on load ────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Main ───────────────────────────────────────────── */
#main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3.5rem 1.4rem 1.5rem;
}

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  text-align: center;
  max-width: var(--max-w);
  width: 100%;
  margin-bottom: 2rem;
  animation: fadeUp 0.9s var(--ease) both;
}

/* Photo ring */
.hero-photo-wrap {
  position: relative;
  margin: 0 auto 1.8rem;
  width: 240px;
  height: 240px;
  border-radius: 50%;
}

/* Outer decorative ring */
.hero-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--gold-border);
  box-shadow:
    0 0 30px rgba(180, 120, 30, 0.12),
    inset 0 0 20px rgba(0,0,0,0.5);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  border: 2px solid rgba(150, 100, 30, 0.4);
}

/* Placeholder shown when photo is missing */
.photo-missing {
  background: var(--bg-subtle);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-missing::after {
  content: '☩';
  font-size: 3rem;
  color: var(--gold-dim);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Hero name */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 5.5vw, 2.3rem);
  font-weight: 600;
  color: var(--gold-bright);
  letter-spacing: 0.025em;
  line-height: 1.2;
  margin-bottom: 0.55rem;
}

/* Hero subtitle */
.hero-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* ─── Ornamental divider ─────────────────────────────── */
.ornament {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  max-width: var(--max-w);
  margin: 0.5rem 0 2.2rem;
  animation: fadeUp 1s 0.25s var(--ease) both;
}

.orn-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-border), transparent);
}

.orn-cross {
  color: var(--gold-dim);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  flex-shrink: 0;
}

/* ─── Article text ───────────────────────────────────── */
.text-body {
  max-width: var(--max-w);
  width: 100%;
  animation: fadeUp 1s 0.4s var(--ease) both;
}

.text-body p {
  margin-bottom: 0.9rem;
  font-size: 1rem;
  color: var(--text);
}

/* Opening couplet — larger, more space */
.text-body p.opening {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3.5vw, 1.3rem);
  font-style: italic;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

.text-body p.opening + p.opening {
  margin-bottom: 1.6rem;
}

/* Self-intro line */
.text-body p.self-intro {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
  margin: 1.4rem 0 1rem;
}

/* Trio of "without" lines — italic gold */
.text-body p.trio {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold);
  line-height: 1.75;
  margin: 1.4rem 0;
}

/* Invitation "stay" lines */
.text-body p.call {
  color: var(--text-light);
  font-style: italic;
  line-height: 2.1;
  margin: 1.6rem 0;
  padding-left: 1.2rem;
  border-left: 1px solid var(--gold-border);
}

/* Signature */
.text-body p.signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-dim);
  text-align: right;
  margin-top: 2rem;
}

/* ─── Social nav ─────────────────────────────────────── */
.social-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 3rem;
  max-width: var(--max-w);
  width: 100%;
  animation: fadeUp 1s 0.6s var(--ease) both;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 0.55rem 1rem;
  border: 1px solid var(--gold-dim);
  border-radius: 2px;
  transition:
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.social-link:hover {
  color: var(--gold-bright);
  border-color: rgba(200, 150, 60, 0.5);
  background-color: rgba(180, 120, 30, 0.07);
}

.social-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.social-link svg {
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity var(--dur) var(--ease);
}

.social-link:hover svg {
  opacity: 1;
}

/* ─── Footer ─────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 1.8rem 1.4rem 2.2rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  border-top: 1px solid rgba(180, 130, 50, 0.08);
  width: 100%;
  margin-top: 3rem;
  animation: fadeUp 1s 0.7s var(--ease) both;
}

/* ═══ 600px ══════════════════════════════════════════════ */
@media (min-width: 600px) {
  html { font-size: 18px; }

  #main-content { padding: 4.5rem 2rem 2rem; }

  .hero-photo-wrap {
    width: 190px;
    height: 190px;
  }

  .text-body p         { font-size: 1.15rem; }
  .text-body p.trio    { font-size: 1.25rem; }

  .social-nav  { gap: 0.75rem; }
  .social-link { padding: 0.6rem 1.2rem; font-size: 0.95rem; }
}

/* ═══ 900px ══════════════════════════════════════════════ */
@media (min-width: 900px) {
  html { font-size: 19px; }

  #main-content { padding: 5.5rem 2.5rem 2.5rem; }

  .hero-photo-wrap {
    width: 220px;
    height: 220px;
  }

  .text-body p { font-size: 1.05rem; }

  .social-link { padding: 0.65rem 1.4rem; }
}

/* ═══ 1100px ═════════════════════════════════════════════ */
@media (min-width: 1100px) {
  #main-content { padding: 6rem 3rem 3rem; }
}

/* ─── Reduced motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}