/* =========================
   RESET
========================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

/* =========================
   THEME (match your current vibe)
========================= */
:root{
  --bg: #f5f8f6;
  --ink: #1f2937;
  --muted: #4b5563;
  --border: rgba(31, 41, 55, 0.12);
  --accent: #8fe3b6;         /* mint */
  --panel: #e7f3ec;          /* soft green surface */
  --white: #ffffff;
  --shadow: 0 30px 80px rgba(31, 41, 55, 0.12);
}

body{
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% 0%, rgba(143, 227, 182, 0.25), transparent 60%),
    linear-gradient(180deg, #f7faf8 0%, #eef3f0 100%);
}

/* Left rail */
.accent-rail{
  position: fixed;
  left: 0; top: 0;
  width: 16px; height: 100vh;
  background: var(--accent);
}

/* =========================
   NAV
========================= */
.nav{ padding: 28px 28px 16px; }
.nav-inner{
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.logo-mark{
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-weight: 800;
  color: var(--ink);
  background: var(--white);
  text-decoration: none;
}

.links{ display: flex; gap: 14px; }
.links a{
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.links a:hover{ background: rgba(143, 227, 182, 0.25); }
.links a.active{
  background: rgba(143, 227, 182, 0.45);
  border-color: rgba(143, 227, 182, 0.6);
}

.nav-actions{ display: flex; gap: 12px; justify-content: flex-end; }

.btn{
  background: var(--accent);
  color: #0b1220;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn:hover{ filter: brightness(1.05); }

.ghost{
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 650;
  background: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ghost:hover{ background: rgba(143, 227, 182, 0.2); }

/* subline */
.subline{
  max-width: 1100px;
  margin: 12px auto 0;
  padding-left: 58px;
  color: var(--muted);
  font-size: 14px;
}

/* =========================
   PAGE LAYOUT
========================= */
.wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 28px 80px;
}

.page-head{
  background: var(--panel);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  margin-top: 18px;
}

.page-head h1{
  font-size: 42px;
  line-height: 1.05;
  margin-bottom: 10px;
}

.page-head p{
  color: var(--muted);
  font-size: 16px;
  max-width: 60ch;
}

.chips{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.chip{
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(31,41,55,0.10);
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 13px;
}

/* =========================
   PROJECT GRID
========================= */
.grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.card{
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(31,41,55,0.10);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 14px 40px rgba(31,41,55,0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-top h2{
  font-size: 20px;
  margin-top: 10px;
  margin-bottom: 8px;
}

.desc{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(143, 227, 182, 0.55);
  border: 1px solid rgba(143, 227, 182, 0.7);
  font-weight: 750;
  font-size: 12px;
  width: fit-content;
}
.badge.subtle{
  background: rgba(31, 41, 55, 0.06);
  border-color: rgba(31, 41, 55, 0.10);
}

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

.pill{
  background: rgba(143, 227, 182, 0.20);
  border: 1px solid rgba(143, 227, 182, 0.35);
  color: var(--ink);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 12px;
}

.actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.actions a[aria-disabled="true"]{
  opacity: 0.55;
  pointer-events: none;
}

/* =========================
   BOTTOM CTA
========================= */
.cta-panel{
  margin-top: 18px;
  background: var(--panel);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cta-panel h3{
  font-size: 18px;
  margin-bottom: 6px;
}

.cta-panel p{
  color: var(--muted);
  font-size: 14px;
}

.footer{
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 28px 0 0;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
  .cta-panel{ flex-direction: column; align-items: flex-start; }
  .page-head h1{ font-size: 34px; }
}
/* =========================
   NAV
========================= */

.nav {
  padding: 28px 28px 16px;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}
