/* Split Infinity Music - site stylesheet */

:root {
  --ink: #111;
  --muted: #555;
  --navy: #000099;
  --navy-dark: #000066;
  --link: #0000aa;
  --link-visited: #000066;
  --link-hover: #cc0000;
  --rule: #d6d6e6;
  --tint: #f3f3fa;
  --paper: #fff;
  --maxw: 60rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

/* The classic blue "Split Infinity Music" strip down the left edge, on wide screens only */
@media (min-width: 72rem) {
  body {
    background: var(--paper) url("/images/simusic_background.gif") repeat-y left top fixed;
  }
}

img { max-width: 100%; height: auto; }

a { color: var(--link); }
a:visited { color: var(--link-visited); }
a:hover, a:focus { color: var(--link-hover); }

h1, h2, h3 { color: var(--navy); line-height: 1.25; }
h1 { font-size: 1.75rem; margin: 0 0 .75rem; }
h2 { font-size: 1.3rem; margin: 2rem 0 .5rem; }
h3 { font-size: 1.1rem; margin: 1.5rem 0 .4rem; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }

pre, code, textarea { font-family: "Courier New", Courier, monospace; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; color: #fff; }

/* ---------- Header & navigation ---------- */

.site-header {
  text-align: center;
  padding: 1.25rem 1rem 0;
}
.site-header .brand { display: block; max-width: 606px; margin: 0 auto; }
.site-header .brand img { display: block; width: 100%; }

.site-nav {
  background: var(--navy);
  margin-top: 1rem;
}
.site-nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0 .5rem;
  max-width: var(--maxw);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.site-nav a {
  display: block;
  padding: .6rem .85rem;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: .95rem;
}
.site-nav a:visited { color: #fff; }
.site-nav a:hover, .site-nav a:focus { background: var(--navy-dark); color: #fff; text-decoration: underline; }
.site-nav a[aria-current="page"] { background: #fff; color: var(--navy); }

@media (max-width: 40rem) {
  .site-nav ul { padding: .25rem; }
  .site-nav a { padding: .45rem .6rem; font-size: .9rem; }
}

/* ---------- Main content ---------- */

main {
  display: block;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1rem 1rem;
}

.lead { font-size: 1.15rem; color: #222; }
.muted { color: var(--muted); }
.center { text-align: center; }

.notice {
  border-left: 4px solid var(--navy);
  background: var(--tint);
  padding: .9rem 1.1rem;
  margin: 1.5rem 0;
}
.notice > :first-child { margin-top: 0; }
.notice > :last-child { margin-bottom: 0; }

.free { color: #c00; font-weight: bold; }

/* Product cards on the home page */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.card {
  border: 1px solid var(--rule);
  border-top: 4px solid var(--navy);
  padding: 1.1rem 1.2rem;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.card h2, .card h3 { margin: .5rem 0 .4rem; }
.card .card-img { min-height: 64px; display: flex; align-items: center; }
.card p { margin: 0 0 .75rem; }
.card .more { margin-top: auto; font-weight: bold; }

/* Two-column feature blocks (image + text) */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  margin: 2rem 0;
}
.feature h2, .feature h3 { margin-top: 0; }
.feature.logo-left { grid-template-columns: auto minmax(0, 1fr); }
@media (max-width: 45rem) {
  .feature, .feature.logo-left { grid-template-columns: 1fr; }
}

.hero-img { display: block; margin: 0 auto 1rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
figure { margin: 0; }
figcaption { font-size: .9rem; color: var(--muted); margin-top: .35rem; font-style: italic; }

ul.checks { padding-left: 1.2rem; }
ul.checks li::marker { color: #c00; }

/* Download buttons & tables */
.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  padding: .55rem 1.1rem;
  text-decoration: none;
  font-weight: bold;
  border: 0;
  border-radius: 3px;
  font-size: 1rem;
  cursor: pointer;
}
.btn:visited { color: #fff; }
.btn:hover, .btn:focus { background: var(--navy-dark); color: #fff; }
.btn-note { color: var(--muted); margin-left: .5rem; }

.table-wrap { overflow-x: auto; }
table.downloads { width: 100%; border-collapse: collapse; margin: .5rem 0 1.5rem; }
table.downloads th, table.downloads td {
  text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--rule); vertical-align: top;
}
table.downloads th { background: var(--tint); color: var(--navy); }
table.downloads td.size { white-space: nowrap; color: var(--muted); }

/* "I understand" unlock disclosure */
details.unlock {
  border: 1px solid var(--rule);
  padding: .75rem 1rem;
  margin: 1rem 0;
  background: #fff;
}
details.unlock summary { cursor: pointer; color: var(--link); text-decoration: underline; }
details.unlock[open] summary { margin-bottom: .75rem; }
.unlock-codes { border: 3px solid var(--navy); padding: .75rem 1rem; }
.unlock-codes dt { font-weight: bold; }
.unlock-codes dd { margin: 0 0 .5rem; color: #070; font-weight: bold; font-family: "Courier New", Courier, monospace; font-size: 1.1rem; }

/* FAQ */
.faq dt { font-weight: bold; margin-top: 1.25rem; color: var(--navy); }
.faq dd { margin: .35rem 0 0; }

/* Legal text */
.legal { max-width: 46rem; }
.legal .legal-title { text-align: center; font-weight: bold; }

/* Forms */
form.stack label { display: block; font-weight: bold; margin: 1rem 0 .3rem; }
form.stack input[type=text], form.stack input[type=email], form.stack textarea, form.stack select {
  width: 100%;
  max-width: 36rem;
  padding: .5rem;
  font: inherit;
  border: 1px solid #999;
  border-radius: 3px;
}
form.stack .hint { font-weight: normal; color: var(--muted); font-size: .9rem; }
form.stack .actions { margin-top: 1.25rem; }

/* Web Transpose Tool */
.transpose-form .controls { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1rem 0; }
.transpose-form select { padding: .45rem; font: inherit; max-width: 100%; }
.transpose-form textarea {
  display: block;
  width: 100%;
  min-height: 20rem;
  padding: .6rem;
  font-size: .95rem;
  line-height: 1.4;
  border: 1px solid #999;
  border-radius: 3px;
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
}
.transpose-results pre { overflow-x: auto; background: #fff; border: 1px solid var(--rule); padding: .75rem; }

/* ---------- Footer ---------- */

.site-footer {
  max-width: var(--maxw);
  margin: 2rem auto 0;
  padding: 1rem 1rem 1.5rem;
  border-top: 2px solid var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  font-size: .85rem;
  color: var(--muted);
}
.site-footer p { margin: .2rem 0; }
.site-footer .footer-logo { flex: none; }
.site-footer .footer-logo img { display: block; }
