/* Isostatic Labs website styles.
   Colors are sampled from the Isostatic Labs logo (see CLAUDE.md > Websites). */

:root {
  --color-background: #070707;
  --color-surface: #101210;
  --color-line: #262a24;
  --color-green: #97d708;
  --color-green-highlight: #d9ff47;
  --color-silver: #e8e8e8;
  --color-text-muted: #a3a8a0;
  --color-gray: #5a5a5a;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --page-max-width: 64rem;
  --page-gutter: clamp(1rem, 4vw, 2.5rem);

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-background);
  background-image: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(151, 215, 8, 0.10), transparent 70%);
  background-repeat: no-repeat;
  color: var(--color-silver);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

a {
  color: var(--color-green);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--color-green-highlight);
}

:focus-visible {
  outline: 2px solid var(--color-green-highlight);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--page-gutter);
  top: -4rem;
  padding: 0.5rem 1rem;
  background: var(--color-green);
  color: var(--color-background);
  font-weight: 600;
  z-index: 10;
}

.skip-link:focus {
  top: 0.75rem;
}

.page-width {
  width: 100%;
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

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

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

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.site-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-silver);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.site-wordmark span {
  color: var(--color-green);
}

.site-wordmark:hover {
  color: var(--color-silver);
}

.site-wordmark img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.site-nav ul {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-silver);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--color-green);
  padding-bottom: 0.3rem;
}

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

main {
  flex: 1;
}

.hero {
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(3rem, 8vw, 6rem);
  text-align: center;
}

.hero__logo {
  width: min(100%, 40rem);
  margin-inline: auto;
  /* Fade the edges of the logo frame into the page so no rectangle shows. */
  -webkit-mask-image: radial-gradient(ellipse 72% 74% at 50% 48%, #000 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 74% at 50% 48%, #000 72%, transparent 100%);
}

.hero__tagline {
  margin: clamp(1.5rem, 4vw, 2.5rem) auto 0;
  max-width: 34rem;
  color: var(--color-text-muted);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
}

.hero__tagline strong {
  color: var(--color-silver);
  font-weight: 600;
}

.button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.85rem 1.75rem;
  border: 1px solid var(--color-green);
  border-radius: 999px;
  color: var(--color-green);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  background-color: var(--color-green);
  color: var(--color-background);
  box-shadow: 0 0 24px rgba(151, 215, 8, 0.35);
}

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 22rem;
  margin: 0 auto;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-green));
}

.divider::after {
  background: linear-gradient(90deg, var(--color-green), transparent);
}

.divider span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-green);
}

/* ---------- Simple content pages ---------- */

.content-page {
  max-width: 40rem;
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--color-green);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.content-page h1 {
  margin: 0 0 1.25rem;
  color: var(--color-silver);
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.04em;
}

.content-page h2 {
  margin: 2.25rem 0 0.5rem;
  color: var(--color-silver);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.content-page p {
  color: var(--color-text-muted);
}

.content-page__updated {
  font-size: 0.85rem;
}

.contact-card {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-green);
  border-radius: 10px;
  background: var(--color-surface);
}

.contact-card__label {
  margin: 0 0 0.35rem;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.contact-card__email {
  font-size: clamp(1.05rem, 3.6vw, 1.3rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}

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

.site-footer {
  border-top: 1px solid var(--color-line);
  padding-block: 1.75rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-footer p {
  margin: 0;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-green);
}

/* Small phones: tighten the header so the wordmark and links never touch. */
@media (max-width: 26rem) {
  .site-wordmark {
    gap: 0.45rem;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
  }

  .site-nav ul {
    gap: 0.9rem;
  }

  .site-nav a {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
