/* Core layout */
:root {
  --bg: #050505;
  --shell: #0e0e0e;
  --shell-stripe: #1b1b1b;
  --panel: #121212;
  --panel-inner: #171717;
  --text: #dcdcdc;
  --muted: #b0b0b0;
  --accent: #f2f2f2;
  --border: #3a3a3a;
  --green: #6ecf98;
  --gold: #e0c676;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Trebuchet MS", "Verdana", "Lucida Console", monospace;
  font-size: 14px;
  line-height: 1.35;
}

a {
  color: #9ec8ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0 12px;
  position: relative;
  background: radial-gradient(ellipse at center,
    rgba(40, 40, 40, 0.2) 0%,
    rgba(24, 24, 24, 0.65) 45%,
    rgba(12, 12, 12, 0.82) 65%,
    rgba(0, 0, 0, 0.95) 100%);
  overflow: hidden;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.01) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.08) 0, rgba(0, 0, 0, 0.02) 100%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.05) 50%, rgba(0, 0, 0, 0.05) 75%, transparent 75%, transparent);
  background-size: 3px 3px, 7px 7px, 12px 12px;
  mix-blend-mode: overlay;
  opacity: 0.38;
}

.frame {
  width: min(860px, 100%);
  min-height: 100vh;
  background: repeating-linear-gradient(-45deg, var(--shell) 0 22px, var(--shell-stripe) 22px 44px);
  border: 1px solid #222;
  border-radius: 4px;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.85);
  padding: 16px;
}

.inner {
  background: linear-gradient(to bottom, #1c1c1c, #0e0e0e 18px, #0e0e0e);
  border: 1px solid #202020;
  padding: 18px;
  border-radius: 2px;
}

/* Header */
.top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.1);
}

.year {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}

.nav {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.nav-box {
  background: var(--panel);
  border: 1px solid #262626;
  padding: 8px 10px;
  border-radius: 2px;
  color: #cfcfcf;
  margin-bottom: 12px;
  box-shadow: inset 0 0 0 1px #0c0c0c;
}

/* Badges */
.badges {
  margin-bottom: 14px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 3px rgba(0, 0, 0, 0.6);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.palette-1 { background: linear-gradient(#f79cff, #bf3ce9); }
.palette-2 { background: linear-gradient(#111, #444); }
.palette-3 { background: linear-gradient(#eef, #9fd1ff); color: #222; }
.palette-4 { background: linear-gradient(#fef8a7, #f8d320); color: #222; }
.palette-5 { background: linear-gradient(#1271c3, #0f4d87); }
.palette-6 { background: linear-gradient(#d8f9ff, #7ac2ff); color: #1c2f4f; }
.palette-7 { background: linear-gradient(#a0a0a0, #2c2c2c); }
.palette-8 { background: linear-gradient(#eaf8ff, #b2daff); color: #102b52; }
.palette-9 { background: linear-gradient(#ff4747, #5b0303); }
.palette-10 { background: linear-gradient(#f3f3f3, #e0e0e0); color: #333; }
.palette-11 { background: linear-gradient(#e9fdb5, #8fcf2f); color: #243911; }
.palette-12 { background: linear-gradient(#0b3c9f, #031c5f); }
.palette-13 { background: linear-gradient(#f7f7f7, #cfcfcf); color: #3d3d3d; }
.palette-14 { background: linear-gradient(#86dbff, #4fb9e8); color: #0f3550; }
.palette-15 { background: linear-gradient(#faa03b, #d34e0b); }
.palette-16 { background: linear-gradient(#282828, #0e0e0e); }
.palette-17 { background: linear-gradient(#ff8c8c, #d11111); }
.palette-18 { background: linear-gradient(#e7e7e7, #989898); color: #242424; }

/* Intro */
.intro {
  background: var(--panel);
  border: 1px solid #262626;
  padding: 10px 12px;
  border-radius: 2px;
  color: #cfcfcf;
  margin-bottom: 16px;
  box-shadow: inset 0 0 0 1px #0c0c0c;
}

.intro p {
  margin: 0 0 8px;
  font-size: 13px;
}

.intro p:last-child {
  margin-bottom: 0;
}

/* Sections */
.section {
  background: var(--panel);
  border: 1px solid #262626;
  border-radius: 2px;
  padding: 12px;
  margin-bottom: 16px;
  box-shadow: inset 0 0 0 1px #0c0c0c;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.6px;
  color: #f6f6f6;
}

.view-all {
  font-size: 11px;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.social-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #eef3ff;
  background: #212529;
  border: 1px solid #2f353c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
  cursor: pointer;
  text-decoration: none;
  appearance: none;
}

.social-button:hover {
  transform: translateY(-1px);
  border-color: #3f8cff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  text-decoration: none;
}

.social-button:active {
  transform: translateY(0);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.social-button .social-icon svg path {
  fill: currentColor;
}

.social-button.twitter {
  background: #000;
  border-color: #1c1c1c;
  color: #f5f7fa;
}

.social-button.twitter:hover {
  border-color: #3f8cff;
}

.social-label {
  white-space: nowrap;
}

/* Detail */
.detail {
  padding: 0;
  overflow: hidden;
  margin-bottom: 0;
}

.detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px 8px;
  margin: 0;
}

.detail-hero {
  position: relative;
  min-height: 220px;
  background: linear-gradient(135deg, #2c2c2c, #0a0a0a);
  border-bottom: 1px solid #111;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.6));
}

.detail-title {
  font-size: 12px;
  letter-spacing: 0.5px;
  margin: 0;
  padding-left: 0;
  padding-top: 0;
}

.detail-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.detail-body {
  padding: 12px 14px 14px;
  background: #111;
  color: #d8d8d8;
  font-size: 12px;
  line-height: 1.5;
}

.detail-body p {
  margin: 0 0 10px;
}

.detail-body ul {
  margin: 6px 0 10px 18px;
  padding: 0;
  color: #d8d8d8;
}

.detail-body ol {
  margin: 6px 0 10px 18px;
  padding: 0;
  color: #d8d8d8;
}

.detail-body h1,
.detail-body h2,
.detail-body h3 {
  margin: 0 0 8px;
  line-height: 1.3;
}

.detail-body h1 { font-size: 15px; }
.detail-body h2 { font-size: 14px; }
.detail-body h3 { font-size: 13px; }

.detail-body pre {
  background: #0b0b0b;
  border: 1px solid #1f1f1f;
  padding: 8px 10px;
  border-radius: 2px;
  overflow-x: auto;
  margin: 0 0 10px;
  font-size: 11px;
}

.detail-body code {
  background: #1a1a1a;
  border: 1px solid #222;
  border-radius: 2px;
  padding: 1px 4px;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 11px;
}

.detail-body pre code {
  background: transparent;
  border: none;
  padding: 0;
}

.detail-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 10px 0;
  border-radius: 2px;
  background: #050505;
  border: 1px solid #1f1f1f;
}

.download-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 0;
  color: #9ec8ff;
  text-decoration: none;
  font-size: 11px;
}

.download-btn:hover {
  text-decoration: underline;
}

/* Catalogue */
.catalogue-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.feature-card {
  background: linear-gradient(#131313, #0c0c0c);
  border: 1px solid #202020;
  box-shadow: inset 0 0 0 1px #0a0a0a;
  margin-bottom: 12px;
}

.feature-header,
.feature-footer {
  font-size: 11px;
  color: #d8d8d8;
  padding: 6px 8px;
  border-bottom: 1px solid #0f0f0f;
  background: #161616;
  letter-spacing: 0.6px;
}

.feature-header span {
  color: var(--muted);
  font-size: 10px;
  margin-left: 6px;
}

.feature-body {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 12px;
  align-items: stretch;
}

.feature-window {
  position: relative;
  min-height: 240px;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 60% 50%, rgba(50, 50, 50, 0.18), transparent 42%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 49%, rgba(0, 0, 0, 0.35) 51%),
    linear-gradient(135deg, #2c2c2c, #0a0a0a);
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0f0f0f;
}

.feature-blurb {
  background: linear-gradient(#111, #0c0c0c);
  border: 1px solid #1f1f1f;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px #0a0a0a;
  padding: 10px 12px;
  color: #d2d2d2;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

.feature-blurb-title {
  font-size: 14px;
  font-weight: 700;
  color: #f6f6f6;
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.blurb-body {
  flex-grow: 1;
}

.feature-blurb .detail-meta {
  margin-top: 8px;
  margin-bottom: 0;
}

.feature-blurb .body-text {
  margin: 0 0 8px;
}

.feature-blurb .body-text:last-child {
  margin-bottom: 0;
}

.feature-window.clickable {
  cursor: pointer;
}

.feature-window::before,
.feature-window::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08), transparent 35%),
              radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.06), transparent 40%),
              linear-gradient(transparent 48%, rgba(255, 255, 255, 0.05) 50%, transparent 52%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.scanlines {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.03) 50%, rgba(0, 0, 0, 0.04) 50%);
  background-size: 100% 4px;
  opacity: 0.4;
}

@keyframes loader-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.loading-spinner {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55));
  z-index: 4;
  pointer-events: none;
}

.loading .loading-spinner {
  display: flex;
}

.loading-spinner::after {
  content: "";
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--accent);
  border-bottom-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.65), inset 0 0 8px rgba(255, 255, 255, 0.06);
  animation: loader-spin 0.9s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (prefers-reduced-motion: reduce) {
  .scanlines {
    display: none;
  }
  .feature-window::before,
  .feature-window::after {
    display: none;
  }
  .loading-spinner::after {
    animation: none;
  }
}

.feature-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55));
}

.feature-title {
  font-size: 13px;
  letter-spacing: 2px;
}

.feature-date {
  font-size: 11px;
  color: var(--muted);
}

.about-window {
  background-image:
    url("images/frog.png"),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.75) 100%);
  background-size: cover, cover;
  background-position: center, center;
  background-blend-mode: normal, overlay;
}

.about-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blurb-grid {
  background: linear-gradient(#111, #0b0b0b);
  border: 1px solid #1f1f1f;
  padding: 10px 12px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px #0a0a0a;
}

.blurb {
  color: #cfcfcf;
  font-size: 13px;
  line-height: 1.4;
  min-height: 40px;
}

/* Lists */
.list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #1c1c1c;
}

.list li {
  display: grid;
  grid-template-columns: 120px 1fr 240px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #111;
  font-size: 11px;
}

.list li:nth-child(even) {
  background: rgba(255, 255, 255, 0.025);
}

.list .date {
  color: #f1f1f1;
  font-weight: 700;
  letter-spacing: 0.3px;
  font-size: 11px;
}

.list .link {
  color: #9ec8ff;
  font-size: 11px;
}

.list .meta {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.more-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

.body-text {
  color: #d8d8d8;
  font-size: 13px;
  margin: 0;
}

@media (max-width: 900px) {
  .frame {
    padding: 14px;
  }

  .inner {
    padding: 14px;
  }

  .feature-body {
    grid-template-columns: 1fr;
  }

  .feature-window {
    min-height: 200px;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 0 8px;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .nav-left,
  .nav-right {
    width: 100%;
    gap: 10px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 640px) {
  .frame {
    width: 100%;
    padding: 12px;
  }

  .inner {
    padding: 12px;
  }

  .catalogue-grid {
    grid-template-columns: 1fr;
  }

  .list li {
    grid-template-columns: 100px 1fr;
    grid-template-areas:
      "date text"
      "meta meta";
  }

  .list .date { grid-area: date; }
  .list .link { grid-area: text; }
  .list .meta { grid-area: meta; text-align: left; }
}

@media (max-width: 480px) {
  .feature-window {
    min-height: 180px;
  }

  .list li {
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "date"
      "meta";
    row-gap: 4px;
  }

  .list .date {
    text-align: left;
  }
}
