/* Homepage redesign. Loaded only on the home page.
   Inter is used under the SIL Open Font License.
   See src/assets/fonts/OFL-inter.txt. */

@font-face {
  font-family: Inter;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  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;
}

@font-face {
  font-family: Inter;
  src: url("../assets/fonts/inter-latin-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  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.page-home {
  --home-paper: #f3f0e8;
  --home-ink: #1c1b17;
  --home-muted: #5c574e;
  --home-line: #ddd6c8;
  --home-accent: #0e5c56;
  --home-font: Inter, "Segoe UI", sans-serif;
  --home-wrap: 1080px;
  background: var(--home-paper);
  color: var(--home-ink);
  font-family: var(--home-font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  font-synthesis: none;
}

body.page-home :focus-visible {
  outline: 2px solid var(--home-accent);
  outline-offset: 3px;
}

body.page-home ::selection {
  background: #d5e6e1;
  color: var(--home-ink);
}

body.page-home .skip {
  background: var(--home-paper);
  color: var(--home-ink);
}

body.page-home .site-header {
  background: var(--home-paper);
  box-shadow: none;
  border-bottom: 1px solid var(--home-line);
  position: sticky;
  top: 0;
}

body.page-home .header-inner {
  min-height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 32px;
}

body.page-home .logo {
  font-family: var(--home-font);
  font-weight: 600;
  font-size: 22px;
  color: var(--home-ink);
  letter-spacing: -0.03em;
}

body.page-home .nav a {
  font-family: var(--home-font);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--home-muted);
}

body.page-home .nav a[aria-current="page"] {
  color: var(--home-ink);
}

body.page-home .nav a:hover {
  color: var(--home-ink);
}

body.page-home .menu-toggle span {
  background: var(--home-ink);
}

body.page-home .site-footer {
  background: var(--home-paper);
  border-top: 1px solid var(--home-line);
  text-align: left;
  padding: 36px 24px 48px;
}

body.page-home .footer-social,
body.page-home .site-footer p {
  width: min(var(--home-wrap), 100%);
  margin-left: auto;
  margin-right: auto;
}

body.page-home .footer-social {
  justify-content: flex-start;
  margin-bottom: 14px;
}

body.page-home .site-footer p {
  font-family: var(--home-font);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--home-muted);
}

body.page-home h1,
body.page-home h2,
body.page-home h3 {
  font-family: var(--home-font);
  font-weight: 600;
  color: var(--home-ink);
}

body.page-home h1 {
  font-size: clamp(40px, 4.6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 12em;
  margin: 0 0 32px;
}

body.page-home h2 {
  font-size: clamp(30px, 3.2vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}

body.page-home h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

body.page-home a {
  color: var(--home-accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

body.page-home .nav a,
body.page-home .logo,
body.page-home .home-products a,
body.page-home .home-disciplines a,
body.page-home h1 a,
body.page-home h2 a,
body.page-home h3 a,
body.page-home a:has(img) {
  color: inherit;
  text-decoration: none;
}

body.page-home h2 a:hover,
body.page-home h3 a:hover,
body.page-home .home-disciplines a:hover {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

body.page-home .year {
  font-family: var(--home-font);
  font-weight: 500;
  font-size: 0.55em;
  letter-spacing: 0.06em;
  color: var(--home-muted);
  vertical-align: 0.15em;
}

body.page-home section[id] {
  scroll-margin-top: 84px;
}

.home-wrap {
  width: min(var(--home-wrap), calc(100% - 64px));
  margin: 0 auto;
}

.home-hero {
  padding: 72px 0 56px;
}

.home-disciplines {
  margin: 0 0 22px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--home-muted);
}

.home-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 48px;
  max-width: 920px;
}

.home-columns p,
.home-section p {
  margin: 0 0 1em;
}

.home-columns p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
}

.home-continue {
  margin: 28px 0 0;
  color: var(--home-muted);
  font-size: 15px;
}

.home-banner,
.home-break img {
  display: block;
  width: 100%;
  height: clamp(220px, 34vw, 420px);
  object-fit: cover;
  object-position: center;
  background: #1a1916;
}

.home-break-copy {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 32px;
  padding-top: 22px;
  padding-bottom: 4px;
}

.home-break-mark {
  margin: 0;
  font-family: var(--home-font);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.chapter-glue {
  white-space: nowrap;
  letter-spacing: 0;
}

body.page-home .home-break .chapter-words {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--home-font);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  line-height: 1.4;
  color: var(--home-muted);
  text-align: right;
}

.home-section {
  padding: 72px 0 28px;
}

.home-sub {
  margin: -4px 0 22px;
  max-width: 42em;
  color: var(--home-muted);
  font-size: 16px;
}

.home-products {
  list-style: none;
  margin: 28px 0 12px;
  padding: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
  border-top: 1px solid var(--home-line);
  padding-top: 28px;
}

.home-products a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
}

.home-products img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

.home-products span {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.home-products a:hover span {
  color: var(--home-accent);
}

.home-edu {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

.home-edu-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0 18px;
}

.home-edu-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

.home-tagline {
  margin: 0;
  font-family: var(--home-font);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.home-photos {
  display: grid;
  gap: 12px;
}

.home-photos img {
  display: block;
  width: 100%;
  height: auto;
}

.home-photos img[width="246"] {
  width: min(246px, 100%);
}

.home-caption {
  color: var(--home-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 4px;
}

.home-cox {
  display: block;
  width: min(240px, 70%);
  height: auto;
  margin: 4px 0 16px;
}

.home-logos,
.home-tools,
.home-streams {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px 32px;
  margin: 8px 0 28px;
}

.home-logos img,
.home-tools img {
  height: 52px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.home-streams {
  gap: 16px 22px;
  margin-bottom: 48px;
}

.home-streams img {
  height: 32px;
  width: auto;
  display: block;
}

.home-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  margin: 8px 0 8px;
}

.home-pair img:first-child {
  width: 128px;
  height: auto;
}

.home-pair img:last-child {
  width: min(405px, 100%);
  height: auto;
}

.home-essay,
.home-album {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
  padding: 28px 0;
  border-top: 1px solid var(--home-line);
}

.home-essay img,
.home-album .cover {
  display: block;
  width: 100%;
  height: auto;
}

.home-essay-copy,
.home-album-copy {
  position: relative;
}

.home-essay-copy p,
.home-album-copy p {
  max-width: 62ch;
}

.home-essay-copy p > a,
.home-badges,
.home-badges a {
  position: relative;
  z-index: 1;
}

.home-album-solo {
  grid-template-columns: 1fr;
}

.home-disco-heading {
  margin-top: 12px;
}

.home-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-top: 8px;
}

.home-badges img {
  height: 40px;
  width: auto;
  display: block;
}

.home-section strong {
  font-weight: 600;
}

@media (max-width: 860px) {
  body.page-home .header-inner {
    min-height: 64px;
    padding: 10px 16px;
  }

  body.page-home .logo {
    font-size: 22px;
  }

  body.page-home .nav {
    background: var(--home-paper);
  }

  .home-wrap {
    width: min(var(--home-wrap), calc(100% - 36px));
  }

  .home-hero {
    padding: 40px 0 32px;
  }

  .home-columns,
  .home-edu,
  .home-essay,
  .home-album {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }

  .home-break-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  body.page-home .home-break .chapter-words {
    justify-content: flex-start;
    text-align: left;
  }

  .home-banner,
  .home-break img {
    height: 220px;
  }

  .home-section {
    padding: 48px 0 16px;
  }

  .home-pair img:first-child,
  .home-pair img:last-child {
    width: min(100%, 405px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  body.page-home .home-hero h1 {
    animation: home-in 0.7s ease both;
  }
}

@keyframes home-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-color-scheme: dark) {
  body.page-home {
    --home-paper: #131311;
    --home-ink: #f3f0e8;
    --home-muted: #c2bbb0;
    --home-line: #2c2b27;
    --home-accent: #8ecfb8;
    color-scheme: dark;
  }

  body.page-home ::selection {
    background: #1d4a44;
    color: var(--home-ink);
  }

  body.page-home .home-edu-logo,
  body.page-home .home-cox,
  body.page-home .home-logos img,
  body.page-home .home-tools img,
  body.page-home .home-streams a,
  body.page-home .header-social a,
  body.page-home .footer-social a {
    background: #f4f1ea;
  }

  body.page-home .header-social a,
  body.page-home .footer-social a,
  body.page-home .home-streams a {
    border-radius: 999px;
    line-height: 0;
  }

  body.page-home .home-logos img,
  body.page-home .home-tools img,
  body.page-home .home-edu-logo,
  body.page-home .home-cox {
    padding: 6px;
  }
}
