@font-face {
  font-family: "Great Vibes";
  src: url("fonts/great-vibes.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Golos Text";
  src: url("fonts/golos-text.woff") format("woff");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #17243b;
  --blue: #244b85;
  --muted: #4a5871;
  --line: #d7dfea;
  --paper: #f7f8fb;
  font-family: "Golos Text", Arial, sans-serif;
}

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

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
}

.wrap {
  width: min(100% - 6rem, 76rem);
  margin-inline: auto;
}

main {
  flex: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
  padding-block: clamp(3rem, 7vh, 6.75rem);
}

.intro {
  padding-inline-start: clamp(0rem, 2.4vw, 2.15rem);
}

.intro::before {
  content: "";
  display: block;
  width: 3.25rem;
  height: 2px;
  background: #5272a6;
  margin-bottom: clamp(1.35rem, 3vw, 2.5rem);
}

.quiet-link {
  color: inherit;
  text-decoration-color: #8393a9;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: .19em;
}

.quiet-link:hover,
.quiet-link:focus-visible {
  color: var(--blue);
  text-decoration-color: currentColor;
  text-decoration-style: solid;
}

a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: .25rem;
}

.skip {
  position: absolute;
  padding: .65rem 1rem;
  background: white;
  z-index: 1;
  transform: translateY(-130%);
}

.skip:focus {
  transform: translateY(0);
}

h1 {
  font: 600 clamp(4.5rem, 8.3vw, 7.5rem)/.98 "Golos Text", Arial, sans-serif;
  letter-spacing: -.06em;
  margin: 0;
}

h1 span {
  display: block;
}

h1 .surname {
  color: #233d65;
  font-family: "Great Vibes", "Golos Text", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
}

h1 span + span {
  font-size: .38em;
  letter-spacing: -.036em;
  line-height: 1.16;
  margin-top: .22em;
}

.role {
  margin: 1.45rem 0 0;
  font-size: clamp(1.05rem, 1.55vw, 1.23rem);
  line-height: 1.55;
  color: var(--muted);
}

.welcome {
  margin-top: clamp(2.1rem, 5vw, 3.65rem);
  max-width: 33rem;
}

.welcome h2, .section-title {
  font: 600 clamp(1.7rem, 2.75vw, 2.65rem)/1.16 "Golos Text", Arial, sans-serif;
  letter-spacing: -.035em;
  margin: 0;
}

.welcome p {
  margin: .85rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.portrait {
  -webkit-touch-callout: none;
  margin: 0;
  padding: clamp(1.45rem, 3.6vw, 3.5rem);
  display: grid;
  place-items: center;
  border-radius: 1.75rem;
  background:
    radial-gradient(ellipse at 15% 0%, #fff8, transparent 62%),
    repeating-radial-gradient(circle at 100% 100%, transparent 0 30px, #527bb421 31px 32px, transparent 33px 52px),
    linear-gradient(142deg, #e6edf9, #d6e2f5 60%, #cbdcf3);
  position: relative;
  isolation: isolate;
}

.portrait::before {
  content: "";
  position: absolute;
  inset: .75rem;
  border: 1px solid #fffc;
  border-radius: 1.25rem;
  box-shadow: inset 0 0 0 1px #244b850c;
  pointer-events: none;
}

.portrait img {
  display: block;
  pointer-events: none;
  width: min(100%, 22rem);
  height: auto;
  background: #d3cbcb;
  box-shadow: 0 1.35rem 2.4rem -.85rem #20365655;
  outline: 1px solid #fff9;
}

.math {
  border-top: 1px solid var(--line);
  padding-block: clamp(2rem, 5vw, 4.1rem);
}

.math p {
  max-width: 43rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.75;
  margin: .85rem 0 0;
}

.quotes {
  padding-block: clamp(2.4rem, 6vw, 5.2rem);
  border-top: 1px solid var(--line);
}

.content-column {
  width: min(100%, 58rem);
  margin-inline: auto;
}

.section-title {
  margin-bottom: clamp(1.25rem, 3vw, 2.5rem);
}

.quotes .content-column > figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 .45rem 1.4rem -.85rem #20365655;
}

.quotes .content-column > figure + figure {
  margin-top: clamp(1.05rem, 3vw, 2rem);
}

.quotes .content-column > .quote-card {
  position: relative;
  isolation: isolate;
  padding: clamp(1.45rem, 4vw, 2.85rem);
  border-inline-start: 3px solid #6f8db6;
  background: linear-gradient(135deg, #fff 58%, #edf3fa);
}

.quote-card::before {
  content: "“" / "";
  position: absolute;
  inset: .15em .22em auto auto;
  z-index: -1;
  color: #5272a619;
  font: 6rem/1 Georgia, serif;
}

blockquote {
  font: 400 clamp(1.2rem, 2vw, 1.65rem)/1.52 "Golos Text", Arial, sans-serif;
  letter-spacing: -.01em;
  margin: 0;
}

cite {
  display: inline-block;
  margin-top: .85rem;
  font-style: normal;
  color: var(--blue);
}

.illustration {
  padding: .6rem;
  background: #fff;
}

.illustration img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: .5rem;
}

.illustration figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.closing {
  margin: clamp(2.05rem, 5vw, 3.5rem) 0 0;
  font: 600 clamp(1.9rem, 2.7vw, 2.65rem)/1.15 "Golos Text", Arial, sans-serif;
  color: var(--blue);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
  min-height: 5rem;
}

.footer p {
  margin: 0;
}

.footer::after {
  content: "";
  height: .45rem;
  width: .45rem;
  border: 1px solid #5272a6;
  transform: rotate(45deg);
  flex: none;
  margin-right: .25rem;
}

@media (max-width: 62rem) {
  .wrap {
    width: min(100% - 3.5rem, 76rem);
  }
  .hero {
    gap: clamp(1.75rem, 5vw, 3.5rem);
  }
  h1 {
    font-size: clamp(3.9rem, 9.3vw, 6.2rem);
  }
}

@media (max-width: 48rem) {
  .wrap {
    width: min(100% - 2.25rem, 33rem);
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: 2.5rem;
  }
  .intro {
    padding-inline-start: .2rem;
  }
  h1 {
    font-size: clamp(3.3rem, 12.7vw, 6rem);
  }
  .portrait {
    padding: clamp(1.65rem, 7vw, 2.6rem);
  }
  .footer {
    min-height: 4.5rem;
  }
}

@media (max-width: 36rem) {
  .illustration figcaption {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
    padding: .65rem .6rem .5rem;
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .intro {
    animation: enter 620ms cubic-bezier(.22, 1, .36, 1) both;
  }
  .portrait {
    animation: enter 720ms 100ms cubic-bezier(.22, 1, .36, 1) both;
  }
  @keyframes enter {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Alternate quote blocks on wide screens. */
@media (min-width: 48.01rem) {
  .quotes .content-column > figure {
    width: 86%;
  }

  .quotes .content-column > figure:nth-of-type(even) {
    margin-inline-start: auto;
  }
}

/* Reveal cards as they enter the viewport on browsers supporting scroll timelines. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) and (animation-range: entry 0% entry 75%) {
    .quotes .content-column > figure {
      animation: quote-appear linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 75%;
    }

    @keyframes quote-appear {
      from { opacity: .48; transform: translateY(12px); }
      to { opacity: 1; transform: translateY(0); }
    }
  }
}
