/* Barlow, latin + vietnamese, self-hosted. Licence: public/fonts/OFL.txt */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/barlow-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/barlow-400-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/barlow-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/barlow-500-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329,
    U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/barlow-condensed-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f3f0e8;
  --ink: #151512;
  --ink-soft: #555148;
  --ink-faint: #6b665c;
  --line: #c9c2b3;
  --signal: #e4552d;
  --runway: #f3c614;
  --green: #116444;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
  --max: 1180px;
  --pad: clamp(20px, 5vw, 56px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--runway);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: var(--signal);
}

a:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
p {
  margin: 0;
}

.wrap {
  width: min(100% - (var(--pad) * 2), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--ink);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-dot {
  color: var(--signal);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.13em;
  color: var(--ink-soft);
  text-align: right;
  text-transform: uppercase;
}

.header-meta::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--runway);
  flex: none;
}

.label {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

/* Event hero */
.event-hero {
  padding-block: clamp(30px, 4vw, 44px) clamp(32px, 4.5vw, 50px);
  background: var(--ink);
  color: var(--paper);
}

.event-hero h1 {
  font-family: var(--display);
  font-size: clamp(4rem, 11.5vw, 8.2rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.012em;
}

.stop {
  color: var(--runway);
}

.hero-summary {
  max-width: 54ch;
  margin-top: clamp(20px, 3vw, 30px);
  color: #c7c0b2;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.45;
}

/* Event content */
.event-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  grid-template-areas: "main sidebar";
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  padding-block: clamp(30px, 4.5vw, 48px) clamp(44px, 7vw, 76px);
}

.event-main {
  grid-area: main;
  max-width: 48rem;
}

.event-sidebar {
  grid-area: sidebar;
  position: sticky;
  top: 20px;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.008em;
}

.expect-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.expect-list li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.5;
}

.expect-list li + li {
  margin-top: 16px;
}

.expect-list li::before {
  content: "";
  position: absolute;
  top: 0.57em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--signal);
}

.expect-list strong {
  color: var(--ink);
  font-weight: 500;
}

/* Event card */
.event-card {
  padding: 20px;
  border: 1px solid var(--ink);
  border-top: 6px solid var(--runway);
}

.card-section {
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.card-value {
  margin-top: 7px;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.35;
}

.card-sub {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.4;
}

.card-sub a {
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 66px;
  padding: 0 22px;
  border: 1px solid var(--green);
  border-radius: 0;
  background: var(--green);
  color: #fff;
  font-family: var(--body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease,
    color 140ms ease;
}

.button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.button svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: currentColor;
}

.button-arrow {
  margin-left: 2px;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 400;
  transition: transform 140ms ease;
}

.button:hover .button-arrow {
  transform: translateX(3px);
}

.gallery {
  padding-block: clamp(28px, 4.5vw, 48px);
  border-top: 1px solid var(--line);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.gallery-item {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e7e1d4;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-faint);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hosts {
  padding-block: clamp(28px, 4.5vw, 48px);
  border-top: 1px solid var(--line);
}

.hosts-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.host {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}

.host-photo {
  width: min(100%, 112px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: #e7e1d4;
}

.host-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 12px;
  min-width: 0;
}

.host-role {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.host-name {
  display: block;
  margin-top: 5px;
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
}

.host-note {
  max-width: 28ch;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.4;
  text-wrap: balance;
}

.sponsor {
  padding-block: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--ink);
}

.sponsor-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 36px);
}

.sponsor-copy .label {
  margin-bottom: 8px;
}

.sponsor-name {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: -0.01em;
}

.sponsor-link {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.sponsor-link a {
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
}

.sponsor-logo {
  flex: none;
  width: clamp(84px, 9vw, 112px);
}

.sponsor-logo img {
  width: 100%;
  height: auto;
}

.site-footer {
  border-top: 1px solid var(--ink);
  padding-block: 18px 20px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 14px 28px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

/* Home */
.home-main {
  padding-block: clamp(46px, 8vw, 92px) clamp(54px, 8vw, 96px);
}

.page-title {
  margin-bottom: 24px;
  font-family: var(--display);
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.008em;
}

.departure {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr) auto;
  gap: clamp(18px, 4vw, 48px);
  align-items: center;
  padding: 24px 0 26px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease, padding 140ms ease;
}

.departure:hover {
  padding-inline: 18px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.departure-code {
  font-family: var(--display);
  font-size: clamp(3rem, 5vw, 4.6rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: 0.01em;
}

.departure-body {
  display: block;
  min-width: 0;
}

.departure-city {
  display: block;
  margin-bottom: 5px;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 700;
  line-height: 0.9;
}

.departure-note {
  display: block;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.4;
}

.departure:hover .departure-note {
  color: #c7c0b2;
}

.departure-arrow {
  font-family: var(--mono);
  font-size: 25px;
  line-height: 1;
  transition: transform 140ms ease;
}

.departure:hover .departure-arrow {
  transform: translateX(5px);
}

/* 404 */
.not-found {
  padding-block: clamp(70px, 13vw, 150px);
}

.not-found h1 {
  font-family: var(--display);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: -0.012em;
}

.not-found p {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.not-found .button {
  width: auto;
  min-height: 58px;
  margin-top: 28px;
  gap: 28px;
}

@media (max-width: 900px) {
  .event-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sidebar"
      "main";
    gap: 36px;
  }

  .event-main {
    max-width: 42rem;
  }

  .event-sidebar {
    position: static;
  }
}

@media (max-width: 650px) {
  .site-header .wrap {
    min-height: 60px;
  }

  .brand {
    font-size: 24px;
  }

  .header-meta {
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .event-hero {
    padding-top: 32px;
    padding-bottom: 36px;
  }

  .event-hero h1 {
    font-size: clamp(4rem, 12vw, 6.4rem);
  }

  .hero-summary {
    font-size: 1rem;
  }

  .event-layout {
    padding-block: 28px 46px;
    gap: 30px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hosts-list {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .host {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    text-align: left;
  }

  .host-photo {
    width: 76px;
    flex: none;
  }

  .host-text {
    align-items: flex-start;
    margin-top: 0;
    min-width: 0;
  }

  .host-name {
    font-size: 1.8rem;
  }

  .host-note {
    max-width: none;
    font-size: 13px;
  }

  .event-card {
    padding: 17px;
    border-top-width: 5px;
  }

  .section-title {
    font-size: clamp(2.4rem, 11vw, 3.2rem);
  }

  .departure {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 14px;
  }

  .departure:hover {
    padding-inline: 12px;
  }

  .departure-note {
    font-size: 14px;
  }

  .departure-arrow {
    font-size: 20px;
  }

  .not-found .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .button,
  .card-sub a {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .event-hero {
    padding-block: 16pt;
    background: #fff;
    color: #000;
  }

  .event-hero .stop,
  .hero-summary {
    color: #000;
  }

  .event-layout {
    display: block;
    padding-block: 16pt;
  }

  .event-sidebar {
    position: static;
    margin-bottom: 18pt;
  }

  .event-card {
    border-top-color: #000;
  }
}
