@font-face {
  font-family: Inter;
  src: url('./assets/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --obsidian: #101d1a;
  --emerald: #42b68e;
  --forest: #28594b;
  --ivory: #f0f3f1;
  --muted: #b0c0b8;
  --panel: #152720;
  --rule: #2b4038;
  --history4x-navy: #0b1220;
  --history4x-cyan: #22d3ee;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  font-family: Inter, system-ui, sans-serif;
  color: var(--ivory);
  background: var(--obsidian);
}

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

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

body {
  line-height: 1.5;
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
}

a:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 5px;
}

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

.wrap {
  width: min(100% - 2 * var(--gutter), 74rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1;
  inset: 0.75rem auto auto 0.75rem;
  padding: 0.6rem 1rem;
  background: var(--ivory);
  color: var(--obsidian);
  transform: translateY(calc(-100% - 1rem));
}

.skip-link:focus {
  transform: none;
}

.site-header {
  border-bottom: 1px solid var(--rule);
}

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-inner {
  min-height: 5.5rem;
}

.brand {
  display: block;
  flex: 0 1 11.25rem;
}

.site-header nav a, .site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.875rem;
  font-weight: 550;
  white-space: nowrap;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 2vw, 1rem);
}

.site-header nav a {
  padding-inline: 1rem;
  text-decoration: none;
}

.site-header nav a[href="#products"] {
  border: 1px solid var(--rule);
  border-radius: 0.375rem;
}

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

.hero {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6.5rem);
  padding-block: clamp(4rem, 7vw, 6.75rem);
}

.hero h1 {
  font-size: clamp(3.35rem, 6.8vw, 6.25rem);
  font-weight: 650;
  line-height: 0.99;
  letter-spacing: -0.045em;
}

.hero h1 span {
  color: var(--emerald);
}

.hero p {
  max-width: 31ch;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  margin-top: 1.75rem;
  padding: 0.625rem 1.125rem;
  border-radius: 0.375rem;
  background: var(--emerald);
  color: var(--obsidian);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: #6ac9a7;
}

.mark-panel {
  display: grid;
  align-items: stretch;
  aspect-ratio: 1.12;
  padding: clamp(1.125rem, 2.3vw, 2rem);
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  background: var(--panel);
}

.mark-frame {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
}

.mark-frame::before {
  position: absolute;
  inset: -1px;
  background:
    linear-gradient(to right, var(--emerald) 1px, transparent 1px, transparent calc(100% - 1px), var(--emerald) calc(100% - 1px)) top / 100% 12px no-repeat,
    linear-gradient(to right, var(--emerald) 1px, transparent 1px, transparent calc(100% - 1px), var(--emerald) calc(100% - 1px)) bottom / 100% 12px no-repeat,
    linear-gradient(var(--emerald), var(--emerald)) top left / 12px 1px no-repeat,
    linear-gradient(var(--emerald), var(--emerald)) top right / 12px 1px no-repeat,
    linear-gradient(var(--emerald), var(--emerald)) bottom left / 12px 1px no-repeat,
    linear-gradient(var(--emerald), var(--emerald)) bottom right / 12px 1px no-repeat;
  opacity: 0.65;
  content: '';
}

.mark-frame img {
  width: min(68%, 16rem);
}

.products, .focus, .systems {
  background: var(--ivory);
  color: var(--obsidian);
  scroll-margin-top: 1rem;
}

.products-inner, .focus-inner, .systems-inner {
  padding-block: clamp(3.25rem, 6vw, 5.5rem);
}

.products h2, .focus h2, .systems h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin-block-start: 2rem;
  overflow: hidden;
  border-radius: 0.75rem;
  color: #f8fafc;
  background: var(--history4x-navy);
}

.product-copy {
  align-self: center;
  padding: clamp(1.375rem, 4.5vw, 3.75rem);
}

.product-copy h3 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 730;
  line-height: 1;
  letter-spacing: -0.055em;
}

.product-copy h3 span {
  color: var(--history4x-cyan);
}

.product-tagline {
  margin-block-start: 0.75rem;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
}

.product-description {
  max-width: 41ch;
  margin-block-start: 0.625rem;
  color: #a9b7c9;
}

.product-button {
  margin-block-start: 1.5rem;
  color: var(--history4x-navy);
  background: var(--history4x-cyan);
}

.product-button:hover {
  background: #7ce8f8;
}

.product-button:focus-visible {
  outline-color: var(--history4x-cyan);
}

.product-visual {
  position: relative;
  align-self: center;
}

.product-image {
  width: 100%;
}

.product-reading, .product-trend, .product-context {
  position: absolute;
  border: 1px solid #3a5065;
  border-radius: 0.5rem;
  background: var(--history4x-navy);
}

.product-reading {
  inset-block-start: 46.6%;
  inset-inline-start: 45.1%;
  padding: 0.35rem 0.625rem;
  color: #a9b7c9;
  font-size: 0.75rem;
  line-height: 1.35;
  transform: translate(0.875rem, -50%);
}

.product-reading strong {
  color: var(--history4x-cyan);
  font-size: 0.9375rem;
}

.product-reading::before, .product-reading::after {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 100%;
  background: var(--history4x-cyan);
  content: '';
}

.product-reading::before {
  width: 0.875rem;
  height: 1px;
}

.product-reading::after {
  width: 0.625rem;
  height: 0.625rem;
  border: 1px solid #f8fafc;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgb(11 18 32 / 70%);
  transform: translate(-0.5625rem, -50%);
}

.product-trend {
  inset-block-start: clamp(0.5rem, 1.5vw, 1rem);
  inset-inline-start: 0.5rem;
  width: min(45%, 14rem);
  padding: clamp(0.35rem, 1vw, 0.625rem);
  font-size: 0.75rem;
  font-weight: 550;
  line-height: 1.3;
}

.product-trend img {
  width: 100%;
  margin-block: 0.25rem;
}

.product-trend-window {
  color: #fbbf58;
  font-variant-numeric: tabular-nums;
}

.product-context {
  inset-inline: clamp(0.75rem, 2vw, 1.25rem);
  inset-block-end: clamp(0.75rem, 2vw, 1.25rem);
  padding: clamp(0.625rem, 1.5vw, 0.875rem);
}

.product-context dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.product-context dl > div + div {
  border-inline-start: 1px solid #3a5065;
  padding-inline-start: 0.75rem;
}

.product-context dt {
  margin-block-end: 0.2rem;
  color: #a9b7c9;
  font-size: 0.75rem;
}

.product-context dd {
  font-size: 0.9375rem;
  font-weight: 620;
  line-height: 1.35;
}

.product-asset-id {
  white-space: nowrap;
}

.product-context .context-detail {
  margin-block-start: 0.15rem;
  color: #a9b7c9;
  font-size: 0.8125rem;
  font-weight: 400;
}

.focus-inner, .systems-inner {
  border-block-start: 1px solid #a4bab0;
}

.systems-intro {
  max-width: 54ch;
  margin-block-start: 1rem;
  color: var(--forest);
}

.focus-list, .systems-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.625rem, 4.5vw, 4.5rem);
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.focus-list li, .systems-list li {
  border-top: 1px solid #a4bab0;
  padding-top: 1rem;
}

.focus-list h3, .systems-list h3 {
  margin-bottom: 0.4rem;
  font-size: 1.25rem;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.focus-list p, .systems-list p {
  max-width: 34ch;
  color: var(--forest);
}

.site-footer {
  color: var(--muted);
}

.footer-inner {
  min-height: 5rem;
  font-size: 0.875rem;
}

.footer-inner p {
  color: var(--ivory);
  font-weight: 650;
}

@media (max-width: 60rem) {
  .focus-list, .systems-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 46rem) {
  .header-inner {
    min-height: 4.75rem;
  }

  .hero, .product-card {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 2.5rem;
    padding-block: 3.25rem;
  }

  .mark-panel {
    width: min(100%, 29rem);
  }

  .focus-list, .systems-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 29rem) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0 0.75rem;
    padding-block: 0.5rem;
  }

  .site-header nav a {
    padding-inline: 0.625rem;
  }

  .product-context {
    position: relative;
    inset: auto;
    margin: -0.5rem 0.75rem 0.75rem;
  }

}

@media (max-width: 23rem) {
  .header-inner {
    gap: 0.75rem;
  }

  .site-header nav a {
    padding-inline: 0.375rem;
  }
}
