/* PlanaTracker: colours from the app's halo logo and its Arona (light) and
   Plana (dark) themes. */
:root {
    --purple: #6f4fc4;
    --purple-dark: #5a3da8;
    --pink: #d9539f;
    --night: #221d3a;

    --bg: #f7f5fc;
    --surface: #ffffff;
    --text: #1f1b2e;
    --muted: #625c74;
    --line: #ddd6ee;
    --accent: var(--purple);
    --accent-hover: var(--purple-dark);
    --soft: #efeaf9;
    --note: #fdf3f8;
    --on-accent: #ffffff;
    --shadow: 0 0.2em 1em rgba(34, 29, 58, 0.18);

    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans JP", sans-serif;
    --width: 64rem;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #17142a;
        --surface: #221d3a;
        --text: #eeeaf8;
        --muted: #aaa3c2;
        --line: #3f3852;
        --accent: #a68cf0;
        --accent-hover: #c2b2f6;
        --soft: #2e2840;
        --note: #33222d;
        --on-accent: #17142a;
        --shadow: 0 0.6em 1.6em rgba(0, 0, 0, 0.4);
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 1.6em 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; }
h2 { font-size: 1.6rem; font-weight: 750; }

/* Header: the night sky with a halo-coloured edge. */
.site-header {
    position: sticky; top: 0; z-index: 10; background: var(--night); color: #fff;
    border-bottom: 0.25rem solid; border-image: linear-gradient(90deg, #8b6bd6, #ed79bd) 1;
}
.site-header-inner {
    max-width: var(--width); margin: 0 auto; padding: 0.7rem 1rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; font-size: 1.3rem; font-weight: 500; }
.brand:hover { color: #fff; }
.brand b { font-weight: 800; color: #f3add5; }
.brand img { width: 2.5rem; height: 2.5rem; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem 1.2rem; }
.site-nav a { color: #e6e1f4; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-nav a:hover { color: #fff; }

/* Buttons */
a.btn, a.btn:visited {
    display: inline-block; padding: 0.7em 1.3em; border-radius: 0.4em;
    background: var(--accent); color: var(--on-accent); border: 2px solid var(--accent);
    font-weight: 700; text-decoration: none; text-align: center; line-height: 1.2;
}
a.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
a.btn-ghost, a.btn-ghost:visited { background: transparent; color: var(--accent); }
a.btn-ghost:hover { background: var(--soft); border-color: var(--accent); color: var(--accent); }
.site-nav a.btn-small, .site-nav a.btn-small:visited { padding: 0.4em 0.9em; font-size: 0.85rem; background: #a68cf0; border-color: #a68cf0; color: var(--night); }
.site-nav a.btn-small:hover { background: #c2b2f6; border-color: #c2b2f6; color: var(--night); }
.actions { display: flex; flex-wrap: wrap; gap: 0.8em; margin: 1.4em 0; }

/* Main column */
.main-content { flex: 1; width: 100%; max-width: var(--width); margin: 0 auto; padding: 0 1rem 4rem; }
.prose { max-width: 46rem; margin: 0 auto; padding-top: 1rem; }

/* Product page */
.hero { display: flex; align-items: center; gap: 1.5em; max-width: 46rem; margin: 2.5rem auto 0; }
.hero img { width: 7em; height: 7em; flex: none; }
.hero h1 { margin: 0; }
.tagline { margin: 0.3em 0 0; font-size: 1.2em; color: var(--muted); }
.shot { display: block; width: 100%; height: auto; border-radius: 0.5em; box-shadow: var(--shadow); }
.caption { font-size: 0.9em; color: var(--muted); text-align: center; margin-top: 0.5em; }
.features { padding-left: 1.2em; }
.features li { margin: 0.4em 0; }
.note { border-left: 4px solid var(--pink); background: var(--note); padding: 0.6em 1em; margin: 1em 0; }
dt { font-weight: bold; margin-top: 1em; }
dd { margin: 0.3em 0 0; }

/* Footer */
.site-footer { background: var(--night); color: #aaa3c2; margin-top: 2rem; }
.site-footer-inner { max-width: var(--width); margin: 0 auto; padding: 1.5rem 1rem 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-footer p { margin: 0; font-size: 0.9rem; }
.site-footer p a { color: #e6e1f4; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.footer-links a { color: #e6e1f4; text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: #f3add5; }

@media (max-width: 44em) {
    .site-header { position: static; }
    .site-header-inner, .site-nav { justify-content: center; }
}
@media (max-width: 40em) {
    .hero { flex-direction: column; align-items: flex-start; gap: 0.6em; margin-top: 1.5rem; }
    .hero img { width: 5em; height: 5em; }
    .actions a.btn { flex: 1 1 100%; }
}
