@font-face {
  font-family: Safiro;
  src: url("assets/fonts/safiro-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Safiro;
  src: url("assets/fonts/safiro-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Safiro;
  src: url("assets/fonts/safiro-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --pink: #ff8693;
  --blue: #005eec;
  --dark-blue: #274599;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--blue);
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--white);
  font-family: Safiro, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}

/* Clip the rotating artwork to the viewport without affecting page scrolling. */
.background {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Keep the full SVG at a fixed size so wide screens reveal more of the symbol.
   Its centre is slightly offset within the original artwork's SVG canvas. */
.background::before {
  content: "";
  position: absolute;
  width: 2500px;
  height: 2400px;
  left: calc(50% - 1220px);
  top: calc(50% - 1200px);
  background: url("assets/radial-background.svg") center / contain no-repeat;
  transform-origin: 54.585608% 51.052752%;
  animation: rotate-background 360s linear infinite;
}

@keyframes rotate-background {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .background::before {
    animation: none;
  }
}

.page {
  width: min(1200px, calc(100% - 96px));
  margin: auto;
  padding-block: 32px;
}

.masthead {
  margin-bottom: 32px;
}

.brand {
  display: block;
  width: 272px;
  height: auto;
}

.columns {
  display: grid;
  grid-template-columns: minmax(0, 1.133333fr) minmax(0, 1fr);
  column-gap: 48px;
}

.ensemble {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2551 / 1376;
  object-fit: cover;
}

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

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.055em;
  text-underline-offset: 0.12em;
}

a:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 6px;
  border-radius: 2px;
}

.season-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 12px;
  color: var(--white);
  font-size: 47px;
  font-weight: 500;
  line-height: 49px;
}

.season-last-line {
  white-space: nowrap;
}

.arrows {
  color: var(--pink);
}

.introduction,
.contact {
  font-size: 27px;
  font-weight: 600;
  line-height: 28px;
}

.introduction h1 {
  margin: 0 0 16px;
  color: var(--pink);
  font: inherit;
}

.unbroken {
  white-space: nowrap;
}

.introduction p {
  margin: 0 0 16px;
}

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

.footer {
  align-items: center;
  margin-top: 52px;
}

.partnership {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  line-height: 1.3;
}

.partnership a {
  display: block;
  flex: 0 0 152px;
}

.partnership img {
  display: block;
  width: 152px;
  height: auto;
}

.partnership a:hover {
  opacity: 0.8;
}

.contact {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 1250px) {
  .columns {
    column-gap: 36px;
  }

  .introduction,
  .contact {
    font-size: clamp(20px, 2.16vw, 27px);
    line-height: 1.12;
  }

  .artwork-break {
    display: none;
  }

  .season-link {
    font-size: clamp(34px, 3.76vw, 47px);
    line-height: 1.05;
  }
}

@media (max-width: 760px) {
  .background {
    opacity: 0.5;
  }

  .background::before {
    width: 1650px;
    height: 1584px;
    left: calc(50% - 765px);
    top: calc(50% - 712px);
  }

  .page {
    width: calc(100% - 48px);
    max-width: 560px;
    padding-block: 40px;
  }

  .masthead {
    margin-bottom: 32px;
  }

  .brand {
    width: min(187.5px, 100%);
  }

  .columns {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 36px;
  }

  .introduction {
    order: -1;
  }

  .season-link {
    font-size: clamp(26px, 6.5vw, 36px);
    line-height: 1.06;
  }

  .introduction,
  .contact {
    font-size: 20px;
    line-height: 1.25;
  }

  .introduction h1,
  .introduction p {
    margin-bottom: 20px;
  }

  .footer {
    margin-top: 36px;
    row-gap: 28px;
  }

  .partnership {
    flex-wrap: wrap;
    gap: 12px;
    font-size: 16px;
  }

  .partnership a {
    flex-basis: 140px;
  }

  .partnership img {
    width: 140px;
  }
}
