/* Nittany Nightwatch — self-contained styles. No web fonts, no external assets. */

:root {
  --navy:    #0b1220;
  --navy-2:  #111a2e;
  --panel:   #16203a;
  --panel-2: #1b2743;
  --line:    #26314f;
  --ink:     #dfe6f5;
  --ink-dim: #93a1c0;
  --accent:  #4f7fd6;
  --accent-2:#8fb2f2;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -200px, #16223f 0%, var(--navy) 60%) fixed;
  color: var(--ink);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 18px; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.muted, .thread-count, .post-time { color: var(--ink-dim); font-size: 13px; }

/* header ------------------------------------------------------------------ */
.site-header {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #0d1730, #0b1220);
  padding: 22px 0 16px;
}
.brand { display: inline-flex; align-items: baseline; gap: 10px; }
.brand-mark { color: var(--accent); font-size: 18px; transform: translateY(1px); }
.brand-name {
  font-size: 26px; font-weight: 800; letter-spacing: .5px;
  color: #fff; text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-tag { margin: 6px 0 0; color: var(--ink-dim); font-size: 13px; letter-spacing: .3px; }
.header-note {
  margin-top: 12px; display: inline-block;
  font-size: 12px; color: var(--ink-dim);
  border: 1px dashed var(--line); border-radius: 6px; padding: 4px 10px;
}

/* breadcrumbs ------------------------------------------------------------- */
.crumbs { padding: 14px 0 0; font-size: 13px; }
.crumbs .wrap { padding: 0; }
.crumb-sep { color: var(--ink-dim); }
.crumb-here { color: var(--ink-dim); }

/* main -------------------------------------------------------------------- */
main.wrap { padding-top: 18px; padding-bottom: 40px; }

/* category blocks --------------------------------------------------------- */
.cat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 18px;
  overflow: hidden;
}
.cat-head {
  padding: 14px 18px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}
.cat-head h2 { margin: 0; font-size: 16px; color: #fff; }
.cat-blurb { margin: 2px 0 0; font-size: 13px; color: var(--ink-dim); }

.thread-list { list-style: none; margin: 0; padding: 0; }
.thread-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
}
.thread-row:last-child { border-bottom: 0; }
.thread-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.thread-title { color: var(--ink); }
.thread-link:hover .thread-title { color: #fff; }
.thread-count { white-space: nowrap; }
.pin { font-size: 12px; }

/* thread view ------------------------------------------------------------- */
.thread-head { margin: 4px 0 18px; }
.thread-head h1 { margin: 0 0 4px; font-size: 22px; color: #fff; line-height: 1.3; }
.thread-sub { margin: 0; color: var(--ink-dim); font-size: 13px; }

.posts { display: flex; flex-direction: column; gap: 14px; }

.post {
  display: grid; grid-template-columns: 132px 1fr;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.post-side {
  background: var(--panel-2);
  border-right: 1px solid var(--line);
  padding: 16px 12px; text-align: center;
}
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 8px;
  font-weight: 700; color: #fff; letter-spacing: .5px;
}
.post-user { margin-top: 8px; font-weight: 700; font-size: 13px; word-break: break-word; }
.post-flair { color: var(--ink-dim); font-size: 11px; }

.post-main { padding: 14px 18px; min-width: 0; }
.post-meta {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 10px;
}
.post-num { color: var(--ink-dim); font-size: 12px; }
.post-body p { margin: 0 0 10px; white-space: pre-wrap; }
.post-body p:last-child { margin-bottom: 0; }

.back { margin-top: 22px; font-size: 13px; }

/* hidden-message surfaces ------------------------------------------------- */

/* spoiler: blurred + darkened until clicked */
.spoiler {
  color: transparent;
  background: #0c1424;
  border-radius: 4px;
  padding: 0 4px;
  cursor: pointer;
  filter: blur(4px);
  user-select: none;
  transition: filter .12s ease, color .12s ease;
}
.spoiler.revealed {
  color: var(--ink);
  filter: none;
  background: #0c1424;
  user-select: text;
}

/* whitetext: same as page background — invisible until selected */
.whitetext {
  color: var(--panel);
  background: var(--panel);
  user-select: text;
}
.whitetext::selection { color: #fff; background: var(--accent); }

/* footer ------------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 18px 40px;
  color: var(--ink-dim);
  font-size: 13px;
}
.site-footer p { margin: 0 0 6px; }

/* responsive -------------------------------------------------------------- */
@media (max-width: 560px) {
  .post { grid-template-columns: 1fr; }
  .post-side {
    display: flex; align-items: center; gap: 10px; text-align: left;
    border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 14px;
  }
  .avatar { width: 34px; height: 34px; font-size: 13px; }
  .post-user, .post-flair { margin: 0; }
}
