/* Neutron Island
   Initial brand stylesheet
*/

:root {
  color-scheme: light;

  /* Canonical brand palette */
  --ni-blue: #0C1633;
  --ni-red: #B84A3A;
  --ni-lilac: #A5A1C7;
  --ni-sand: #EAE2D4;

  /* Derived UI colors */
  --ni-surface: color-mix(in srgb, var(--ni-sand) 88%, white 12%);
  --ni-surface-strong: color-mix(in srgb, var(--ni-sand) 78%, white 22%);
  --ni-border: color-mix(in srgb, var(--ni-blue) 18%, transparent);
  --ni-muted: color-mix(in srgb, var(--ni-blue) 68%, var(--ni-sand));
  --ni-red-hover: color-mix(in srgb, var(--ni-red) 88%, var(--ni-blue) 12%);

  /* Typography */
  --font-display: "Avenir Next", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: Inter, "Avenir Next", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --content-width: 1180px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --shadow-subtle: 0 16px 48px rgb(12 22 51 / 0.08);
}

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

html {
  min-height: 100%;
  background: var(--ni-sand);
  color: var(--ni-blue);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--ni-sand);
  color: var(--ni-blue);
  font-size: 16px;
  line-height: 1.6;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-color: var(--ni-red);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ni-red);
}

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  background: var(--ni-red);
  color: var(--ni-sand);
}

:focus-visible {
  outline: 2px solid var(--ni-red);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - 40px), var(--content-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  border-bottom: 1px solid var(--ni-border);
}

.brand-mark {
  width: 44px;
  height: auto;
}

.hero {
  display: grid;
  align-items: end;
  min-height: min(760px, calc(100vh - 88px));
  padding-block: clamp(72px, 12vw, 160px);
}

.eyebrow,
.kicker {
  margin: 0 0 1rem;
  color: var(--ni-red);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.20em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.6rem, 9vw, 8rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.1;
}

.lede {
  max-width: 680px;
  margin: 1.8rem 0 0;
  color: var(--ni-muted);
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.55;
}

.rule {
  width: 100%;
  height: 1px;
  border: 0;
  background: var(--ni-border);
}

.section {
  padding-block: clamp(64px, 8vw, 112px);
}

.card {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--ni-border);
  border-radius: var(--radius-md);
  background: var(--ni-surface);
  box-shadow: var(--shadow-subtle);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--ni-blue);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ni-blue);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.button:hover {
  background: var(--ni-blue);
  color: var(--ni-sand);
}

.button--accent {
  border-color: var(--ni-red);
  background: var(--ni-red);
  color: var(--ni-sand);
}

.button--accent:hover {
  border-color: var(--ni-red-hover);
  background: var(--ni-red-hover);
  color: var(--ni-sand);
}

.button:active {
  transform: translateY(1px);
}

.text-accent {
  color: var(--ni-red);
}

.text-muted {
  color: var(--ni-muted);
}

.bg-blue {
  background: var(--ni-blue);
  color: var(--ni-sand);
}

.bg-sand {
  background: var(--ni-sand);
  color: var(--ni-blue);
}

.bg-lilac {
  background: var(--ni-lilac);
  color: var(--ni-blue);
}

@media (max-width: 700px) {
  .container {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .site-header {
    min-height: 72px;
  }

  .brand-mark {
    width: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Landing page — logo centered, sitting about a third down the page */
.landing {
  display: flex;
  min-height: 100vh;
  justify-content: center;
  align-items: flex-start;
  padding-top: clamp(120px, 33vh, 340px);
  padding-inline: 24px;
  text-align: center;
}

.landing__logo {
  width: min(620px, 86vw);
  height: auto;
}

/* Not-found page */
.notfound {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 24px;
  text-align: center;
}
