:root{
  /* Light spring / rural paper palette */
  --paper: #fbf8f2;
  --panel: #ffffff;
  --ink: #111111;
  --muted: #3a3a3a;
  --border: #e6dfd2;      /* warm light border */
  --rule: #d9d1c3;
  --accent: #94b88f;      /* soft green */
  --radius: 18px;
  --shadow: 0 14px 34px rgba(0,0,0,0.08);
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  height: 100%;
}

body{
  color: var(--ink);
  /* Fallback color while the background image loads */
  background: #0b1a0f;
  position: relative;
  min-height: 100vh;

  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ------------------------------------------------------------
   Fixed full-page background photo
   - Uses a fixed pseudo-element (more reliable than
     background-attachment: fixed on iOS/Safari)
   - The content card scrolls while the forest stays still
------------------------------------------------------------- */

body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;

  background-image: url("bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Keeps it crisp during scroll on some browsers */
  transform: translateZ(0);
}

/* Soft dark overlay for readability (tuned for green forest photos) */
/*body::after{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 50% 18%, rgba(0,0,0,0.18), rgba(0,0,0,0.55));
}
*/

/* Center column */
.page{
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 72px 16px 54px;
}

.invitation{
  width: min(860px, 100%);
  --panel: rgba(255,255,255,1);
  background: var(--panel);
  /* subtle paper texture */
  background-image:
    radial-gradient(rgba(0,0,0,0.028) 1px, transparent 1px);
  background-size: 14px 14px;

  border: 1px solid rgba(230,223,210,1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);

  /* store padding as variables so the photo can “bleed” */
  --inv-pad-y: 28px;
  --inv-pad-x: 18px;
  padding: var(--inv-pad-y) var(--inv-pad-x);
}

@media (min-width: 720px){
  .invitation{
    --inv-pad-y: 52px;
    --inv-pad-x: 62px;
    padding: var(--inv-pad-y) var(--inv-pad-x);
  }
}
/* A classic “stationery” header line */

@media (max-width: 420px){
  /* A touch more padding so the glass panel doesn’t feel cramped */
  .page{ padding: 22px 12px 44px; }
}

/* Header */
.invitation__header{
  text-align: center;
  padding-bottom: 10px;
}

.kicker{
  margin: 0 0 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--muted);
}

.names{
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 4.6vw, 3.3rem);
  line-height: 1.08;
}

.amp{
  font-weight: 400;
  padding: 0 0.14em;
}

.tagline{
  margin: 10px 0 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  color: var(--muted);
}

/* Card image (A5 landscape) */
.card-photo{
  /* full-bleed inside the white invitation panel */
  margin: calc(-1 * var(--inv-pad-y)) calc(-1 * var(--inv-pad-x)) 0;
  width: calc(100% + var(--inv-pad-x) + var(--inv-pad-x));
  text-align: center;

  /* match the panel’s rounded top corners */
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.card-photo img{
  width: 100%;
  height: auto;
  display: block;

  /* no inner rounding / no white fill */
  border-radius: 0;
  background: transparent;

  /* remove the height cap so it can truly reach the edges */
  max-height: none;
}

.card-photo figcaption{
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--muted);
  font-style: italic;
}

/* Details */
.details{
  text-align: center;
  padding-top: 6px;
}

.section-title{
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.55rem;
}

.date{
  margin: 0;
  font-size: 1.05rem;
}

.date .sub{
  display: inline-block;
  margin-top: 6px;
  color: var(--muted);
}

/* Simple classic divider */
.ornament{
  margin: 22px auto;
  width: min(420px, 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: auto;
  background: none;
}

.ornament::before,
.ornament::after{
  content: "";
  height: 1px;
  background: var(--rule);
  flex: 1 1 auto;
}

/* Center ornament (transparent — no white box) */
.ornament span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: rgba(0,0,0,0.5);
  font-size: 0.95rem;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.35));
}

.ornament span::before{
  content: "✿";
}


/* Body copy — centered like classic invitations */
.copy{
  margin: 0 auto;
  width: min(640px, 100%);
  text-align: center;
  font-size: 1.02rem;
  color: var(--ink);
}

.copy p{
  margin: 0 0 14px;
}

.copy p:last-child{
  margin-bottom: 0;
}

/* CTA */
.cta{
  margin-top: 26px;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.button{
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 18px rgba(0,0,0,0.08);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.button:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0,0,0,0.10);
}

.button:focus-visible{
  outline: 3px solid rgba(148,184,143,0.45);
  outline-offset: 3px;
}

.note{
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */
.invitation__footer{
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.signoff{
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  color: var(--muted);
}

.footer-names{
  margin: 6px 0 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.55rem;
}

/* Schedule (centered) */
.schedule{
  margin: 18px auto 8px;
  width: min(520px, 100%);
  text-align: center;
}

.schedule__title{
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.25rem;
  text-align: center;
}

.schedule__list{
  list-style: none;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
}
/* Since the HTML doesn't wrap the list in .schedule, center the list itself */
.schedule__list{
  width: min(520px, 100%);
  margin: 0 auto;
  list-style: none;
  padding: 0;
  border: none;
  background: transparent;

  /* column widths you can tweak */
  --time-col: 12ch;
  --dash-col: 2ch;
}

/* Each row becomes a 3-column grid so the dash column stays aligned */
.schedule__list li{
  display: grid;
  grid-template-columns: var(--time-col) var(--dash-col) 1fr;
  align-items: baseline;
  column-gap: 10px;
  padding: 6px 0;
}

/* Day header rows stay as headers */
.schedule__list .schedule__day{
  display: block;
  text-align: center;
  font-weight: 700;
  margin: 14px 0 6px;
  padding: 0;
}

/* Align text inside the columns */
.schedule__list .time{
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;     /* keeps the numbers snug against the dash */
}

.schedule__list .dash{
  opacity: 0.7;
  text-align: center;    /* dash sits centered in its column */
}

.schedule__list .item{
  text-align: left;      /* nice “schedule” look; wrapped lines align */
}

/* Optional: slightly tighter on very small screens */
@media (max-width: 420px){
  .schedule__list{ --time-col: 7ch; }
}

