:root {
  --ink: #2b2b2b;
  --muted: #686868;
  --line: #e5e5e5;
  --accent: #8f171a;
  --accent-soft: #f7eeee;
  --paper: #ffffff;
  --page-width: 950px;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.58;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 max(24px, calc((100vw - var(--page-width)) / 2));
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.brand {
  color: #777;
  font-size: 16px;
  font-weight: 400;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  color: #6f6f6f;
  font-size: 14px;
}

.nav-toggle {
  display: none;
}

.page {
  width: min(var(--page-width), calc(100vw - 40px));
  margin: 0 auto;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 50px;
  align-items: start;
  padding: 70px 0 34px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 70px;
}

.hero-logo {
  width: 150px;
  margin-bottom: 20px;
}

.hero-section h1 {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 31px;
  line-height: 1.16;
  font-weight: 800;
}

.hero-section h2 {
  margin: 0 0 10px;
  color: #333;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 800;
}

.hero-section p {
  margin: 4px 0;
  color: #333;
  font-size: 17px;
  font-weight: 600;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.hero-actions {
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-actions .button-primary,
.hero-actions .button-secondary {
  padding-right: 10px;
  padding-left: 10px;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 700;
}

.button-primary:hover,
.button-secondary:hover {
  text-decoration: none;
}

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

.button-primary:hover {
  background: #741214;
  border-color: #741214;
}

.button-secondary {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #ead3d3;
}

.button-secondary:hover {
  background: #f0dfdf;
}

.hero-image {
  width: 400px;
  height: 176px;
  object-fit: cover;
  object-position: 60% 45%;
  margin-top: 8px;
}

.section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 70px;
}

.section h2 {
  margin: 0 0 12px;
  color: #222;
  font-size: 27px;
  line-height: 1.25;
  font-weight: 800;
}

.section p {
  margin: 0 0 12px;
  color: var(--muted);
  text-align: justify;
}

.topic-list,
.date-list {
  margin: 10px 0 0;
  padding-left: 24px;
  color: var(--muted);
}

.topic-list li,
.date-list li {
  margin: 4px 0;
}

.topic-list strong,
.date-list strong {
  color: #333;
}

.compact-list {
  margin-top: 12px;
}

.info-panel {
  margin-top: 14px;
  padding: 18px 20px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
}

.info-panel p:last-child,
.info-panel ul:last-child {
  margin-bottom: 0;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 42px;
  margin-top: 22px;
}

.people-grid article {
  text-align: center;
}

.people-grid img {
  width: 116px;
  height: 116px;
  margin: 0 auto 10px;
  object-fit: cover;
  border-radius: 50%;
}

.people-grid a {
  display: block;
  color: var(--accent);
  font-size: 16px;
  line-height: 1.25;
}

.people-grid span {
  display: block;
  margin-top: 2px;
  color: #555;
  font-size: 14px;
  line-height: 1.32;
}

.organizers {
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 28px;
}

.organizers article {
  padding: 12px 10px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.program-meta {
  display: grid;
  grid-template-columns: 150px 220px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--accent-soft);
  border: 1px solid #ead3d3;
  border-radius: 4px;
}

.program-meta span,
.program-grid span,
.track-grid span,
.competition-details span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
}

.program-meta strong {
  color: var(--accent);
  font-size: 17px;
}

.program-meta em {
  color: #555;
  font-size: 14px;
  font-style: normal;
}

.schedule-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.schedule-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: #fff;
}

.schedule-table th,
.schedule-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.schedule-table th {
  color: #333;
  background: #fafafa;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
}

.schedule-table td {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.schedule-table td:first-child {
  width: 132px;
  color: var(--accent);
  font-weight: 800;
  white-space: nowrap;
}

.schedule-table td:nth-child(2) {
  color: #333;
  font-weight: 700;
}

.schedule-table tr:last-child td {
  border-bottom: 0;
}

.program-grid,
.track-grid,
.competition-details {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

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

.program-grid article,
.track-grid article,
.competition-details article {
  padding: 16px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 4px;
}

.program-grid h3,
.track-grid h3 {
  margin: 8px 0 8px;
  color: #222;
  font-size: 18px;
  line-height: 1.25;
}

.program-grid p,
.track-grid p,
.competition-details p {
  margin: 0;
  text-align: left;
}

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

.track-grid h3 {
  color: var(--accent);
  font-size: 24px;
}

.track-grid strong,
.competition-details strong {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-size: 15px;
  line-height: 1.3;
}

.competition-details {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.competition-details article {
  border-top-width: 1px;
  border-left: 4px solid var(--accent);
}

.competition-details strong {
  margin-top: 8px;
}

#competition {
  padding-bottom: 0;
  border-bottom: 0;
}

.sponsor-divider {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 34px;
  padding: 16px 0 58px;
}

.sponsor-divider::before {
  content: "";
  position: absolute;
  top: auto;
  right: 0;
  bottom: 26px;
  left: 0;
  border-top: 1px solid var(--line);
}

.sponsor-lockup {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 0 24px 2px;
}

.sponsor-kicker {
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.sponsor-mark {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.sponsor-logo-minimax {
  width: 154px;
  height: auto;
}

.sponsor-logo-tecdo {
  width: 186px;
  height: auto;
}

.sponsor-multiply {
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  width: min(var(--page-width), calc(100vw - 40px));
  margin: 0 auto;
  padding: 28px 0 44px;
  color: #777;
  font-size: 14px;
}

.site-footer span,
.site-footer a {
  display: block;
}

.site-footer a {
  margin-top: 4px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 8px 16px;
  justify-content: end;
}

.link-grid a {
  margin-top: 0;
}

@media (max-width: 820px) {
  .site-header {
    height: 58px;
    padding: 0 20px;
  }

  .nav-toggle {
    display: grid;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 4px;
  }

  .nav-toggle span {
    height: 2px;
    background: #555;
  }

  .site-nav {
    position: fixed;
    top: 58px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 10px 16px;
    font-size: 15px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 34px;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .hero-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;
    margin-top: 0;
  }

  .people-grid,
  .organizers {
    grid-template-columns: repeat(2, 1fr);
  }

  .program-meta {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .track-grid,
  .competition-details {
    grid-template-columns: 1fr;
  }

  .sponsor-lockup {
    text-align: center;
  }

  .site-footer {
    display: block;
  }

  .link-grid {
    grid-template-columns: repeat(3, max-content);
    justify-content: start;
    margin-top: 14px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .section p {
    text-align: left;
  }

  .page,
  .site-footer {
    width: min(100vw - 28px, var(--page-width));
  }

  .hero-section h1 {
    font-size: 25px;
  }

  .hero-section h2 {
    font-size: 18px;
  }

  .hero-section p {
    font-size: 15px;
  }

  .action-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
  }

  .info-panel {
    padding: 16px;
  }

  .section h2 {
    font-size: 24px;
  }

  .people-grid,
  .organizers,
  .program-grid {
    grid-template-columns: 1fr;
  }

  .schedule-table-wrap {
    overflow-x: visible;
  }

  .schedule-table {
    min-width: 0;
  }

  .schedule-table thead {
    display: none;
  }

  .schedule-table,
  .schedule-table tbody,
  .schedule-table tr,
  .schedule-table td {
    display: block;
    width: 100%;
  }

  .schedule-table tr {
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
  }

  .schedule-table tr:last-child {
    border-bottom: 0;
  }

  .schedule-table td {
    padding: 2px 0;
    border-bottom: 0;
  }

  .schedule-table td:first-child {
    width: auto;
  }

  .schedule-table td:nth-child(2) {
    font-size: 15px;
  }

  .sponsor-divider {
    margin-top: 30px;
    padding-bottom: 54px;
  }

  .sponsor-lockup {
    width: auto;
    padding: 0 16px 2px;
  }

  .sponsor-kicker {
    font-size: 11px;
  }

  .sponsor-mark {
    justify-content: center;
    gap: 12px;
    width: auto;
  }

  .sponsor-logo-minimax {
    width: 108px;
  }

  .sponsor-logo-tecdo {
    width: 132px;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }
}
