/* HelloMonero — reconstruction stylesheet
   Look and feel modelled on the getmonero.org blog, c. 2017:
   light grey page, white cards, Source Sans, understated underlined links. */

:root {
  --orange: #f26822;
  --page: #f0f0f0;
  --card: #ffffff;
  --ink: #4c4c4c;
  --ink-light: #6f6f6f;
  --muted: #9c9c9c;
  --rule: #e5e5e5;
  --shadow: 0 1px 3px rgba(0, 0, 0, .08);
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: Consolas, "Liberation Mono", Menlo, monospace;
  --max: 1140px;
}

/* The infamous "Hotdog Stand" theme — see aerbax's Reddit comment, Feb 2017 */
:root[data-theme="hotdog"] {
  --orange: #ffff00;
  --page: #ff0000;
  --card: #ff0000;
  --ink: #ffff00;
  --ink-light: #ffffff;
  --muted: #ffe680;
  --rule: #ffff00;
  --shadow: 0 0 0 2px #ffff00;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--orange); }
img { max-width: 100%; height: auto; }
b, strong { font-weight: 600; }
code {
  font-family: var(--mono); font-size: .9em; background: #f5f5f5; padding: 1px 4px; border-radius: 2px;
}
:root[data-theme="hotdog"] code { background: #cc0000; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--orange); color: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

.card {
  background: var(--card); box-shadow: var(--shadow); border-radius: 2px;
}

/* ---------- Top bar: logo + utility links ---------- */
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-top: 18px; padding-bottom: 14px; flex-wrap: wrap;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo svg { width: 46px; height: 46px; display: block; }
.logo .word {
  font-weight: 700; font-size: 26px; letter-spacing: 1.5px; line-height: 1; text-transform: uppercase;
}
.logo .word span { font-weight: 300; }
.util { display: flex; gap: 22px; align-items: center; font-size: 12.5px; flex-wrap: wrap; }
.util a { text-decoration: none; color: var(--ink); }
.util a:hover { text-decoration: underline; }
.util .lang::before { content: "\1F310  "; font-size: 11px; }
.util .caret::after { content: " \25BE"; font-size: 9px; color: var(--muted); }

/* ---------- Main nav card ---------- */
.mainnav { margin-bottom: 18px; }
.mainnav ul {
  list-style: none; margin: 0; padding: 0 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap;
}
.mainnav a {
  display: block; padding: 14px 10px; font-size: 17px; font-weight: 400; text-decoration: none;
}
.mainnav a:hover { color: var(--orange); }
.mainnav a[aria-current="page"] { font-weight: 600; }
.mainnav a.caret::after { content: " \25BE"; font-size: 10px; color: var(--muted); }
@media (max-width: 720px) {
  .mainnav ul { justify-content: center; }
}

/* ---------- Two-column layout ---------- */
.cols {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start;
  margin-bottom: 30px;
}
@media (max-width: 880px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.cols > * { min-width: 0; }

.content { padding: 30px 28px 34px; }
@media (max-width: 600px) { .content { padding: 22px 16px; } }

.side { display: grid; gap: 18px; }
.side .card { padding: 26px 26px 20px; }
.side h3 {
  margin: 0 0 16px; text-align: center; font-size: 22px; font-weight: 600; letter-spacing: .2px;
}
.side ul { list-style: none; margin: 0; padding: 0; }
.side li { font-size: 14.5px; margin: 0 0 12px; line-height: 1.45; }
.side p { font-size: 14px; margin: 0 0 10px; }
.side .tags li { margin-bottom: 10px; }

/* ---------- Post ---------- */
.post h1 {
  font-size: 24px; font-weight: 600; line-height: 1.3; margin: 0 0 8px; color: var(--ink);
}
.post .byline { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.post .byline span { display: block; }
.post h2, .post h3 { font-weight: 400; color: var(--ink); }
.post h2 { font-size: 21px; margin: 30px 0 10px; }
.post h3 { font-size: 18px; margin: 26px 0 8px; }
.post h4 { font-size: 15.5px; font-weight: 600; margin: 20px 0 6px; }
.post h4 .tag {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--orange); margin-right: 6px;
}
.post p, .post li { font-size: 15px; }
.post ul, .post ol { padding-left: 22px; margin: 6px 0 14px; }
.post li + li { margin-top: 5px; }
.post .lede { font-size: 15.5px; }
.post blockquote {
  margin: 14px 0; padding: 8px 16px; border-left: 3px solid var(--orange); background: #fafafa; color: var(--ink-light);
}
.post blockquote cite { display: block; margin-top: 4px; font-style: normal; font-size: 12.5px; color: var(--muted); }
:root[data-theme="hotdog"] .post blockquote { background: #cc0000; }

.meta-table { width: 100%; border-collapse: collapse; margin: 14px 0 6px; font-size: 14px; }
.meta-table th, .meta-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.meta-table th { font-weight: 600; width: 34%; white-space: nowrap; }

.note {
  font-size: 13.5px; color: var(--ink-light); background: #fafafa; border: 1px solid var(--rule);
  padding: 10px 14px; margin: 16px 0;
}
:root[data-theme="hotdog"] .note { background: #cc0000; }

/* Participants */
.people { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 !important; margin: 8px 0 4px !important; list-style: none; }
.people li {
  font-size: 13px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--rule); background: #fafafa;
  margin: 0 !important; cursor: pointer;
}
.people li b { font-weight: 600; }
.people li span { color: var(--muted); margin-left: 5px; font-size: 12px; }
.people li .via { font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: var(--orange); }
.people li:hover { border-color: var(--orange); }
.people li.is-active { background: var(--orange); border-color: var(--orange); color: #fff; }
.people li.is-active span, .people li.is-active .via { color: #fff; }
:root[data-theme="hotdog"] .people li { background: #cc0000; }

/* ---------- Logs ---------- */
.tx-tools {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin: 10px 0 14px; padding: 10px 12px; background: #fafafa; border: 1px solid var(--rule);
}
:root[data-theme="hotdog"] .tx-tools { background: #cc0000; }
.tx-tools input[type="search"], .tx-tools select {
  font: inherit; font-size: 13.5px; padding: 5px 8px; border: 1px solid #d8d8d8; background: #fff; color: var(--ink);
  border-radius: 2px; min-width: 150px;
}
.tx-tools .check { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.tx-tools button {
  font: inherit; font-size: 13px; padding: 5px 11px; border: 1px solid #d8d8d8; background: #fff; color: var(--ink);
  border-radius: 2px; cursor: pointer;
}
.tx-tools button:hover { border-color: var(--orange); }
.tx-tools .count { font-size: 12.5px; color: var(--muted); margin-left: auto; }

/* Dark "terminal" panel for the IRC log */
.transcript {
  font-size: 14.5px; line-height: 1.5;
  background: #1e2225; color: #d7dde2;
  padding: 18px 20px; border-radius: 3px; overflow-x: auto;
}
:root[data-theme="hotdog"] .transcript { background: #000; color: #ff0; }
.transcript .line { margin: 0 0 3px; word-break: break-word; }
.transcript .nick { font-weight: 600; color: #fff; }
.transcript .nick::before { content: "<"; color: #6b7780; font-weight: 400; }
.transcript .nick::after { content: "> "; color: #6b7780; font-weight: 400; }
.transcript .nick .via {
  font-weight: 300; font-size: 11px; color: #6b7780; margin-right: 3px;
}
.transcript.hide-via .nick .via { display: none; }
.transcript .line.action .nick::before { content: "* "; }
.transcript .line.action .nick::after { content: " "; }
.transcript .line.action .msg { font-style: italic; color: #b8c2c9; }
.transcript .msg a { color: #8fc5ff; word-break: break-all; }
.transcript .msg a:hover { color: var(--orange); }
.transcript .line.is-hidden { display: none; }
.transcript .line.is-dim { opacity: .3; }
.transcript mark { background: #ffd166; color: #000; padding: 0 1px; }
.transcript .line.art .msg {
  font-family: var(--mono); font-size: 13px; white-space: pre; letter-spacing: 0;
}
.transcript .line.art .nick { font-family: var(--mono); font-size: 13px; }
.transcript .line.art .nick .via { display: none; }
/* Lines added in this reconstruction (not in the archived log): small orange dot */
.transcript .line.added::before {
  content: "\2022"; color: var(--orange); margin-right: 5px; font-weight: 600;
}
.tx-marker {
  margin: 18px 0 8px; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: #fff; border-left: 3px solid var(--orange); padding-left: 10px;
}
.tx-marker:first-child { margin-top: 0; }
.tx-marker a { text-decoration: none; color: inherit; }

/* speaker colours on the dark panel */
.transcript .s0 .nick { color: #ff9f5a; }
.transcript .s1 .nick { color: #7fd1ae; }
.transcript .s2 .nick { color: #8fc5ff; }
.transcript .s3 .nick { color: #f5a3c7; }
.transcript .s4 .nick { color: #e5d97b; }
.transcript .s5 .nick { color: #b9a6ff; }
.transcript .s6 .nick { color: #7fe0e8; }
.transcript .s7 .nick { color: #ffc47f; }
.transcript .s8 .nick { color: #a5e07a; }
.transcript .s9 .nick { color: #ff8b8b; }
.transcript .s10 .nick { color: #c2c9d1; }
.transcript .s11 .nick { color: #d9a5ff; }
.transcript .s12 .nick { color: #ffe08a; }
.transcript .s13 .nick { color: #9ad0f5; }
.transcript .s14 .nick { color: #f7b7a3; }
.transcript .s15 .nick { color: #b5e6a1; }
.tx-agenda { font-size: 14.5px; }

/* Post footer */
.post-tags { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--muted); }
.post-tags a { margin-right: 4px; }

/* ---------- Home ---------- */
.post-list article + article { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--rule); }
.post-list h2 { font-size: 20px; font-weight: 600; margin: 0 0 4px; line-height: 1.3; }
.post-list .byline { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.post-list p { margin: 0 0 6px; }
.post-list article.pending { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); }
.post-list .pending h2 { font-weight: 400; font-size: 18px; }
.post-list .pending .byline em { font-style: normal; color: var(--orange); }

/* ---------- Footer ---------- */
.footer { margin: 10px 0 40px; padding: 24px 28px; font-size: 13.5px; }
.footer .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 720px) { .footer .grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 5px; }
.footer .fine { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--muted); }
.footer .fine button {
  font: inherit; font-size: 12.5px; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline;
}

.small { font-size: 13px; color: var(--muted); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
