/* aiatfault.com — Reddit-style light theme.
   Replace the ENTIRE contents of style.css with everything below.
   Do not paste this comment line if you want it clean (harmless if you do). */

:root{
  --bg:#f6f7f8;
  --surface:#ffffff;
  --text:#1a1a1b;
  --muted:#7c7e80;
  --line:#e2e4e6;
  --accent:#0079d3;
  --accent-hover:#1484d6;
  --up:#ff4500;
  --down:#7193ff;
  --notice-bg:#e9f7ef;
  --notice-line:#3fb950;
  --error-bg:#fdecea;
  --error-line:#e5534b;
  --radius:8px;
  --shadow:0 1px 3px rgba(0,0,0,.08);
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}

/* Honeypot field stays invisible */
.hp-field{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}

/* ---------- Header ---------- */
.site-head{
  position:sticky;top:0;z-index:50;
  display:flex;justify-content:space-between;align-items:center;
  padding:0 20px;height:56px;
  background:var(--surface);
  border-bottom:1px solid var(--line);
  box-shadow:var(--shadow);
}
.brand{
  font-weight:800;font-size:20px;color:var(--text);
  letter-spacing:-.3px;
}
.brand:hover{text-decoration:none;color:var(--accent)}
.site-head nav{display:flex;align-items:center}
.site-head nav a{
  margin-left:8px;padding:7px 14px;border-radius:999px;
  font-weight:600;font-size:14px;
  border:1px solid var(--accent);color:var(--accent);
  transition:background .15s,color .15s;
}
.site-head nav a:hover{background:var(--accent);color:#fff;text-decoration:none}
/* first nav link (login) outlined, signup filled */
.site-head nav a:last-child{background:var(--accent);color:#fff}
.site-head nav a:last-child:hover{background:var(--accent-hover)}
.who{color:var(--muted);margin-left:16px;font-weight:600;font-size:14px}

/* ---------- Layout ---------- */
.wrap{max-width:740px;margin:20px auto;padding:0 16px}
h1{font-size:22px;font-weight:800;letter-spacing:-.4px;margin:0 0 6px}
h2{font-size:17px;font-weight:700}

/* ---------- Cards (posts / boards) ---------- */
.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:14px 16px;margin-bottom:12px;
  transition:border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover{
  border-color:#cfd2d4;
  box-shadow:var(--shadow);
  transform:translateY(-1px);
}
.card h2{margin:0 0 4px}
.card h2 a{color:var(--text)}
.card h2 a:hover{color:var(--accent)}
.card .desc{color:var(--muted);margin:0;font-size:14px}

.meta{color:var(--muted);font-size:12px}

.post-title{font-size:20px;font-weight:800;margin:0 0 8px;letter-spacing:-.3px}
.post-body{
  white-space:pre-wrap;margin:14px 0;font-size:15px;line-height:1.6;
  color:#222;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-block;background:var(--accent);color:#fff;
  border:0;border-radius:999px;padding:9px 18px;cursor:pointer;
  font-size:14px;font-weight:700;
  transition:background .15s, transform .1s;
}
.btn:hover{background:var(--accent-hover);text-decoration:none}
.btn:active{transform:scale(.97)}
.btn-ghost{
  background:transparent;border:1px solid var(--line);color:var(--muted);
  padding:6px 12px;
}
.btn-ghost:hover{background:#f0f1f2;color:var(--text);border-color:#cfd2d4}

/* ---------- Forms ---------- */
label{display:block;margin:14px 0 5px;color:var(--text);font-weight:600;font-size:14px}
input[type=text],input[type=email],input[type=password],textarea{
  width:100%;padding:11px 12px;
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  color:var(--text);font:inherit;
  transition:border-color .15s, box-shadow .15s;
}
input:focus,textarea:focus{
  outline:none;border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(0,121,211,.15);
}
textarea{min-height:160px;resize:vertical}

/* ---------- Voting ---------- */
.vote{
  display:inline-flex;align-items:center;gap:6px;margin:8px 0 4px;
  background:#f6f7f8;border-radius:999px;padding:4px 8px;
}
.vote form{display:inline;margin:0}
.vote .score{font-weight:800;min-width:24px;text-align:center}
.vote .btn-ghost{
  border:none;background:transparent;font-size:18px;line-height:1;
  padding:2px 6px;border-radius:6px;color:var(--muted);
}
.vote form:first-of-type .btn-ghost:hover{color:var(--up);background:#ffe9e0}
.vote form:last-of-type .btn-ghost:hover{color:var(--down);background:#e8edff}

/* ---------- Comments ---------- */
.comment{
  border-left:3px solid var(--line);
  padding:6px 0 6px 14px;margin:10px 0;
  transition:border-color .15s;
}
.comment:hover{border-color:#cfd2d4}
.comment.reply{margin-left:22px}
.comment .meta{font-weight:600}
.comment .post-body{margin:6px 0;font-size:14px}
details summary{
  cursor:pointer;color:var(--accent);font-weight:600;font-size:13px;
  list-style:none;display:inline-block;margin-top:4px;
}
details summary:hover{text-decoration:underline}
details[open] summary{margin-bottom:8px}

/* ---------- Alerts ---------- */
.error{
  background:var(--error-bg);border:1px solid var(--error-line);
  color:#8a1c14;padding:11px 14px;border-radius:var(--radius);margin:12px 0;
  font-size:14px;
}
.notice{
  background:var(--notice-bg);border:1px solid var(--notice-line);
  color:#1a6b34;padding:11px 14px;border-radius:var(--radius);margin:12px 0;
  font-size:14px;
}
.pending{
  display:inline-block;background:#fff4d6;border:1px solid #e0c060;
  color:#8a6d00;font-size:12px;padding:3px 10px;border-radius:999px;
}

/* ---------- Footer ---------- */
.site-foot{
  max-width:740px;margin:48px auto 24px;padding:20px 16px 0;
  color:var(--muted);text-align:center;font-size:13px;
  border-top:1px solid var(--line);
}

/* ---------- Small screens ---------- */
@media (max-width:560px){
  .site-head{padding:0 12px}
  .brand{font-size:18px}
  .site-head nav a{padding:6px 11px;font-size:13px}
  .wrap{margin:12px auto}
}