/* Reset & base */

:root {
  --font-sans: "Onest", sans-serif;
  --font-serif: "Roboto Serif", serif;
  --text-size-base: 1rem; /* 16px */
  --text-size-sm: 0.9375rem; /* 15px */
  --text-size-md: 1.125rem; /* 18px */
  --text-size-lg: 1.75rem; /* 28px */
  --text-size-xl: 2.5rem; /* 40px */
  --section-bg: #F9F9F9;
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #151515;
  --muted: #4b4b4b;
  --line: rgba(21, 21, 21, 0.25);
  --color-success: #2E7D32;
  --color-warning: #8A4B00;
  --color-danger: #D32F2F;
  --color-accent: #1565C0;
  --color-warning-bg: rgba(249, 168, 37, 0.14);
  --container: 1120px;
  --space-large: 50px;
  --space-small: 40px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

::selection {
  background: rgba(21, 21, 21, 0.16);
}

/* Layout */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 60px 0;
}

/* Alternating section background */
.section:nth-of-type(even) {
  background: var(--section-bg);
}

.section--last {
  padding-bottom: 100px;
}

/* Typography */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: 0;
}

.section__title {
  margin: 0 0 var(--space-large);
  font-family: var(--font-serif);
  font-size: var(--text-size-xl);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.subsection__title {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-size: var(--text-size-lg);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.subsection__title:first-of-type {
  margin-top: 0;
}

.prose {
  max-width: 760px;
}

.prose p,
.prose li,
.timeline__label,
.accordion__body p,
.route__address,
.carpool__item {
  font-size: var(--text-size-base);
  line-height: 1.75;
  letter-spacing: 0;
}

.accordion__summary {
  font-size: var(--text-size-md);
  line-height: 1.1;
}

.hero__subtitle,
.hero__date {
  line-height: 1.15;
}

.prose p {
  margin: 0 0 1em;
}

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

.prose p,
.prose li,
.timeline__label,
.accordion__body p,
.route__address,
.carpool__item {
  font-size: var(--text-size-base);
  line-height: 1.75;
  letter-spacing: 0;
}

.accordion__summary {
  font-size: var(--text-size-md);
  line-height: 1.1;
}

.hero__subtitle,
.hero__date {
  line-height: 1.15;
}
.prose strong {
  font-weight: 600;
}

.link {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 0.08em;
}

.link:hover {
  text-decoration-thickness: 0.14em;
}

/* Hero */

.hero {
  padding-top: 72px;
}

.hero__title {
  margin: 0 0 var(--space-small);
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 7vw, 10.23rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: 0;
  max-width: 11ch;
}

.hero__subtitle {
  margin: 0;
  max-width: 840px;
  color: var(--muted);
  font-size: var(--text-size-lg);
}

.hero__image-wrap {
  margin: 24px 0 0;
  width: 100%;
  height: clamp(280px, 64vh, 680px);
  overflow: hidden;
  position: relative;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate3d(0, 0, 0) scale(1.08);
  transform-origin: center center;
  transition: transform 0.2s ease-out;
  will-change: transform;
}

.hero__credit {
  margin: 12px 0 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--muted);
  text-align: right;
}

.hero__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-top: 40px;
  padding-bottom: 24px;
}

.hero__date {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--text-size-md);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

/* Button */

.button,
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button--primary {
  background: var(--text);
  color: #fff;
}

.button--secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(21, 21, 21, 0.12);
}

.button:hover,
.btn:hover {
  transform: translateY(-1px);
}

.button--primary:hover {
  background: #fff;
  color: var(--text);
  outline: 1px solid var(--text);
}

.button--secondary:hover {
  background: rgba(21, 21, 21, 0.04);
}

/* Card */

.card {
  background: #ffffff;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 24px;
}

/* Timeline (program) */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline__item {
  display: flex;
  flex-direction: column;
  padding: 0 0 16px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__time {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: normal;
  font-size: var(--text-size-md);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 0 0 6px;
}

.timeline__label {
  display: block;
  font-family: var(--font-sans);
  font-weight: 400;
  font-style: normal;
  font-size: var(--text-size-base);
  line-height: 1.5;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Figure (map) */

.figure {
  margin: 0;
}

.figure__image {
  width: 100%;
}

/* Accordion (what to see) */

.section__intro {
  max-width: 760px;
  margin-bottom: 32px;
}

.section__intro p {
  margin: 0;
  font-size: var(--text-size-base);
  color: var(--muted);
}

.accordion-section {
  margin-bottom: 40px;
  padding: 32px;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 24px;
  background: #ffffff;
}

.subsection__description {
  margin: 0 0 24px;
  max-width: 720px;
  font-size: var(--text-size-base);
  color: var(--muted);
  line-height: 1.8;
}

.accordion {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.accordion__item {
  border-bottom: 1px solid var(--line);
}

.accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  font-size: var(--text-size-md);
  line-height: 1.1;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.accordion__summary::-webkit-details-marker {
  display: none;
}

.accordion__summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}

.accordion__item[open] .accordion__summary::after {
  content: "−";
}

.accordion__body {
  padding: 0 0 24px;
}

.accordion__meta {
  margin: 0 0 8px;
  font-size: var(--text-size-sm);
  font-weight: 600;
  color: var(--muted);
}

@media (max-width: 720px) {
  .accordion-section {
    padding: 24px 18px;
  }
}

.accordion__body p:last-child {
  margin: 0;
}

/* Route */

.route-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 32px;
}

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

.route-card__address {
  margin: 0 0 16px;
  font-weight: 700;
  line-height: 1.5;
}

.route-card__text,
.route-map__text,
.route__text {
  margin: 0 0 14px;
  line-height: 1.8;
  color: var(--muted);
}

.route-card__note {
  margin: 0;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--color-warning-bg);
  color: var(--color-warning);
  font-weight: 600;
  margin-bottom: 16px;
}

.route-map__header {
  margin-bottom: 20px;
}

.route__embed {
  overflow: hidden;
  margin-bottom: 18px;
  margin-top: 0 !important;
}

.route__text {
  margin: 0 0 18px;
}

.carpool {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.carpool__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(21, 21, 21, 0.03);
}

.carpool__label {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.carpool__item a {
  word-break: break-all;
}

.carpool__pending {
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 860px) {
  .route-grid {
    grid-template-columns: 1fr;
  }
}

/* Embeds */

.embed {
  margin-top: 32px;
  min-width: 100%;
  overflow: hidden;
}

.embed iframe {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
}

.embed--playlist {
  max-width: 614px;
}

.embed--playlist iframe {
  width: 100%;
  height: 556px;
}

/* Partners */

.partners__intro {
  max-width: 740px;
  margin: 0 0 24px;
  font-size: var(--text-size-base);
  line-height: 1.8;
  color: var(--muted);
}

.partners {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.partners__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 24px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid rgba(21, 21, 21, 0.08);
}

.partners__logo {
  max-height: 60px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

/* Logo modifiers */
.partners__logo--large {
  max-height: 110px;
  margin: -10px 0;
  display: block;
}

.footer__logo--large {
  max-height: 110px;
  margin: -10px 0;
  display: block;
}

.support-grid {
  display: grid;
  gap: 24px;
}

.support-list {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.8;
}

.support-list li {
  margin-bottom: 10px;
}

/* Responsive */

@media (max-width: 600px) {
  :root {
    --text-size-lg: 1.4rem;
    --text-size-xl: 1.6rem;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 40px;
  }

  .hero__title {
    font-size: clamp(1.8rem, 8vw, 10.23rem);
  }

  .hero__image-wrap {
    height: clamp(220px, 42vh, 360px);
  }

  .accordion-section,
  .figure,
  .embed {
    margin: 0 -24px;
    border-radius: 0;
  }

  .partners {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .embed--playlist iframe {
    height: 480px;
  }
}

@media (min-width: 601px) {
  .hero__footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Footer */

.footer {
  padding: 48px 0;
  background: var(--section-bg);
  border-top: 1px solid rgba(21,21,21,0.04);
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__text {
  margin: 0;
  max-width: 820px;
}

.footer__logo {
  max-height: 72px;
  width: auto;
  display: block;
}

@media (max-width: 860px) {
  .footer__content {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__logo {
    margin-top: 18px;
  }
}
