/* tokens, sampled straight off assets/avatar.png (PIL pixel probe) */
:root{
  --paper: #e9e9e4;
  --panel: #fff;
  --border: #b8b8b0;
  --green: #3e6b29;
  --green-dark: #2c4d1d;
  --cream: #f9f8f3;
  --ink: #1a1a1a;
  --ink-soft: rgba(26,26,26,0.6);
  --quote-bg: #fdf8e3;
  --link: #1554c7;
}

*{ box-sizing: border-box; }

@font-face{
  font-family: "PT Sans";
  src: url("fonts/ptsans-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face{
  font-family: "PT Sans";
  src: url("fonts/ptsans-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face{
  font-family: "PT Sans";
  src: url("fonts/ptsans-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face{
  font-family: "Courier Prime";
  src: url("fonts/courierprime-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face{
  font-family: "Courier Prime";
  src: url("fonts/courierprime-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

html, body{
  margin: 0;
  min-height: 100%;
  background: var(--paper);
}

body{
  font-family: "PT Sans", Verdana, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.board{
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(14px, 3vh, 34px) clamp(12px, 4vw, 20px);
}

.crumb{
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.crumb-cur{ color: var(--ink); }

.post{
  background: var(--panel);
  border: 1px solid var(--border);
}

.post-head{
  background: var(--green);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 15px;
}

.post-num{
  font-family: "Courier Prime", ui-monospace, monospace;
  font-size: 13px;
  opacity: 0.9;
}

.post-body{
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 0;
}

.userbox{
  border-right: 1px solid var(--border);
  padding: 14px 12px;
  background: #f2f2ee;
}

.uname{
  color: var(--link);
  font-weight: 700;
  font-size: 13px;
  word-break: break-word;
  margin-bottom: 8px;
}

.umeta{
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.umeta.rank{
  margin-top: 6px;
  color: var(--green-dark);
  font-weight: 700;
}

.content{
  padding: 14px 16px 16px;
  min-width: 0;
}

.quote{
  background: var(--quote-bg);
  border-left: 3px solid var(--green);
  margin: 0 0 12px;
  padding: 8px 10px;
  font-size: 13px;
  font-style: italic;
  color: var(--ink);
}

.qhead{
  display: block;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 3px;
}

.reply-text{
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.5;
}

.attach{
  margin: 0 0 12px;
}

.dog{
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
}

.attach-meta{
  margin-top: 5px;
  font-family: "Courier Prime", ui-monospace, monospace;
  font-size: 11px;
  color: var(--ink-soft);
}

.ca-line{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
}

.ca-label{
  font-size: 12px;
  color: var(--ink-soft);
}

.ca{
  font-family: "Courier Prime", ui-monospace, monospace;
  font-size: 13px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--border);
  padding: 4px 8px;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.ca:hover{ background: var(--quote-bg); }

.post-actions{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 9px 14px;
  border-top: 1px solid var(--border);
  background: #f2f2ee;
}

.act{
  font-family: "PT Sans", Verdana, sans-serif;
  font-size: 12px;
  color: var(--link);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
}
.act:hover{ color: var(--green-dark); }

.thanks{
  font-weight: 700;
}

.act-flash{
  font-size: 11px;
  color: var(--ink-soft);
  font-style: italic;
}

.sig{
  margin-top: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-soft);
}

.sig .tk{
  font-family: "Courier Prime", ui-monospace, monospace;
  font-weight: 700;
  color: var(--ink);
}

.sig a{
  color: var(--link);
  text-decoration: underline;
}
.sig a:hover{ color: var(--green-dark); }

.uptime{
  font-family: "Courier Prime", ui-monospace, monospace;
}

@media (max-width: 480px){
  .post-body{
    grid-template-columns: 1fr;
  }
  .userbox{
    border-right: none;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .umeta{ display: inline; margin-right: 8px; }
  .umeta.rank{ margin-top: 0; }
}
