:root{
  --bg: #ffffff;
  --text: #111827;      /* near-black */
  --muted: #6b7280;     /* gray */
  --line: #e5e7eb;      /* light border */
  --panel: #ffffff;
  --accent: #111827;    /* keep accent subtle (mostly just bold text) */
  --radius: 14px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

/* Centered column like neiljackson.dev */
.wrap{
  max-width: 760px;
  margin: 0 auto;
  padding: 46px 18px 60px;
}

.hero{
  display: block;           /* stack, not split */
  margin-bottom: 26px;
}

h1{
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
@media (max-width: 520px){
  h1{ font-size: 36px; }
}

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

.sub{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  max-width: 65ch;
}

/* Links row under intro */
.links{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 12px;
}

.chip{
  text-decoration:none;
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
}

/* Hide the “Now” mini card if you want pure Neil style */
.card.mini{
  margin-top: 18px;
}

/* Section spacing like a simple doc page */
section{
  margin-top: 26px;
}

h2{
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
}

h3{
  margin: 12px 0 6px;
  font-size: 18px;
  font-weight: 700;
}

h4{
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

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

/* Card becomes basically a clean block */
.card{
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 14px;
}

/* Skills: simple inline list */
.skills{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

.pill{
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text);
}

/* Section header: title + search aligned */
.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.search{
  width: min(320px, 50vw);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  outline: none;
}
.search::placeholder{ color: rgba(107,114,128,.8); }

/* Projects: ONE COLUMN, stacked like neiljackson.dev lists :contentReference[oaicite:1]{index=1} */
.grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* Make each project look like: image on top, then title/desc */
.project{
  display:block;
  padding: 0;              /* let inner spacing handle it */
  overflow:hidden;
}

.thumb{
  width: 100%;
  height: auto;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: #f9fafb;
  overflow:hidden;
}

.thumb img{
  width: 100%;
  height: auto;
  display:block;
  object-fit: cover;
}

/* Inner content spacing for project */
.project .meta{
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.badges{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

.badge{
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
}

.project .links{
  margin-top: 2px;
}

/* Achievements: simple stacked blocks */
.stack{
  display:flex;
  flex-direction:column;
  gap: 12px;
}

/* Bot section: stack, not two columns */
.bot{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* Buttons: subtle, not “neon CTA” */
.btns{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 12px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--text);
  color: white;
  font-weight: 700;
  font-size: 13px;
}

.btn.ghost{
  background: var(--panel);
  color: var(--text);
}

/* Commands list: clean rows */
.cmds{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.cmd{
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  padding: 10px 12px;
  display:flex;
  justify-content:space-between;
  gap: 12px;
}

code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12.5px;
}

.widget{
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 12px;
  min-height: 220px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

/* Footer */
.footer{
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
