* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #001327;
  --bg2: #00203f;
  --card: #001a33;
  --hover-bg: #003369;
  --text: #FFC300;
  --heading: #ffdb66;
  --muted: #ffe590;
  --muted2: #ffeaa6;
  --border: #ffb22d86;
  --border2: #ffae0097;
  --border3: #c69033;
  --accent: #ffae00;
  --accent2: #ff9900;
  --link-hover: hsl(46, 100%, 82%);
  --blue1: #52b7ff;
  --blue2: #2e85ff;
}

::selection { background: var(--text); color: var(--bg); }

html { scroll-behavior: smooth; }

body {
  font-family: "Space Grotesk", -apple-system, "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  border-top: 6px solid var(--text);
}

.mono, .kicker, .tag, .meta, .fineprint, code { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; }

.container { max-width: 880px; margin: 0 auto; padding: 0 1.5rem; }
.container.narrow { max-width: 620px; }

/* Nav */
.nav { border-bottom: 1px dashed var(--border2); }
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 1.5rem;
  max-width: 880px;
  margin: 0 auto;
}
.logo { color: var(--heading); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.logo:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 1rem;
  font-size: 0.95rem;
}
.nav nav a:hover { color: var(--link-hover); text-decoration: underline; text-underline-offset: 4px; }

/* Hero — left aligned, no gradient blob */
.hero { padding: 3.5rem 0 2.5rem; }
.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted2);
  margin-bottom: 1rem;
}
.hero h1 {
  color: var(--heading);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin-bottom: 1.25rem;
}
.lede { font-size: 1.08rem; max-width: 56ch; }
.lede a, .section-sub a, .more-list a, .note a {
  color: var(--heading);
  text-decoration: underline;
  text-decoration-color: var(--border3);
  text-underline-offset: 3px;
}
.lede a:hover, .section-sub a:hover, .more-list a:hover, .note a:hover { color: var(--link-hover); }
.fineprint { font-size: 0.8rem; color: var(--muted2); margin-top: 1.5rem; }

.cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.75rem; }
.cta.left { justify-content: flex-start; }
.btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border: 2px solid var(--text);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--text);
  color: var(--bg);
  box-shadow: 4px 4px 0 var(--hover-bg);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn.secondary { background: transparent; color: var(--text); box-shadow: 4px 4px 0 rgba(255, 195, 0, 0.18); }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--hover-bg); }
.btn.secondary:hover { background: var(--hover-bg); color: var(--heading); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--hover-bg); }

.rule { border: none; border-top: 1px dashed var(--border2); max-width: 880px; margin: 0 auto; }

/* Sections */
.section { padding: 2.75rem 0; }
.section.alt { background: var(--bg2); border-top: 1px dashed var(--border2); border-bottom: 1px dashed var(--border2); }
.section h2 { color: var(--heading); font-size: 1.65rem; letter-spacing: -0.01em; margin-bottom: 0.75rem; }
.section p { margin-bottom: 1rem; max-width: 62ch; }
.section strong { color: var(--heading); }
code { background: var(--hover-bg); padding: 0.1rem 0.4rem; border-radius: 4px; color: var(--heading); font-size: 0.9em; }

/* Project notes — uneven, numbered, not identical cards */
.stack { display: grid; gap: 1rem; margin-top: 1.5rem; }
.note {
  background: var(--card);
  border: 2px solid var(--border2);
  border-radius: 6px;
  padding: 1.25rem 1.25rem 1.1rem;
  box-shadow: 5px 5px 0 rgba(0, 51, 105, 0.9);
}
.tilt-left { transform: rotate(-0.4deg); }
.tilt-right { transform: rotate(0.35deg); }
.note h3 { color: var(--heading); font-size: 1.25rem; margin: 0.35rem 0 0.5rem; }
.num { color: var(--accent2); font-size: 0.95rem; margin-right: 0.35rem; }
.tag { font-size: 0.76rem; color: var(--accent); word-break: break-all; }
.meta { font-size: 0.78rem; color: var(--muted2); border-top: 1px dashed var(--border2); padding-top: 0.7rem; margin-top: 0.9rem; }
.note a { font-weight: 700; font-size: 0.95rem; }

.more-title { margin: 2.25rem 0 0.9rem; font-size: 1.1rem; color: var(--heading); }
.more-list { list-style: none; display: grid; gap: 0.6rem; }
.more-list li {
  border-left: 3px solid var(--border3);
  padding: 0.55rem 0.9rem;
  background: rgba(0, 32, 63, 0.6);
  font-size: 0.96rem;
}
.more-list li span { color: var(--muted); }

/* Footer */
footer { border-top: 1px dashed var(--border2); padding: 2rem 0 2.5rem; font-size: 0.88rem; }
.footer-inner { display: grid; gap: 0.7rem; }
.ai-credit { color: var(--muted2); font-size: 0.8rem; max-width: 64ch; }

@media (max-width: 640px) {
  .nav-inner { flex-direction: column; align-items: flex-start; }
  .nav nav a { margin-left: 0; margin-right: 1rem; }
  .tilt-left, .tilt-right { transform: none; }
}
