/* Safein Community: original stylesheet */
:root {
  --olive: #303224;
  --olive-line: #45483a;
  --lime: #98bc24;
  --ink: #282828;
  --muted: #686868;
  --line: #e2e2e2;
  --blue: #1534e6;
  --pill: #33363a;
  --page: #ffffff;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.75 "Assistant", "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}
a { color: var(--ink); }
a:hover { color: var(--lime); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.25; color: var(--ink); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: #fff; padding: 8px 12px; }

/* Top bar */
.topbar { background: var(--olive); border-top: 5px solid var(--lime); border-bottom: 1px solid var(--olive-line); font-size: 1rem; }
.topbar-inner { display: flex; flex-wrap: wrap; }
.topbar .cell {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-weight: 600;
  padding: 12px 20px; border-left: 1px solid var(--olive-line);
}
.topbar .cell:nth-child(2) { border-right: 1px solid var(--olive-line); }
.topbar .cell:hover { color: var(--lime); }
.topbar .fb { margin-left: auto; border-right: 1px solid var(--olive-line); color: #fff; }
@media (max-width: 700px) {
  .topbar .cell { padding: 10px 12px; font-size: .9rem; border: 0 !important; }
  .topbar .cell:first-child span { font-size: 0; }
  .topbar .cell:first-child span::after { content: "Join our Discord"; font-size: .9rem; }
}

/* Header */
.header { background: var(--olive); }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; padding-top: 28px; padding-bottom: 24px; }
.brand { text-decoration: none; font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif; }
.site-title { display: block; color: #fff; font-size: 2rem; font-weight: 600; line-height: 1.1; }
.site-title span { color: var(--lime); }
.site-tagline { display: block; color: #8d9168; font-size: .85rem; margin-top: 6px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 36px; font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif; font-size: 1rem; }
.nav a { color: #c7c9b7; text-decoration: none; padding: 4px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--lime); }

/* Post title band */
.title-band { background: var(--lime); padding: 72px 16px; text-align: center; }
.title-band h1 { margin: 0 auto; max-width: 900px; color: var(--olive); font-size: clamp(1.7rem, 3.5vw, 2.3rem); }

/* Layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; padding-top: 0; padding-bottom: 48px; }
.title-band + .layout { padding-top: 32px; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }
.page-title { font-size: 2.2rem; margin: 0 0 .6em; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 28px; padding-top: 4px; }
.widget { border: 1px solid #ececec; border-radius: 4px; box-shadow: 0 3px 4px rgba(0, 0, 0, .12); padding: 24px; background: #fff; }
.widget h3 { margin: 0 0 12px; font-size: 1.6rem; }
.donate p { margin: 0; color: var(--blue); text-align: center; line-height: 1.8; }
.tips { display: flex; flex-direction: column; gap: 8px; }
.pill { margin: 0; background: var(--pill); color: #fff; font-weight: 700; text-align: center; line-height: 1.4; padding: 14px 22px; border-radius: 40px; }

/* Content */
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.6rem; margin: 1.2em 0 .5em; }
.prose h3 { font-size: 1.15rem; margin: 1.2em 0 .5em; }
.prose h4 { font-size: 1.05rem; margin: 1.2em 0 .4em; }
.prose p { margin: 0 0 1.4em; }
.prose ul, .prose ol { padding-left: 2.2em; margin: 0 0 1.4em; line-height: 1.5; }
.prose li { margin: .2em 0; }
.prose hr { border: 0; border-top: 2px solid #444; margin: 1.6em 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 20px; border-left: 4px solid var(--lime); }
.table-wrap { overflow-x: auto; margin: 1.6em 0; }
.prose table { border-collapse: collapse; width: 100%; line-height: 1.5; }
.prose th, .prose td { border: 1px solid #555; padding: 12px 8px; text-align: left; vertical-align: middle; }
.prose thead th { border-bottom-width: 3px; }

.meta { margin: 0 0 6px; font-size: 1rem; }
.meta span { margin: 0 4px; }
.meta a { color: var(--lime); text-decoration: none; }
.meta a:hover { text-decoration: underline; }

/* Blog list */
.post-item { padding: 0 0 34px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.post-item h2 { font-size: 1.6rem; margin: 0 0 10px; }
.post-item h2 a { text-decoration: none; }
.excerpt { margin: 6px 0 0; }

/* Post footer */
.pager { display: flex; justify-content: space-between; gap: 24px; margin: 40px 0 32px; }
.pager a { text-decoration: none; max-width: 48%; }
.pager .newer { margin-left: auto; text-align: right; }
.reply { border-top: 1px solid var(--line); padding-top: 20px; }
.reply h3 { margin: 0 0 8px; font-size: 1.2rem; }

/* Footer */
.footer { background: #222; }
.messages { padding: 42px 0; }
.messages a { display: block; background: #f00; color: #000; text-decoration: none; padding: 8px 0; }
.messages p { margin: 0; font-weight: 800; font-size: 1.1rem; line-height: 1.7; }
.messages a:hover { color: #fff; }
.copyright { background: var(--lime); color: #fff; text-align: center; padding: 18px 0; font-size: 1rem; }
