﻿:root {
  --outside: #2a2420;
  --bg: #322921;
  --panel: #2a221b;
  --row: #2d251e;
  --text: #d8c3ae;
  --label: #ecdcca;
  --link: #ffa45c;
  --line: #120d09;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--outside);
  color: var(--text);
  font: 17px/1.35 Verdana, Geneva, sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

#frame {
  display: flex;
  max-width: 806px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  box-shadow: 0 0 40px rgba(0, 0, 0, .45);
}

#strip {
  position: sticky; top: 0;
  flex-shrink: 0;
  width: 186px;
  height: 100vh;
  border-right: 1px solid var(--line);
  overflow: hidden;
}
#strip svg { display: block; width: 100%; height: 100%; }
.birds { animation: drift 18s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(14px, -10px); } }

#content { flex: 1; min-width: 0; padding: 20px 0 60px; }

.notice {
  width: min(430px, 90%);
  margin: 0 auto 36px;
  padding: 14px 14px 18px;
  background: var(--panel);
}
.notice h2 { margin: 0 0 22px; font: italic bold 1.9rem Georgia, "Times New Roman", serif; }
.notice p { margin: 0; }

h1 { margin: 0 20px 18px; font: bold 2.1rem Georgia, "Times New Roman", serif; color: var(--label); }
.intro { margin: 0 20px 18px; }

.status { margin: 0; background: var(--panel); }
.status div {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 16px 20px;
}
.status div + div { border-top: 1px solid rgba(0, 0, 0, .15); }
.status dt {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
  font: bold 15px "Courier New", Courier, monospace; color: var(--label);
}
.ico { width: 28px; text-align: center; font-size: 1.3rem; }
.status dd { margin: 0; text-align: right; min-width: 0; }

#np-label.live::after { content: " â—"; color: #ff4b2b; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }

.meter { font-family: "Courier New", monospace; color: var(--link); letter-spacing: 1px; }

.links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 20px; }

#about { margin: 0 20px; padding: 20px; background: var(--panel); }
#about p:last-child { margin-bottom: 0; }
.sign { margin: 0 20px 20px; padding: 20px; background: var(--panel); display: grid; gap: 12px; }
.sign label { display: grid; gap: 4px; font: bold 14px "Courier New", Courier, monospace; color: var(--label); }
.sign input, .sign textarea {
  font: 15px Verdana, Geneva, sans-serif; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); padding: 8px; resize: vertical;
}
.sign input:focus, .sign textarea:focus { outline: 2px solid var(--link); }
.sign .trap { position: absolute; left: -9999px; }
.sign-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sign button {
  padding: 6px 18px; cursor: pointer; border: none;
  background: var(--link); color: var(--line); font: bold 14px "Courier New", Courier, monospace;
}
.sign button[aria-pressed] { background: transparent; color: var(--link); border: 1px solid var(--link); }
.sign button[aria-pressed="true"] { opacity: .5; }
.sign button:disabled { opacity: .5; }
#sign-status { font-size: 14px; }

.entries { list-style: none; margin: 0 20px; padding: 0; background: var(--panel); }
.entries li { padding: 16px 20px; }
.entries li + li { border-top: 1px solid rgba(0, 0, 0, .15); }
.entry-head { display: flex; justify-content: space-between; gap: 12px; }
.entry-head b { font: bold 14px "Courier New", Courier, monospace; color: var(--label); }
.entries p { margin: 6px 0 0; overflow-wrap: anywhere; }
.entries .empty { padding: 20px; }

.post-image { display: block; width: 100%; margin-bottom: 16px; }
#about p { margin: 0 0 14px; line-height: 1.6; }

.post-list { list-style: none; margin: 0 20px; padding: 0; background: var(--panel); }
.post-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 16px 20px; }
.post-list li + li { border-top: 1px solid rgba(0, 0, 0, .15); }
time { font: bold 14px "Courier New", Courier, monospace; color: var(--label); white-space: nowrap; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 20px; }
.gallery figure { margin: 0; background: var(--panel); cursor: zoom-in; }
.gallery img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery figcaption { padding: 10px; }
.gallery figcaption b { display: block; font: bold 14px "Courier New", Courier, monospace; color: var(--label); }
.gallery figcaption time { font-size: 12px; font-weight: normal; opacity: .7; }
.gallery figcaption p { margin: 6px 0 0; font-size: 14px; }
.empty { grid-column: 1 / -1; margin: 0; padding: 20px; background: var(--panel); }

#lightbox {
  position: fixed; inset: 0; z-index: 10; display: grid; place-items: center;
  background: rgba(18, 13, 9, .92); cursor: zoom-out; animation: fade .2s;
}
#lightbox[hidden] { display: none; }
#lightbox figure { margin: 0; max-width: 90vw; text-align: center; }
#lightbox img { max-width: 90vw; max-height: 80vh; }
#lightbox figcaption { margin-top: 10px; font: bold 15px "Courier New", Courier, monospace; color: var(--label); }
@keyframes fade { from { opacity: 0; } }

@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  #frame { flex-direction: column; }
  #strip { position: static; width: 100%; height: 160px; border-right: none; border-bottom: 1px solid var(--line); }
  .status div { flex-direction: column; align-items: flex-start; gap: 6px; }
  .status dd { text-align: left; }
}
