/* Laubschers shared stylesheet. Restored to the 047d70c look (1040px shell),
   with self-hosted fonts and a shared header/footer for every page. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --field: #070B12;
  --depth: #0B1628;
  --signal: #2EE6D6;
  --ink: #F4F6F8;
  --muted: #7A8BA3;
  --body: #C9D2DD;
  --paper: #F4F6F8;
  --line: rgba(122,139,163,0.22);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --t-xs: 12px; --t-sm: 14px; --t-md: 16px; --t-lg: 18px; --t-xl: 24px; --t-2xl: 32px; --t-3xl: 44px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { background-color: var(--field); }
body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  background: var(--field);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(46,230,214,0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 15% 80%, rgba(11,22,40,0.9), transparent 50%),
    linear-gradient(165deg, var(--field) 0%, var(--depth) 55%, var(--field) 100%);
}
.pulse-ring {
  position: absolute; top: 18%; right: 12%;
  width: min(42vw, 420px); height: min(42vw, 420px);
  border-radius: 50%;
  border: 1px solid rgba(46,230,214,0.12);
  animation: breathe 8s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.04); opacity: 0.7; }
}

.wrap {
  position: relative; z-index: 1;
  min-height: 100%;
  display: flex; flex-direction: column;
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 28px 40px;
}

/* Header */
.site-header, header.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 72px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; margin: -7.5px 0;
  font-size: 14px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink); text-decoration: none;
}
.wordmark img { display: none; }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: -7.5px 0; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 8px 10px;
  font-size: 13px; color: var(--muted); text-decoration: none;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--signal); }

/* Homepage hero */
.hero {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 48px 56px;
  align-items: center;
  flex: 1;
}
.mark {
  width: 220px; height: 220px;
  filter: drop-shadow(0 0 32px rgba(46,230,214,0.18));
}
.mark svg { display: block; width: 100%; height: 100%; }
h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.lede {
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 36em;
}
.lede strong { color: var(--ink); font-weight: 500; }
.actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 36px;
}
a.btn {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  padding: 12px 18px;
  border-radius: 8px;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
a.btn:hover { transform: translateY(-1px); }
a.btn-primary { background: var(--signal); color: var(--field); }
a.btn-primary:hover { background: #5aebd9; text-decoration: none; }
a.btn-ghost {
  color: var(--ink);
  border: 1px solid rgba(244,246,248,0.22);
  background: transparent;
}
a.btn-ghost:hover { border-color: var(--signal); color: var(--signal); text-decoration: none; }
.more { margin: 0; }
a.text-link {
  color: var(--ink); text-decoration: underline; text-underline-offset: 3px;
  font-size: 16px;
}
a.text-link:hover { text-decoration-color: var(--signal); }

/* Inner pages */
main:not(.hero) { flex: 1; }
main:not(.hero) h1 { margin-bottom: 12px; }
.updated { margin: 0 0 32px; font-size: 14px; line-height: 1.5; color: var(--muted); }
main:not(.hero) .lede { margin-bottom: 48px; }
:where(main:not(.hero)) h2 {
  margin: 48px 0 12px;
  font-size: 24px; font-weight: 600; line-height: 1.3;
}
:where(main:not(.hero)) h3 {
  margin: 24px 0 8px;
  font-size: 18px; font-weight: 600; line-height: 1.3;
}
:where(main:not(.hero)) p, :where(main:not(.hero)) li {
  font-size: 16px; line-height: 1.65; color: var(--body);
}
:where(main:not(.hero)) p { margin: 0 0 16px; }
:where(main:not(.hero)) ol, :where(main:not(.hero)) ul { margin: 0 0 16px; padding-left: 24px; }
:where(main:not(.hero)) li { margin-bottom: 8px; }
main a { color: var(--signal); text-decoration: none; }
main a:hover { text-decoration: underline; }
.small { font-size: 14px; color: var(--muted); }
.notice {
  margin: 0 0 48px; padding: 16px 24px;
  border-left: 4px solid var(--signal);
  background: rgba(46,230,214,0.06);
}
.notice p { margin: 0; color: var(--ink); }
code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 14px; color: var(--ink);
  background: rgba(122,139,163,0.14); padding: 0 4px; border-radius: 4px;
}

/* Footer */
.site-footer, footer.site-footer {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid rgba(122,139,163,0.2);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 12px; color: var(--muted);
}
.site-footer nav, .site-footer .reach {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px;
}
.site-footer a { color: var(--signal); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px;
}

@media (max-width: 720px) {
  .wrap { padding: 48px 28px 40px; }
  .hero { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .mark { margin: 0 auto; }
  .actions { justify-content: center; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-ring { animation: none; opacity: 0.35; }
  * { transition: none !important; }
}
