/*
 * Public site: the frame of a page (rules.md §1–§3). One frame, the "grid" of D-020: a 1120 wrapper,
 * sections one under another, a reading column of 680 for text pages.
 *
 * .app-site is the size container of the whole page. What the site does at a narrow screen it does
 * by the width of this block, not of the window (a media query reads the window): so the sample page
 * and the kit pages show a phone as a miniature, and a real phone triggers the same rules. The single
 * break point is 719 (the --bp-unfolded step, 720, minus one), written as a literal because a query
 * cannot read a token.
 */

.app-site {
    container-type: inline-size;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: var(--fs-body);
    line-height: var(--lh-text);
}

/*
 * The page is a column as tall as the window at least: the content grows, the strip of the channels and the footer stay at the
 * bottom of a short page (owner, 13.10.2026: the footer must not float up on Books). The parts keep their own height.
 */
/* Only the page itself (a child of body): the frames of the sample page are blocks inside another page and keep their own height. */
body > .app-site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

body > .app-site > * {
    flex: none;
}

body > .app-site > .app-site__main {
    flex: 1 0 auto;
}

.app-site__wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.app-site__main {
    padding-bottom: var(--space-3);
}

.app-site__sec {
    padding: var(--space-6) 0;
}

/* The label of a section: the only caption set in capitals (rules.md §1.2). It is the h2 of its section, so it takes the text face and weight back from the heading defaults. */
.app-site__label {
    display: block;
    font-family: var(--font-ui);
    font-weight: var(--fw-regular);
    margin-bottom: var(--space-3);
    color: var(--text-3);
    font-size: var(--fs-site-label);
    letter-spacing: 0.07em;
    line-height: var(--lh-text);
    text-transform: uppercase;
}

.app-site__more {
    display: inline-block;
    margin-top: var(--space-3);
    font-size: var(--fs-site-read);
}

/* The reading column: text pages (a post, About, a product) are 680 wide, centred. */
.app-site__text {
    max-width: 680px;
    margin: 0 auto;
    padding-top: calc(var(--space-6) + var(--space-1));
}

/* A block that sits under a text page in the same column. */
.app-site__narrow {
    max-width: 680px;
    margin: 0 auto;
}

@container (max-width: 719px) {
    .app-site__text {
        padding-top: var(--space-5);
    }
}
