/* Prolumen public site. Palette matches assets/logo-concepts/palette.svg. */

:root {
  color-scheme: light dark;
  --ink: #14171f;
  --muted: #5a6270;
  --line: #d5d9e0;
  --surface: #f7f8fa;
  --surface-2: #eef1f5;
  --bg: #ffffff;
  --accent: #0f6fde;
  --accent-2: #17803d;
  --accent-contrast: #ffffff;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e9ecf1;
    --muted: #9aa3b2;
    --line: #262c37;
    --surface: #12151b;
    --surface-2: #191e26;
    --bg: #0b0d12;
    --accent: #6aa9ff;
    --accent-2: #4dd0e1;
    --accent-contrast: #05121f;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--bg);
  z-index: 10;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  border-radius: 8px;
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.site-header-inner,
.site-footer-inner,
.page {
  width: min(100% - 2.5rem, 68ch);
  margin-inline: auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 0.9rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 650;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.nav {
  display: flex;
  gap: 1.15rem;
  flex-wrap: wrap;
  font-size: 0.94rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding-block: 0.15rem;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* ---------- content ---------- */

.page {
  padding-block: clamp(2rem, 6vw, 3.5rem) 4rem;
}

main.home {
  width: min(100% - 2.5rem, 74ch);
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 2.2em 0 0.55em;
  font-weight: 680;
}

h1 {
  margin-top: 0;
  font-size: clamp(1.9rem, 4.6vw, 2.5rem);
}

.home h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  letter-spacing: -0.035em;
  margin-bottom: 0.6em;
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(1.28rem, 2.6vw, 1.5rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

h3 {
  font-size: 1.08rem;
}

p {
  margin: 0 0 1.05em;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

strong {
  font-weight: 650;
}

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
}

li {
  margin-bottom: 0.45em;
}

li > ul,
li > ol {
  margin-top: 0.45em;
  margin-bottom: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

blockquote {
  margin: 0 0 1.2em;
  padding: 0.85rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
}

blockquote p:last-child {
  margin-bottom: 0;
}

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--surface-2);
  padding: 0.14em 0.38em;
  border-radius: 5px;
}

pre {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

pre code {
  background: none;
  padding: 0;
  font-size: 0.85em;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.4em;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.94rem;
}

th,
td {
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-weight: 650;
}

/* ---------- home extras ---------- */

.cards {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 2.6rem 0 0;
  padding: 0;
  list-style: none;
}

.cards li {
  margin: 0;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  height: 100%;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 120ms ease, transform 120ms ease;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.card-title {
  font-weight: 640;
  letter-spacing: -0.01em;
}

.card-body {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 2rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.fine-print {
  width: 100%;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- misc ---------- */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@media (max-width: 30rem) {
  body {
    font-size: 16px;
  }

  .site-header-inner {
    gap: 0.4rem;
  }

  .nav {
    gap: 0.9rem;
    font-size: 0.9rem;
  }
}

@media print {
  .site-header,
  .site-footer,
  .cards {
    display: none;
  }

  body {
    font-size: 11pt;
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    word-break: break-all;
  }
}
