/*
 * zeusdev.co.uk - the modern layer.
 *
 * The site is plain HTML 4 and works without this file (Amiga browsers
 * never see it: every page links it with a media query they don't
 * understand).  Nothing here is needed to read or use the site.  It only
 * dresses the same markup up for current browsers.
 *
 * Colours are the site's own: cream #F5F0E6, ink #1A1A2E, navy #0B1F3A,
 * gold #F2D272 / #B8860B / #DAA520.
 */

@supports (display: flex) {

/* Keeps the nav bar's CENTER wrapper out of the way so the bar can stick */
body > font > center:first-child {
  display: contents;
}

:root {
  --cream: #F5F0E6;
  --paper: #FFFDF8;
  --ink: #1A1A2E;
  --navy: #0B1F3A;
  --navy-2: #16345C;
  --gold: #F2D272;
  --gold-d: #B8860B;
  --gold-dd: #7A5C00;
  --line: rgba(11, 31, 58, .18);
  --shadow: 0 1px 2px rgba(11, 31, 58, .12), 0 8px 24px rgba(11, 31, 58, .10);
  --radius: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px 24px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 50% -120px, rgba(242, 210, 114, .35), transparent 70%),
    var(--cream);
  background-attachment: fixed;
  animation: page-in .5s ease-out both;
}

/* The pages wrap everything in FONT; keep the nicer typeface */
font, td, th, li {
  font-family: inherit;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Navigation bar (the first table on every page) ---------- */

body > font > center:first-child > table,
table[bgcolor="#0B1F3A"][width="100%"] {
  position: sticky;
  top: 10px;
  z-index: 10;
  margin: 14px 0 22px;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--navy-2), var(--navy)) !important;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .12);
}

table[bgcolor="#0B1F3A"][width="100%"] td {
  width: auto !important;
  padding: 0;
  white-space: nowrap;
}

table[bgcolor="#0B1F3A"][width="100%"] a {
  display: block;
  padding: 11px 14px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .2s, color .2s, text-shadow .2s;
}

table[bgcolor="#0B1F3A"][width="100%"] a:hover,
table[bgcolor="#0B1F3A"][width="100%"] a:focus {
  background: rgba(242, 210, 114, .16);
  color: #fff;
  text-shadow: 0 0 12px rgba(242, 210, 114, .9);
}

/* ---------- Logo box and title ---------- */

table[width="90"] {
  margin: 0 auto;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  animation: float 6s ease-in-out infinite;
}

table[width="90"] td {
  padding: 4px;
}

table[width="90"][bgcolor="#0B1F3A"] {
  width: auto;
  background: var(--navy);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

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

/* ---------- Rules ---------- */

hr {
  height: 2px;
  border: 0;
  margin: 28px auto;
  background: linear-gradient(90deg, transparent, var(--gold-d), transparent);
}

/* ---------- Links ---------- */

a {
  color: var(--gold-d);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .25s, color .2s;
}

a:hover,
a:focus {
  color: var(--gold-dd);
  background-size: 100% 2px;
}

table[bgcolor="#0B1F3A"][width="100%"] a,
table[width="90"] a {
  background: none;
}

:target {
  scroll-margin-top: 80px;
}

/* ---------- Headings and lists ---------- */

h3 {
  margin: 30px 0 8px;
  padding: 6px 12px;
  font-size: 1.15rem;
  border-left: 5px solid var(--gold-d);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(90deg, rgba(242, 210, 114, .35), transparent 80%);
}

h3 img {
  vertical-align: -3px;
  transition: transform .6s;
}

h3:hover img {
  transform: rotate(360deg);
}

ul {
  padding-left: 1.4em;
}

li {
  margin: 3px 0;
}

li::marker {
  color: var(--gold-d);
}

p {
  margin: .9em 0;
}

/* ---------- Tables of content (home page, download, register) ---------- */

table[border="1"] {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

table[border="1"] td {
  padding: 10px 14px;
  border: 0;
  border-top: 1px solid var(--line);
}

table[border="1"] tr:first-child td {
  border-top: 0;
}

table[border="1"] tr[bgcolor="#0B1F3A"] td {
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  letter-spacing: .04em;
}

table[border="1"] tr[bgcolor="#FFFFFF"] td,
table[border="1"] td[bgcolor="#FFFFFF"] {
  background: rgba(242, 210, 114, .12);
}

table[border="1"] tr:not([bgcolor="#0B1F3A"]) {
  transition: background .2s;
}

table[border="1"] tr:not([bgcolor="#0B1F3A"]):hover td {
  background: rgba(242, 210, 114, .28);
}

/* The "Our Software" panel on the home page: cards that lift */
table[border="1"][width="90%"] td[valign="top"][width] {
  transition: transform .2s, box-shadow .2s, background .2s;
}

table[border="1"][width="90%"] td[valign="top"][width]:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(11, 31, 58, .18);
}

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

center > font[size="1"] {
  display: inline-block;
  margin-top: 6px;
  opacity: .75;
  letter-spacing: .04em;
}

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
  body {
    padding: 0 12px 20px;
    font-size: 15px;
  }

  table[bgcolor="#0B1F3A"][width="100%"] {
    border-radius: var(--radius);
  }

  table[bgcolor="#0B1F3A"][width="100%"] tr {
    display: flex;
    flex-wrap: wrap;
  }

  table[bgcolor="#0B1F3A"][width="100%"] td {
    flex: 1 1 33%;
  }

  table[bgcolor="#0B1F3A"][width="100%"] a {
    padding: 9px 6px;
    text-align: center;
  }

  /* Stack the three product cards */
  table[border="1"][width="90%"] td[width] {
    display: block;
    width: auto;
  }
}

/* ---------- Respect people who don't want movement ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body, table[width="90"] { animation: none; }
  * { transition: none !important; }
}

/* ---------- Dark mode, for browsers that ask for it ---------- */

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14223A;
    --line: rgba(242, 210, 114, .22);
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .4);
  }

  body {
    color: #ECE6D6;
    background:
      radial-gradient(1200px 500px at 50% -120px, rgba(242, 210, 114, .14), transparent 70%),
      #0A1527;
  }

  a { color: var(--gold); }
  a:hover, a:focus { color: #fff; }

  h3 {
    background: linear-gradient(90deg, rgba(242, 210, 114, .18), transparent 80%);
  }

  table[border="1"] tr[bgcolor="#FFFFFF"] td,
  table[border="1"] td[bgcolor="#FFFFFF"] {
    background: rgba(242, 210, 114, .06);
  }

  table[border="1"] tr:not([bgcolor="#0B1F3A"]):hover td {
    background: rgba(242, 210, 114, .14);
  }

  center > font[size="1"] {
    color: #ECE6D6;
  }

  /* The title GIFs and logo are drawn on white: keep them on a light tile */
  center > img {
    background: #fff;
    border-radius: 8px;
    padding: 2px 6px;
  }
}

} /* @supports */
