/* Direct Approach - shared stylesheet
   Deliberately plain: no framework, no JavaScript, no webfonts. */

:root {
    --blue:   #0027ff;   /* banner blue */
    --green:  #086500;   /* "free forever" notice, from the old site */
    --red:    #ff0000;   /* "no registration" notice, from the old site */
    --rule:   #cccccc;
    --shade:  #f2f2f2;
}

body {
    margin: 0;
    padding: 0 1em 3em;
    background: #ffffff;
    color: #000000;
    font-family: Verdana, Geneva, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.page {
    max-width: 900px;
    margin: 0 auto;
}

/* ---------- header ---------- */

header {
    padding: 1em 0 0;
}

header img.banner {
    display: block;
    max-width: 100%;
    height: auto;
}

nav {
    margin: 0.75em 0 1.5em;
    padding: 0.5em 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

nav a {
    margin-right: 1.5em;
    font-weight: bold;
    text-decoration: none;
    color: var(--blue);
}

nav a:hover,
nav a:focus {
    text-decoration: underline;
}

nav a[aria-current="page"] {
    color: #000000;
}

/* ---------- general text ---------- */

h1 {
    font-size: 22px;
    margin: 0 0 0.5em;
}

h2 {
    font-size: 18px;
    margin: 1.5em 0 0.5em;
}

h3 {
    font-size: 15px;
    margin: 0 0 0.25em;
}

a {
    color: var(--blue);
}

p {
    max-width: 70ch;
}

.notice {
    font-weight: bold;
    margin: 0.5em 0;
}

.notice-free { color: var(--green); }
.notice-reg  { color: var(--red); }

.hero {
    display: block;
    margin: 1em 0;
    border: 1px solid var(--rule);
}

/* ---------- product grid ---------- */

.products {
    list-style: none;
    margin: 1em 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.25em;
}

.products li {
    border: 1px solid var(--rule);
    padding: 0.75em;
}

.products img {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto 0.5em;
}

.products .noimage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 0.5em;
    background: var(--shade);
    border: 1px solid var(--rule);
    text-align: center;
    color: #666666;
    font-size: 12px;
}

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

/* ---------- tables ---------- */

table {
    border-collapse: collapse;
    margin: 0.5em 0 1.5em;
    width: 100%;
    max-width: 700px;
}

caption {
    text-align: left;
    font-weight: bold;
    padding-bottom: 0.4em;
}

th, td {
    border: 1px solid var(--rule);
    padding: 0.4em 0.6em;
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--shade);
}

table.versions {
    max-width: 380px;
}

table.versions td.version {
    width: 6em;
}

/* ---------- footer ---------- */

footer {
    margin-top: 2.5em;
    padding-top: 1em;
    border-top: 1px solid var(--rule);
    font-size: 12px;
    color: #333333;
}

/* ---------- small screens ---------- */

@media (max-width: 600px) {
    body { font-size: 15px; }
    nav a { display: inline-block; margin-bottom: 0.25em; }
    table { font-size: 13px; }
}
