:root {
  color-scheme: light;
  --black: #101516;
  --white: #ffffff;
  --paper: #f3f0e8;
  --coral: #ff5a4f;
  --mint: #4ee2b4;
  --blue: #143f73;
  --muted: #5d686a;
  --line: #b8c0be;
  --content: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

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

h1,
h2,
h3 {
  letter-spacing: 0;
}

.site-header {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 50%;
  display: flex;
  width: min(calc(100% - 48px), var(--content));
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
  border-bottom: 2px solid var(--black);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 1px solid var(--black);
  border-radius: 6px;
}

nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 700;
}

nav a {
  text-decoration: none;
}

.nav-download {
  padding: 9px 14px;
  color: var(--white);
  background: var(--black);
  border-radius: 4px;
}

.hero {
  position: relative;
  display: flex;
  height: 82svh;
  min-height: 620px;
  max-height: 760px;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--white);
  background-image: url("assets/sc2.png");
  background-repeat: no-repeat;
  background-position: 78% bottom;
  background-size: auto 80%;
  border-bottom: 2px solid var(--black);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: 140px 0 68px;
}

.kicker,
.mode-type,
.platform-name,
.word-label {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.kicker {
  color: var(--blue);
}

h1 {
  max-width: 690px;
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 86px;
  font-weight: 500;
  line-height: 0.98;
}

.hero-line {
  max-width: 560px;
  margin-bottom: 28px;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.28;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 2px solid var(--black);
  border-radius: 4px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.button-dark {
  color: var(--black);
  background: var(--white);
}

.store-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--black);
  border: 2px solid var(--black);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.store-link svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  fill: currentColor;
}

.hero-caption {
  position: absolute;
  right: 24px;
  bottom: 18px;
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.manifesto {
  padding: 70px max(24px, calc((100% - var(--content)) / 2));
  color: var(--black);
  background: var(--coral);
  border-bottom: 2px solid var(--black);
}

.manifesto h2,
.manifesto > p:last-child {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  font-weight: 500;
  line-height: 1.04;
}

.manifesto > p:last-child {
  color: var(--white);
}

.replacement-example {
  padding: 108px max(24px, calc((100% - var(--content)) / 2));
  background: var(--paper);
}

.modes h2,
.download h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  font-weight: 500;
  line-height: 1.08;
}


.word-stage {
  display: grid;
  min-height: 340px;
  place-items: center;
  padding: 38px;
  text-align: center;
  background: var(--white);
  border: 2px solid var(--black);
}

.word-stage .word-label {
  align-self: start;
  justify-self: start;
  color: var(--muted);
}

.word-stage strong {
  align-self: end;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 66px;
  font-weight: 500;
}

.word-stage > p:last-child {
  max-width: 480px;
  align-self: start;
  color: var(--muted);
}

.modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  color: var(--white);
  background: var(--black);
  border-top: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
}

.modes-heading {
  grid-column: 1 / -1;
  padding: 88px max(24px, calc((100% - var(--content)) / 2)) 56px;
}

.mode {
  display: grid;
  min-height: 430px;
  padding: 54px max(28px, calc((100vw - var(--content)) / 2));
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 28px;
}

.mode-rare {
  color: var(--black);
  background: var(--mint);
}

.mode-language {
  color: var(--white);
  background: var(--blue);
}

.mode-mark {
  display: flex;
  width: 70px;
  height: 70px;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 700;
}

.mode h3 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  font-weight: 500;
  line-height: 1.08;
}

.mode p:last-child {
  max-width: 430px;
  font-size: 18px;
}

.download {
  padding: 100px max(24px, calc((100% - var(--content)) / 2));
  background: var(--paper);
  border-top: 2px solid var(--black);
}

.download-heading {
  max-width: 760px;
}

.platform-list {
  margin-top: 68px;
  border-top: 2px solid var(--black);
}

.platform-list article {
  display: grid;
  min-height: 150px;
  align-items: center;
  padding: 24px 0;
  grid-template-columns: 170px minmax(0, 1fr) 180px;
  gap: 28px;
  border-bottom: 2px solid var(--black);
}

.platform-list p {
  margin-bottom: 0;
}

.platform-list .platform-name {
  color: var(--blue);
}

.platform-list h3 {
  margin-bottom: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
}

.platform-list article > div p {
  color: var(--muted);
}

.platform-list a,
.unavailable {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 15px;
  border: 2px solid var(--black);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.platform-list a {
  color: var(--white);
  background: var(--black);
}

.platform-list a span {
  margin-left: 8px;
}

.unavailable {
  color: var(--muted);
  border-color: var(--line);
}

footer {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: space-between;
  padding: 28px max(24px, calc((100% - var(--content)) / 2));
  color: var(--white);
  background: var(--black);
}

footer p {
  margin: 0;
  color: #b9c0c0;
  font-size: 14px;
}

a:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

@media (hover: hover) {
  nav a,
  .button,
  .store-link,
  .platform-list a {
    transition: color 150ms ease, background-color 150ms ease;
  }

  nav a:not(.nav-download):hover,
  .store-link:hover {
    color: var(--coral);
  }

  .nav-download:hover,
  .button-dark:hover,
  .platform-list a:hover {
    color: var(--black);
    background: var(--mint);
  }
}

@media (max-width: 980px) {
  .hero {
    background-position: 93% bottom;
    background-size: auto 70%;
  }

  .hero-content {
    padding-bottom: 56px;
  }

  .hero-line {
    max-width: 470px;
  }

}

@media (max-width: 760px) {
  .site-header {
    width: calc(100% - 32px);
    min-height: 68px;
  }

  nav a:not(.nav-download) {
    display: none;
  }

  .hero {
    height: 84svh;
    min-height: 620px;
    max-height: 760px;
    align-items: flex-start;
    background-position: center bottom;
    background-size: auto 46%;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding: 112px 0 0;
  }

  h1 {
    font-size: 54px;
  }

  .hero-line {
    max-width: 430px;
    font-size: 21px;
  }

  .hero-caption {
    display: none;
  }

  .manifesto {
    padding: 54px 16px;
  }

  .manifesto h2,
  .manifesto > p:last-child {
    font-size: 42px;
  }

  .replacement-example,
  .download {
    padding: 76px 16px;
  }

  .modes h2,
  .download h2 {
    font-size: 39px;
  }

  .word-stage {
    min-height: 300px;
    padding: 24px;
  }

  .word-stage strong {
    font-size: 43px;
  }

  .modes {
    grid-template-columns: 1fr;
  }

  .modes-heading {
    padding: 72px 16px 44px;
  }

  .mode {
    min-height: 350px;
    padding: 42px 24px;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 18px;
  }

  .mode-mark {
    width: 58px;
    height: 58px;
    font-size: 21px;
  }

  .mode h3 {
    font-size: 36px;
  }

  .platform-list article {
    min-height: 0;
    padding: 28px 0;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .platform-list a,
  .unavailable {
    width: 100%;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
}

@media (max-width: 430px) {
  .brand span {
    font-size: 17px;
  }

  .nav-download {
    padding: 8px 11px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .hero {
    background-size: auto 42%;
  }

  .mode {
    grid-template-columns: 1fr;
  }
}

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

  * {
    transition: none !important;
  }
}
