/* April and Sol – Wedding Website */
/* Layout C: Card-based | Background: #FBF9F0 | Unna */

@import url('https://fonts.googleapis.com/css2?family=Unna:wght@400;500;600;700&display=swap');

:root {
  --bg: #FBF9F0;
  --card-bg: #ffffff;
  --text: #2c2c2c;
  --text-muted: #5a5a5a;
  --accent: #6b5344;
  --link-color: #82B190;
  --border: #e0ddd4;
  --card-shadow: 0 2px 12px rgba(44, 44, 44, 0.08);
  --card-radius: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Unna', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 280px;
  background-image: url("images/leaf-for-background.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: top left;
  z-index: -1;
  pointer-events: none;
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.5rem 1rem;
  text-align: center;
}

.hero-image {
  width: 75%;
  max-width: 429px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  filter: grayscale(100%);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin: 0 0 0.35rem;
}

.hero .date {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  font-weight: 400;
  margin: 0;
}

/* Card layout */
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

section {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  padding: 2rem 1.75rem;
  margin: 0;
}

section h2 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: center;
  margin: 0 0 1.5rem;
}

section p,
section ul {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

section ul {
  padding-left: 1.5rem;
}

section li {
  margin-bottom: 0.5rem;
}

a {
  color: var(--link-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

a:hover {
  border-bottom-color: var(--link-color);
}

a[target="_blank"]::after {
  content: " ↗";
  font-size: 0.75em;
}

/* Schedule */
.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-time {
  font-weight: 500;
  flex-shrink: 0;
}

.schedule-alert {
  background: rgba(107, 83, 68, 0.1);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
}

.schedule-alert p {
  margin: 0;
  color: var(--text);
}

.schedule-day {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 1.5rem 0 0.5rem;
  color: /* match your existing accent color */;
  border-bottom: 1px solid /* match your existing border color */;
  padding-bottom: 0.25rem;
}

.schedule-item--note {
  border-top: none;
  padding-top: 0;
  margin-top: -0.5rem; /* pull it up closer to the row above */
  font-size: 0.9em;
  opacity: 0.8;
}

/* FAQs */
.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  padding: 1rem 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--accent);
}

details[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 0 1rem;
  color: var(--text-muted);
}

.faq-answer p:first-child {
  margin-top: 0;
}

/* QR code */
.qr-code {
  display: block;
  max-width: 200px;
  height: auto;
  margin: 1rem auto 0;
}

/* CTA / Registry */
.cta-block {
  text-align: center;
  padding: 2rem;
  background: rgba(107, 83, 68, 0.06);
  border-radius: 8px;
}

.cta-block a {
  font-weight: 500;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 600px) {
  main {
    padding: 1.5rem 1rem 2.5rem;
    gap: 1rem;
  }

  section {
    padding: 1.5rem 1.25rem;
  }

  .schedule-item {
    flex-direction: column;
    gap: 0.25rem;
  }
}
