:root{
  --bg:#17130f;
  --surface:#201a14;
  --surface-2:#261f18;
  --border:#403329;
  --text:#e8ddca;
  --muted:#a99c89;
  --accent:#d47725;
  --accent-dark:#a95416;
  --link:#e0a15e;
  --max:1060px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  background:var(--bg);
  color:var(--text);
  font-family:Arial,Helvetica,sans-serif;
  font-size:14px;
  line-height:1.55;
}
a{color:var(--link);text-decoration:none}
a:hover{text-decoration:underline}
.grain,.leaves{display:none}
.nav{
  height:62px;
  display:flex;
  align-items:center;
  border-bottom:1px solid var(--border);
  background:#15110e;
  padding:0 max(22px,calc((100% - var(--max))/2));
  position:sticky;
  top:0;
  z-index:10;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--text);
  text-decoration:none;
  font-weight:bold;
  letter-spacing:.16em;
  font-size:16px;
}
.brand img{width:30px;height:30px;object-fit:contain}
.brand span{display:inline-block;font-family:Georgia,serif;font-size:16px;letter-spacing:.12em;color:var(--text);line-height:1}
.nav nav{margin-left:auto;display:flex;align-items:center;gap:22px}
.nav nav a{color:#bdb09d;font-size:13px;text-decoration:none}
.nav nav a:hover{color:#fff}
main{min-height:calc(100vh - 135px)}
.hero{
  max-width:var(--max);
  margin:0 auto;
  padding:72px 22px 64px;
  border-bottom:1px solid var(--border);
}
.hero .hero-logo{width:116px;height:116px;object-fit:contain;margin-bottom:18px}
.eyebrow{color:var(--accent);font-size:11px;font-weight:bold;letter-spacing:.16em;text-transform:uppercase}
.hero h1{
  font-family:Georgia,"Times New Roman",serif;
  font-weight:normal;
  font-size:64px;
  line-height:1;
  margin:8px 0 8px;
  letter-spacing:-.03em;
}
.hero h1 em{font-size:30px;color:#c7b69d;font-style:italic}
.hero p{max-width:570px;color:var(--muted);margin:20px 0 0;font-size:15px}
.actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:24px}
.btn{
  display:inline-block;
  border:1px solid var(--border);
  background:var(--surface-2);
  color:var(--text);
  padding:9px 14px;
  border-radius:3px;
  text-decoration:none;
  cursor:pointer;
  font:600 13px Arial,Helvetica,sans-serif;
}
.btn:hover{background:#30271e;text-decoration:none}
.btn.primary{background:var(--accent);border-color:var(--accent-dark);color:#160e08}
.btn.primary:hover{background:#e1842d}
.section{max-width:var(--max);margin:0 auto;padding:45px 22px}
.section h2{font:normal 34px Georgia,"Times New Roman",serif;margin:4px 0 8px}
.section h3{font-size:16px;margin:30px 0 8px}
.muted{color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:24px}
.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:3px;
  padding:18px;
}
.card h3{margin:0 0 6px;font-size:15px}
.icon{display:none}
.form{
  max-width:460px;
  margin:55px auto;
  padding:24px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:3px;
}
.form h1{font:normal 32px Georgia,"Times New Roman",serif;margin:5px 0 7px}
.field{display:block;margin:16px 0}
.field span{display:block;color:#b9aa96;font-size:11px;font-weight:bold;letter-spacing:.08em;margin-bottom:6px}
.field input,.field textarea,.field select{
  width:100%;
  background:#15110e;
  border:1px solid var(--border);
  color:var(--text);
  border-radius:2px;
  padding:10px;
  outline:none;
  font:14px Arial,Helvetica,sans-serif;
}
.field input:focus,.field textarea:focus,.field select:focus{border-color:#725236}
.field textarea{min-height:130px;resize:vertical}
.notice{padding:10px;border:1px solid #684323;background:#2a1c12;color:#e3b37e;border-radius:2px;margin:14px 0}
.thread{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:3px;
  margin:14px 0;
  overflow:hidden;
}
.thread-detail{padding:20px}
.thread-detail .post{margin-left:-20px;margin-right:-20px;padding-left:20px;padding-right:20px}
.forum-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:15px 17px;
  border-bottom:1px solid var(--border);
  color:inherit;
  text-decoration:none;
}
.forum-row:last-child{border-bottom:0}
.forum-row:hover{background:#2a221a;text-decoration:none}
.forum-row b{color:#e2d4c0}
.post{border-top:1px solid var(--border);padding:20px 0}
.post:first-child{border-top:0}
.post-meta{color:var(--link);font-size:12px}
pre{white-space:pre-wrap;font-family:Consolas,monospace;color:#d6c7b2}
footer{
  max-width:var(--max);
  margin:0 auto;
  border-top:1px solid var(--border);
  padding:25px 22px 35px;
  color:var(--muted);
  display:flex;
  gap:18px;
  align-items:center;
}
footer .brand{font-size:14px}
footer .brand img{width:24px;height:24px}
footer p{margin:0}
footer small{margin-left:auto}
@media(max-width:760px){
  .nav{padding:0 16px}
  .nav nav{gap:13px}
  .grid{grid-template-columns:1fr}
  .hero{padding:55px 18px 45px}
  .hero h1{font-size:48px}
  .hero h1 em{font-size:25px}
  .hero .hero-logo{width:88px;height:88px}
  .section{padding:36px 18px}
  .form{margin:35px 18px}
  footer{margin:0 18px;padding-left:0;padding-right:0;display:block}
  footer small{display:block;margin:12px 0 0}
}

/* Slightly richer Salem styling: still restrained, but less bare. */
.nav{box-shadow:0 1px 0 rgba(0,0,0,.18)}
.nav nav a{position:relative;padding:21px 0}
.nav nav a::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:transparent}
.nav nav a:hover::after{background:var(--accent)}
.hero{position:relative;overflow:hidden}
.hero::after{content:"";position:absolute;width:300px;height:300px;right:-110px;top:-100px;border:1px solid rgba(212,119,37,.18);border-radius:50%;box-shadow:0 0 0 34px rgba(212,119,37,.025),0 0 0 70px rgba(212,119,37,.02);pointer-events:none}
.hero-logo{filter:drop-shadow(0 8px 18px rgba(0,0,0,.24))}
.hero h1{font-size:68px}
.hero p{font-size:16px}
.section{border-bottom:1px solid var(--border)}
.section:last-child{border-bottom:0}
.section .lead{max-width:650px;font-size:15px}
.card{box-shadow:0 8px 22px rgba(0,0,0,.12)}
.card:hover{border-color:#594333}
.forum-row{transition:background .12s ease,border-color .12s ease}
.forum-row:hover{border-color:#594333}
.pricing-page{padding-top:54px}
.pricing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:28px;max-width:820px}
.price-card{background:var(--surface);border:1px solid var(--border);padding:24px;box-shadow:0 10px 24px rgba(0,0,0,.13);position:relative}
.price-card.featured{border-color:#684426}
.price-card.featured::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:var(--accent)}
.price-kicker{display:block;color:var(--accent);font-size:10px;font-weight:bold;letter-spacing:.14em;text-transform:uppercase;margin-bottom:5px}
.price-card h3{font:normal 26px Georgia,"Times New Roman",serif;margin:0 0 3px}
.price{font:normal 34px Georgia,"Times New Roman",serif;margin:0 0 12px;color:#f0e5d3}
.price small{font:12px Arial,Helvetica,sans-serif;color:var(--muted)}
.price-card ul{list-style:none;padding:0;margin:20px 0 24px;border-top:1px solid var(--border)}
.price-card li{padding:9px 0;border-bottom:1px solid var(--border);color:#cfc1ae}
.price-card li::before{content:"✓";color:var(--accent);margin-right:9px}
.pricing-note{max-width:820px;margin-top:16px;padding:15px 17px;border-left:2px solid var(--accent);background:#1c1712;display:flex;gap:12px;flex-wrap:wrap}
.pricing-note b{color:#e5d7c4}
.btn:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:760px){
 .hero h1{font-size:52px}
 .pricing-grid{grid-template-columns:1fr}
 .nav nav a{padding:21px 0}
}

.pricing-three{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:900px){.pricing-three{grid-template-columns:1fr}}
.inline-form{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.inline-form input{flex:1;min-width:180px}.license-redeem{margin-top:24px}.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0}@media(max-width:800px){.admin-grid{grid-template-columns:1fr}}.success{margin-top:10px;padding:10px 12px;border:1px solid rgba(110,190,120,.35);border-radius:8px}

/* Salem member profiles */
.profile-chip{display:inline-flex;align-items:center;gap:7px;color:var(--link);vertical-align:middle;text-decoration:none}.profile-chip:hover{text-decoration:underline}.profile-chip.small{font-size:12px}.avatar{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 38px;object-fit:cover;border-radius:7px;background:#2a221a;border:1px solid var(--border);color:#d9c8b0;font-weight:bold;font-family:Georgia,"Times New Roman",serif}.avatar.small{width:22px;height:22px;flex-basis:22px;border-radius:5px;font-size:10px}.avatar-fallback{background:#2a221a}.thread-starter{margin:8px 0 18px;color:var(--muted)}.post-author{display:flex;align-items:center;gap:11px;margin-bottom:11px}.post-avatar{width:48px;height:48px;flex-basis:48px}.post-meta{color:var(--muted);font-size:11px}.post-author .profile-chip{font-size:13px}.profile-page{max-width:900px}.profile-head{display:flex;align-items:center;gap:18px;margin:25px 0 24px;padding:20px;background:var(--surface);border:1px solid var(--border);border-radius:3px}.profile-head>div:nth-child(2){flex:1}.profile-head h2{margin:1px 0 3px}.profile-avatar{width:92px;height:92px;flex-basis:92px;border-radius:9px;font-size:28px}.profile-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:14px}.profile-bio{white-space:normal;color:#cfc2ae;line-height:1.7}.socials{display:flex;flex-direction:column;gap:8px}.social-link{display:block;padding:9px 10px;border:1px solid var(--border);background:#1a1511;border-radius:2px}.social-link:hover{background:#2a221a;text-decoration:none}.profile-form{max-width:620px;margin:20px auto}.profile-picture-editor{display:flex;align-items:center;gap:16px;margin:20px 0 26px}.profile-picture-editor>div:last-child{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.profile-picture-editor .btn{position:relative}.small-note{width:100%;font-size:11px;margin:0}.profile-picture-editor .profile-avatar{width:78px;height:78px;flex-basis:78px}.profile-form textarea{min-height:115px}.forum-row .profile-chip{margin-left:2px}@media(max-width:760px){.profile-grid{grid-template-columns:1fr}.profile-head{align-items:flex-start;flex-wrap:wrap}.profile-head>a{margin-left:0}.profile-avatar{width:76px;height:76px;flex-basis:76px}.profile-picture-editor{align-items:flex-start}}

.thread-title-row{display:flex;align-items:center;justify-content:space-between;gap:16px}.btn.danger{border-color:#6f3328;color:#e6a08e}.btn.danger:hover{background:#3a211b}@media(max-width:600px){.thread-title-row{align-items:flex-start;flex-direction:column}.thread-title-row .btn{align-self:flex-start}}

.rank-badge{display:inline-block;padding:3px 7px;border:1px solid var(--border);border-radius:3px;background:#1a1511;color:#cfc1ae;font-size:10px;font-weight:bold;letter-spacing:.08em;text-transform:uppercase;line-height:1.2;vertical-align:middle}.rank-admin{border-color:#76512e;color:#e0b27a}.rank-subscribed{border-color:#5d523f;color:#d5c39f}.rank-unsubscribed{color:#9f9486}.profile-name-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.profile-comments{margin-top:14px}.profile-comments-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:10px}.profile-comment{padding:14px 0;border-top:1px solid var(--border)}.profile-comment:first-of-type{border-top:0}.comment-author{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.comment-date{font-size:11px;margin-left:2px}.profile-comment p{margin:9px 0 0 0;color:#cfc2ae;line-height:1.65}.comment-form{margin-top:16px;padding-top:16px;border-top:1px solid var(--border)}.comment-form textarea{min-height:90px}.comment-login{padding-top:12px}.dashboard-title{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:14px}
@media(max-width:760px){.dashboard-title{flex-direction:column;gap:8px}}
