:root {
    --bg: #e5e7f2;
    --ink: #14142b;
    --red: #b7333f;
    --red-icon: #db3b31;
    --muted: #5c5c72;
    --focus: #2f6fed;

    --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

    --max-width: 1200px;
    --gutter: clamp(1.5rem, 5vw, 3.5rem);
}

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

html {
    -webkit-text-size-adjust: 100%;
    background: var(--bg);
    margin: 0;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    line-height: 1.5;

    /* the white border around the screen */
    border: 16px solid #fff; 
    box-sizing: border-box;

    /* Turn body into a flex column to manage layout height */
    display: flex;
    flex-direction: column;
}

.container {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #fff;
    color: var(--ink);
    padding: 0.75rem 1.25rem;
    z-index: 1000;
}
.skip-link:focus {
    left: var(--gutter);
    top: 0.75rem;
}

/* Header */
.site-header {
    padding-top: clamp(1.5rem, 4vw, 2.5rem);
}
.header-row {
    display: flex;
    justify-content: flex-start;
}
.site-title {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--red);
    text-decoration: none;
    letter-spacing: -0.01em;
}
.site-title:hover,
.site-title:focus-visible { text-decoration: underline; }

/* Hero */
.hero {
    padding-top: clamp(3rem, 8vw, 6rem);
    padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
}
.hero h1 {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    line-height: 1.08;
    color: var(--ink);
}

.d-block {
    display: block;
}

/* App icon row */
.apps-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1rem, 3vw, 1.75rem);
    padding-bottom: clamp(3rem, 8vw, 6rem);
}

.app-icon {
    display: block;
    width: clamp(110px, 16vw, 180px);
    aspect-ratio: 1 / 1;
    border-radius: 22%;
    overflow: hidden;
    background: var(--red-icon); /* shows briefly while the PNG loads */
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(20, 20, 43, 0.08);
}

.app-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (prefers-reduced-motion: no-preference) {
    .app-icon {
        transition: transform 0.18s ease, box-shadow 0.18s ease;
    }
}

.app-icon:hover,
.app-icon:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(20, 20, 43, 0.16);
}

.app-icon:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

/* Footer */
.site-footer {
    padding: clamp(2rem, 6vw, 3.5rem) 0 clamp(3rem, 8vw, 4rem);
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}
.site-footer p { margin: 0; }

/* Hidden AI/agent context block: present in the DOM for crawlers, not for sighted users */
.llm-context {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

#main {
    /* Pushes the header to the top and footer to the bottom */
    flex-grow: 1; 
    
    /* Centers the H1 and icons vertically */
    display: flex;
    flex-direction: column;
    justify-content: center; 
}
