@font-face {
    font-family: "iA Writer Quattro";
    src: url("fonts/iAWriterQuattroS-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "iA Writer Quattro";
    src: url("fonts/iAWriterQuattroS-Bold.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    color-scheme: light dark;
    --page-bg: #ffffff;
    --ink: #1c2735;
    --muted: #5d6a79;
}

@media (prefers-color-scheme: dark) {
    :root {
        --page-bg: #000000;
        --ink: #f3efe4;
        --muted: #ddd5c2;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    font-family:
        ui-serif,
        Georgia,
        Cambria,
        "Times New Roman",
        Times,
        serif;
    background: var(--page-bg);
    color: var(--ink);
}

main {
    width: min(760px, 92vw);
    padding: 52px 20px 44px;
    text-align: center;
}

.app-icon {
    width: min(42vw, 240px);
    max-width: 240px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 18px 24px rgba(15, 29, 45, 0.28));
}

h1 {
    margin: 22px 0 10px;
    font-size: clamp(2rem, 6vw, 3.25rem);
    letter-spacing: 0.02em;
    font-weight: 400;
}

.tagline {
    margin: 0;
    font-size: clamp(1rem, 2.8vw, 1.2rem);
    color: var(--muted);
    line-height: 1.55;
}

.content-column {
    margin: 34px auto 0;
    width: min(560px, 100%);
    text-align: left;
}

a {
    color: inherit;
    text-underline-offset: 0.14em;
}

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

a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 6px;
    border-radius: 2px;
}

.home-page {
    width: min(820px, 100%);
    padding: 64px 24px;
    font-family: "iA Writer Quattro", monospace;
    text-align: left;
}

.home-page h1 {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 4vw, 2rem);
    letter-spacing: normal;
    line-height: 1.3;
    text-wrap: balance;
}

.home-apps {
    margin-top: 40px;
}

.home-apps h2 {
    margin: 0 0 12px;
    font-size: 1.125rem;
    font-weight: 700;
}

.home-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    color: var(--muted);
    font-size: 1.1rem;
}

.home-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.home-links ul {
    margin: 0;
    padding-left: 1.5em;
    list-style: disc;
}

.site-footer {
    margin-top: 34px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

@media (max-width: 640px) {
    main {
        padding: 42px 20px 36px;
    }
}
