/* poweird.com: one page, no build step. */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --paper: #f7f4ee;
  --surface: #ffffff;
  --ink: #141a33;
  --night: #101736;
  --body: #333a55;
  --muted: #4a5068;
  --line: #ddd8cc;
  --cobalt: #1f3fbf;
  --cobalt-deep: #142c8c;
  --saffron: #f2a900;
  --on-night: #d5d9ea;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}

h1,
h2,
h3,
p,
ol,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
}

a {
  color: var(--cobalt);
}

a:hover {
  color: var(--cobalt-deep);
}

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

.contact :focus-visible {
  outline-color: var(--ink);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
}

.skip:focus {
  top: 16px;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: 24px;
}

.section {
  padding-block: clamp(64px, 8vw, 104px);
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 40px 64px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt);
}

.h2 {
  font-weight: 700;
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.h2-big {
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--body);
}

/* Buttons are links: each one goes somewhere. */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  transition: transform 0.15s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button svg {
  flex: none;
}

.button-saffron,
.button-saffron:hover {
  background: var(--saffron);
  color: var(--ink);
}

.button-cobalt,
.button-cobalt:hover {
  background: var(--cobalt);
  color: #fff;
}

.button-ink,
.button-ink:hover {
  background: var(--ink);
  color: #fff;
}

/* Hero */
.hero {
  background: var(--cobalt);
  color: #fff;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  padding-block: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #fff;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
}

.nav-links a,
.hero-more {
  padding-block: 11px;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover,
.hero-more:hover,
.brand:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero-more {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero-grid {
  align-items: center;
  padding-block: clamp(40px, 6vw, 72px) clamp(72px, 9vw, 104px);
}

.hero-copy {
  gap: 28px;
}

.hero .eyebrow {
  color: #fff;
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-lead {
  max-width: 540px;
  font-size: clamp(17px, 1.5vw, 20px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}

/* The example path card in the hero. */
.path {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  margin-right: 14px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 20px;
  box-shadow: 14px 14px 0 var(--cobalt-deep);
}

.path-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.path-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.path-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.path-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-weight: 500;
  font-size: 16px;
}

.path-list .is-learning {
  padding: 13px 15px;
  border: 2px solid var(--cobalt);
}

.path-list .is-later {
  background: #efebe2;
  border: 1px dashed #b9b3a4;
  color: var(--muted);
}

.tag {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.tag-learned {
  background: var(--ink);
  color: #fff;
}

.tag-learning {
  background: var(--cobalt);
  color: #fff;
}

.tag-next {
  background: var(--saffron);
  color: var(--ink);
}

.tag-later {
  padding-inline: 0;
}

.path-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

/* Znable */
.znable {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.znable-head {
  align-items: end;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 20px;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.step-number {
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: var(--cobalt);
}

.steps h3 {
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
}

.steps p {
  font-size: 16px;
  color: var(--body);
}

.note {
  font-size: 16px;
  color: var(--muted);
}

/* How we build */
.approach {
  background: var(--night);
  color: #fff;
}

.approach .wrap {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.approach-head {
  max-width: 760px;
}

.approach .eyebrow {
  color: var(--saffron);
}

.approach .lead {
  color: var(--on-night);
}

.rules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: 0 56px;
}

.rules > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-block: 28px;
  border-top: 1px solid #353d63;
}

.rules h3 {
  font-weight: 600;
  font-size: 23px;
  letter-spacing: -0.01em;
}

.rules p {
  color: var(--on-night);
}

/* Company */
.company {
  align-items: start;
}

.facts {
  padding: 8px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.facts > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
  border-bottom: 1px solid #e8e3d8;
}

.facts > div:last-child {
  border-bottom: 0;
}

.facts dt {
  font-size: 15px;
  color: var(--muted);
}

.facts dd {
  font-weight: 600;
  font-size: 16px;
  text-align: right;
}

/* Contact */
.contact {
  background: var(--saffron);
  color: var(--ink);
}

.contact .split {
  align-items: center;
}

.contact .lead {
  max-width: 480px;
  color: var(--ink);
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

address {
  font-style: normal;
  font-size: 16px;
  line-height: 1.6;
}

/* Footer */
.footer {
  background: var(--night);
  color: var(--on-night);
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
  padding-block: 40px;
}

.footer-name {
  display: block;
  margin-bottom: 6px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
}

.footer small {
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
}

.footer-links a {
  padding-block: 11px;
  color: #fff;
  font-size: 15px;
}

/* The page-not-found screen. */
.lost {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  padding-block: 64px;
}

@media (max-width: 520px) {
  .path {
    padding: 20px;
    margin-right: 10px;
    box-shadow: 10px 10px 0 var(--cobalt-deep);
  }

  .facts {
    padding-inline: 20px;
  }
}

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

  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}

.on-night-link,
.on-night-link:hover {
  color: #fff;
}
