/* Deep Salvage download site: an old-school studio page. A light panel on a night-sea
   background, a banner, bevelled buttons with the real logos of each system. */

:root {
  --sea-night: #06212b;
  --sea-deep: #0b3a47;
  --sea: #146b78;
  --foam: #6ee8c8;
  --panel: #f6f1e6;
  --panel-edge: #d9cfb8;
  --ink: #1f2a2e;
  --ink-soft: #55615f;
  --gold: #e8b65a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  font: 17px/1.55 "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  background:
    radial-gradient(ellipse at 50% -10%, #1d6a74 0%, transparent 60%),
    repeating-linear-gradient(175deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 22px),
    linear-gradient(180deg, var(--sea-deep) 0%, var(--sea-night) 70%);
  background-color: var(--sea-night);
  min-height: 100vh;
}

.page {
  max-width: 980px;
  margin: 28px auto 40px;
  background: var(--panel);
  border: 1px solid #000;
  box-shadow: 0 0 0 4px rgba(110, 232, 200, 0.25), 0 18px 60px rgba(0, 0, 0, 0.6);
}

/* Banner */
.banner {
  position: relative;
  background:
    linear-gradient(180deg, rgba(4, 30, 38, 0.15) 0%, rgba(4, 30, 38, 0.85) 100%),
    url("img/golden.jpg") center 58% / cover;
  border-bottom: 3px solid var(--gold);
}
.banner-inner { padding: 64px 32px 34px; text-align: center; }
.banner h1 {
  margin: 0;
  font: 800 64px/1 "Cinzel", Georgia, serif;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 2px 0 #0b3a47, 0 4px 18px rgba(0, 0, 0, 0.7);
}
.tagline {
  margin: 12px 0 0;
  color: #dff8f1;
  font-size: 19px;
  font-style: italic;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}
nav {
  display: flex;
  justify-content: center;
  gap: 2px;
  background: linear-gradient(180deg, #17505b, #0b3440);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
nav a {
  padding: 10px 22px;
  color: #e9fbf6;
  font: 600 14px "Cinzel", Georgia, serif;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}
nav a:hover { background: rgba(110, 232, 200, 0.15); color: #fff; }

main { padding: 26px 30px 8px; }

.hero { margin: 0 0 26px; }
.hero img, .gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #000;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--panel-edge), 0 6px 18px rgba(0, 0, 0, 0.25);
}
.hero figcaption { margin-top: 10px; color: var(--ink-soft); font-size: 14px; text-align: center; font-style: italic; }

/* Titled boxes */
.box {
  margin: 0 0 26px;
  padding: 0 22px 18px;
  background: #fffdf8;
  border: 1px solid var(--panel-edge);
  border-radius: 4px;
}
.box h2 {
  margin: 0 -22px 16px;
  padding: 9px 22px;
  color: #fff;
  font: 600 20px "Cinzel", Georgia, serif;
  letter-spacing: 0.05em;
  background: linear-gradient(180deg, var(--sea), var(--sea-deep));
  border-bottom: 2px solid var(--gold);
  border-radius: 3px 3px 0 0;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.two-col > div:first-child h2 { margin-right: -13px; border-top-right-radius: 0; }
.two-col > div:last-child h2 { margin-left: -13px; border-top-left-radius: 0; }
.lead { margin-top: 0; }
.version-line { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 15px; }
.small { font-size: 14px; color: var(--ink-soft); }
a { color: #0d6672; }

/* Download buttons: bevelled, glossy, one per system */
.downloads {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 18px 0 10px;
}
.dl {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, #2a9aa5 0%, #17707c 48%, #0f5a66 52%, #0c4e59 100%);
  border: 1px solid #06323a;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 0 rgba(0, 0, 0, 0.25), 0 3px 0 #06323a, 0 6px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.08s, filter 0.15s;
}
.dl:hover { filter: brightness(1.12) saturate(1.1); }
.dl:active { transform: translateY(2px); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35), 0 1px 0 #06323a; }
.dl img {
  flex: none;
  width: 58px;
  height: 58px;
  padding: 9px;
  background: #fff;
  border-radius: 10px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.4);
  object-fit: contain;
}
.dl-text { display: flex; flex-direction: column; min-width: 0; }
.dl-os { font: 700 24px/1.1 "Cinzel", Georgia, serif; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); }
.dl-os::before { content: "Télécharger pour "; display: block; font: 600 12px "Source Sans 3", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.dl-meta { font-size: 14px; color: #cdeff0; }
.dl.mine { outline: 3px solid var(--gold); outline-offset: 2px; }
.dl.mine::after {
  content: "Ton système";
  position: absolute;
  top: -11px;
  right: 14px;
  padding: 1px 9px;
  color: #3a2a06;
  font: 700 12px "Source Sans 3", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--gold);
  border-radius: 3px;
}
.dl.soon { filter: grayscale(0.9) brightness(0.9); pointer-events: none; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery a:hover img { filter: brightness(1.08); }

.keys { width: 100%; border-collapse: collapse; font-size: 15px; }
.keys td { padding: 5px 4px; border-bottom: 1px dotted var(--panel-edge); vertical-align: top; }
.keys td:first-child { white-space: nowrap; padding-right: 12px; }
kbd {
  display: inline-block;
  min-width: 22px;
  margin: 0 2px 2px 0;
  padding: 1px 6px;
  font: 600 13px "Source Sans 3", sans-serif;
  text-align: center;
  background: linear-gradient(180deg, #fff, #e6e0d2);
  border: 1px solid #b9ae95;
  border-radius: 4px;
  box-shadow: 0 2px 0 #b9ae95;
}
code { padding: 1px 5px; font-size: 14px; background: #eee7d6; border-radius: 3px; }

.help dt { margin-top: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.help dt img { object-fit: contain; }
.help dd { margin: 4px 0 0 28px; }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 30px;
  color: #cfe7e3;
  font-size: 14px;
  background: linear-gradient(180deg, #0f4652, #072830);
  border-top: 3px solid var(--gold);
}
footer p { margin: 0; }
.made-with {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 8px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}
.made-with:hover { background: rgba(255, 255, 255, 0.16); }

@media (max-width: 720px) {
  .page { margin: 0; border: 0; }
  .banner-inner { padding: 44px 16px 26px; }
  .banner h1 { font-size: 40px; }
  nav { flex-wrap: wrap; }
  nav a { padding: 9px 12px; letter-spacing: 0.06em; }
  main { padding: 18px 16px 4px; }
  .downloads, .two-col, .gallery { grid-template-columns: 1fr; }
  .two-col > div h2 { margin-left: -22px !important; margin-right: -22px !important; }
  footer { flex-direction: column; text-align: center; padding: 16px; }
}
