@font-face {
  font-family: "DotGothic16";
  src: url("/assets/fonts/DotGothic16-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --sky: #58c9e9;
  --sky-dark: #238fb6;
  --ink: #20283b;
  --paper: #fff6dc;
  --paper-dark: #e7d4a4;
  --red: #e23a20;
  --red-dark: #9f2016;
  --green: #4c9d48;
  --green-dark: #28642f;
  --blue: #285b9b;
  --yellow: #f5c431;
  --white: #fffef8;
  --focus: #ffef75;
  font-family: "DotGothic16", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-synthesis: none;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.8;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 5px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}

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

.site-header {
  position: relative;
  z-index: 2;
  background: var(--paper);
  border-bottom: 6px solid var(--ink);
}

.site-header__inner,
.section__inner,
.site-footer__inner {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 74px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark__mark {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  background: var(--ink);
  color: var(--yellow);
  font-family: monospace;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 4px 4px 0 var(--red);
}

.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}

.site-header nav a,
.site-footer nav a {
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--sky);
  border-bottom: 6px solid var(--ink);
}

.hero::before,
.hero::after {
  position: absolute;
  display: block;
  width: 96px;
  height: 22px;
  background: var(--white);
  content: "";
  opacity: 0.82;
  box-shadow: 18px -14px 0 var(--white), 42px 0 0 var(--white), 62px -9px 0 var(--white);
}

.hero::before {
  top: 72px;
  right: 7%;
}

.hero::after {
  top: 270px;
  left: -12px;
  transform: scale(0.72);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  align-items: center;
  width: min(1200px, calc(100% - 40px));
  min-height: 560px;
  margin-inline: auto;
  padding-block: 76px 64px;
}

.hero__copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding-block: 20px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: monospace;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.eyebrow--red {
  color: var(--red);
}

.eyebrow--light {
  color: var(--paper);
}

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

h1,
h2,
h3 {
  line-height: 1.25;
  text-wrap: balance;
}

h1 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 7.2rem;
  letter-spacing: 0;
  text-shadow: 7px 7px 0 var(--white), 12px 12px 0 var(--red);
}

h2 {
  margin-bottom: 20px;
  font-size: 3.7rem;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.hero__lead {
  margin-bottom: 24px;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.55;
}

.hero__note,
.small-note {
  margin-bottom: 20px;
  color: var(--sky-dark);
  font-size: 14px;
  font-weight: 700;
}

.hero__art {
  position: relative;
  justify-self: end;
  width: min(100%, 360px);
  filter: drop-shadow(12px 12px 0 rgb(32 40 59 / 25%));
}

.hero__art img {
  width: 100%;
  image-rendering: pixelated;
}

.hero__actions,
.release-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.pixel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 20px;
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.pixel-button:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--ink);
}

.pixel-button--red {
  background: var(--red);
  color: var(--white);
}

.pixel-button--dark {
  background: var(--ink);
  color: var(--yellow);
}

.section {
  padding-block: 92px;
}

.section--paper {
  background: var(--paper);
}

.section--sky {
  background: var(--sky);
}

.section--green {
  background: var(--green);
  color: var(--white);
  border-block: 6px solid var(--ink);
}

.section__inner {
  position: relative;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 54px;
}

.section-heading p:last-child,
.preview-copy > p,
.connection-copy p,
.release-section p {
  max-width: 680px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  min-height: 210px;
  padding: 24px;
  border: 5px solid var(--ink);
  background: var(--white);
  box-shadow: 8px 8px 0 var(--paper-dark);
}

.feature-item__number {
  color: var(--red);
  font-family: monospace;
  font-size: 18px;
  font-weight: 900;
}

.feature-item p {
  margin-bottom: 0;
  font-size: 15px;
}

.preview-layout,
.connection-layout,
.release-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  align-items: center;
  gap: clamp(36px, 8vw, 120px);
}

.preview-copy {
  max-width: 520px;
}

.preview-copy h2 {
  color: var(--ink);
}

.pixel-rule {
  width: 160px;
  height: 12px;
  margin-block: 30px;
  background: var(--red);
  box-shadow: 20px 12px 0 var(--yellow), 40px -12px 0 var(--ink);
}

.app-screen {
  max-width: 520px;
  margin: 0;
  justify-self: center;
}

.app-screen img {
  width: 100%;
  border: 6px solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
  image-rendering: pixelated;
}

figcaption {
  margin-top: 20px;
  font-size: 13px;
  text-align: center;
}

.connection-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.connection-layout h2 {
  color: var(--paper);
}

.connection-copy {
  padding-left: 26px;
  border-left: 5px solid var(--paper);
}

.connection-copy p {
  font-size: 16px;
}

.text-link {
  font-weight: 700;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

.text-link--light {
  color: var(--paper);
}

.release-section {
  padding-block: 76px;
}

.release-layout {
  grid-template-columns: minmax(0, 1fr) auto;
}

.release-layout h2 {
  margin-bottom: 10px;
}

.release-actions {
  justify-content: flex-end;
}

.site-footer {
  background: var(--ink);
  color: var(--paper);
  border-top: 6px solid var(--ink);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 34px;
  padding-block: 38px;
}

.footer-brand {
  margin-bottom: 4px;
  font-size: 22px;
  font-weight: 700;
}

.footer-provider,
.footer-copy {
  margin-bottom: 0;
  color: var(--paper-dark);
  font-size: 13px;
}

.footer-provider a {
  color: var(--white);
}

.site-footer nav a {
  color: var(--paper);
}

.privacy-main {
  min-height: calc(100vh - 200px);
}

.privacy-content {
  max-width: 780px;
}

.privacy-content h1 {
  margin-bottom: 34px;
  font-size: 4.8rem;
  text-shadow: 5px 5px 0 var(--white), 9px 9px 0 var(--red);
}

.privacy-content h2 {
  margin-top: 48px;
  font-size: 1.7rem;
}

.privacy-content ul {
  padding-left: 1.5em;
}

@media (max-width: 820px) {
  h1 {
    font-size: 5rem;
  }

  h2 {
    font-size: 3rem;
  }

  .privacy-content h1 {
    font-size: 3.8rem;
  }

  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-block: 18px;
  }

  .hero__inner,
  .preview-layout,
  .connection-layout,
  .release-layout {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    min-height: auto;
    padding-block: 58px 70px;
  }

  .hero__art {
    position: absolute;
    right: -34px;
    bottom: -46px;
    width: 250px;
    opacity: 0.38;
  }

  .hero__copy {
    max-width: 560px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .feature-item {
    min-height: auto;
  }

  .app-screen {
    max-width: 600px;
  }

  .connection-copy {
    padding-top: 24px;
    padding-left: 0;
    border-top: 5px solid var(--paper);
    border-left: 0;
  }

  .release-actions {
    justify-content: flex-start;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .site-header__inner,
  .section__inner,
  .site-footer__inner,
  .hero__inner {
    width: min(100% - 28px, 1120px);
  }

  .site-header nav {
    gap: 10px 16px;
    font-size: 13px;
  }

  .section {
    padding-block: 64px;
  }

  h1 {
    font-size: 3.2rem;
    text-shadow: 5px 5px 0 var(--white), 9px 9px 0 var(--red);
  }

  h2 {
    font-size: 1.85rem;
  }

  .privacy-content h1 {
    font-size: 2.4rem;
  }

  .hero__actions,
  .release-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .pixel-button {
    width: 100%;
  }

  .hero__art {
    right: -54px;
    bottom: -36px;
    width: 220px;
  }

  .feature-item {
    padding: 18px;
  }

  .app-screen img {
    border-width: 4px;
    box-shadow: 8px 8px 0 var(--ink);
  }
}

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

  .pixel-button {
    transition: none;
  }

  .pixel-button:hover {
    transform: none;
  }
}
