:root{
  --bg:#070A0F;
  --card:#0C1426CC;
  --line:#1B2A44;
  --text:#E7EEF8;
  --muted:#A6B3C5;
  --accent:#63F3A5;
  --accent2:#65D6FF;
  --shadow:0 18px 60px rgba(0,0,0,.55);
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(101,214,255,.12), transparent 60%),
    radial-gradient(900px 600px at 80% 30%, rgba(99,243,165,.10), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #05070B 100%);
}

/* Background layers */
.bg{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
}

.bg::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size:42px 42px;
  opacity:.35;
}

.bg::after{
  content:"";
  position:absolute;
  inset:-10vh -10vw;
  background-image:url("/assets/dfir-watermark.png");
  background-repeat:no-repeat;
  background-position:75% 10%;
  background-size:min(1100px, 85vw);
  opacity:.08;
  filter:grayscale(1) contrast(1.08);
  transform:rotate(-8deg);
  mask-image:radial-gradient(800px 600px at 72% 18%, rgba(0,0,0,.9), transparent 78%);
}

/* Layout */
.wrap{
  position:relative;
  z-index:1;
  max-width:1080px;
  margin:0 auto;
  padding:44px 18px 36px;
}

/* Hero */
.hero{
  position:relative;
  overflow:hidden;
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(12,20,38,.88), rgba(12,20,38,.55));
  border-radius:18px;
  padding:26px 22px;
  box-shadow:var(--shadow);
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-repeat:no-repeat;
  background-position:85% 55%;
  background-size:900px 220px;
  opacity:.20;
  mask-image:radial-gradient(700px 260px at 70% 55%, rgba(0,0,0,.95), transparent 70%);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='220' viewBox='0 0 900 220'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%2365D6FF' stop-opacity='.55'/%3E%3Cstop offset='.55' stop-color='%2363F3A5' stop-opacity='.45'/%3E%3Cstop offset='1' stop-color='%2365D6FF' stop-opacity='.18'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M20 120 C120 70, 190 170, 290 115 S480 70, 590 122 S740 165, 880 100' fill='none' stroke='url(%23g)' stroke-width='2'/%3E%3Ccircle cx='290' cy='115' r='5' fill='%2365D6FF' fill-opacity='.35'/%3E%3Ccircle cx='590' cy='122' r='5' fill='%2363F3A5' fill-opacity='.30'/%3E%3Ccircle cx='880' cy='100' r='5' fill='%2365D6FF' fill-opacity='.25'/%3E%3C/svg%3E");
}

.hero > *{position:relative;z-index:1}

/* Typography */
.badge{
  display:inline-block;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:12px;
  letter-spacing:.08em;
  padding:6px 10px;
  border:1px solid rgba(99,243,165,.35);
  border-radius:999px;
  color:var(--accent);
  background:rgba(99,243,165,.06);
}

h1{
  margin:14px 0 8px;
  font-size:44px;
  line-height:1.05;
}

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

/* Focus */
.focus{
  margin:0 0 14px;
  color:var(--muted);
  font-size:14px;
  line-height:1.45;
  max-width:75ch;
}

.focus-label{color:var(--text);font-weight:700}

.focus-year{
  display:inline-block;
  margin-left:10px;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid rgba(101,214,255,.35);
  background:rgba(101,214,255,.08);
  color:var(--accent2);
  font-size:12px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}

/* Buttons */
.cta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(11,18,32,.55);
  color:var(--text);
  text-decoration:none;
  font-weight:600;
}

.btn:hover{border-color:rgba(101,214,255,.55)}

.btn.primary{
  border-color:rgba(99,243,165,.45);
  background:rgba(99,243,165,.10);
}

.btn.primary:hover{border-color:rgba(99,243,165,.85)}

/* Grid & Cards */
.grid{
  margin-top:16px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.span2{grid-column:1 / -1}

@media (max-width:760px){
  .grid{grid-template-columns:1fr}
  .span2{grid-column:auto}
}

.card{
  border:1px solid var(--line);
  background:var(--card);
  border-radius:18px;
  padding:18px;
  box-shadow:var(--shadow);
  backdrop-filter:blur(6px);
}

.card h2{
  margin:0;
  font-size:16px;
  letter-spacing:.02em;
}

.blurb{
  margin:6px 0 10px;
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
}

/* Writing lists */
.writing-list{
  margin:0;
  padding-left:18px;
}

.writing-list li{
  margin:14px 0 18px;
}

.postline{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
}

.year{
  flex:0 0 auto;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:11px;
  letter-spacing:.08em;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid rgba(101,214,255,.25);
  background:rgba(101,214,255,.06);
  color:rgba(231,238,248,.68);
}

.postmeta{
  margin:6px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
}

@media (max-width:760px){
  .postline{flex-wrap:wrap}
}

/* Link styling */
a{
  color:rgba(231,238,248,.92);
  text-decoration:none;
  border-bottom:1px solid rgba(101,214,255,.22);
  padding-bottom:1px;
}

a:hover{
  color:var(--accent2);
  border-bottom-color:rgba(101,214,255,.55);
}

a:visited{color:rgba(231,238,248,.92)}

a:focus-visible{
  outline:2px solid rgba(101,214,255,.55);
  outline-offset:3px;
  border-bottom-color:transparent;
}

/* Footer */
.footer{
  margin-top:16px;
  padding:18px 8px 0;
  color:var(--muted);
  text-align:center;
}

.fine{
  display:flex;
  gap:8px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:10px;
}

.dot{opacity:.6}

/* Terminal */
.termbar{
  width:100%;
  max-width:1080px;
  margin:18px auto 0;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:13px;
  line-height:1.6;
  user-select:none;
  text-align:center;
  white-space:normal;
}

.terminal-line{
  display:inline-block;
  white-space:nowrap;
}

.tprompt{color:var(--accent)}
.ttext{color:rgba(231,238,248,.92)}

.tcursor{
  color:var(--accent2);
  animation:blink 1s steps(1) infinite;
}

@keyframes blink{
  50%{opacity:0}
}

@media (prefers-reduced-motion: reduce){
  .tcursor{animation:none}
}



svg.icon{
  display:inline-block;
  width:1em;
  height:1em;
  flex:0 0 auto;
  vertical-align:-0.125em;
  fill:currentColor;
}

a.icon-btn,
a.icon-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border-bottom:0;
  padding-bottom:0;
}

a.icon-btn:hover,
a.icon-link:hover{
  color:var(--accent2);
}

svg.icon[viewBox="0 0 1043.63 592.71"]{
  transform:scale(1.15);
  transform-origin:center;
}

a:hover svg.icon{
  color:var(--accent2);
}
