/* ===== Wedding invitation (hero + itinerary) ===== */

  /* =========================================================================
   Wedding Invitation — themeable stylesheet
   Everything you'd want to re-skin lives in the :root variables below.
   Swap colors, fonts, or sizes there and the whole card updates.
   ========================================================================= */

:root {
  /* ---- Colors -------------------------------------------------------- */
  /* Terracotta / gold palette (client color #E35336). */
  --color-bg: #faf5ec;              /* paper background */
  --color-envelope: #e35336;        /* envelope front color (terracotta) */
  --color-envelope-shade: #8f2c18;  /* envelope fold/crease shade (burnt terracotta) */
  --color-envelope-shadow: rgba(70, 18, 8, 0.55);
  --color-text: #e35336;            /* headings, script text, accents (terracotta) */
  --color-text-soft: #c2432a;       /* body copy (deeper terracotta, easier to read) */
  --color-gold-light: #f6e6bd;      /* wax seal highlight (warm gold, light) */
  --color-gold: #cc9e52;            /* wax seal base (gold/brass) */
  --color-gold-dark: #6b4a1f;       /* wax seal shadow / monogram ink (bronze) */

  /* ---- Fonts ----------------------------------------------------------
     Loaded from Google Fonts in the HTML <head>. Swap the family names
     here (and the matching <link>) to re-theme typography.            */
  --font-script: 'Alex Brush', cursive;   /* names, "Itinerario" */
  --font-display: 'Playfair Display', serif; /* big "14", numerals */
  --font-body: 'EB Garamond', serif;      /* paragraphs, labels, times */

  /* ---- Sizing ---------------------------------------------------------- */
  --card-max-width: 480px;
}

/* ---- Reset / base ------------------------------------------------------ */
.invitation * {
  box-sizing: border-box;
}

.invitation {
  max-width: var(--card-max-width);
  margin: 0 auto;
  background-color: var(--color-bg);
  /* subtle paper-grain texture, purely CSS, no image assets required */
  background-image:
    radial-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    radial-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 2px 2px;
  color: var(--color-text-soft);
  font-family: var(--font-body);
  text-align: center;
  padding: 0 0 56px;
  overflow: hidden;
}

/* =========================================================================
   Envelope + wax seal (pure CSS/SVG, no raster image)
   ========================================================================= */

/* The envelope sits inside a cream margin, like the printed card in the design. */
.envelope-wrap {
  padding: 44px 34px 0;
}

.envelope-frame {
  position: relative;
  width: 100%;
  padding-top: 66%; /* aspect ratio for the envelope block */
  background-color: var(--color-envelope);
  /* velvet-like sheen + faint brocade texture, pure CSS, no image assets */
  background-image:
    radial-gradient(ellipse at 50% 18%, rgba(255, 255, 255, 0.14), transparent 62%),
    radial-gradient(ellipse at 50% 110%, rgba(0, 0, 0, 0.35), transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.035) 0.9px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.04) 0.9px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 11px 11px, 16px 16px;
  background-position: 0 0, 0 0, 0 0, 5px 8px;
  box-shadow: 0 10px 26px rgba(120, 40, 20, 0.28);
  overflow: hidden;
}

.envelope-frame svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.envelope-fold {
  fill: none;
  stroke: var(--color-envelope-shadow);
  stroke-width: 1.6;
}

.envelope-flap {
  fill: var(--color-envelope-shade);
  opacity: 0.22;
}

.wax-seal {
  position: absolute;
  top: 58%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--color-gold-light), var(--color-gold) 55%, var(--color-gold-dark) 100%);
  box-shadow:
    0 3px 6px rgba(0, 0, 0, 0.35),
    inset 0 0 0 3px rgba(255, 255, 255, 0.15),
    inset 0 -4px 8px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wax-seal::before {
  /* wax-stamped ridge ring */
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 0, 0, 0.18);
}

.wax-seal-monogram {
  position: relative;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-gold-dark);
}

.wax-seal-monogram .initial-left,
.wax-seal-monogram .amp,
.wax-seal-monogram .initial-right {
  position: absolute;
  transform: translate(-50%, -50%);
}

.wax-seal-monogram .initial-left {
  top: 30%;
  left: 32%;
  font-size: 32px;
}

.wax-seal-monogram .amp {
  top: 50%;
  left: 49%;
  font-size: 22px;
}

.wax-seal-monogram .initial-right {
  top: 66%;
  left: 65%;
  font-size: 32px;
}

/* =========================================================================
   Couple names
   ========================================================================= */

.names {
  margin-top: 40px;
  padding: 0 24px;
}

.names .script-line {
  font-family: var(--font-script);
  color: var(--color-text);
  font-size: 46px;
  line-height: 1.2;
  display: block;
}

.names .ampersand {
  font-size: 60px;
  line-height: 1;
  margin: 10px 0 4px;
  opacity: 0.92;
}

/* =========================================================================
   Intro paragraph
   ========================================================================= */

.intro {
  margin: 18px auto 0;
  padding: 0 40px;
  max-width: 400px;
  color: var(--color-text-soft);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: 0.2px;
}

/* =========================================================================
   Date block: SÁBADO — 14 — FEBRERO / 2026
   ========================================================================= */

.date-block {
  margin-top: 56px;
}

.date-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 34px;
}

.date-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 4px;
  text-indent: 4px; /* balances the trailing letter-spacing so text stays centred */
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-text);
}

.date-label::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-text);
  opacity: 0.85;
  margin-bottom: 10px;
}

.date-day {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1;
  padding-bottom: 4px;
}

.date-year {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--color-text);
}

.location {
  margin: 30px 0 0;
  color: var(--color-text-soft);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: 0.5px;
}

/* =========================================================================
   Itinerary
   ========================================================================= */

.itinerary {
  margin-top: 56px;
  padding: 0 36px 0 28px;
}

.itinerary-title {
  font-family: var(--font-script);
  color: var(--color-text);
  font-size: 40px;
  margin-bottom: 28px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  text-align: left;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 12px 0 22px;
  position: relative;
}

/* vertical rule linking one event to the next (hidden on the last one) */
.timeline-item::before {
  content: "";
  position: absolute;
  left: 19px; /* centred on the 40px icon column */
  top: 58px;
  bottom: -4px;
  width: 1px;
  background: var(--color-text);
  opacity: 0.4;
}

.timeline-item:last-child {
  padding-bottom: 4px;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  position: relative;
  z-index: 1;
}

.timeline-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.timeline-content {
  padding-top: 2px;
}

.timeline-time {
  margin: 0 0 2px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.timeline-event {
  display: block;
  margin: 2px 0 4px;
  font-family: var(--font-script);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
  text-transform: none;
  color: var(--color-text);
}

.timeline-desc {
  margin: 0;
  color: var(--color-text-soft);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  /* hanging indent: wrapped lines align with the text, not under the pin */
  padding-left: 18px;
  text-indent: -18px;
}

/* The venue itself is the map link: same type as the rest of the line,
   with a hairline underline and a small pin so it reads as tappable. */
.invitation .timeline-place,
.invitation .timeline-place:link,
.invitation .timeline-place:visited {
  color: var(--color-text-soft);
  text-decoration: none;
  text-decoration-color: rgba(194, 67, 42, 0.35);
  transition: color 0.25s;
}

.invitation .timeline-place:hover,
.invitation .timeline-place:focus,
.invitation .timeline-place:active {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* the pin leads the line, so the venue reads as a map link without an underline */
.invitation .timeline-place .pin {
  width: 13px;
  height: 13px;
  margin-right: 5px;
  vertical-align: -1.5px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.75;
  transition: opacity 0.25s;
}

.invitation .timeline-place:hover .pin,
.invitation .timeline-place:focus .pin {
  opacity: 1;
}

/* =========================================================================
   Small screens
   ========================================================================= */

@media (max-width: 420px) {
  .envelope-wrap { padding: 32px 22px 0; }
  .wax-seal { width: 78px; height: 78px; }
  .wax-seal-monogram .initial-left,
  .wax-seal-monogram .initial-right { font-size: 27px; }
  .wax-seal-monogram .amp { font-size: 18px; }
  .names .script-line { font-size: 38px; }
  .names .ampersand { font-size: 50px; }
  .intro { font-size: 16px; padding: 0 26px; }
  .date-row { gap: 12px; padding: 0 22px; }
  .date-label { font-size: 13px; letter-spacing: 2.5px; text-indent: 2.5px; }
  .date-day { font-size: 54px; }
  .date-year { font-size: 21px; }
  .itinerary { padding: 0 22px 0 18px; }
  .timeline-event { font-size: 28px; }
  .timeline-desc { font-size: 14px; }
}

/* =========================================================================
   Optional per-event note (dress code, transport, etc.)
   ========================================================================= */

.timeline-note {
  margin: 4px 0 0;
  color: var(--color-text-soft);
  font-family: var(--font-body);
  font-size: 15px;
  font-style: italic;
  line-height: 1.4;
}

@media (max-width: 420px) {
  .timeline-note { font-size: 13px; }
}
