/* C-Dir theme for the global stylesheet (load after /css/style.css).
   Palette taken from the app icon: purple tile, black disk jacket,
   cream label with C-DIR in deep purple, and the rainbow label stripes. */
:root {
  --purple: #6f60b5;
  --purple-deep: #392a78;
  --purple-light: #a99cf0;
  --label: #f0ece3;
  --blue: #3e80d6;
  --green: #4dae4f;
  --yellow: #f2c230;
  --orange: #ef8a2e;
  --red: #e2493c;

  --bg: #131217;
  --bg-image: radial-gradient(ellipse 70% 60% at 15% 0%, rgba(111, 96, 181, 0.26), transparent 70%);
  --panel: #1f1e23;
  --rim: #3a3946;
  --text: #f0ece3;
  --muted: #a8a4b8;

  --accent: #a99cf0;
  --icon: #a99cf0;
  --note: #a99cf0;

  /* Primary button: the cream disk label with C-DIR purple lettering */
  --btn-bg: #f0ece3;
  --btn-ink: #392a78;
  --btn-hover-bg: #6f60b5;
  --btn-hover-ink: #ffffff;

  --selection-bg: #6f60b5;
  --selection-ink: #f0ece3;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

body {
  background-attachment: scroll;
  background-repeat: no-repeat;
}

.hero {
  padding-bottom: 48px;
}

.section {
  padding: 56px 0;
}

/* The label's rainbow, used as a divider */

.stripes {
  height: 10px;
  background: linear-gradient(
    to bottom,
    var(--blue) 0 20%,
    var(--green) 20% 40%,
    var(--yellow) 40% 60%,
    var(--orange) 60% 80%,
    var(--red) 80% 100%
  );
}

/* Requirements under the download button */

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.meta li::before {
  content: '■ ';
  color: var(--purple);
}

/* Directory listing panel: the disk jacket with a C64-style listing */

.disk-card {
  background: var(--panel);
  border: 1px solid var(--rim);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.disk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rim);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.disk-bar .dots {
  display: flex;
  gap: 6px;
}

.disk-bar .dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rim);
}

.listing {
  margin: 0;
  padding: 20px 20px 22px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--label);
  white-space: pre;
  overflow-x: auto;
}

.listing .rev {
  background: var(--label);
  color: var(--purple-deep);
}

.listing .sel {
  background: var(--purple);
  color: #ffffff;
}

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

.listing .type {
  color: var(--purple-light);
}

.listing .sel .type {
  color: #ffffff;
}

/* Feature cards get a stripe colour each */

.pill-mark {
  width: 28px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 2px;
  background: var(--mark, var(--purple));
}

/* Formats: one label per drive */

.formats {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.format {
  background: var(--label);
  color: var(--purple-deep);
  border-radius: 8px;
  overflow: hidden;
}

.format-top {
  padding: 22px 22px 16px;
}

.format-name {
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.format-drive {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.format-body {
  padding: 14px 22px 22px;
  font-size: 15px;
  color: #3d3a48;
}

.note {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.note strong {
  color: var(--text);
  font-weight: 600;
}

/* Keyboard shortcuts */

.keys {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.keys li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--rim);
  color: var(--muted);
}

kbd {
  flex-shrink: 0;
  min-width: 36px;
  padding: 4px 9px;
  border: 1px solid var(--rim);
  border-bottom-width: 3px;
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  text-align: center;
}

/* Download band */

.download {
  background: var(--panel);
  border-top: 1px solid var(--rim);
}

.download-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 48px 0;
}

.download h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.download p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 820px) {
  .formats,
  .keys {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .listing {
    font-size: 12px;
    padding: 16px;
  }

  .section {
    padding: 40px 0;
  }
}
