@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Miroslav";
  src: url("../fonts/Miroslav.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Shared interior-page Aurora: a warm base with two architectural cyan sweeps. */
:where(
  .department-page__intro,
  .programme-page__hero,
  .generic-page__hero,
  .editorial-archive__hero,
  .editorial-article__hero
) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

:where(
  .department-page__intro,
  .programme-page__hero,
  .generic-page__hero,
  .editorial-archive__hero,
  .editorial-article__hero
)::before,
:where(
  .department-page__intro,
  .programme-page__hero,
  .generic-page__hero,
  .editorial-archive__hero,
  .editorial-article__hero
)::after {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

:where(
  .department-page__intro,
  .programme-page__hero,
  .generic-page__hero,
  .editorial-archive__hero,
  .editorial-article__hero
)::before {
  top: 66%;
  left: 31%;
  width: 124%;
  height: 102%;
  background: radial-gradient(
    ellipse at center,
    color-mix(in srgb, var(--internal-hero-curve-lower) 62%, transparent) 0%,
    color-mix(in srgb, var(--internal-hero-curve-lower) 35%, transparent) 56%,
    transparent 82%
  );
  transform: rotate(-3deg);
}

:where(
  .department-page__intro,
  .programme-page__hero,
  .generic-page__hero,
  .editorial-archive__hero,
  .editorial-article__hero
)::after {
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: radial-gradient(
    ellipse 58% 90% at 120% 80%,
    color-mix(in srgb, var(--internal-hero-curve-overlap) 75%, transparent) 0%,
    color-mix(in srgb, var(--internal-hero-curve-overlap) 48%, transparent) 52%,
    transparent 82%
  );
}

:where(
  .department-page__intro,
  .programme-page__hero,
  .generic-page__hero,
  .editorial-archive__hero,
  .editorial-article__hero
) > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  :where(
    .department-page__intro,
    .programme-page__hero,
    .generic-page__hero,
    .editorial-archive__hero,
    .editorial-article__hero
  )::before {
    top: 76%;
    left: 48%;
    width: 155%;
    height: 76%;
    transform: rotate(-8deg);
  }

  :where(
    .department-page__intro,
    .programme-page__hero,
    .generic-page__hero,
    .editorial-archive__hero,
    .editorial-article__hero
  )::after {
    inset: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
      ellipse 72% 78% at 150% 88%,
      color-mix(in srgb, var(--internal-hero-curve-overlap) 75%, transparent) 0%,
      color-mix(in srgb, var(--internal-hero-curve-overlap) 48%, transparent) 52%,
      transparent 82%
    );
  }
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
summary {
  cursor: pointer;
}

button {
  color: inherit;
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 500;
}

a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #17637b;
  outline-offset: 5px;
}

select.flf-editorial-select {
  appearance: none;
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 9px 29px 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  /* The path reaches the SVG edge, so the visible edge is 15px from the border. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%2315191D' stroke-width='1.4'%3E%3Cpath d='m0 1.5 6 5 6-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px 8px;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}

select.flf-editorial-select:hover {
  border-color: var(--color-text-muted);
}

select.flf-editorial-select:focus-visible {
  border-color: var(--color-text-muted);
}

.flf-carousel-controls {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}

.flf-carousel-controls__button {
  display: inline-grid;
  width: 48px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--color-text);
  font-size: 21px;
  font-weight: 500;
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}

.flf-carousel-controls__button:hover:not(:disabled),
.flf-carousel-controls__button:focus-visible {
  border-bottom-color: var(--color-brand);
  color: var(--color-text);
}

.flf-carousel-controls__button[data-carousel-previous]:hover:not(:disabled) {
  transform: translateX(-2px);
}

.flf-carousel-controls__button[data-carousel-next]:hover:not(:disabled) {
  transform: translateX(2px);
}

.flf-carousel-controls__button:disabled {
  cursor: default;
  opacity: .4;
}

.flf-carousel-controls__position {
  min-width: 84px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

::selection {
  background: var(--color-brand-light);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--color-brand);
  color: #111;
}

.skip-link:focus {
  top: 12px;
}

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

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

main:focus {
  outline: none;
}

.typeface-content-display {
  font-family: var(--font-content-display);
}
