:root {
  color-scheme: light;
  --paper: #faf6ee;
  --ink: #191e34;
  --muted: #53566a;
  --red: #eb694c;
  --rust: #93351f;
  --line: #ded8cc;
  --white: #fffdf8;
  --wrap: 1200px;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.62; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #2871bf; outline-offset: 4px; }
.wrap { width: min(var(--wrap), calc(100% - 100px)); margin-inline: auto; }
.skip { position: fixed; z-index: 9; top: -5rem; left: 1rem; background: white; padding: .7rem 1rem; }
.skip:focus { top: 1rem; }
.header { background: var(--paper); }
.header-inner { min-height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; gap: .65rem; align-items: center; text-decoration: none; line-height: 1.12; font-size: 1.35rem; font-weight: 850; letter-spacing: -.05em; }
.brand img { border-radius: 50%; flex: none; background: var(--ink); }
.brand small { display: block; margin-top: .24rem; font-size: .74rem; font-weight: 650; letter-spacing: .02em; }
nav { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.75rem); }
nav a { font-weight: 700; font-size: .93rem; text-decoration: none; }
nav a:hover, .text-link:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .22em; }
.button, .menu {
  display: inline-flex; align-items: center; justify-content: center;
  max-width: 100%; min-height: 46px; padding: .64rem 1.18rem;
  border: 1px solid transparent; border-radius: .36rem;
  background: var(--red); color: #201919; text-align: center; text-decoration: none;
  font: inherit; font-size: .94rem; font-weight: 800; line-height: 1.3; cursor: pointer;
}
.button:hover, .menu:hover { background: #ff8b70; }
.header-action { background: var(--ink); color: var(--white); }
.header-action:hover { background: #343d60; }
.hero { background: var(--ink); color: var(--white); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: center; gap: clamp(1.5rem, 3vw, 3.5rem); padding-block: clamp(2.75rem, 5vw, 4.5rem); }
.hero-copy { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: .58rem; font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .135em; line-height: 1.4; }
.eyebrow span { width: .75rem; height: 2px; background: var(--red); flex: none; }
.hero .eyebrow { color: #ffa087; }
.hero h1 { font-size: clamp(3.25rem, 6.4vw, 6.4rem); line-height: .99; font-weight: 900; letter-spacing: -.085em; margin: 1.2rem 0 .75rem; }
.hero h1 span { color: var(--red); }
.hero-tagline { font-family: Georgia, serif; font-style: italic; color: #ffc3ad; letter-spacing: -.04em; font-size: clamp(1.65rem, 3.8vw, 3.1rem); line-height: 1.12; }
.hero-description { max-width: 25rem; color: #f0ebea; font-size: 1.11rem; margin: 1.26rem 0 1.65rem; }
.actions { display: flex; gap: .65rem; flex-wrap: wrap; }
.outline { color: var(--white); background: transparent; border-color: #878da1; }
.outline:hover { background: #373d54; }
.hero-photo { position: relative; min-width: 0; }
.hero-photo > a { display: block; }
.hero-photo img { width: 100%; height: auto; border-radius: .45rem; }
figcaption { position: absolute; bottom: .7rem; right: .7rem; color: white; background: #171c2eee; border-radius: .2rem; padding: .15rem .45rem; font-size: .78rem; }
.hero-photo figcaption { max-width: calc(100% - 1.4rem); }
.section { padding-block: clamp(3.6rem, 7vw, 6.3rem); }
section[id] { scroll-margin-top: 1rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.1rem; margin-bottom: 1.7rem; }
h2 { margin-top: .65rem; font-size: clamp(2.3rem, 5.1vw, 4.4rem); font-weight: 850; letter-spacing: -.07em; line-height: 1.02; text-wrap: balance; }
h3 { font-size: 1.35rem; letter-spacing: -.025em; line-height: 1.2; }
p { max-width: 62ch; }
.text-link { color: var(--rust); font-weight: 800; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.section-head > .text-link { margin-bottom: .18rem; }
.agenda-empty, .event { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; border: 1px solid var(--line); padding: 1.35rem 1.5rem; border-radius: .55rem; background: var(--white); }
.agenda-empty p, .event p { margin-top: .32rem; color: var(--muted); }
.light { background: var(--paper); border-color: var(--line); color: var(--ink); }
.light:hover { background: #f1e6da; }
.event + .event { margin-top: .65rem; }
.event time { color: var(--rust); font-weight: 800; }
.event h3 { margin-top: .2rem; }
.event .actions { flex: none; }
details { margin-top: 1.05rem; }
summary { cursor: pointer; font-weight: 750; width: fit-content; }
#passades { margin-top: .75rem; }
.about { background: #eee7da; padding-block: clamp(3.6rem, 7vw, 6rem); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2.25rem, 7vw, 7rem); }
.about-photo { position: relative; background: var(--ink); border-radius: .45rem; overflow: hidden; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 1.2; object-fit: cover; object-position: center 47%; }
.about p:not(.eyebrow), .signup p:not(.eyebrow,.form-note) { margin-block: 1.1rem; font-size: 1.08rem; color: var(--muted); }
.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.activity { padding: 1.55rem clamp(1rem, 2.4vw, 1.9rem) 1.5rem; }
.activity:first-child { padding-left: 0; }
.activity + .activity { border-left: 1px solid var(--line); }
.activity p { margin: .75rem 0 1rem; color: var(--muted); }
.history { background: var(--ink); padding-block: clamp(3.6rem, 7vw, 6rem); color: var(--white); }
.history-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 1rem clamp(2rem, 6vw, 6rem); }
.history p { color: #d9daea; margin-top: .75rem; }
.history .eyebrow, .timeline strong { color: #ffa087; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 6.1rem 1fr; gap: 1rem; padding-block: 1.3rem; border-bottom: 1px solid #555b71; }
.timeline li:first-child { border-top: 1px solid #555b71; }
.timeline li p { margin-top: .4rem; }
.sources { grid-column: 2; color: #d9daea; }
.sources ul { padding-left: 1.2rem; }
.sources li + li { margin-top: .3rem; }
.signup { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.signup-panel { padding: clamp(1.15rem, 3.5vw, 2.2rem); border: 1px solid var(--line); border-radius: .55rem; background: var(--white); }
form label { display: block; font-weight: 750; margin: .85rem 0 .25rem; }
form label span { color: var(--muted); font-weight: 400; }
input, select, textarea { display: block; width: 100%; border: 1px solid #99939a; border-radius: .3rem; padding: .55rem .7rem; min-height: 44px; font: inherit; color: var(--ink); background: white; }
select { appearance: none; padding-right: 2.2rem; background: linear-gradient(45deg, transparent 52%, var(--ink) 52%) calc(100% - 17px) 51% / 5px 5px no-repeat, linear-gradient(135deg, var(--ink) 52%, transparent 52%) calc(100% - 12px) 51% / 5px 5px no-repeat, white; }
textarea { resize: vertical; }
form > .button { margin-top: 1rem; }
.form-note { color: var(--muted); font-size: .9rem; margin-top: .65rem; }
.form-note:empty { margin: 0; }
#esborrany .actions { margin-top: .6rem; }
.footer { background: var(--ink); color: var(--white); }
.footer-inner { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.footer a { text-decoration: none; overflow-wrap: anywhere; }
@media (max-width: 950px) {
  .wrap { width: calc(100% - 64px); }
}
@media (max-width: 730px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { position: relative; min-height: 68px; flex-wrap: wrap; justify-content: start; gap: .55rem; padding-block: .55rem; }
  .header .brand { flex: 1; min-width: 0; font-size: 1.2rem; }
  .header .brand img { width: 37px; height: 37px; }
  .header nav { order: 1; flex: 0 0 100%; flex-wrap: wrap; gap: .5rem 1.15rem; padding-block: .55rem; }
  .menu { background: transparent; border-color: var(--line); padding-inline: .7rem; }
  .header-action { padding-inline: .72rem; }
  .hero-grid, .about-grid, .history-grid, .signup { grid-template-columns: 1fr; }
  .hero-grid { gap: 2rem; }
  .hero h1 { font-size: clamp(3rem, 11.7vw, 5.7rem); }
  .about-grid > div { grid-row: 1; }
  .sources { grid-column: 1; }
  .activity-grid { grid-template-columns: 1fr; }
  .activity { padding-inline: 0; }
  .activity + .activity { border-left: 0; border-top: 1px solid var(--line); }
  .footer-inner { min-height: 0; flex-wrap: wrap; padding-block: 1.5rem; }
}
@media (max-width: 515px) {
  .section-head, .agenda-empty, .event { flex-direction: column; align-items: start; }
  .timeline li { grid-template-columns: 1fr; gap: .45rem; }
  .section-head { gap: .65rem; }
  .footer-inner .brand { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
