@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #f7f6f1;
  --green: #1b4034;
  --text: #4d5d50;
  --muted: #788579;
  --line: #d9ded3;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body {
  max-width: 2177px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(40px, 4.9vw, 96px) clamp(24px, 5.74vw, 112px) 32px;
  display: flex;
  flex-direction: column;
}

::selection { background: #dce5d7; color: var(--green); }

.brand {
  display: flex;
  align-items: center;
  gap: clamp(24px, 2.56vw, 50px);
  color: var(--green);
}

.element {
  width: clamp(104px, 10.24vw, 200px);
  aspect-ratio: 1;
  border: clamp(2px, 0.2vw, 4px) solid currentColor;
  position: relative;
  flex-shrink: 0;
  font-family: "IBM Plex Mono", monospace;
}

.atomic-number {
  position: absolute;
  top: 8%;
  left: 10%;
  font-size: clamp(19px, 1.84vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.08em;
}

.element-symbol {
  position: absolute;
  left: 12%;
  bottom: 2%;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(68px, 6.55vw, 128px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.08em;
}

h1 {
  margin: -0.04em 0 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(38px, 3.9vw, 76px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.intro {
  max-width: 1240px;
  margin: clamp(48px, 3.85vw, 75px) 0 0;
  font-size: clamp(22px, 1.845vw, 36px);
  font-weight: 400;
  line-height: 1.68;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.products {
  margin-top: clamp(64px, 5.5vw, 108px);
  border-top: 1px solid var(--line);
  padding-top: clamp(25px, 1.85vw, 36px);
}

h2 {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(12px, 0.87vw, 17px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #647266;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
  margin: clamp(40px, 3.8vw, 74px) 0 0;
  padding: 0;
  list-style: none;
}

.product-list li { display: flex; justify-content: center; }

.product {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 0.9vw, 18px);
  min-height: 64px;
  padding: 6px;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 4px;
  transition: opacity 160ms ease, transform 160ms ease;
}

.product img { display: block; width: clamp(34px, 2.66vw, 52px); height: auto; }
.product span { font-size: clamp(22px, 1.64vw, 32px); font-weight: 700; letter-spacing: -0.025em; }
.flexwaiver { color: var(--green); }
.hardreload { color: #171715; }
.hardreload img { width: clamp(39px, 2.97vw, 58px); }
.allocateedge { color: #071526; }
.allocateedge strong { color: #4268df; font-weight: inherit; }
.endorsewell { color: #143b3d; }
.endorsewell img { width: clamp(39px, 2.97vw, 58px); }
.product:hover { opacity: 0.7; transform: translateY(-2px); }

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

footer {
  margin-top: auto;
  padding-top: clamp(100px, 10vw, 195px);
  font-size: clamp(13px, 0.92vw, 18px);
  line-height: 1.5;
  color: #69786c;
}

footer p { margin: 0; padding-top: 32px; border-top: 1px solid var(--line); }

.skip-link {
  position: absolute;
  top: 12px;
  left: 24px;
  padding: 12px 16px;
  background: var(--green);
  color: var(--paper);
  transform: translateY(-200%);
  z-index: 1;
}
.skip-link:focus { transform: translateY(0); }

@media (min-width: 1600px) {
  body { min-height: max(100svh, 1100px); }
}

@media (max-width: 1000px) {
  .intro { max-width: 780px; letter-spacing: -0.025em; }
  .product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
}

@media (max-width: 520px) {
  body { padding-bottom: 24px; }
  .brand { gap: 20px; }
  .element { width: 92px; }
  .atomic-number { font-size: 17px; }
  .element-symbol { font-size: 60px; }
  h1 { font-size: clamp(29px, 8vw, 38px); }
  .intro { margin-top: 40px; font-size: 21px; line-height: 1.65; }
  .products { margin-top: 48px; }
  .product-list { margin-top: 28px; gap: 22px 12px; }
  .product-list li { justify-content: flex-start; }
  .product { gap: 9px; padding: 6px 0; }
  .product span { font-size: clamp(17px, 4.6vw, 22px); }
  .product img { width: 30px; }
  .hardreload img { width: 34px; }
  .endorsewell img { width: 34px; }
  footer { padding-top: 88px; }
  footer p { padding-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .product { transition: none; }
  .product:hover { transform: none; }
}
