/* progris riport · style.css
   Poor, simple, personal. */

/* Fonts: Martian Mono + Martian Grotesk (SIL OFL, see fonts/OFL-*.txt).
   Variable fonts: one file each, every weight and width. */
@font-face {
    font-family: "Martian Mono";
    src: url("/fonts/MartianMonoVF.woff2") format("woff2");
    font-weight: 100 800;
    font-stretch: 75% 112.5%;
    font-display: swap;
}

@font-face {
    font-family: "Martian Grotesk";
    src: url("/fonts/MartianGroteskVF.woff2") format("woff2");
    font-weight: 100 900;
    font-stretch: 75% 150%;
    font-display: swap;
}

/* Tokens: change values here, not in the rules below. */
:root {
    --mono: "Martian Mono", ui-monospace, monospace;
    --sans: "Martian Grotesk", system-ui, sans-serif;
    --text: #1a1a1a;
    --muted: #666;
    --link: #1a4fb3;
    --bg: #fdfdfb;
    --measure: 40rem;   /* max line length: comfortable for reading */
}

/* Page: one centered column */
body {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 3rem 1rem;
    color: var(--text);
    /* faint maze watermark: a seamless tile, see maze.svg */
    background: var(--bg) url("/maze.svg") repeat fixed;
    font-family: var(--sans);   /* long text: readable */
    line-height: 1.6;
}

/* The "typed" parts: title, nav, headings, dates, footer */
h1, h2, h3, nav, time, body > footer {
    font-family: var(--mono);
}

h1 {
    font-size: 2.25rem;
    font-weight: 800;   /* boldest Martian Mono weight */
}

h2 {
    font-size: 1.25rem;
    font-weight: 500;
}

time,
nav {
    font-size: 0.85rem;
}

a {
    color: var(--link);
}

/* Lists used as rows of links: no bullets, items side by side */
nav ul,
body > footer ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

/* Site header: title centered */
body > header {
    text-align: center;
}

/* Nav: stays pinned to the top while the page scrolls.
   Slightly see-through, the maze shows blurred underneath. */
body > nav {
    position: sticky;
    top: 0;
    z-index: 1;
    margin-bottom: 3rem;
    padding: 0.75rem 0;
    background: rgb(253 253 251 / 0.85);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

body > nav ul {
    margin: 0;
}

body > header h1 a {
    color: inherit;
    text-decoration: none;
}

/* Home intro: what the name means, set apart from the riports below */
.intro {
    color: var(--muted);
    margin-bottom: 3rem;
}

/* Riport: date in a quieter tone */
article time,
.riport-list time {
    color: var(--muted);
}

/* Site footer: links at the bottom, centered and quiet */
body > footer {
    margin-top: 4rem;
    font-size: 0.9rem;
}

/* Origin: riport #0 always closes the home, set apart by a rule */
.origin {
    border-top: 1px solid var(--muted);
    margin-top: 3rem;
}

.label {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Riport title on the home links to its own page: keep it looking like a title */
article h2 a {
    color: inherit;
    text-decoration: none;
}

article h2 a:hover {
    text-decoration: underline;
}

/* Riport footer: where it leads (a project, a study) */
article .related {
    font-family: var(--mono);
    font-size: 0.85rem;
}

/* Riports list: one row per riport, newest first */
.riport-list {
    list-style: none;
    padding: 0;
}

.riport-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1rem;
    align-items: baseline;
    padding: 0.5rem 0;
}

.riport-list li.origin {
    margin-top: 0;
    border-top: none;
}
