@font-face {
  font-family: "Lab Grotesque";
  src: url("assets/fonts/LabGrotesque-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Lab Grotesque";
  src: url("assets/fonts/LabGrotesque-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Lab Grotesque";
  src: url("assets/fonts/LabGrotesque-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --blue: #0072ce;
  --ink: #121212;
  --shaded: #f5f5f5;
  --content-width: 75rem;
  --gutter: clamp(1.5rem, 5vw, 4.5rem);
  --section-padding: 2.5rem;
  --body-size: 1rem;
  --body-line: 1.5625rem;
  --motion-duration: 240ms;
  --matik-toolbar-height: 0px;
  color: var(--ink);
  font-family: "Lab Grotesque", Arial, sans-serif;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body,
h1,
h2,
h3,
p {
  margin: 0;
}

body {
  background: #fff;
  font-size: var(--body-size);
  line-height: var(--body-line);
}

a {
  color: var(--blue);
  text-underline-offset: .15em;
}

a:hover {
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid #005aa3;
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  z-index: 2;
  inset: .5rem auto auto var(--gutter);
  padding: .5rem .75rem;
  background: #fff;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: min(var(--content-width), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-padding);
}

.section--shaded {
  background: var(--shaded);
}

.section--dark {
  color: #fff;
  background: var(--ink);
}

.section--dark .panel {
  color: var(--ink);
}

.section--dark .split__copy a:not(.action) {
  color: #8dc9ff;
}

.prose ul:not(.materials-list),
.prose ol:not(.panel__body ol) {
  margin-block: 0;
}

.site-header__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.site-title {
  justify-self: start;
  padding-block: 1.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5rem;
  letter-spacing: -.01em;
  text-decoration: none;
}

.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: var(--blue);
  background: #fff;
  cursor: pointer;
}

.menu-toggle img {
  grid-area: 1 / 1;
  transition: opacity var(--motion-duration) ease;
}

.menu-toggle__close,
.menu-toggle[aria-expanded="true"] .menu-toggle__open {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__close {
  opacity: 1;
}

.site-nav {
  grid-column: 1 / -1;
}

.site-nav__links {
  display: grid;
}

.site-nav a:last-child {
  margin-bottom: 1rem;
}

.site-nav a {
  display: block;
  padding-block: .6875rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.375rem;
  text-decoration: none;
}

:root:has(.site-header--sticky) {
  scroll-padding-top: calc(4rem + var(--matik-toolbar-height));
}

.site-header--sticky {
  position: sticky;
  z-index: 1;
  top: var(--matik-toolbar-height);
  background: #fff;
  transition: transform var(--motion-duration) ease;
}

.site-header--sticky[data-scroll-hidden]:not(:has(:focus-visible)) {
  transform: translateY(-100%);
}

@media (width > 600px) {
  :root:has(.admin-bar) {
    --matik-toolbar-height: var(--wp-admin--admin-bar--height, 0px);
  }
}

@media (width < 48rem) {
  .menu-toggle:not([hidden]) + .site-nav {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows var(--motion-duration) ease, visibility var(--motion-duration);
  }

  .menu-toggle[aria-expanded="true"] + .site-nav {
    grid-template-rows: 1fr;
    visibility: visible;
  }

  .site-nav__links {
    min-height: 0;
    overflow: clip;
  }

  .site-nav a:focus-visible {
    outline-offset: -3px;
  }
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: 27.5rem;
  padding-block: 2.125rem;
  color: #fff;
  background: #121212;
}

.hero__photo,
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__photo {
  object-fit: cover;
}

.hero::before {
  content: "";
  z-index: 0;
  background: linear-gradient(180deg, transparent 0%, rgb(0 0 0 / .1) 25%, rgb(0 0 0 / .66) 60%, rgb(0 0 0 / .96) 100%);
}

.hero__copy {
  position: relative;
  display: grid;
  gap: .75rem;
}

.hero h1 {
  max-width: 56.25rem;
  font-size: clamp(2.5rem, 12.31vw, 3rem);
  line-height: 1.02;
  letter-spacing: -.032em;
  overflow-wrap: anywhere;
}

.hero p {
  max-width: 56.25rem;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.75rem;
  letter-spacing: -.0175em;
}

.banner {
  padding-top: 1.5rem;
}

.banner__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .75rem;
}

.heading-large {
  font-size: 2.25rem;
  line-height: 1.0833;
  letter-spacing: -.024em;
  overflow-wrap: anywhere;
}

.heading-small {
  font-size: 1.6875rem;
  line-height: 1.2222;
  letter-spacing: -.017em;
}

.lead p + p {
  margin-top: .9375rem;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.prose {
  display: grid;
  gap: .9375rem;
}

.split {
  display: grid;
  align-items: start;
  gap: 1.3125rem;
}

.split--final {
  gap: 1.125rem;
}

.section-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 342 / 226;
  border-radius: .875rem;
  object-fit: cover;
}

.split--intro .section-photo {
  aspect-ratio: 342 / 229;
}

.schedule,
.competition,
.final,
.workshops {
  display: grid;
}

.schedule {
  gap: 1.125rem;
}

.schedule__list,
.footer-links {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.schedule__list {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
}

.schedule-card {
  display: flex;
  align-items: flex-start;
  gap: .9375rem;
  padding: 1.1875rem;
  border-radius: .875rem;
  background: #fff;
}

.schedule-card__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: .75rem;
  background: #eee;
}

.schedule-card__copy {
  display: grid;
  min-width: 0;
  gap: .4375rem;
}

.schedule-card h3,
.panel__heading {
  color: var(--blue);
  font-size: 1.3125rem;
  line-height: 1.6875rem;
  letter-spacing: -.017em;
  overflow-wrap: anywhere;
}

.schedule-card p {
  font-size: 1rem;
  line-height: 1.5625rem;
}

.competition {
  gap: 1.5rem;
}

.final {
  gap: 1.0625rem;
}

.workshops {
  gap: 1.25rem;
}

.registration {
  display: grid;
  gap: 1.125rem;
  padding: 1.3125rem;
  border-radius: .875rem;
  color: #fff;
  background: var(--blue);
}

.registration__copy {
  display: grid;
  gap: .5625rem;
  max-width: 53.4375rem;
}

.workshops__registration {
  display: grid;
  gap: 1.1875rem;
}

.action {
  width: 100%;
  padding: .875rem 1.1875rem;
  border: 0;
  border-radius: .5rem;
  color: #fff;
  background: var(--blue);
  font: 700 1rem/1.375rem "Lab Grotesque", Arial, sans-serif;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--motion-duration) ease;
}

.action--light {
  color: var(--ink);
  background: #fff;
}

.action:is(:hover, :focus-visible) {
  background-color: #005fa9;
}

.action--light:is(:hover, :focus-visible) {
  background-color: #f0f0f0;
}

.accordion {
  display: grid;
  gap: .5625rem;
}

.panel {
  border-radius: .75rem;
  background: #f4f4f4;
}

.panel__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  padding: .9375rem 1rem;
  border-radius: inherit;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

.panel__heading img {
  grid-area: 1 / 2;
  transition: opacity var(--motion-duration) ease;
}

.panel__close,
.panel[open] .panel__open {
  opacity: 0;
}

.panel[open] .panel__close {
  opacity: 1;
}

@supports selector(details::details-content) {
  .panel::details-content {
    display: grid;
    grid-template-rows: 0fr;
    content-visibility: hidden;
    transition: grid-template-rows var(--motion-duration) ease, content-visibility var(--motion-duration) allow-discrete;
  }

  .panel[open]::details-content {
    grid-template-rows: 1fr;
    content-visibility: visible;
  }

  .panel__clip {
    min-height: 0;
    overflow: clip;
  }
}

.panel__body {
  padding: 0 1rem 1.1875rem;
}

.panel__body.prose {
  gap: .875rem;
}

.panel__body > p {
  max-width: 52.5rem;
}

.panel__body ol {
  margin: 0;
  padding-left: 1.45rem;
}

.panel__body ol li {
  padding-left: .35rem;
  break-inside: avoid;
}

.panel__body ol li + li {
  margin-top: .6rem;
}

.panel__body ol li::marker {
  font-weight: 700;
}

.site-footer {
  background: #f7f7f7;
}

.site-footer__layout {
  display: grid;
  align-items: start;
  gap: 1.0625rem;
}

.site-footer__contact {
  display: grid;
  gap: .4375rem;
  overflow-wrap: anywhere;
}

.footer-links {
  gap: .8125rem;
  font-size: 1rem;
  line-height: 1.25rem;
}

.footer-links > li {
  position: relative;
  padding-left: .9375rem;
}

.footer-links > li::before {
  position: absolute;
  top: .46875rem;
  left: 0;
  width: 5px;
  height: 5px;
  content: "";
  background: url("assets/loendimark.svg") no-repeat;
}

.footer-links > li > a {
  font-weight: 500;
}

@media (min-width: 40rem) {
  .schedule__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 48rem) {
  :root {
    --section-padding: 3.75rem;
    --body-size: 1.125rem;
    --body-line: 1.8125rem;
  }

  .site-header__layout {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
  }

  .menu-toggle {
    display: none;
  }

  .site-nav__links {
    display: flex;
    gap: 1.875rem;
  }

  .site-nav a {
    font-weight: 500;
    line-height: 1.25rem;
  }

  .site-nav a:last-child {
    margin-bottom: 0;
  }

  .hero {
    min-height: 33.25rem;
    align-items: center;
  }

  .hero::before {
    background: linear-gradient(90deg, rgb(0 0 0 / .88) 0%, rgb(0 0 0 / .74) 31%, rgb(0 0 0 / .5) 60%, rgb(0 0 0 / .07) 100%);
  }

  .hero__copy {
    gap: .875rem;
  }

  .hero h1 {
    font-size: clamp(3.25rem, 6.1112vw, 5.5rem);
    line-height: 1.04545;
    letter-spacing: -.0301em;
  }

  .hero p {
    font-size: 1.8125rem;
    line-height: 2.3125rem;
    letter-spacing: -.019em;
  }

  .banner {
    padding-top: 2.25rem;
  }

  .heading-large {
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
    line-height: 1.10715;
    letter-spacing: -.03125em;
  }

  .heading-small {
    font-size: 2.125rem;
    line-height: 2.625rem;
    letter-spacing: -.022em;
  }

  .lead {
    font-size: 1.4375rem;
    line-height: 2.1875rem;
    letter-spacing: -.007em;
  }

  .split--with-photo {
    --photo-width: 40.5%;
    grid-template-columns: minmax(0, 1fr) var(--photo-width);
    gap: clamp(1.5rem, 4vw, 3.4375rem);
  }

  .split--intro {
    --photo-width: 45%;
  }

  .split--intro .section-photo {
    aspect-ratio: 540 / 337;
  }

  .split--competition .section-photo {
    aspect-ratio: 486 / 318;
  }

  .split--final {
    --photo-width: 42.5%;
    gap: clamp(1.5rem, 4vw, 3.125rem);
  }

  .split--final .section-photo {
    aspect-ratio: 510 / 330;
  }

  .split--final .prose {
    gap: .875rem;
  }

  .split--image-left {
    grid-template: "photo copy" auto / var(--photo-width) minmax(0, 1fr);
  }

  .split--image-left .section-photo {
    grid-area: photo;
  }

  .split--image-left .split__copy {
    grid-area: copy;
  }

  .split--workshops {
    --photo-width: 39.6667%;
  }

  .split--workshops .section-photo {
    aspect-ratio: 476 / 304;
  }

  .split--workshops .prose {
    gap: 1.0625rem;
  }

  .schedule {
    gap: 1.4375rem;
  }

  .schedule-card {
    flex-direction: column;
  }

  .schedule-card h3,
  .panel__heading {
    font-size: 1.375rem;
    line-height: 1.8125rem;
    letter-spacing: -.0205em;
  }

  .competition {
    gap: 2.0625rem;
  }

  .final {
    gap: 1.5rem;
  }

  .workshops {
    gap: 1.75rem;
  }

  .registration {
    gap: 1.3125rem;
    padding: 1.9375rem;
  }

  .workshops__registration {
    gap: 1.375rem;
  }

  .action {
    width: fit-content;
    min-width: 13.625rem;
    max-width: 100%;
    font-size: 1.125rem;
    line-height: 1.5rem;
  }

  .accordion {
    gap: .625rem;
  }

  .panel__heading {
    padding: 1.1875rem 1.5rem;
  }

  .panel__body {
    padding: 0 1.5rem 1.5625rem;
  }

  .panel__body.prose {
    gap: 1rem;
  }

  .site-footer__layout {
    grid-template-columns: minmax(0, 43.333%) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 2.8125rem);
  }
}

@media (min-width: 64rem) {
  .panel__body ol {
    columns: 2;
    column-gap: 3.5rem;
  }

  .panel__body ol li:nth-child(5) {
    break-before: column;
    margin-top: 0;
  }
}

@media (min-width: 68rem) {
  .schedule__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-duration: 0s;
    scroll-behavior: auto;
  }
}
