/* Kalyna Energy — palette derived from the original hero: near-black, electric blue, white */

:root {
  --ink: #05070d;
  --ink-2: #0b1020;
  --panel: #101728;
  --line: #1e2a44;
  --text: #e8edf7;
  --muted: #9aa8c4;
  --blue: #2f7bff;
  --blue-bright: #6ea8ff;
  --measure: 68ch;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--blue-bright);
  text-decoration-color: rgb(110 168 255 / 0.4);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: currentColor;
}

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

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

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

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

.skip:focus {
  left: var(--gutter);
  top: 0.75rem;
  z-index: 10;
  background: var(--blue);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(5 7 13 / 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 0.95rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.brand span {
  display: block;
  color: var(--blue-bright);
  font-weight: 400;
  letter-spacing: 0.3em;
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--blue);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: #000 url("assets/hero-800.jpg") center / cover no-repeat;
}

@media (min-width: 800px) {
  .hero {
    background-image: url("assets/hero.jpg");
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgb(5 7 13 / 0.94) 0%,
    rgb(5 7 13 / 0.82) 45%,
    rgb(5 7 13 / 0.5) 100%
  );
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding-block: clamp(3.5rem, 11vw, 7.5rem);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.25rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero h1 span {
  display: block;
  color: var(--blue-bright);
}

.hero p {
  max-width: var(--measure);
  margin: 0;
  color: #cdd7ea;
}

/* ---------- Sections ---------- */

main section {
  padding-block: clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--line);
}

main section:last-of-type {
  border-bottom: 0;
}

h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.015em;
}

h2::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-bottom: 1.1rem;
  background: var(--blue);
}

.lede {
  max-width: var(--measure);
  color: var(--muted);
  margin: 0 0 1.75rem;
}

.items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}

.items li {
  background: var(--panel);
  padding: 1.1rem 1.35rem;
  position: relative;
  padding-left: 2.5rem;
}

.items li::before {
  content: "";
  position: absolute;
  left: 1.35rem;
  top: 1.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

/* ---------- Contact ---------- */

.contact-card {
  max-width: 34rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.contact-card p {
  margin: 0 0 0.35rem;
  color: var(--muted);
}

.contact-card .email {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
  font-weight: 500;
  color: var(--blue-bright);
  text-decoration: none;
  border-bottom: 1px solid rgb(110 168 255 / 0.4);
}

.contact-card .email:hover {
  border-bottom-color: currentColor;
}

/* ---------- Social ---------- */

.social {
  display: flex;
  gap: 0.6rem;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.social a {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--ink-2);
  transition: color 0.15s, border-color 0.15s;
}

.social a:hover {
  color: var(--text);
  border-color: var(--blue);
}

.social svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding-block: 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer .social {
  margin: 0;
}

.site-footer p {
  margin: 0;
}

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

  * {
    transition: none !important;
  }
}
