/* The Binary Language — simple static site, no frameworks, no trackers. */
:root {
  --teal: #144f6d; /* dark teal (20,79,109) */
  --text: #222222;
  --muted: #666666;
  --border: #dddddd;
  --bg: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--teal); }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* Header */
.site-header { text-align: center; padding: 24px 0 8px; }
.site-header .logo { max-width: 520px; width: 100%; height: auto; display: block; margin: 0 auto; }
.site-header .header-banner { max-width: 100%; width: 100%; height: auto; display: block; margin: 0 auto; }
.site-header .tagline {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

nav.main-nav {
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  margin: 16px 0 28px;
}
nav.main-nav a {
  margin: 0 14px;
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
}
nav.main-nav a:hover { text-decoration: underline; }
nav.main-nav a[aria-current="page"] { text-decoration: underline; }

/* Headings */
h1, h2, h3 { color: var(--teal); line-height: 1.25; }
h1 { font-size: 28px; margin: 0 0 8px; }
h2 { font-size: 22px; margin: 28px 0 8px; }

/* Latest strip */
.strip-meta { text-align: center; margin: 0 0 16px; }
.strip-meta .strip-number { font-weight: 700; color: var(--teal); font-size: 18px; }
.strip-meta .strip-title { font-size: 18px; }

.strip { display: block; max-width: 100%; height: auto; margin: 0 auto; }

/* Prev / next */
.strip-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0;
}
.strip-nav a,
.strip-nav span.disabled {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--teal);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.strip-nav a { color: var(--teal); }
.strip-nav a:hover { background: var(--teal); color: #ffffff; }
.strip-nav span.disabled { color: #aaaaaa; border-color: var(--border); cursor: default; }

/* Preview notice */
.notice {
  background: #f2f7f9;
  border: 1px solid #cfe0e8;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--muted);
  margin: 24px 0;
}

/* Archive list */
.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.archive-list img.thumb {
  width: 140px;
  height: 140px;
  object-fit: cover;
  flex: 0 0 140px;
  border: 1px solid var(--border);
}
.archive-list .strip-number { font-weight: 700; color: var(--teal); }
.archive-list .strip-title { font-weight: 700; }
.archive-list .coming { color: var(--muted); font-style: italic; }

/* Footer */
.site-footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* Small screens */
@media (max-width: 560px) {
  body { font-size: 16px; }
  h1 { font-size: 24px; }
  .archive-list li { flex-direction: column; }
  .archive-list img.thumb { width: 100%; height: auto; flex: none; }
  .strip-nav { flex-direction: column; }
  .strip-nav a, .strip-nav span.disabled { text-align: center; }
}
