/* Lacuna Logic site styles. Palette: Glacier + Gold.
   Blue carries the brand; gold is rare and always means "the missing piece". */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght.woff2") format("woff2");
}

:root {
  color-scheme: light dark;

  --bg: #FFFFFF;
  --bg-soft: #F6F8FB;
  --text: #0B1220;
  --muted: #566072;
  --line: #E3E8EF;
  --brand: #2AA8F2;
  --brand-deep: #1E3F94;
  --gold: #F59E0B;
  --gold-text: #B45309;
  --glow: #FBBF24;
  --glacier-white: #E3F3FD;
  --link: #0369A1;

  --hero-bg: #0B1220;
  --hero-muted: #9FB6C9;

  --s1: 0.25rem;  /* 4 */
  --s2: 0.5rem;   /* 8 */
  --s3: 0.75rem;  /* 12 */
  --s4: 1rem;     /* 16 */
  --s5: 1.5rem;   /* 24 */
  --s6: 2rem;     /* 32 */
  --s7: 3rem;     /* 48 */
  --s8: 4.5rem;   /* 72 */

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --outer: 68rem;
  --measure: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1220;
    --bg-soft: #111A2B;
    --text: #E3F3FD;
    --muted: #9FB6C9;
    --line: #223049;
    --brand: #5BBEF3;
    --brand-deep: #3B7BF2;
    --gold: #FBBF24;
    --gold-text: #FBBF24;
    --link: #7DD3FC;
  }
}

/* Base */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0 0 var(--s4);
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

h1 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem); }
h3 { font-size: 1.0625rem; }

p {
  margin: 0 0 var(--s4);
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

a:hover {
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
}

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

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

/* Layout */

.wrap {
  width: 100%;
  max-width: var(--outer);
  margin-inline: auto;
  padding-inline: var(--s5);
}

.prose {
  max-width: var(--measure);
}

.prose h2 {
  margin: var(--s6) 0 var(--s2);
  font-size: 1.1875rem;
}

main {
  display: block;
}

.page {
  padding-block: var(--s7) var(--s8);
}

.section {
  padding-block: var(--s7);
  border-top: 1px solid var(--line);
}

.section:first-child {
  border-top: 0;
}

/* Gold notch under section headings: the missing piece. */
.section h2::after,
.page h1::after {
  content: "";
  display: block;
  width: var(--s6);
  height: 3px;
  margin-top: var(--s3);
  background: var(--gold);
}

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

/* Skip link */

.skip {
  position: absolute;
  left: var(--s4);
  top: -100px;
  z-index: 10;
  padding: var(--s2) var(--s4);
  background: var(--bg);
  color: var(--link);
  border: 1px solid var(--line);
}

.skip:focus {
  top: var(--s4);
}

/* Header */

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

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3) var(--s5);
  padding-block: var(--s4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s3);
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
}

.wordmark {
  font-size: 0.9375rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wordmark b {
  font-weight: 700;
}

.wordmark span {
  font-weight: 300;
  opacity: 0.8;
}

.nav ul {
  display: flex;
  gap: var(--s5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover,
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
}

/* Hero: always dark, the one loud place. */

.hero {
  --muted: var(--hero-muted);
  --gold-text: #FBBF24;
  --link: #7DD3FC;

  background-color: var(--hero-bg);
  background-image: radial-gradient(380px 200px at 50% 30%, color-mix(in srgb, var(--glow) 13%, #0B1220), #0B1220);
  color: var(--glacier-white);
  text-align: center;
  padding-block: var(--s8);
}

.hero .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-mark {
  width: clamp(112px, 22vw, 170px);
  height: auto;
  margin-bottom: var(--s6);
  filter: drop-shadow(0 0 24px rgba(251, 191, 36, 0.32));
}

.slogan {
  margin: 0 0 var(--s4);
  color: var(--gold-text);
  font-size: clamp(0.875rem, 0.8rem + 0.35vw, 1.0625rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: var(--s4);
  font-size: clamp(1.75rem, 1.45rem + 1.3vw, 2.125rem);
  font-weight: 600;
}

.lede {
  max-width: 36rem;
  margin-bottom: var(--s6);
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.btn {
  display: inline-block;
  padding: var(--s3) var(--s5);
  border-radius: 6px;
  background: var(--glacier-white);
  color: #0B1220;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover {
  color: #0B1220;
  text-decoration: underline;
  text-decoration-color: #B45309;
  text-decoration-thickness: 2px;
}

/* Gentle pulse on the gold gap faces. */
@media (prefers-reduced-motion: no-preference) {
  .hero-mark .gap {
    animation: gap-pulse 6s ease-in-out infinite;
  }
}

@keyframes gap-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.78; }
}

/* Feature row */

.features {
  display: grid;
  gap: var(--s5) var(--s6);
  margin: var(--s5) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 48rem) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.features h3 {
  margin-bottom: var(--s2);
}

.features p {
  margin: 0;
  color: var(--muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  padding-block: var(--s5);
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li::before {
  content: "·";
  margin-right: var(--s3);
  color: var(--muted);
}

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

@media (max-width: 30rem) {
  .site-footer ul {
    flex-direction: column;
  }

  .site-footer li + li::before {
    content: none;
  }
}

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