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

:root {
  --pad: clamp(16px, 5vw, 64px);
}

html, body {
  background: #ffffff;
  color: #000000;
  font-family: monospace;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: none;
}

a {
  color: #000000;
  text-decoration: underline;
}

a:visited { color: #000000; }
a:hover   { background: #000000; color: #ffffff; text-decoration: none; }

.wrap {
  max-width: 680px;
  padding: 40px var(--pad) 80px;
}

/* horizontal rule as dashes */
.rule {
  border: none;
  margin: 28px 0;
  overflow: hidden;
  height: 1em;
  color: #000;
}

.rule::before {
  content: "--------------------------------------------------------------------------------------------------------------------------------";
  display: block;
  white-space: nowrap;
  overflow: hidden;
}

h1, h2 {
  font-size: 14px;
  font-weight: normal;
  font-family: monospace;
  margin-bottom: 8px;
}

p {
  font-size: 14px;
  margin-bottom: 8px;
}

ul { list-style: none; }
ul li::before { content: "- "; }

/* ── NAV ─────────────────────────────────────────── */
nav {
  padding: 16px var(--pad);
  border-bottom: 1px solid #000;
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  font-family: monospace;
  font-size: 14px;
}

nav a { text-decoration: none; color: #000; }
nav a:hover { background: #000; color: #fff; }
nav a.active {
  font-weight: bold;
  text-decoration: underline;
}

/* ── SUB-NAV ─────────────────────────────────────── */
.subnav {
  padding: 8px var(--pad);
  border-bottom: 1px solid #000;
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  font-family: monospace;
  font-size: 12px;
}

.subnav a { text-decoration: none; color: #999; }
.subnav a:hover { background: #000; color: #fff; }
.subnav a.active { color: #000; font-weight: bold; }

.subnav a.active:hover {
  background: #000;
  color: #fff;
}


/* ── SECTION PAGES ───────────────────────────────── */
.section-wrap {
  max-width: none;
  padding: 40px var(--pad) 80px;
}

.section-title-line { margin-bottom: 24px; }

/* ── VERTICAL LIST ITEMS ─────────────────────────── */
.item {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px dotted #999;
}

.item:last-child { border-bottom: none; }

.item-image {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  margin-bottom: 8px;
}

.item-title { font-weight: bold; }
.item-meta  { color: #555; }
.item-desc  { margin-top: 4px; color: #333; }
.item-links { margin-top: 4px; }
.item-links a { margin-right: 12px; }

/* ── HORIZONTAL SCROLL ROW ───────────────────────── */
.item-row-hint {
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
}

.item-row {
  display: flex;
  flex-direction: row;
  overflow-x: scroll;
  gap: 32px;
  padding-bottom: 24px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #000 #eee;
}

.item-row::-webkit-scrollbar        { height: 6px; }
.item-row::-webkit-scrollbar-track  { background: #eee; }
.item-row::-webkit-scrollbar-thumb  { background: #000; }

.item-row .item {
  flex: 0 0 200px;
  border-bottom: none;
  border-right: 1px dotted #999;
  padding-bottom: 0;
  padding-right: 32px;
  scroll-snap-align: start;
}

.item-row .item:last-child { border-right: none; }

.item-row .item-image {
  width: 200px;
  max-width: 200px;
}

/* ── OVERLAY ─────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 100;
  overflow-y: auto;
  display: none;
}

.overlay.open { display: block; }

.overlay-inner {
  max-width: 680px;
  padding: 40px var(--pad) 80px;
}

.overlay-close {
  display: inline;
  background: none;
  border: none;
  font-family: monospace;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  color: #000;
  padding: 0;
}

.overlay-close:hover { background: #000; color: #fff; text-decoration: none; }

.embed-wrap { margin: 16px 0; }
.embed-wrap iframe { display: block; width: 100%; border: none; max-width: 500px; }

/* ── FOOTER ──────────────────────────────────────── */
footer { color: #999; font-size: 13px; margin-top: 8px; }
footer a { color: #999; margin-right: 12px; }
