/* Shared theme for jshkolnik.net project detail pages. */
:root {
  --bg:      #0d0f14;
  --panel:   #151922;
  --panel-2: #1c2130;
  --text:    #e8ecf4;
  --muted:   #9aa4b8;
  --pink:    #ff7eb6;
  --green:   #5ee6a0;
  --border:  #262c3a;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.65; overflow-x: hidden;
}
a { color: var(--green); text-decoration: none; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* top bar with a back link */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,15,20,0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; height: 58px; gap: 16px; }
.back {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--text); font-weight: 700; font-size: 0.9rem;
  background: var(--panel-2); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 9px; transition: border-color .2s, color .2s, transform .15s;
}
.back:hover { border-color: var(--pink); color: var(--pink); transform: translateX(-3px); }

/* a second, bigger back button at the bottom of the page */
.back-bottom { text-align: center; padding: 10px 0 4px; }

/* hero */
.phero { padding: 60px 0 34px; }
.phero .ico { font-size: 3rem; }
.phero h1 { font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.05; letter-spacing: -1px; margin: 10px 0 6px; }
.phero h1 .grad { background: linear-gradient(120deg, var(--pink), var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.phero .sub { color: var(--muted); font-size: clamp(1rem, 3vw, 1.25rem); max-width: 620px; }
.tags { margin-top: 18px; }
.tag { display: inline-block; font-size: 0.78rem; color: var(--green); background: var(--panel-2);
  border: 1px solid var(--border); padding: 4px 10px; border-radius: 6px; margin: 0 6px 6px 0; }

/* body sections */
section { padding: 26px 0; border-top: 1px solid var(--border); }
section:first-of-type { border-top: none; }
h2 { font-size: 1.5rem; margin-bottom: 14px; }
h2 .accent { color: var(--pink); }
p { color: #c9d2e0; margin-bottom: 12px; }
.muted { color: var(--muted); }

/* feature grid */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 6px; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 20px;
}
.card .ico { font-size: 1.6rem; margin-bottom: 8px; }
.card h3 { font-size: 1.08rem; margin-bottom: 5px; }
.card p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* simple list */
ul.feat { list-style: none; margin-top: 6px; }
ul.feat li { padding: 9px 0 9px 28px; position: relative; color: #c9d2e0; border-bottom: 1px solid var(--border); }
ul.feat li:last-child { border-bottom: none; }
ul.feat li::before { content: "▸"; color: var(--pink); position: absolute; left: 6px; font-weight: 800; }

.cta { margin: 32px 0 10px; }
.btn { display: inline-block; padding: 11px 22px; border-radius: 10px; font-weight: 700;
  background: var(--pink); color: #14020c; border: 1px solid var(--pink); }
.btn:hover { transform: translateY(-2px); }

footer { border-top: 1px solid var(--border); padding: 30px 0; text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 24px; }
