@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');

/* ========================================
   VARIABLES
   ======================================== */
:root {
  --ink: #1f2c23;
  --accent: #2e6b42;
  --paper: rgba(255, 255, 255, 0.70);
  --paper-border: rgba(0, 0, 0, 0.05);
}

/* ========================================
   BASE STYLES
   ======================================== */
html, body {
  margin: 0;
  height: 100%;
  font-family: 'Playfair Display', serif;
  color: var(--ink);
  background: transparent;
  line-height: 1.6;
}

/* Fixed toile background layer */
.toile-bg {
  position: fixed;
  inset: 0;
  background: url('toile-pattern.png') repeat;
  background-size: 380px;
  opacity: 0.30;
  z-index: -1;
  pointer-events: none;
}

/* ========================================
   HEADER
   ======================================== */
header {
  padding: 28px 20px 14px;
  background: transparent;
  text-align: center;
}

.logo-wrap {
  width: 100px;
  height: 120px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  width: 120px;
  height: auto;
  display: block;
}

h1 {
  font-family: 'Alex Brush', cursive;
  font-size: clamp(48px, 8vw, 64px);
  margin: 6px 0;
}

.subline {
  letter-spacing: 0.04em;
  font-size: clamp(14px, 2vw, 16px);
}

/* ========================================
   NAVIGATION
   ======================================== */
nav {
  margin: 10px 0 2px;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  margin: 0 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: opacity 0.2s ease;
}

nav a:hover {
  text-decoration: underline;
  opacity: 0.7;
}

/* Mobile responsive navigation */
@media (max-width: 768px) {
  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  
  nav a {
    margin: 4px 8px;
    font-size: 0.8rem;
  }
}

/* ========================================
   HERO SECTION (HOME PAGE)
   ======================================== */
.hero {
  padding: 24px 16px;
  background: transparent;
}

.hero-frame {
  width: min(92vw, 900px);
  aspect-ratio: 1 / 0.78;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transform: scale(1.5);
  display: block;
}

/* ========================================
   CONTENT SECTIONS
   ======================================== */
.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 22px 18px;
}

section {
  background: rgba(255, 255, 255, 0.65);
  border-radius: 14px;
  padding: 18px 16px;
  margin: 14px 0;
}

h2 {
  text-transform: uppercase;
  margin: 0 0 10px;
  font-size: 1.1rem;
  text-align: center;
}

/* Center-aligned content sections */
#details,
#registry,
#travel {
  text-align: center;
}

/* ========================================
   COUNTDOWN TIMER
   ======================================== */
#countdown {
  background: transparent;
  text-align: center;
  margin-top: 20px;
}

#countdown .script {
  font-family: 'Alex Brush', cursive;
  font-size: clamp(30px, 5.2vw, 54px);
  margin-bottom: 0.35rem;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.35), 0 8px 18px rgba(0, 0, 0, 0.08);
}

#countdown .timer-big {
  font-weight: 700;
  font-size: clamp(28px, 6vw, 56px);
  letter-spacing: 0.02em;
  color: var(--ink);
}

/* ========================================
   FAQ STYLES
   ======================================== */
#faq {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

#faq dt {
  font-weight: 700;
  margin-top: 16px;
}

#faq dd {
  margin: 6px 0 14px 0;
}

/* ========================================
   TRAVEL PAGE STYLES
   ======================================== */
#travel ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

#travel li {
  margin: 6px 0;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  margin: 100px 0 250px;
  text-align: center;
  color: #566257;
  font-size: 1.1rem;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center {
  text-align: center;
}

.mt-18 {
  margin-top: 18px;
}

/* ========================================
   LINKS
   ======================================== */
a {
  color: var(--accent);
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

/* ========================================
   REGISTRY BUTTONS
   ======================================== */
.registry-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  margin-top: 20px;
}

.registry-btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 15px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(46, 107, 66, 0.2);
  width: 100%;
  max-width: 350px;
  text-align: center;
}

.registry-btn:hover {
  background: #1f4d2f;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(46, 107, 66, 0.3);
  opacity: 1;
}

@media (min-width: 768px) {
  .registry-buttons {
    flex-direction: row;
    justify-content: center;
  }
  
  .registry-btn {
    width: auto;
    min-width: 280px;
  }
}
