/* =========================================================
   projects.css — blueprint / engineering drawing set.
   Cyanotype blue, drafting grid, white linework, title blocks.
   ========================================================= */

:root {
  --bp: #0e2a52;
  --bp-2: #123461;
  --line: rgba(220,235,255,.85);
  --faint: rgba(220,235,255,.12);
  --fainter: rgba(220,235,255,.06);
  --ink: #eaf3ff;
  --muted: #a9c3e6;
  --cyan: #7fd3ff;
  --live: #6dffb0;
  --build: #ffd36d;
  --plan: #b6a6ff;
  --nav-bg: rgba(14,42,82,.82);
  --nav-fg: #eaf3ff;
  --nav-muted: #a9c3e6;
  --nav-accent: #7fd3ff;
  --nav-border: rgba(220,235,255,.18);
  --nav-font: "IBM Plex Mono", monospace;
  --nav-radius: 2px;
}

body {
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  background-color: var(--bp);
  background-image:
    linear-gradient(var(--faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--faint) 1px, transparent 1px),
    linear-gradient(var(--fainter) 1px, transparent 1px),
    linear-gradient(90deg, var(--fainter) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  background-attachment: fixed;
}
body::before {
  /* paper vignette */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(4,16,36,.6));
}

main { max-width: 1240px; margin: 0 auto; padding: 4rem clamp(1rem, 4vw, 2.5rem); }

.label, .dwg__no, .spec, .legend, .titleblock, .badge, .group__title span {
  font-family: "IBM Plex Mono", monospace;
}

/* ---------- Header ---------- */
.sheet-head {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end;
  border: 2px solid var(--line); padding: 2.5rem; position: relative;
  margin-bottom: 4rem;
}
.sheet-head::before, .sheet-head::after {
  /* registration marks */
  content: "+"; position: absolute; font-family: "IBM Plex Mono", monospace; color: var(--cyan); font-size: 1.25rem;
}
.sheet-head::before { top: -14px; left: -8px; }
.sheet-head::after { bottom: -14px; right: -8px; }
@media (max-width: 760px) { .sheet-head { grid-template-columns: 1fr; padding: 1.5rem; } }

.label { color: var(--cyan); font-size: .78rem; letter-spacing: .14em; }
.sheet-head h1 { font-size: clamp(3rem, 9vw, 6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; margin: .6rem 0 1rem; }
.cursor { color: var(--cyan); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sheet-head p:not(.label) { color: var(--muted); max-width: 58ch; font-size: 1.05rem; }

.legend { border: 1px solid var(--line); font-size: .78rem; }
.legend div { display: grid; grid-template-columns: 110px 1fr; border-bottom: 1px solid var(--faint); }
.legend div:last-child { border-bottom: 0; }
.legend dt { padding: .5rem .75rem; border-right: 1px solid var(--faint); display: flex; align-items: center; gap: .5rem; }
.legend dd { margin: 0; padding: .5rem .75rem; color: var(--muted); }
.st { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.st--live { background: var(--live); } .st--build { background: var(--build); } .st--plan { background: var(--plan); }

/* ---------- Groups ---------- */
.group + .group { margin-top: 4.5rem; }
.group__title {
  display: flex; align-items: center; gap: 1rem;
  font-size: 1.35rem; font-weight: 600; margin-bottom: 1.5rem;
}
.group__title span {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 2px solid var(--line); border-radius: 50%; font-size: 1rem; color: var(--cyan);
}
.group__title::after {
  content: ""; flex: 1; height: 0; border-top: 1px dashed var(--line); opacity: .5;
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 1.5rem; }

/* ---------- Drawing card ---------- */
.dwg {
  position: relative; display: flex; flex-direction: column; gap: .75rem;
  padding: 1.75rem; border: 1.5px solid var(--line);
  background: rgba(14,42,82,.55);
  transition: background .3s, transform .3s;
}
.dwg::before {
  /* corner dimension ticks */
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  border: 1px solid var(--faint);
}
.dwg:hover { background: rgba(18,52,97,.85); transform: translateY(-3px); }
.dwg--wide { grid-column: 1 / -1; }

.dwg header { display: flex; justify-content: space-between; align-items: center; }
.dwg__no { font-size: .8rem; color: var(--cyan); border: 1px solid var(--cyan); padding: .1rem .5rem; }
.dwg h3 { font-family: "IBM Plex Mono", monospace; font-size: 1.55rem; font-weight: 600; letter-spacing: -.01em; }
.dwg__sub { color: var(--cyan); font-size: .92rem; margin-top: -.5rem; }
.dwg p { color: var(--muted); }
.dwg .next strong { color: var(--ink); }

.badge { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; padding: .2rem .55rem; border: 1px solid currentColor; }
.badge::before { content: "● "; }
.badge--live { color: var(--live); } .badge--build { color: var(--build); } .badge--plan { color: var(--plan); }

.spec { list-style: none; padding: 0; margin-top: auto; padding-top: .5rem; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .74rem; }
.spec li { border: 1px dashed var(--line); padding: .2rem .5rem; color: var(--ink); }

.cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; }
.cols > div { display: flex; flex-direction: column; gap: .75rem; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; border-left: 1px solid var(--faint); padding-left: 1.25rem; }
.checklist li { padding: .3rem 0; color: var(--ink); }
.checklist li::before { content: "[x] "; font-family: "IBM Plex Mono", monospace; color: var(--live); }
.checklist li.todo { color: var(--muted); }
.checklist li.todo::before { content: "[ ] "; color: var(--build); }

/* ---------- Title block ---------- */
.titleblock {
  margin: 4.5rem 0 0 auto; max-width: 560px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 2px solid var(--line); font-size: .8rem;
}
.titleblock div { padding: .7rem .8rem; border-right: 1px solid var(--line); }
.titleblock div:last-child { border-right: 0; }
.titleblock span { display: block; color: var(--cyan); font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; }
.titleblock a { color: var(--ink); word-break: break-all; }
@media (max-width: 560px) { .titleblock { grid-template-columns: 1fr 1fr; } .titleblock div:nth-child(2) { border-right: 0; } .titleblock div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

.site-footer { border-top: 1px solid var(--faint); color: var(--muted); font-family: "IBM Plex Mono", monospace; max-width: 1240px; margin: 0 auto; }
