*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Verdana, Geneva, sans-serif;
  font-size: 10pt;
  background: #f6f6ef;
  color: #000;
}

a { color: #000; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ── */
.site-header {
  background: #ff6600;
  padding: 2px 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-box {
  border: 1px solid white;
  padding: 1px 5px;
  font-weight: bold;
  font-size: 13pt;
  color: white;
  flex-shrink: 0;
}

.site-name {
  color: white;
  font-weight: bold;
  font-size: 10pt;
  white-space: nowrap;
}

.site-tagline {
  color: rgba(255,255,255,0.8);
  font-size: 8pt;
}

.header-nav {
  display: flex;
  gap: 6px;
  font-size: 9pt;
  flex-wrap: wrap;
}

.header-nav a { color: #000; }

.header-right {
  margin-left: auto;
  font-size: 9pt;
  white-space: nowrap;
}

.header-right a { color: #000; }

/* ── Story list ── */
.page-wrap {
  padding: 4px;
}

.stories {
  margin-bottom: 4px;
}

.story {
  display: grid;
  grid-template-columns: 28px 14px 1fr;
  gap: 0 4px;
  margin-bottom: 1px;
  align-items: start;
}

.rank {
  color: #828282;
  font-size: 10pt;
  text-align: right;
  padding-top: 2px;
}

.vote {
  color: #9a9a9a;
  font-size: 9pt;
  cursor: pointer;
  user-select: none;
  padding-top: 3px;
  line-height: 1;
}

.vote:hover { color: #ff6600; }

.story-body {}

.story-title {
  font-size: 10pt;
  line-height: 1.35;
}

.story-title a { color: #000; }
.story-title a:visited { color: #828282; }

.story-domain {
  font-size: 8pt;
  color: #828282;
  margin-left: 5px;
}

.story-meta {
  font-size: 8pt;
  color: #828282;
  margin-top: 1px;
  line-height: 1.4;
}

.story-meta a { color: #828282; }
.story-meta a:hover { text-decoration: underline; }

.story-spacer {
  height: 5px;
}

.more-link {
  padding: 6px 4px 12px 46px;
  font-size: 10pt;
}

.more-link a { color: #000; }

/* ── Footer ── */
.site-footer {
  border-top: 2px solid #ff6600;
  padding: 8px 4px;
  text-align: center;
  color: #828282;
  font-size: 8pt;
  margin-top: 8px;
}

.site-footer a { color: #828282; }
.site-footer a:hover { text-decoration: underline; }

/* ── Item Page ── */
.item-wrap { padding: 8px 6px; }

.item-header { margin-bottom: 10px; }

.item-head-title { font-size: 11pt; margin-bottom: 3px; }
.item-head-title a { color: #000; }

.item-head-meta { font-size: 8pt; color: #828282; }
.item-head-meta a { color: #828282; }

.comment-box { margin-bottom: 16px; max-width: 600px; }
.comment-box textarea {
  width: 100%;
  height: 80px;
  font-family: monospace;
  font-size: 9pt;
  border: 1px solid #ccc;
  padding: 4px;
  display: block;
  margin-bottom: 4px;
  resize: vertical;
}
.comment-box button {
  font-size: 9pt;
  padding: 2px 8px;
  cursor: pointer;
}

.comment-count { font-size: 9pt; color: #828282; margin-bottom: 10px; }

.comment {
  margin-bottom: 12px;
}

.comment-meta { font-size: 8pt; color: #828282; margin-bottom: 3px; }
.comment-meta a { color: #828282; }
.comment-meta .comment-author { color: #3c3c3c; font-weight: bold; }

.comment-text { font-size: 9pt; line-height: 1.55; max-width: 700px; }
.comment-text p { margin-bottom: 5px; }

.comment-actions { margin-top: 3px; font-size: 8pt; color: #828282; }
.comment-actions a { color: #828282; }
.comment-actions a:hover { text-decoration: underline; }

.comment-children {
  margin-left: 22px;
  padding-left: 10px;
  border-left: 1px solid #e8e8e8;
  margin-top: 8px;
}

.back-link { font-size: 9pt; color: #828282; margin-bottom: 10px; display: block; }
.back-link a { color: #828282; }
