@font-face {
  font-family: "Archivo";
  src: url("/assets/archivo-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Archivo Black";
  src: url("/assets/archivo-black-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --blue: #0645f5;
  --blue-dark: #032ee0;
  --navy: #02091d;
  --paper: #ffffff;
  --lime: #cfff00;
  --line: #b7bfd1;
  --muted: #4e566a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--navy);
  background: var(--paper);
  font-family: "Archivo", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--navy);
  transform: translateY(-160%);
}

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

.site-header {
  min-height: 78px;
  padding: 18px clamp(24px, 4vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--paper);
  background: var(--blue);
  border-bottom: 2px solid var(--navy);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  text-decoration: none;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--lime);
  border: 3px solid var(--lime);
  font-size: 1.25rem;
  line-height: 1;
}

.site-header nav,
footer nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
}

.site-header nav a {
  font-weight: 750;
  text-decoration: none;
}

.site-header nav a:hover,
footer a:hover {
  color: var(--lime);
}

.hero {
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(520px, 1.04fr);
  align-items: center;
  gap: clamp(30px, 5vw, 74px);
  padding: clamp(54px, 7vw, 96px) clamp(24px, 4vw, 58px) clamp(70px, 8vw, 110px);
  color: var(--navy);
  background: var(--blue);
  overflow: hidden;
}

.hero-copy {
  z-index: 2;
  min-width: 0;
}

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

h1,
h2,
h3 {
  font-family: "Archivo Black", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-size: clamp(3.25rem, 6vw, 6.3rem);
  line-height: 0.98;
}

.hero-copy > p:not(.trust-line) {
  max-width: 600px;
  margin-bottom: 32px;
  font-size: clamp(1.08rem, 1.7vw, 1.4rem);
  font-weight: 560;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border: 2px solid var(--navy);
  border-radius: 0;
  font-size: 1rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 var(--navy);
}

.button-lime {
  background: var(--lime);
}

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

.button-blue {
  color: var(--paper);
  background: var(--blue);
}

.trust-line {
  margin: 34px 0 0;
  font-size: 0.93rem;
  font-weight: 700;
}

.workbook-stack {
  min-height: 500px;
  position: relative;
  align-self: stretch;
}

.sheet {
  width: min(620px, 78%);
  aspect-ratio: 1.25;
  object-fit: cover;
  position: absolute;
  right: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 10px 12px 22px rgba(2, 9, 29, 0.24);
}

.sheet-rate {
  top: 0;
  right: 1%;
  transform: rotate(1.6deg);
}

.sheet-inventory {
  top: 20%;
  right: 4%;
  transform: rotate(-0.8deg);
}

.sheet-income {
  top: 40%;
  right: 8%;
  transform: rotate(0.8deg);
}

.sheet-bookkeeping {
  top: 58%;
  right: 12%;
  transform: rotate(1.5deg);
}

.resources,
.upgrades {
  padding: clamp(64px, 8vw, 112px) clamp(24px, 4vw, 58px);
}

.section-heading {
  max-width: 940px;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  line-height: 0.98;
}

.section-heading > p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.resource-list {
  margin-top: clamp(34px, 5vw, 66px);
  border-top: 2px solid var(--navy);
}

.resource-row {
  min-height: 84px;
  display: grid;
  grid-template-columns: 64px minmax(190px, 0.8fr) 110px minmax(260px, 1.4fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 18px;
}

.resource-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--lime);
  border: 1px solid var(--navy);
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: 1.05rem;
}

.resource-row h3 {
  margin: 0;
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  line-height: 1.05;
}

.resource-language {
  color: var(--blue-dark);
  font-size: 0.9rem;
  font-weight: 850;
}

.resource-row p {
  margin: 0;
  color: var(--muted);
}

.resource-row > a {
  color: var(--blue-dark);
  border-bottom: 2px solid currentColor;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.resource-row > a:hover {
  color: var(--navy);
}

.upgrades {
  padding-top: clamp(48px, 7vw, 96px);
}

.upgrade-row {
  min-height: 236px;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(250px, 1fr) auto;
  align-items: center;
  gap: clamp(26px, 4vw, 58px);
  border-top: 2px solid var(--blue);
}

.upgrade-row:last-of-type {
  border-bottom: 2px solid var(--blue);
}

.upgrade-row img {
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  object-position: center;
  border-inline: 1px solid var(--line);
}

.upgrade-row h3 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3.5vw, 3.6rem);
  line-height: 0.98;
}

.upgrade-row p {
  margin: 0;
  font-size: clamp(1.08rem, 1.7vw, 1.4rem);
}

.purchase-notes {
  margin: 26px 0 0;
  text-align: center;
  font-size: 1.03rem;
}

.launch-strip {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 24px;
  color: var(--navy);
  background: var(--lime);
  border-block: 2px solid var(--navy);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 820;
  text-align: center;
}

footer {
  min-height: 150px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 34px clamp(24px, 4vw, 58px);
  color: var(--paper);
  background: var(--navy);
}

footer a {
  text-decoration: none;
}

.footer-home {
  font-size: 1.2rem;
  font-weight: 850;
}

footer > a:last-child {
  justify-self: end;
}

@media (max-width: 980px) {
  .hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .workbook-stack {
    min-height: 540px;
  }

  .sheet {
    right: 10%;
  }

  .resource-row {
    grid-template-columns: 58px minmax(180px, 0.8fr) 100px minmax(220px, 1.2fr);
  }

  .resource-row > a {
    grid-column: 4;
    justify-self: start;
  }

  .upgrade-row {
    grid-template-columns: minmax(240px, 0.8fr) 1fr;
    padding-block: 20px;
  }

  .upgrade-row .button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    font-size: 0.9rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.65rem, 11.5vw, 4rem);
    overflow-wrap: break-word;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .workbook-stack {
    min-height: 390px;
  }

  .sheet {
    width: 86%;
  }

  .resource-row {
    grid-template-columns: 52px 1fr auto;
    gap: 10px 14px;
    padding: 18px 0;
  }

  .resource-number {
    grid-row: 1 / 3;
  }

  .resource-language {
    justify-self: end;
  }

  .resource-row p,
  .resource-row > a {
    grid-column: 2 / 4;
  }

  .upgrade-row {
    grid-template-columns: 1fr;
    padding-block: 24px 32px;
  }

  .upgrade-row img,
  .upgrade-row .button {
    grid-column: 1;
  }

  .launch-strip {
    flex-wrap: wrap;
  }

  footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  footer nav {
    flex-wrap: wrap;
  }

  footer > a:last-child {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
