:root {
    --font-body: 'Source Serif 4', Georgia, serif;
    --font-head: 'Playfair Display', serif;
    --font-ui: 'Inter', system-ui, sans-serif;

    --text-light: #1b1b1b;
    --text-dark: #ddd;
    --text-accent: #d07030;

    --line-height: 1.65;
    --measure: 72ch;
}

/* 1. Base rhythm */
body {
    font-family: var(--font-body), serif;
    font-size: 1.1rem;
    line-height: var(--line-height);
    color: var(--text-light);
    background: var(--bg-light);
    margin: 0;
}

html.dark body {
    color: var(--text-dark);
}

/* 2. Headings & rules */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head), serif;
    line-height: 1.25;
    margin: 2rem 0 1rem;
}

h1, .h1 { font-size: 2.2rem; }
h2, .h2 { font-size: 1.6rem; }
h3, .h3 { font-size: 1.3rem; }

hr {
    color: rgba(0, 0, 0, 0.1);
    width: 80%
}

html.dark hr {
    color: rgba(255, 255, 255, 0.2);
}

/* 3. Paragraphs & lists */
p, ul, ol {
    margin: 1rem 0;
}

ol {
    padding-left: 1.5rem;
}

ul {
    list-style: none;
    padding-left: 0;
}

/* 4. Links */
a {
    color: var(--text-accent);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: color .2s, text-decoration-color .2s;
}

a:hover, a:focus {
    text-decoration-color: var(--text-accent);
}

a .icon {
    opacity: .6;
    transition:stroke .25s, opacity .25s, transform .25s;
}

a:hover .icon {
    stroke:var(--text-accent);
    opacity:1;
    transform:rotate(-12deg);
}

/* 5. Blockquotes */
blockquote {
    color: var(--text-accent);
    font-family: var(--font-ui), serif;
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 1.5rem 0;
    padding: 1rem;
    border-left: 3px solid var(--text-accent);
    font-style: italic;
    background: rgba(0,0,0,0.03);
}

html.dark blockquote {
    background: rgba(255,255,255,0.05);
}

/* 6. Figures & captions */
figure { margin: 2rem 0; text-align: center; }
figcaption {
    font-family: var(--font-ui), sans-serif;
    font-size: .9rem;
    opacity: .7;
}

/* 7. Small & meta text */
small, .small, time {
    font-family: var(--font-ui), sans-serif;
    font-size: .85rem;
    opacity: .7;
}

/* 8. Code & pre */
code {
    font-family: 'Menlo', 'Consolas', monospace;
    font-size: .95em;
    background: rgba(0,0,0,0.05);
    padding: 0 .25em;
    border-radius: 3px;
}

pre code {
    display: block;
    padding: 1rem;
    overflow-x: auto;
}

/* 9. Miscellaneous */

article.gazette h2 {
    color: var(--text-accent);
}

article.gazette h2 small {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-left: 0.35rem;
    text-transform: uppercase;
}

html.dark article.gazette h2 small {
    color: var(--text-dark);
}

section.list ul {
    list-style: disc;
    margin-left: 2.5rem;
    margin-top: 0;
}

section.list ul li::marker {
    color: var(--text-accent)
}

/* 10. utility classes */
.accent {
    color: var(--text-accent);
}

.bt-thin {
    border-top:1px solid rgba(0,0,0,0.1);
}

.color-inherit {
    color: inherit;
}

.d-block {
    display: block;
}

.d-inline {
    display: inline;
}

.d-none {
    display: none;
}

.decoration-none {
    text-decoration: none;
}

.flex-center {
    display: flex;
    align-items: center;
}

.flex-grow-1 {
    flex-grow: 1;
}

.flex-inline-center {
    display: inline-flex;
    align-items: center;
}

.font-head {
    font-family: var(--font-head), serif;
}

.font-ui {
    font-family: var(--font-ui), sans-serif;
}

.fw-600 {
    font-weight: 600;
}

.fw-bold {
    font-weight: bold;
}

.fw-normal {
    font-weight: normal;
}

.g-half {
    gap: 0.5rem;
}

.g-quarter {
    gap: 0.25rem;
}

.h1-caption {
    font-family:var(--font-ui), sans-serif;
    font-size:0.9rem;
    opacity:0.8;
    font-style: italic;
    margin-bottom: 2rem;
}

.italic {
    font-style: italic;
}

.mb-half {
    margin-bottom: 0.5rem;
}

.mb-one {
    margin-bottom: 1rem;
}

.mb-two {
    margin-bottom: 2rem;
}

.ms-half {
    margin-left: 0.5rem;
}

.ms-one-quarter {
    margin-left: 1.25rem;
}

.ms-quarter {
    margin-left: 0.25rem;
}

.mt-one {
    margin-top: 1rem;
}

.mt-quarter {
    margin-top: 0.25rem;
}

.mt-two-half {
    margin-top: 2.5rem;
}

.mt-zero {
    margin-top: 0;
}

.m-zero {
    margin: 0;
}

.o-6 {
    opacity: 0.6;
}

.o-full {
    opacity: 1.0;
}

.text-center {
    text-align: center;
}

.text-end {
    text-align: end;
}

.text-start {
    text-align: start;
}

.w-100 {
    width: 100%;
}