/* Neutrals from the logo (#0c0d0e / #fcfcfc); accents from the app icons. */
:root {
    --bg: #f4f4f5;
    --surface: #fcfcfc;
    --fg: #0c0d0e;
    --muted: #5a5d61;
    --line: #dfe0e2;
    --accent: #087a8e;
    --drug: #c51503;
    --pathwars: #087a8e;
    --movienight: #1c3572;
    --radius: 18px;
    --wrap: 1080px;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0c0d0e;
        --surface: #151719;
        --fg: #fcfcfc;
        --muted: #9a9da1;
        --line: #25282b;
        --accent: #37e3fa;
        --drug: #ef3b24;
        --pathwars: #37e3fa;
        --movienight: #a1c6e9;
    }
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 17px/1.65 var(--sans);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--accent);
}

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

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
}

.wrap {
    width: min(100% - 40px, var(--wrap));
    margin-inline: auto;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--line);
}

.site-nav {
    display: flex;
    gap: clamp(14px, 3vw, 28px);
    font-size: 0.95rem;
}

.site-nav a {
    text-decoration: none;
    color: var(--muted);
}

.site-nav a:hover {
    color: var(--fg);
}

/* Hero */

.hero {
    padding: clamp(72px, 14vw, 150px) 0 clamp(56px, 10vw, 110px);
}

.kicker {
    margin: 0 0 18px;
    color: var(--muted);
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.15rem;
}

.kicker s {
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
}

.hero h1 {
    font-size: clamp(2.8rem, 9vw, 6rem);
    letter-spacing: -0.02em;
}

.lead {
    max-width: 38ch;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid var(--fg);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.btn-primary {
    background: var(--fg);
    color: var(--bg);
}

.btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
}

.btn:not(.btn-primary):hover {
    border-color: var(--accent);
}

/* Sections */

.section {
    padding: clamp(56px, 9vw, 96px) 0;
    border-top: 1px solid var(--line);
}

.section-head {
    margin-bottom: 36px;
}

.section-head h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
}

.section-head p {
    margin: 8px 0 0;
    color: var(--muted);
}

/* Apps */

.apps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.app {
    --app: var(--accent);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.app--drug {
    --app: var(--drug);
}

.app--pathwars {
    --app: var(--pathwars);
}

.app--movienight {
    --app: var(--movienight);
}

.app-art {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

/* Blurred copy of the icon (set via --art) as a backdrop that matches its colors. */
.app-art::before {
    content: "";
    position: absolute;
    inset: -25%;
    z-index: -1;
    background: var(--art) center / cover;
    filter: blur(48px) saturate(1.3);
    opacity: 0.55;
    transition: opacity 0.4s;
}

.app-art img {
    width: 104px;
    height: 104px;
    border-radius: 24px;
    box-shadow: 0 18px 40px -12px rgb(0 0 0 / 0.55);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.app:hover .app-art::before {
    opacity: 0.8;
}

.app:hover .app-art img {
    transform: scale(1.06);
}

.app-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 22px 22px;
}

.app-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.app h3 {
    font-size: 1.35rem;
}

.app p {
    margin: 6px 0 20px;
    color: var(--muted);
    font-size: 0.95rem;
}

.tag {
    flex-shrink: 0;
    padding: 3px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--app) 14%, transparent);
    color: var(--app);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.app-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-top: auto;
    font-size: 0.875rem;
}

.app-links a {
    color: var(--muted);
    text-decoration: none;
}

.app-links a:hover {
    color: var(--fg);
}

.app-links .store {
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--fg);
    color: var(--bg);
    font-weight: 600;
}

.app-links .store:hover {
    color: var(--bg);
    opacity: 0.85;
}

/* About */

.about {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 860px) {
    .about {
        grid-template-columns: 1.1fr 1fr;
        gap: 72px;
    }
}

.about .intro p {
    margin: 0 0 16px;
    font-size: 1.1rem;
}

.values {
    display: grid;
    gap: 24px;
    margin: 0;
}

.values div {
    padding-left: 18px;
    border-left: 2px solid var(--accent);
}

.values dt {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.2rem;
}

.values dd {
    margin: 4px 0 0;
    color: var(--muted);
}

/* Footer */

.site-footer {
    padding: 40px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
}

.site-footer p {
    margin: 0;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

/* Legal documents */

.legal {
    max-width: 760px;
    padding: 48px 0 80px;
    font-size: 1rem;
}

.legal .back {
    margin: 0 0 24px;
    font-size: 0.9rem;
}

.legal h1 {
    margin-bottom: 32px;
    font-size: clamp(2rem, 5vw, 2.6rem);
}

.legal h2 {
    margin: 36px 0 10px;
    font-size: 1.35rem;
}

.legal p,
.legal ul {
    margin: 0 0 14px;
}

.legal li {
    margin-bottom: 4px;
}

.legal hr {
    margin: 40px 0 20px;
    border: 0;
    border-top: 1px solid var(--line);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
