@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: Fraunces;
  src: url("assets/fraunces.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}

@font-face {
  font-family: Fraunces;
  src: url("assets/fraunces-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 500 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --plum: #251427;
  --ink: #2a1728;
  --muted: #695866;
  --accent: #813f56;
  --gold: #ffd393;
  --cream: #fffaf2;
  --paper: #fffdfa;
  --line: #e9dcd8;
  --serif: Fraunces, Georgia, serif;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid #a34867;
  outline-offset: 4px;
}
p, h1, h2, h3, h4 { margin: 0; }
.page-width { width: min(100% - 3rem, 70rem); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 5;
  transform: translateY(-160%);
  padding: .8rem 1rem;
  border-radius: .5rem;
  color: var(--ink);
  background: var(--gold);
}
.skip-link:focus { transform: translateY(0); }

.site-header { background: var(--plum); color: var(--cream); }
.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  white-space: nowrap;
  text-decoration: none;
}
.brand img { flex: none; border-radius: .75rem; }
.brand strong, .brand small { display: block; line-height: 1.16; }
.brand strong { font-size: 1.04rem; font-weight: 700; }
.brand small { margin-top: .21rem; color: #ebd4de; font-size: .82rem; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--cream);
  background:
    radial-gradient(ellipse at 70% 110%, #61344b, transparent 68%),
    var(--plum);
}
.hero-image, .hero-shade {
  position: absolute;
  inset-block: 0;
  height: 100%;
}
.hero-image {
  z-index: -2;
  right: 0;
  width: min(74%, 94rem);
  object-fit: cover;
  object-position: 61% 53%;
}
.hero-shade {
  z-index: -1;
  inset-inline: 0;
  background:
    linear-gradient(0deg, #2514278c, transparent 37%),
    linear-gradient(90deg, #251427 7%, #251427 28%, #251427f0 36%, #25142758 63%, #2514270a 100%);
}
.hero-content { padding-block: clamp(3.9rem, 7vw, 6rem) clamp(4.1rem, 7vw, 6.2rem); }
.hero-date {
  display: inline-flex;
  gap: .52rem;
  align-items: center;
  color: var(--gold);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .115em;
  text-transform: uppercase;
}
.hero h1 {
  margin-top: 1.12rem;
  font: 600 clamp(3.45rem, 7.1vw, 6.5rem)/.98 var(--serif);
  letter-spacing: -.036em;
}
.hero h1 em { color: var(--gold); }
.hero-invite {
  max-width: 26rem;
  margin-top: 1.28rem;
  color: #f4e5eb;
  font-size: clamp(1rem, 1.7vw, 1.19rem);
  line-height: 1.55;
}
.speaker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .42rem;
  width: fit-content;
  margin-top: 1.15rem;
  color: #f4deaa;
  font-size: .93rem;
}
.speaker strong { color: var(--cream); }
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: 1.65rem;
  padding: .7rem 1.24rem;
  border-radius: .75rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 5px 16px #190d1748;
  transition: background-color .16s ease, transform .16s ease;
}
.primary-button:hover { background: #ffe1b6; transform: translateY(-2px); }
.site-header :focus-visible, .hero :focus-visible { outline-color: var(--gold); }

.schedule {
  max-width: 62rem;
  padding-block: clamp(2.8rem, 6vw, 4.25rem) clamp(3rem, 7vw, 5.3rem);
  scroll-margin-top: .7rem;
}
.program-intro { text-align: center; }
.program-mark { display: block; color: var(--accent); font-size: 1.35rem; }
.program-intro h2 {
  margin-top: .12rem;
  font: 600 clamp(2.55rem, 5vw, 4rem)/1.06 var(--serif);
  letter-spacing: -.038em;
}
.program-intro p { margin-top: .65rem; color: var(--muted); }

.day-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin-top: 1.65rem;
}
.day-link {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 4.65rem;
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--paper);
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.day-link:hover { border-color: #aa758c; transform: translateY(-2px); }
.day-link[aria-current] { color: var(--cream); background: #46243f; border-color: #46243f; }
.day-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: .65rem;
  background: #fbecdf;
  font-size: 1.22rem;
}
.day-link[aria-current] .day-icon { background: #603b52; }
.day-copy { display: grid; gap: .14rem; }
.day-copy strong { font-size: 1.04rem; line-height: 1.15; }
.day-copy time { color: var(--muted); font-size: .87rem; line-height: 1.22; }
.day-link[aria-current] time { color: #f3dce6; }

.day-panel {
  margin-top: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1.16rem;
  background: var(--paper);
  box-shadow: 0 13px 40px #4725400a;
  scroll-margin-top: .8rem;
}
.day-panel.is-entering { animation: enter .22s ease both; }
@keyframes enter {
  from { opacity: .5; transform: translateY(.25rem); }
  to { opacity: 1; transform: translateY(0); }
}
.schedule-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.15rem, 4vw, 2rem) clamp(1rem, 4vw, 2.2rem);
  border-bottom: 1px solid var(--line);
  border-radius: 1.16rem 1.16rem 0 0;
  background: #f8eee8;
}
.schedule-date {
  margin-bottom: .4rem;
  color: var(--accent);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.schedule-heading h3 {
  font: 600 clamp(1.8rem, 3.5vw, 2.65rem)/1.08 var(--serif);
  letter-spacing: -.033em;
}
.start-time {
  display: grid;
  flex: none;
  align-content: center;
  min-width: 4.5rem;
  min-height: 3.4rem;
  padding: .35rem .65rem;
  border: 1px solid #e6d0ce;
  border-radius: .75rem;
  color: var(--accent);
  background: var(--paper);
  text-align: center;
  line-height: 1.2;
}
.start-time span { font-size: .82rem; }
.start-time time { margin-top: .06rem; font-size: 1.35rem; font-weight: 700; }
.timeline {
  margin: 0;
  padding: .24rem clamp(1rem, 4vw, 2.2rem);
  list-style: none;
}
.event {
  display: grid;
  grid-template-columns: 4.65rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .9rem;
  padding-block: .85rem;
}
.event + .event { border-top: 1px solid #efe5e2; }
.event-time {
  color: var(--accent);
  font-size: 1.03rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.event h4 { font-size: 1rem; line-height: 1.28; }
.event p { margin-top: .2rem; color: var(--muted); font-size: .92rem; line-height: 1.35; }
.duration {
  padding: .18rem .5rem;
  border-radius: .4rem;
  color: #614957;
  background: #f6eeeb;
  font-size: .79rem;
  white-space: nowrap;
}
.schedule-end {
  display: flex;
  flex-wrap: wrap;
  gap: .32rem;
  padding: .82rem clamp(1rem, 4vw, 2.2rem);
  border-top: 1px solid var(--line);
  border-radius: 0 0 1.16rem 1.16rem;
  color: var(--muted);
  background: #fbf5ef;
  font-size: .9rem;
}
.schedule-end strong { color: var(--ink); }
.evening { border-top: 1px solid var(--line); }
.evening .schedule-heading, #sabado .schedule-end { border-radius: 0; }

.site-footer { border-top: 1px solid #52374d; color: #f0dde6; background: var(--plum); }
.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .56rem;
  padding-block: 1.45rem;
  font-size: .9rem;
  text-align: center;
}
.footer-mark { color: var(--gold); }

@media (max-width: 44rem) {
  .page-width { width: calc(100% - 2rem); }
  .topbar { min-height: 4.1rem; }
  .hero-image { width: 100%; object-position: 61% 54%; }
  .hero-shade {
    background:
      linear-gradient(0deg, #251427b8, #25142700 40%),
      linear-gradient(90deg, #251427f0 4%, #251427c7 45%, #25142752 100%);
  }
}

@media (max-width: 32rem) {
  .hero-content { padding-block: 3.35rem 3.3rem; }
  .hero-image { object-position: 66% 53%; }
  .hero-date { font-size: .79rem; letter-spacing: .075em; }
  .hero h1 { font-size: clamp(2.9rem, 11vw, 4.55rem); }
  .hero-invite { max-width: 19.5rem; }
  .day-picker { gap: .45rem; }
  .day-link {
    flex-direction: column;
    justify-content: center;
    gap: .35rem;
    min-height: 5.45rem;
    padding: .53rem .17rem;
    text-align: center;
  }
  .day-icon { width: 1.95rem; height: 1.95rem; font-size: 1.02rem; }
  .day-copy strong { font-size: .97rem; }
  .day-copy time { font-size: .76rem; }
  .event { grid-template-columns: 3.15rem minmax(0, 1fr) auto; gap: .46rem; }
  .event-time { font-size: .94rem; }
  .event p { font-size: .88rem; }
  .duration { padding-inline: .32rem; font-size: .73rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
