@font-face {
  font-family: "Source Serif 4";
  src: url("./fonts/source-serif-4-regular.woff?v=a97609ca2a57") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("./fonts/source-serif-4-medium.woff?v=a9950374e2f1") format("woff");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("./fonts/source-serif-4-variable-italic-latin-ext.woff2?v=6731b0496c98") format("woff2");
  font-style: italic;
  font-weight: 600 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("./fonts/source-serif-4-variable-italic-latin.woff2?v=ad17ab41cc01") format("woff2");
  font-style: italic;
  font-weight: 600 700;
  font-display: swap;
  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;
}

body,
.language-switch {
  font-family: "Source Serif 4", Georgia, serif;
}

.signature {
  font-weight: 400;
}

/* Keep the accepted 20% size increase when restoring Source Serif 4. */
:root {
  --item-font-size: 96px;
  --item-line-height: 132px;
}

body {
  font-size: 19.2px;
}

.home-content {
  max-width: calc(100% - 54px);
}

.home .project-link,
.home .about-link {
  height: auto;
  min-height: var(--item-height);
  white-space: normal;
}

.home .about-list {
  gap: var(--group-gap);
}

.home .signature {
  display: block;
  min-width: 0;
  height: auto;
  margin-top: 0;
}

.sidebar {
  width: max(282px, calc((100vw - 118px) * 0.213313));
}

.sidebar .project-list,
.sidebar .about-list {
  width: 100%;
}

.sidebar .project-link,
.sidebar .about-link,
.sidebar .signature,
.language-switch {
  font-size: 28.8px;
  line-height: 39.6px;
}

.sidebar .project-link,
.sidebar .about-link,
.sidebar .signature {
  white-space: normal;
}

.sidebar .signature {
  margin-top: 44px;
}

.case-description {
  font-size: 21.6px;
  line-height: 27.6px;
}

.case-description h2 {
  font-size: 20.4px;
  line-height: 27.6px;
}

.description-toggle:not([hidden]) {
  line-height: 27.6px;
}

@media (max-width: 1050px) {
  html {
    --mobile-control-font-size: 21.6px;
  }

  .home-content {
    max-width: none;
  }

  .home .about-list {
    gap: 40px;
  }

  .home .project-link,
  .home .about-link {
    min-height: 48px;
    font-size: clamp(31.2px, 8.64vw, 45.6px);
    line-height: 1.3;
  }

  .home .signature {
    padding: 5px 0;
    font-size: 24px;
    line-height: 33.6px;
  }

  .sidebar .project-link,
  .sidebar .about-link {
    font-size: clamp(24px, calc(7.44vw - 4.8px), 28.8px);
    line-height: 1.3;
  }

  .sidebar .about-list {
    gap: 28px;
  }

  .sidebar .signature {
    margin-top: 0;
    padding: 6px 0;
  }

  .sidebar .signature,
  .language-switch,
  .menu-toggle {
    font-size: 21.6px;
    line-height: 30px;
  }

  .case-description {
    font-size: 17.04px;
    line-height: 27px;
  }

  .case-description h2 {
    font-size: 18.36px;
    line-height: 27px;
  }
}
