/* Gospel Getter website. Plain CSS, no build step, no web fonts: system
   serif for headings and reading-like text, system sans for the rest.

   The look follows the Chi Rho Code LLC mark, a round stained-glass
   window: a near-black ground, gold as the main accent (headings, lead
   lines, primary buttons, focus), emerald and teal as the glass (panel
   edges, secondary buttons, links). Panels read as panes of glass: dark,
   with a faint green-to-teal wash and a thin edge. Every text colour meets
   WCAG AA on every background it's used on, the washes included (see
   site/README.md). */

:root {
    color-scheme: dark;
    --bg: #0b0d0c;
    --bg-raised: #101613;
    --pane: #131c18;
    --footer-bg: #070908;
    --text: #ede7d8;
    --text-muted: #bdb6a5;
    --gold: #f2c14e;
    --gold-pale: #f8e59f;
    --on-gold: #1a140e;
    --gold-line: rgb(242 193 78 / 0.5);
    --emerald: #16785a;
    --teal: #42b8a5;
    --link: #86dccd;
    --caution-bg: #2a210b;
    --pane-edge: rgb(66 184 165 / 0.35);
    --pane-wash: linear-gradient(155deg, rgb(22 120 90 / 0.16), rgb(66 184 165 / 0.06) 55%, transparent);
    --radius: 10px;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;
}

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

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

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
}

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

a {
    color: var(--link);
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
}

a:hover {
    text-decoration-thickness: 2px;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--gold-pale);
    text-wrap: balance;
}

h2 {
    font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem);
    margin: 0 0 0.75rem;
}

h3 {
    font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem);
    margin: 0 0 0.6rem;
}

p {
    margin: 0 0 1rem;
}

strong {
    color: var(--text);
}

code,
kbd {
    font-family: var(--mono);
    font-size: 0.88em;
    color: var(--text);
}

kbd {
    padding: 0.05em 0.4em;
    border: 1px solid var(--pane-edge);
    border-bottom-width: 2px;
    border-radius: 4px;
    background: var(--pane);
}

.wrap {
    width: min(72rem, 100% - 2rem);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 10;
    padding: 0.6rem 1rem;
    background: var(--gold);
    color: var(--on-gold);
    font-weight: 600;
    border-radius: 0 0 var(--radius) var(--radius);
}

.skip-link:focus {
    top: 0;
}

main:focus {
    outline: none;
}

/* A lead line: a thin gold rule ending in round "solder" nodes, with a
   teal node in the middle, like the traces in the mark. Decorative only
   (a pseudo-element, so screen readers never meet it). */
.section > .wrap::before,
.site-footer::before {
    content: "";
    display: block;
    height: 12px;
    background:
        radial-gradient(circle, var(--gold) 0 3px, transparent 3.5px) 0 50% / 12px 12px no-repeat,
        radial-gradient(circle, var(--gold) 0 3px, transparent 3.5px) 100% 50% / 12px 12px no-repeat,
        radial-gradient(circle, var(--teal) 0 3px, transparent 3.5px) 50% 50% / 12px 12px no-repeat,
        linear-gradient(var(--gold-line), var(--gold-line)) 50% 50% / calc(100% - 12px) 1px no-repeat;
}

.section > .wrap::before {
    margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
}

/* ---- Header */

.site-header {
    border-bottom: 1px solid var(--gold-line);
    background: linear-gradient(180deg, var(--bg-raised), var(--bg));
}

.site-header .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    padding-block: 0.9rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text);
    text-decoration: none;
}

.brand > img {
    width: 40px;
    height: 40px;
}

.brand-name {
    display: block;
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--gold-pale);
}

.brand-byline {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.95rem;
}

.site-nav a:hover {
    text-decoration: underline;
}

.site-nav .nav-about {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---- Buttons */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.9rem;
    padding: 0.6rem 1.25rem;
    border: 2px solid var(--gold);
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

/* Gold glass with dark lettering. */
.button-primary {
    background: linear-gradient(180deg, var(--gold-pale), var(--gold) 55%);
    background-color: var(--gold);
    color: var(--on-gold);
}

.button-primary:hover {
    background: var(--gold-pale);
    border-color: var(--gold-pale);
}

/* Teal glass edge. */
.button-secondary {
    background: transparent;
    border-color: var(--teal);
    color: var(--link);
}

.button-secondary:hover {
    background: rgb(66 184 165 / 0.14);
}

.site-nav .button {
    min-height: 2.4rem;
    padding: 0.4rem 1rem;
    font-size: 0.92rem;
    color: var(--on-gold);
}

.site-nav .button:hover {
    text-decoration: none;
}

/* ---- Hero */

.hero {
    padding-top: clamp(2rem, 1.5rem + 2.5vw, 4rem);
    padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem);
    background:
        radial-gradient(60rem 30rem at 85% 0%, rgb(66 184 165 / 0.08), transparent 70%),
        radial-gradient(50rem 30rem at 0% 100%, rgb(22 120 90 / 0.1), transparent 70%);
}

.eyebrow {
    margin: 0 0 0.9rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--gold);
}

.hero h1 {
    max-width: 18ch;
    margin: 0 0 1rem;
    font-size: clamp(2.3rem, 1.6rem + 3.4vw, 4rem);
    line-height: 1.08;
}

.lede {
    max-width: 38rem;
    font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
    color: var(--text-muted);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.75rem 0 0.9rem;
}

.hero-note {
    max-width: 40rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.95rem;
}

.facts li {
    position: relative;
    padding-left: 1.1rem;
}

/* Solder-pad bullets. */
.facts li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--gold-line);
}

.facts span {
    color: var(--text-muted);
}

/* App screenshots, framed like panes in a leaded window: a gold lead
   line, a dark gap, then an emerald edge. The screenshots themselves are
   unchanged (Matrix). */
.shot {
    margin: 0;
    border: 1px solid var(--gold-line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #f7f7f5;
    box-shadow:
        0 0 0 4px var(--bg),
        0 0 0 5px rgb(22 120 90 / 0.7),
        0 18px 40px -16px rgb(0 0 0 / 0.8);
}

.hero-shot {
    margin-top: 2rem;
}

@media (min-width: 60rem) {
    .hero-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 38rem);
        gap: 3rem;
        align-items: center;
    }

    .hero-shot {
        margin-top: 0;
    }

    .hero h1 {
        font-size: clamp(2.6rem, 1.2rem + 2.6vw, 3.6rem);
    }
}

.see-how {
    display: inline-block;
    margin-top: 1.25rem;
    font-weight: 600;
}

/* ---- Sections */

.section {
    padding-block: clamp(3rem, 2.25rem + 3vw, 5.5rem);
}

.section-alt {
    background: var(--bg-raised);
}

.section-intro {
    max-width: 42rem;
    margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.feature {
    display: grid;
    gap: 1.5rem 3rem;
    align-items: center;
}

.feature + .feature {
    margin-top: clamp(3rem, 2.5rem + 3vw, 5rem);
}

.feature-text {
    max-width: 34rem;
}

.feature-text ul {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
}

.feature-text li + li {
    margin-top: 0.35rem;
}

.feature-text li::marker,
.two-col li::marker {
    color: var(--gold);
}

@media (min-width: 56rem) {
    .feature {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    }

    .feature-flip .feature-text {
        order: 2;
    }

    .feature.text-only {
        grid-template-columns: none;
    }
}

.text-only {
    max-width: 42rem;
}

.two-col {
    display: grid;
    gap: 1.5rem 3rem;
}

@media (min-width: 48rem) {
    .two-col {
        grid-template-columns: 1fr 1fr;
    }
}

/* Each column is a pane. */
.two-col ul {
    margin: 0;
    padding: 1.25rem 1.25rem 1.25rem 2.4rem;
    background: var(--pane-wash), var(--pane);
    border: 1px solid var(--pane-edge);
    border-radius: var(--radius);
}

.two-col li + li {
    margin-top: 0.45rem;
}

/* ---- Themes */

.themes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.themes figure {
    margin: 0;
}

.themes figcaption {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

/* ---- Download */

.release-line {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.platforms {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 52rem) {
    .platforms {
        grid-template-columns: 1fr 1fr;
    }
}

.platform {
    padding: clamp(1.25rem, 1rem + 1vw, 2rem);
    background: var(--pane-wash), var(--pane);
    border: 1px solid var(--pane-edge);
    border-top: 2px solid var(--gold-line);
    border-radius: var(--radius);
    scroll-margin-top: 1rem;
}

.platform h3 {
    margin-bottom: 0.9rem;
}

.files {
    margin: 0;
    padding: 0;
    list-style: none;
}

.files li + li {
    margin-top: 1rem;
}

.files .button {
    width: 100%;
}

.file-note {
    margin: 0.35rem 0 0;
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* The unsigned-installer warning: an amber pane with a full gold edge
   and a heavier gold bar, so it stands out from everything around it. */
.caution {
    margin: 0 0 1.25rem;
    padding: 0.9rem 1rem 0.9rem 1.1rem;
    background: linear-gradient(155deg, rgb(242 193 78 / 0.1), transparent 70%), var(--caution-bg);
    border: 1px solid var(--gold);
    border-left-width: 6px;
    border-radius: 6px;
    font-size: 0.97rem;
    color: var(--text);
}

.caution strong {
    color: var(--gold-pale);
}

.caution a {
    color: var(--gold-pale);
}

.caution p:last-child {
    margin-bottom: 0;
}

.more-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.75rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.not-here {
    margin-top: 1.5rem;
    color: var(--text-muted);
}

/* Phones and tablets: the app is for Windows and Linux computers, so
   there are no download buttons here, only the explanation and plain
   links (for someone sending themselves the link, say). */
.touch-only {
    display: none;
}

@media (hover: none) and (pointer: coarse) {
    .touch-only {
        display: block;
    }

    .hero-actions,
    .site-nav .button {
        display: none;
    }

    .files .button {
        display: inline;
        min-height: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: none;
        color: var(--link);
        font-weight: 600;
        text-decoration: underline;
    }
}

.touch-note {
    margin: 1.25rem 0 0;
    padding: 0.9rem 1rem;
    background: var(--pane-wash), var(--pane);
    border: 1px solid var(--pane-edge);
    border-radius: var(--radius);
}

.download .touch-note {
    margin: 0 0 1.5rem;
}

/* ---- FAQ */

.faq {
    max-width: 46rem;
}

.faq details {
    border-bottom: 1px solid var(--pane-edge);
}

.faq details:first-of-type {
    border-top: 1px solid var(--pane-edge);
}

.faq summary {
    cursor: pointer;
    padding: 1rem 0;
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold-pale);
}

.faq summary::marker {
    color: var(--gold);
}

.faq details > div {
    padding-bottom: 1rem;
}

.faq pre {
    overflow-x: auto;
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    background: var(--pane);
    border: 1px solid var(--pane-edge);
    border-radius: 6px;
}

/* ---- About the maker: the Chi Rho Code LLC mark, shown large */

.about {
    display: grid;
    gap: 1.75rem 3rem;
    align-items: center;
}

.about::before {
    grid-column: 1 / -1;
}

@media (min-width: 48rem) {
    .about {
        grid-template-columns: 240px minmax(0, 1fr);
    }
}

.about p {
    max-width: 40rem;
}

.maker-mark {
    width: min(240px, 60vw);
    margin: 0;
    justify-self: center;
}

.maker-mark img {
    width: 100%;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--gold-line), 0 0 48px -8px rgb(242 193 78 / 0.35);
}

.about h2 {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
}

/* Alpha and Omega, as in the mark's side panes. Decorative. */
.ornament {
    font-family: var(--serif);
    font-weight: 400;
    color: var(--teal);
}

/* ---- Footer */

.site-footer {
    padding-block: 0 2.5rem;
    background: var(--footer-bg);
    color: var(--text-muted);
    font-size: 0.93rem;
}

.site-footer::before {
    width: min(72rem, 100% - 2rem);
    margin: 0 auto 2rem;
}

.site-footer a {
    color: var(--gold-pale);
}

.site-footer .wrap {
    display: grid;
    gap: 0.75rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer p {
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
