/* YourSpec Labs. Same palette as yourspec.dev; its own type and texture
   (serif display + star-field instead of the business site's blueprint grid). */
:root {
  --bg: #101418;
  --bg-alt: #0e1114;
  --panel: #13181d;
  --text-heading: #e8ecef;
  --text-strong: #c6ced4;
  --text-body: #aeb7bf;
  --text-muted: #96a0a9;
  --text-annotation: #77828b;
  --cyan: #33b7c7;
  --cyan-hover: #5fd0de;
  --amber: #e8a33d;
  --green: #4ade9b;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.16);

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: Inter, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --wrap: 1080px;
  --pad-x: clamp(16px, 5vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-body);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  background-color: var(--bg);
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(232,236,239,.55), transparent 60%),
    radial-gradient(1px 1px at 78% 9%,  rgba(232,236,239,.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 64% 32%, rgba(51,183,199,.5), transparent 60%),
    radial-gradient(1px 1px at 31% 47%, rgba(232,236,239,.35), transparent 60%),
    radial-gradient(1px 1px at 90% 58%, rgba(232,236,239,.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 6% 72%, rgba(232,163,61,.45), transparent 60%),
    radial-gradient(1px 1px at 47% 86%, rgba(232,236,239,.3), transparent 60%),
    radial-gradient(900px 500px at 85% -10%, rgba(51,183,199,.07), transparent 70%);
  background-size: 640px 640px, 640px 640px, 640px 640px, 640px 640px, 640px 640px, 640px 640px, 640px 640px, 100% 100%;
  background-repeat: repeat, repeat, repeat, repeat, repeat, repeat, repeat, no-repeat;
}
main { flex: 1; }
h1, h2, p, figure { margin: 0; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-hover); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(51, 183, 199, .35); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.skip { position: absolute; left: 12px; top: -100px; padding: 10px 14px; background: var(--cyan); color: var(--bg); z-index: 10; }
.skip:focus { top: 12px; color: var(--bg); }

.label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--text-annotation); }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.mark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text-heading); font-family: var(--font-display); font-size: 24px; line-height: 1; white-space: nowrap; }
.mark:hover { color: var(--text-heading); }
.mark em { color: var(--cyan); }
.mark__icon { width: 28px; height: 28px; color: var(--cyan); flex: none; }
.top__link { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .5px; color: var(--text-muted); white-space: nowrap; }

/* Intro */
.intro { padding-top: clamp(56px, 10vw, 120px); padding-bottom: clamp(40px, 6vw, 72px); }
.intro .label { margin-bottom: 18px; }
h1 {
  max-width: 820px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.02;
  letter-spacing: -.5px;
  color: var(--text-heading);
}
h1 em { color: var(--cyan); }
.lede { margin-top: 22px; max-width: 560px; font-size: 17px; color: var(--text-muted); }

/* Entries */
.entries { display: grid; gap: 20px; padding-bottom: clamp(56px, 9vw, 110px); }
.entry { border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(19, 24, 29, .82); overflow: hidden; }
.entry__meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px;
  padding: 12px 20px; border-bottom: 1px solid var(--line);
}
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--live { color: var(--green); }
.status--dev { color: var(--amber); }
@media (prefers-reduced-motion: no-preference) {
  .status--live i { animation: pulse 2.4s ease-in-out infinite; }
}
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 155, .5); } 50% { box-shadow: 0 0 0 6px rgba(74, 222, 155, 0); } }

.entry__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: clamp(24px, 4vw, 44px) 20px; }
.entry__body--short { grid-template-columns: minmax(0, 1fr); }
.entry__body--short .entry__text { max-width: 620px; }
h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.05; color: var(--text-heading); }
.entry__text p { margin-top: 14px; max-width: 480px; }
.entry__text .btn { margin-top: 26px; }
.fine { font-size: 13px; color: var(--text-annotation); }
.entry__text .fine { margin-top: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 12px 22px;
  border-radius: 999px; background: var(--cyan); color: var(--bg);
  font-weight: 600; font-size: 15px; transition: box-shadow .25s, transform .25s, background .25s;
}
.btn:hover { color: var(--bg); background: var(--cyan-hover); box-shadow: 0 0 28px rgba(51, 183, 199, .4); transform: translateY(-1px); }
.textlink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 10px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .3px; color: var(--amber); }
.textlink:hover { color: #f2bd66; }

/* Orrery figure */
.entry__fig { color: rgba(198, 206, 212, .28); }
.entry__fig svg { display: block; width: 100%; height: auto; max-height: 260px; }
.orbits ellipse { stroke-width: 1; }
.transfer { stroke: var(--amber); stroke-width: 1.4; stroke-dasharray: 4 5; opacity: .8; }
@media (prefers-reduced-motion: no-preference) {
  .transfer { animation: dash 2.4s linear infinite; }
}
@keyframes dash { to { stroke-dashoffset: -18; } }

/* Footer */
.foot { border-top: 1px solid var(--line); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-top: 22px; padding-bottom: 22px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .4px; color: var(--text-annotation); }

/* 404 */
.notfound { padding-top: clamp(80px, 14vw, 160px); padding-bottom: 80px; }
.notfound .label { margin-bottom: 18px; }
.notfound .btn { margin-top: 30px; }

@media (max-width: 760px) {
  .entry__body { grid-template-columns: minmax(0, 1fr); }
  .entry__fig { order: -1; max-width: 360px; }
}
@media (max-width: 400px) {
  .top__link { font-size: 11px; }
  .mark { font-size: 21px; }
}
