/* Minimal, fast, accessible — Chernarus theme (dark, gritty, olive/rust) */
:root{
  --bg:#0b0d0e;            /* near-black with a hint of green */
  --bg2:#121414;           /* panel backdrop */
  --card:#0f1313;          /* darker cards */
  --edge:#1c2222;          /* soft border */
  --text:#e3e8e4;          /* off-white */
  --muted:#9aa39e;         /* desaturated gray-green */
  --brand:#6e8a3a;         /* olive */
  --brand-2:#3b5323;       /* deeper olive */
  --accent:#b15a2d;        /* rust */
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:16px;line-height:1.6}
.wrap{max-width:960px;margin:0 auto;padding:0 16px}

/* Subtle gritty texture using layered gradients — no images needed */
body{
  background:
    radial-gradient(1200px 800px at 50% -200px, rgba(177,90,45,0.05), transparent 60%), /* rust glow */
    linear-gradient(180deg, rgba(0,0,0,0.3), rgba(0,0,0,0.6)),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.018), rgba(255,255,255,0.018) 1px, transparent 1px, transparent 2px), /* fine noise-ish */
    var(--bg);
}

.site-header{position:sticky;top:0;background:rgba(10,12,12,.7);backdrop-filter:saturate(1.1) blur(6px);border-bottom:1px solid var(--edge);z-index:10}
.site-header .wrap{display:flex;gap:16px;align-items:center;justify-content:space-between}
.site-header h1{font-size:18px;margin:10px 0;letter-spacing:0.06em;text-transform:uppercase;color:#dfe7db}
.nav a{color:var(--muted);text-decoration:none;margin:0 8px}
.nav a:hover{color:#dfe7db}

.hero{padding:44px 0;position:relative}
.hero:before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:
    linear-gradient(180deg, rgba(110,138,58,0.10), rgba(59,83,35,0.0)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 16px); /* faint grid */
  mix-blend-mode:overlay;opacity:.6
}
.hero h2{font-size:28px;margin:0 0 8px;letter-spacing:0.04em}
.hero p{color:var(--muted);margin:0 0 16px}

.cta-row{display:flex;gap:10px;flex-wrap:wrap}
.btn{display:inline-block;padding:10px 14px;border-radius:6px;background:#121615;color:var(--text);text-decoration:none;border:1px solid var(--edge)}
.btn:hover{border-color:#2a3332}
.btn.primary{background:linear-gradient(135deg, var(--brand), var(--brand-2));color:#e8f0e3;border-color:rgba(0,0,0,0.3);font-weight:700;text-shadow:0 1px 0 rgba(0,0,0,0.3)}
.btn.ghost{background:transparent}

.card{background:var(--card);border:1px solid var(--edge);border-radius:10px;padding:16px;margin:16px 0;box-shadow:0 6px 18px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.02)}
.card h3{margin-top:4px;letter-spacing:0.04em;text-transform:uppercase;color:#e7eee5}


.handwritten{font-family:'Courgette', 'Caveat', 'Patrick Hand', 'Comic Sans MS', cursive; letter-spacing:0.01em;}
.letter-text{color:#f4ead8; font-size:18px; line-height:1.7;}

.letter-quote{
  position:relative;
  background:linear-gradient(140deg, #f5e9d0 0%, #f2dba9 45%, #f8e8c4 100%);
  border-left:4px solid rgba(126,84,36,0.7);
  padding:22px 28px;
  margin:24px 0;
  color:#3a2a16;
  box-shadow:0 22px 32px rgba(0,0,0,0.32);
  font-family:'Homemade Apple', 'Caveat', 'Patrick Hand', 'Comic Sans MS', cursive;
  font-size:18px;
  line-height:1.7;
}
.letter-quote::before,
.letter-quote::after{
  content:"";
  position:absolute;
  inset:-10px;
  pointer-events:none;
  z-index:-1;
}
.letter-quote::before{
  background:
    linear-gradient(180deg, rgba(116,76,28,0.16), transparent 45%),
    linear-gradient(120deg, rgba(255,243,214,0.93) 0%, rgba(234,204,148,0.9) 50%, rgba(215,186,135,0.92) 100%);
  clip-path:polygon(4% 0%, 96% 0%, 100% 12%, 98% 26%, 100% 43%, 96% 54%, 100% 67%, 97% 81%, 100% 94%, 94% 100%, 6% 100%, 0% 86%, 3% 68%, 0% 52%, 3% 36%, 1% 18%);
}
.letter-quote::after{
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' seed='12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E") repeat;
  mix-blend-mode:multiply;
}
.letter-quote p{margin:0 0 14px;color:inherit}
.letter-quote p:last-child{margin-bottom:0}
.letter-quote .strike{text-decoration:line-through;color:rgba(58,42,22,0.7);margin-right:8px}


.kv{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:1fr auto;gap:8px 16px}
.kv li{display:contents}
.kv span{color:var(--muted)}

.steps{margin:0 0 8px}
.steps li{margin:4px 0}
.note{color:var(--muted);font-size:14px}
.steps a{color:#d4b98a;font-weight:600;border-bottom:1px solid rgba(212,185,138,0.3)}
.steps a:hover{color:#f1d9a8;border-bottom-color:rgba(241,217,168,0.6)}

.step-image-toggle{
  margin-left:8px;
  padding:2px 6px;
  font-size:13px;
  line-height:1.4;
  border-radius:4px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(177,90,45,0.12);
  color:var(--text);
  cursor:pointer;
}
.step-image-toggle:hover{background:rgba(177,90,45,0.2)}
.step-image-placeholder{
  margin:10px 0 4px;
  padding:12px;
  border:1px dashed rgba(177,90,45,0.4);
  border-radius:6px;
  color:var(--muted);
  font-size:14px;
  background:rgba(177,90,45,0.06);
}
.step-image-placeholder img{max-width:100%;height:auto;display:block;border-radius:4px}

blockquote{margin:16px 0;padding:12px 16px;border-left:3px solid var(--accent);background:rgba(177,90,45,0.08);color:#f2e9dc;font-style:italic}
blockquote p{margin:0 0 12px}
blockquote p:last-child{margin-bottom:0}

.modlist{list-style:disc;margin:12px 0 0 20px}
.hidden{display:none}

.site-footer{border-top:1px solid var(--edge);margin-top:40px}
.site-footer p{color:var(--muted);text-align:center}

/* Blog image alignment */
.news-img-right{
  float:right;
  max-width:40%;
  height:auto;
  margin:0 0 10px 16px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.08);
  box-shadow:0 6px 18px rgba(0,0,0,0.25);
}
@media (max-width:700px){
  .news-img-right{float:none;display:block;max-width:100%;margin:8px auto}
}

@media (max-width:600px){
  .kv{grid-template-columns:1fr}
  .kv li{display:block}
}
