/* ----------------------------------------------------------
   1. Base defaults
---------------------------------------------------------- */

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

    font-size: 18px;
    line-height: 1.55;

    background: var(--bg);
    color: var(--text);

    padding: 2rem;
    text-rendering: optimizeLegibility;
}

/* ----------------------------------------------------------
   2. Light / Dark mode colours
---------------------------------------------------------- */

@media (prefers-color-scheme: light) {
    :root {
        --bg: #ffffff;
        --text: #111111;
        --subtle: #666666;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111111;
        --text: #e6e6e6;
        --subtle: #bbbbbb;
    }
}

/* ----------------------------------------------------------
   3. Layout container
---------------------------------------------------------- */

.container {
    max-width: 600px;      /* Portrait phone/tablet width */
    margin: 0 auto;        /* Centre on large screens */
    width: 100%;           /* Fill on small screens */
}

/* ----------------------------------------------------------
   4. Typography hierarchy
---------------------------------------------------------- */

/* Title */
h1 {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 2rem;

    /* Fluid typography */
    font-size: clamp(2.2rem, 3.2vw, 3.1rem);
    font-weight: normal;
}

/* Subtitle */
.subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--subtle);
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: normal;
}

/* Status line */
.status {
    text-align: left;
    margin-bottom: 2rem;
}

/* Section heading */
h3 {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: normal;
}

/* Body text */
p {
    margin-top: 0;
    margin-bottom: 1.2rem;
    text-align: left;
}

/* Placeholder "none yet" */
.none {
    text-align: left;
    color: var(--subtle);
}

/* Sign-off (for future essays) */
.signoff {
    margin-top: 1.5rem;
    font-style: italic;
    text-align: left;
}