/* LibNerd Labs: the company's one-page site. Palette and fonts from BRAND_STANDARDS.md. */

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-weight: 800;
  font-display: swap;
  src: url("fonts/nunito-sans-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-weight: 900;
  font-display: swap;
  src: url("fonts/nunito-sans-latin-900-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  --purple: #250147;
  --teal: #00c8cf;
  --coral: #fc5350;
  --yellow: #f9cd79;
  --white: #fdfdfd;
  --mist: #e8f5f7;
  --gray: #68717a;
  --deep-teal: #006a70;
  --line: #d3e6ea;
  --heading: "Nunito Sans", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--white);
  color: var(--purple);
  font: 400 1.0625rem/1.6 var(--body);
}

h1,
h2,
h3 {
  font-family: var(--heading);
  font-weight: 900;
  line-height: 1.12;
  margin: 0;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.3rem;
  font-weight: 800;
}
p {
  margin: 0;
}

a {
  color: var(--deep-teal);
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--purple);
}
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--white);
  padding: 0.5rem 1rem;
  z-index: 10;
}

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.eyebrow {
  font: 500 0.8rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--deep-teal);
}

.lede {
  font-size: 1.2rem;
  max-width: 38em;
}

.stack > * + * {
  margin-top: 1rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  flex-wrap: wrap;
}
.wordmark {
  font: 900 1.45rem/1 var(--heading);
  color: var(--purple);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark span {
  color: var(--coral);
}
.site-header nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-header nav a {
  font: 800 1rem/1 var(--heading);
  color: var(--purple);
  text-decoration: none;
}
.site-header nav a:hover {
  color: var(--deep-teal);
  text-decoration: underline;
}

/* Buttons */
.button {
  display: inline-block;
  font: 800 1rem/1 var(--heading);
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid var(--purple);
  color: var(--purple);
  background: transparent;
}
.button.primary {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--purple);
}
.button:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--white);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Sections */
section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.band {
  background: var(--mist);
}
.section-head {
  max-width: 44em;
  margin-bottom: 2.5rem;
}
.section-head > * + * {
  margin-top: 0.75rem;
}

.hero {
  background: var(--mist);
  position: relative;
  overflow: hidden;
}
/* The schedule grid as a quiet motif behind the hero. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgb(0 106 112 / 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(0 106 112 / 0.08) 1px, transparent 1px);
  background-size: 56px 40px;
  mask-image: linear-gradient(to left, #000 10%, transparent 75%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
}
.hero .stack > * + * {
  margin-top: 1.5rem;
}
.hero h1 {
  max-width: 16em;
}

/* Products */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.product .logo-full {
  width: min(320px, 100%);
  height: auto;
}
.product .tagline {
  font: 900 1.6rem/1.2 var(--heading);
}

figure {
  margin: 0;
}
.tour video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -24px rgb(37 1 71 / 0.45);
  background: var(--mist);
}
.tour figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--gray);
}

.next {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: flex;
  align-items: center;
  gap: 1.25rem 2rem;
  flex-wrap: wrap;
  padding: 1.75rem 2rem;
  border: 2px dashed var(--teal);
  border-radius: 16px;
  background: var(--white);
}
.next h3 {
  font-size: 1.6rem;
  font-weight: 900;
}
.badge {
  font: 500 0.8rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--yellow);
  color: var(--purple);
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
}

/* About */
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
}
.principles li {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 12px;
  padding: 1.5rem;
}
.principles li > * + * {
  margin-top: 0.5rem;
}

/* Contact */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.contact-list li {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
}
.contact-list li > * + * {
  margin-top: 0.4rem;
}
.contact-list a {
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* Footer */
.site-footer {
  background: var(--purple);
  color: var(--white);
  padding-block: 2.5rem;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}
.site-footer a {
  color: var(--white);
}
.site-footer ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (max-width: 820px) {
  .product,
  .principles,
  .contact-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .site-header nav ul {
    gap: 1rem;
  }
}
