:root{
  --bg: #2b2319;          /* dark parchment brown */
  --ink: #f5e9d0;         /* light parchment ink */
  --accent: #c2a45d;      /* golden highlight */
  --highlight: #e2c974;   /* brighter gold */
  --parchment: #3a2e21;   /* darker parchment panels */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  line-height: 1.45;
}

/* Smooth scrolling for all anchor links */
html {
  scroll-behavior: smooth;
}

/* Scroll offset for fixed navigation - ensures section titles are visible */
section[id] {
  scroll-margin-top: 90px;
}

article[id] {
  scroll-margin-top: 90px;
}

/* Subtle paper grain */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at top left, rgba(0,0,0,0.04), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(0,0,0,0.03), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.page-wrap { overflow-x: hidden; }

h1,h2,h3 {
  font-family: "Cinzel Decorative", serif;
  letter-spacing: 0.5px;
  margin: 0 0 8px 0;
}

p { margin: 0 0 12px 0; }

.container {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 48px 0;
  position: relative;
}

.section-title{
  font-size: 28px;
  margin-bottom: 18px;
  color: var(--highlight);
  text-shadow: 0 1px 0 #fff3;
}

/* About section (odd - light bg, dark cards) */
#about .section-title {
  color: var(--bg);
}

#about .section-subtitle {
  color: var(--bg);
}

.lead { font-size: 20px; }

/* Hero */
.hero {
  position: relative;
  padding: 84px 0 96px;
  background:
    radial-gradient(circle at 50% 20%, rgba(194,164,93,0.2), transparent 60%),
    linear-gradient(180deg, #3a2e21 0%, #2b2319 60%, #20180f 100%);
  overflow: hidden;
  border-bottom: 1px solid #5a4a33;
}

.hero-overlay{
  position:absolute; inset:0;
  background-image:
    radial-gradient(closest-side, rgba(226,201,116,0.15), transparent 60%),
    url('data:image/svg+xml;utf8,\
<svg xmlns="http://www.w3.org/2000/svg" width="800" height="800" viewBox="0 0 200 200">\
<defs><pattern id="geo" width="40" height="40" patternUnits="userSpaceOnUse">\
<circle cx="20" cy="20" r="18" fill="none" stroke="rgba(156,123,53,0.18)" stroke-width="0.6"/>\
<path d="M20 2 L38 20 L20 38 L2 20 Z" fill="none" stroke="rgba(156,123,53,0.15)" stroke-width="0.5"/>\
</pattern></defs>\
<rect width="100%" height="100%" fill="url(%23geo)"/>\
</svg>');
  background-repeat: repeat;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-inner{
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 16px;
}

.title{
  font-size: clamp(36px, 5vw, 62px);
  color: var(--ink);
}

.subtitle{
  font-size: clamp(16px, 2.2vw, 22px);
  margin: 8px auto 18px;
  max-width: 820px;
  opacity: 0.9;
}

.cta{
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--highlight);
  background: linear-gradient(#4a3b28, #2b2319);
  color: var(--highlight);
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(226,201,116,0.3);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.cta:hover { box-shadow: 0 0 12px rgba(226,201,116,0.5); transform: translateY(-1px); }
.cta:active { transform: translateY(1px); }

.sigil{
  position: absolute;
  width: 540px; height: 540px;
  left: 50%; top: 50%;
  transform: translate(-50%, -30%);
  background-image: radial-gradient(circle, rgba(156,123,53,0.25) 0, transparent 60%);
  filter: blur(12px);
  pointer-events: none;
}

/* Section backgrounds - alternating pattern */
.section:nth-child(odd) {
  background: linear-gradient(180deg, #f5e9d0 0%, #efe4c8 100%);
  color: var(--bg);
}

.section:nth-child(even) {
  background: var(--bg);
  color: var(--ink);
}

.parchment {
  background: var(--bg);
  color: var(--ink);
}

/* Talk cards (short items) */
.talk-card{
  padding: 14px 16px;
  margin: 12px 0;
  border: 1px solid #5a4a33;
  background: #352a1e;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.talk-card h3{ margin: 0 0 6px; font-size: 20px; color: var(--ink); }
.talk-card .speaker{ margin: 0; opacity: 0.9; }

/* Scroll cards (full bios) */
.scroll-card{
  position: relative;
  margin: 18px 0;
  padding: 16px;
  background: #352a1e;
  border: 1px solid #5a4a33;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.scroll-card-head h3{ font-size: 22px; margin-bottom: 4px; }
.topic{ font-style: italic; opacity: 0.95; }

details{
  margin-top: 10px;
  border-top: 1px dashed #c9b489;
  padding-top: 10px;
}
details > summary{
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-left: 22px;
}
details > summary::before{
  content:"+";
  position: absolute; left: 0; top: 0;
  font-weight: 700;
  color: var(--highlight);
}
details[open] > summary::before{ content: "–"; }

.scroll-card-body p + p { margin-top: 10px; }

/* Footer */
.footer{
  padding: 40px 0 60px;
  background:
    linear-gradient(180deg, #efe7d2, #ecdfc1);
  border-top: 1px solid #d9c7a1;
}
.footer-ink{
  text-align: center;
  font-size: 16px;
}
.footer a{ color: var(--ink); }
.fine{ font-size: 14px; opacity: 0.8; margin-top: 6px; }

/* Responsive */
@media (max-width: 640px){
  .lead{ font-size: 18px; }
  .scroll-card{ padding: 14px; }
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(43, 35, 25, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #5a4a33;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Cinzel Decorative", serif;
  font-size: 20px;
  color: var(--highlight);
}

.nav-symbol {
  font-size: 24px;
  filter: drop-shadow(0 0 8px rgba(226,201,116,0.5));
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
}

.nav-menu a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: var(--highlight);
  text-shadow: 0 0 8px rgba(226,201,116,0.3);
}

.nav-cta {
  background: linear-gradient(#4a3b28, #2b2319);
  color: var(--highlight) !important;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--highlight);
  box-shadow: 0 0 8px rgba(226,201,116,0.2);
}

.nav-cta:hover {
  box-shadow: 0 0 12px rgba(226,201,116,0.4);
  transform: translateY(-1px);
}

/* Adjust hero for navigation */
.hero {
  margin-top: 70px;
}

/* Enhanced Hero */
.hero-badge {
  display: inline-block;
  background: rgba(226,201,116,0.15);
  color: var(--highlight);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgba(226,201,116,0.3);
  font-size: 14px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin: 32px 0;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: "Cinzel Decorative", serif;
  font-size: 48px;
  color: var(--highlight);
  text-shadow: 0 0 12px rgba(226,201,116,0.4);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.cta-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: none;
}

.cta-secondary:hover {
  background: rgba(245,233,208,0.1);
  box-shadow: 0 0 8px rgba(245,233,208,0.2);
}

/* Section Intro */
.section-intro {
  text-align: center;
  margin-bottom: 48px;
}

.section-subtitle {
  font-size: 18px;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

/* About Grid - for light background sections */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.about-card {
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, #3a2e21 0%, #2b2319 100%);
  border: 1px solid #5a4a33;
  border-radius: 12px;
  box-shadow: 
    0 4px 12px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(245,233,208,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--ink);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 8px 24px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(245,233,208,0.2);
}

.about-card h3 {
  color: var(--highlight);
  margin-bottom: 16px;
}

.about-card p {
  color: var(--ink);
  opacity: 0.9;
}

/* Schedule - for dark background sections with light cards */
.schedule-date {
  text-align: center;
  margin-bottom: 48px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(226,201,116,0.1), rgba(194,164,93,0.1));
  border: 1px solid rgba(226,201,116,0.3);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.schedule-date h3 {
  color: var(--highlight);
  font-size: 28px;
  margin-bottom: 8px;
  font-weight: 600;
}

.schedule-date p {
  color: var(--ink);
  opacity: 0.8;
  font-size: 16px;
  margin: 0;
}

.schedule-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
}

.schedule-day {
  background: linear-gradient(135deg, #f5e9d0 0%, #efe4c8 100%);
  border: 1px solid #dbc9a2;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 
    0 4px 12px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

.day-header {
  background: linear-gradient(135deg, #3a2e21, #2b2319);
  padding: 24px;
  text-align: center;
  border-bottom: 1px solid #5a4a33;
}

.day-header h3 {
  color: var(--highlight);
  margin-bottom: 8px;
}

.day-header p {
  opacity: 0.8;
  margin: 0;
  color: var(--ink);
}

.day-sessions {
  padding: 24px;
  background: linear-gradient(135deg, #f5e9d0 0%, #efe4c8 100%);
}

.session {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(194,164,93,0.4);
}

.session:last-child {
  border-bottom: none;
}

.session-time {
  font-weight: 600;
  color: var(--accent);
  min-width: 100px;
  font-size: 14px;
}

.session-content h4 {
  margin: 0 0 4px 0;
  font-size: 16px;
  color: var(--bg);
}

.session-content p {
  margin: 0;
  opacity: 0.8;
  font-size: 14px;
  color: var(--bg);
}

/* Speakers section - light background with dark cards */
#speakers {
  background: linear-gradient(180deg, #f5e9d0 0%, #efe4c8 100%);
  color: var(--bg);
}

#speakers .section-title {
  color: var(--bg);
}

#speakers .section-subtitle {
  color: var(--bg);
}

/* Speakers Grid */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.speaker-card {
  background: linear-gradient(135deg, #3a2e21 0%, #2b2319 100%);
  border: 1px solid #5a4a33;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 6px 20px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(245,233,208,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.speaker-card:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 12px 32px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(245,233,208,0.2);
}

.speaker-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  position: relative;
  background: #2b2319;
}

.speaker-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.3s ease;
}

/* Specific positioning for Maria's photo to show her face */
.speaker-card:nth-child(2) .speaker-image img {
  object-position: center 15%;
}

.speaker-card:hover .speaker-image img {
  transform: scale(1.05);
}

.speaker-content {
  padding: 24px;
  background: linear-gradient(135deg, #3a2e21 0%, #2b2319 100%);
  color: var(--ink);
}

.speaker-content h3 {
  color: var(--highlight);
  margin-bottom: 8px;
  font-size: 22px;
}

.speaker-title {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.speaker-topic {
  font-style: italic;
  opacity: 0.9;
  margin-bottom: 16px;
  line-height: 1.4;
  color: var(--ink);
}

.speaker-bio {
  margin-top: 12px;
  color: var(--ink);
}

.speaker-bio p {
  margin-bottom: 12px;
  color: var(--ink);
}

/* Signup Section - dark background with light cards */
#signup {
  background: var(--bg);
  color: var(--ink);
}

#signup .section-title {
  color: var(--highlight);
}

#signup .section-subtitle {
  color: var(--ink);
}

/* Detailed Speaker Information Section - dark background with light cards */
#speaker-details {
  background: linear-gradient(180deg, var(--bg) 0%, var(--parchment) 100%);
  color: var(--ink);
}

#speaker-details .section-title {
  color: var(--highlight);
}

#speaker-details .section-subtitle {
  color: var(--ink);
  opacity: 0.8;
}

.detailed-speakers {
  max-width: 800px;
  margin: 0 auto;
}

.scroll-card {
  position: relative;
  margin: 24px 0;
  padding: 0;
  background: linear-gradient(135deg, #f8f4e6 0%, #f2ead1 100%);
  border: 1px solid #e0d3b7;
  border-radius: 14px;
  box-shadow: 
    0 4px 16px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.4);
  overflow: hidden;
}

.scroll-card-head {
  padding: 20px 24px;
  background: linear-gradient(135deg, #3a2e21, #2b2319);
  border-bottom: 1px solid #5a4a33;
}

.scroll-card-head h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--highlight);
}

.topic {
  font-style: italic;
  opacity: 0.95;
  margin: 0;
  color: var(--ink);
  line-height: 1.4;
}

.scroll-card details {
  margin: 0;
  border: none;
  padding: 0;
}

.scroll-card-body {
  padding: 24px;
  background: linear-gradient(135deg, #f8f4e6 0%, #f2ead1 100%);
  color: var(--bg);
}

.scroll-card-body p {
  margin-bottom: 16px;
  line-height: 1.6;
  color: var(--bg);
}

.scroll-card-body p:last-child {
  margin-bottom: 0;
}

/* Speaker name links */
.speaker-content h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.speaker-content h3 a:hover {
  color: var(--highlight);
  text-decoration: underline;
}

/* Signup Section */
.signup-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.signup-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin: 48px 0;
}

.benefit {
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, #f5e9d0 0%, #efe4c8 100%);
  border: 1px solid #dbc9a2;
  border-radius: 12px;
  box-shadow: 
    0 4px 12px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.3);
  color: var(--bg);
}

.benefit h3 {
  color: var(--bg);
  margin-bottom: 12px;
  font-size: 18px;
}

.benefit p {
  color: var(--bg);
  opacity: 0.9;
}

.signup-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin: 32px 0;
}

.signup-option {
  text-align: center;
  padding: 32px;
  background: linear-gradient(135deg, rgba(245,233,208,0.1), rgba(239,228,200,0.1));
  border: 1px solid rgba(224,211,183,0.3);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.signup-option h3 {
  color: var(--highlight);
  margin-bottom: 12px;
  font-size: 24px;
}

.signup-option p {
  color: var(--ink);
  opacity: 0.9;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Ticket Reservation Form */
.ticket-form {
  width: 100%;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.email-input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid rgba(194,164,93,0.3);
  border-radius: 12px;
  background: rgba(245,233,208,0.1);
  color: var(--ink);
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.email-input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(245,233,208,0.15);
  box-shadow: 0 0 0 3px rgba(194,164,93,0.2);
}

.email-input::placeholder {
  color: rgba(245,233,208,0.6);
}

/* Success Message */
.success-message {
  background: linear-gradient(135deg, rgba(34,139,34,0.1), rgba(46,125,50,0.1));
  border: 1px solid rgba(34,139,34,0.3);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-top: 20px;
  backdrop-filter: blur(10px);
}

.success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.success-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.success-message h4 {
  color: var(--highlight);
  margin: 0;
  font-size: 20px;
}

.success-message p {
  color: var(--ink);
  opacity: 0.9;
  margin: 0;
  line-height: 1.5;
}

/* Error Message */
.error-message {
  background: linear-gradient(135deg, rgba(220,53,69,0.1), rgba(220,53,69,0.1));
  border: 1px solid rgba(220,53,69,0.3);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-top: 20px;
  backdrop-filter: blur(10px);
}

.error-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.error-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.error-message h4 {
  color: #ff6b6b;
  margin: 0;
  font-size: 20px;
}

.error-message p {
  color: var(--ink);
  opacity: 0.9;
  margin: 0;
  line-height: 1.5;
}

.signup-action {
  margin-top: 48px;
}

.signup-text {
  font-size: 20px;
  margin-bottom: 32px;
  opacity: 0.9;
}

.cta-large {
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.cta-icon {
  font-size: 20px;
  filter: drop-shadow(0 0 8px rgba(226,201,116,0.5));
}

.signup-note {
  margin-top: 16px;
  font-size: 14px;
  opacity: 0.7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-container {
    height: 60px;
  }
  
  .hero {
    margin-top: 60px;
    padding: 60px 0 72px;
  }
  
  .nav-menu {
    display: none; /* Simplified for mobile */
  }
  
  .hero-stats {
    gap: 24px;
  }
  
  .stat-number {
    font-size: 36px;
  }
  
  .about-grid,
  .speakers-grid {
    grid-template-columns: 1fr;
  }
  
  .schedule-overview {
    grid-template-columns: 1fr;
  }
  
  .signup-benefits {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .cta {
    width: 100%;
    max-width: 280px;
  }
}
