:root {
  --surface: #f9f9f9;
  --surface-low: #f2f4f4;
  --surface-highest: #dde4e5;
  --surface-card: #ffffff;
  --text: #2d3435;
  --text-muted: #5a6061;
  --text-nav: #4a5568;
  --primary: #545f72;
  --outline: rgba(173, 179, 180, 0.2);
  --outline-strong: rgba(173, 179, 180, 0.3);
  --outline-faint: rgba(173, 179, 180, 0.1);
}

@font-face {
  font-family: "InterLocal";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "NewsreaderLocal";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/newsreader-latin.woff2") format("woff2");
}

@font-face {
  font-family: "NewsreaderLocal";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/newsreader-latin-italic.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family:
    "InterLocal", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: #d8e3fa;
  color: #1a1a1a;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 60;
  border: 1px solid var(--primary);
  background: #ffffff;
  color: var(--text);
  padding: 0.5rem 0.75rem;
}

.container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 2rem;
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--surface);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.brand {
  color: #1a1a1a;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  line-height: 1;
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 3rem;
}

.nav-links a {
  color: var(--text-nav);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.05rem;
  line-height: 1;
  font-weight: 400;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #1a1a1a;
}

.main-content {
  padding-top: 8rem;
}

.hero-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3rem;
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.hero-section h1,
.products-intro h2,
.product-head h3,
.about-intro h2,
.contact-inner h2 {
  margin: 0;
  font-family:
    "NewsreaderLocal", "Iowan Old Style", "Baskerville Old Face", Baskerville,
    "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif;
  color: var(--text);
  font-weight: 400;
  line-height: 1;
}

.hero-section h1 {
  max-width: 64rem;
  font-size: 3rem;
  letter-spacing: -0.025em;
}

.hero-section p {
  margin: 0;
  max-width: 42rem;
  color: var(--text-muted);
  opacity: 0.9;
  font-size: 1.125rem;
  line-height: 1.625;
}

.products-section {
  background: var(--surface-low);
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.products-layout {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: flex-start;
}

.products-intro,
.products-content {
  width: 100%;
}

.label {
  display: block;
  margin: 0 0 1rem;
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.05rem;
  line-height: 1;
  font-weight: 400;
}

.products-intro h2,
.about-intro h2 {
  font-size: 2.25rem;
}

.product-card {
  border: 1px solid var(--outline);
  background: var(--surface-card);
  padding: 3rem;
}

.product-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 1rem;
}

.product-head h3 {
  font-size: 1.875rem;
}

.status {
  margin: 0;
  border: 1px solid var(--outline-strong);
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.55rem;
  letter-spacing: 0.1rem;
  line-height: 1;
  padding: 0.25rem 0.75rem;
  white-space: nowrap;
}

.product-copy {
  margin: 0 0 3rem;
  max-width: 32rem;
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.625;
}

.learn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.05rem;
  line-height: 1;
}

.learn-link:hover,
.learn-link:focus-visible {
  text-decoration: underline;
}

.learn-link svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
}

.about-section {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.about-content {
  display: grid;
  gap: 2rem;
}

.about-content > p {
  margin: 0;
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1.625;
}

.registration-block {
  border-top: 1px solid var(--outline-faint);
  padding-top: 2rem;
}

.registration-label {
  margin: 0 0 0.25rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.05rem;
  line-height: 1;
}

.registration-block code {
  font-family:
    "InterLocal", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial,
    sans-serif;
  font-size: 0.95rem;
  color: var(--text);
}

.contact-section {
  background: var(--surface-highest);
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.contact-inner {
  text-align: center;
}

.contact-inner .label {
  margin-bottom: 1.5rem;
}

.contact-inner h2 {
  font-size: 2.25rem;
  font-style: italic;
  margin-bottom: 3rem;
}

.contact-inner a {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(84, 95, 114, 0.3);
  padding-bottom: 0.5rem;
  font-size: 1.5rem;
  line-height: 1;
}

.contact-inner a:hover,
.contact-inner a:focus-visible {
  border-bottom-color: var(--primary);
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid rgba(221, 228, 229, 0.2);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 6rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-brand {
  margin: 0;
  color: #1a1a1a;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  line-height: 1;
}

.footer-copy {
  margin: 0.5rem 0 0;
  color: var(--text-nav);
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.1rem;
  line-height: 1;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-right > a {
  color: var(--text-nav);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1;
}

.footer-right > a:hover,
.footer-right > a:focus-visible {
  color: #1a1a1a;
}

.footer-icons {
  display: flex;
  gap: 1.5rem;
  color: var(--text-muted);
}

.footer-icons svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: currentColor;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .hero-section,
  .products-section,
  .about-section,
  .contact-section {
    padding-top: 12rem;
    padding-bottom: 12rem;
  }

  .hero-section h1 {
    font-size: 4.5rem;
  }

  .hero-section p {
    font-size: 1.25rem;
  }

  .products-layout {
    flex-direction: row;
  }

  .products-intro {
    width: 33.333333%;
  }

  .products-content {
    width: 66.666667%;
  }

  .products-intro h2,
  .about-intro h2 {
    font-size: 3rem;
  }

  .product-card {
    padding: 4rem;
  }

  .product-head h3 {
    font-size: 2.25rem;
  }

  .about-layout {
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
  }

  .contact-inner h2 {
    font-size: 3.75rem;
  }

  .contact-inner a {
    font-size: 1.875rem;
  }

  .footer-inner {
    flex-direction: row;
  }

  .footer-left {
    align-items: flex-start;
    margin-bottom: 0;
  }

  .footer-right {
    flex-direction: row;
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero-section h1 {
    font-size: 6rem;
  }
}

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