/* InkaTech — site styles (shared by index.html and 404.html) */

:root {
  --navy: #1b2537;          /* main section background */
  --white: #ffffff;
  --text-muted: #a3a8b1;    /* body text on navy */
  --font-body: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-heading: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --frame: 0px;             /* white border around the page on larger screens */
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 28px;
}

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

a {
  color: inherit;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  border: var(--frame) solid var(--white);
}

.page > main {
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ---------- Header ---------- */

.site-header {
  padding: 24px 0;
  background: var(--white);
}

.site-header .logo {
  display: inline-block;
}

.site-header .logo img {
  width: 140px;
}

/* ---------- Main section ---------- */

.hero {
  background: var(--navy);
  padding: 80px 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
}

.split__media img {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.content {
  max-width: 570px;
}

.content h1,
.content h2,
.content h3 {
  margin: 0;
  color: var(--white);
  font-family: var(--font-heading);
}

.content h1,
.content h2 {
  font-size: clamp(30px, 1.6vw + 24px, 40px);
  line-height: 1.4;
  font-weight: 700;
}

.content h3 {
  font-size: clamp(24px, 1.1vw + 20px, 32px);
  line-height: 1.375;
  font-weight: 400;
}

.content h2,
.content h3 {
  margin-top: 48px;
}

.content p {
  margin: 20px 0 0;
}

.content strong {
  font-weight: 700;
}

.content ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.content li {
  position: relative;
  margin-left: 32px;
}

.content li + li {
  margin-top: 8px;
}

.content li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 12px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.content .email {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.content .email:hover,
.content .email:focus-visible {
  text-decoration: underline;
}

/* ---------- Button (404 page) ---------- */

.button {
  display: inline-block;
  margin-top: 32px;
  padding: 12px 32px;
  border-radius: 4px;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  background: #e4e6ea;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 20px 0;
  background: var(--white);
  color: #5b6372;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

/* ---------- Larger screens ---------- */

@media (min-width: 768px) {
  :root {
    --frame: 16px;
  }

  .site-header {
    padding: 32px 0;
  }

  .site-header .logo img {
    width: 200px;
  }

  .hero {
    padding: 120px 0;
  }
}

@media (min-width: 992px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 70px;
    align-items: start;
  }

  /* Product photo sits on the right and stays in view while the text scrolls */
  .split__media {
    order: 2;
    position: sticky;
    top: 120px;
  }

  .split__media img {
    max-width: 552px;
  }
}

/* ---------- 404 page ---------- */

.hero--404 {
  display: flex;
  align-items: center;
}

.hero--404 .container {
  width: 100%;
}

.hero--404 .code {
  margin: 0 0 8px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: clamp(72px, 8vw, 120px);
  line-height: 1;
  font-weight: 700;
}
