/* ============================================================
   Care — a sub-site of outlying.one
   Wet networks, dry systems, and what holds between them
============================================================ */

:root {
    --bg: #f4f1ec;
    --ink: #222;
    --muted: #666;
    --rule: #ccc;
    --link: #3a5f8f;
    --max: 850px;
    --measure: 80ch;
}

* { box-sizing: border-box; }

html {
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Lora', Georgia, serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* ------------------------------------------------------------
   Header
------------------------------------------------------------ */

header.site {
    margin-bottom: 2.5rem;
}

header.site a.home {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.55;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.25s ease;
}

header.site a.home:hover {
    opacity: 0.85;
}

header.site h1 {
    font-weight: normal;
    font-size: 2.6rem;
    letter-spacing: 0.04em;
    margin: 0 0 0.5rem;
}

header.site .tagline {
    font-size: 0.95rem;
    font-style: italic;
    opacity: 0.65;
    margin: 0;
}

/* ------------------------------------------------------------
   Body text
------------------------------------------------------------ */

main {
    max-width: var(--measure);
}

h2 {
    font-weight: normal;
    font-size: 1.7rem;
    letter-spacing: 0.03em;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

h3 {
    font-weight: normal;
    font-style: italic;
    font-size: 1rem;
    opacity: 0.7;
    margin-top: 2rem;
    margin-bottom: 0.6rem;
}

p {
    margin: 0 0 1.1rem;
}

a {
    color: var(--link);
    text-decoration: none;
    border-bottom: 1px solid rgba(58, 95, 143, 0.25);
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    border-bottom-color: rgba(58, 95, 143, 0.7);
}

blockquote {
    margin: 1.5rem 0;
    padding-left: 1.25rem;
    border-left: 2px solid var(--rule);
    font-style: italic;
    opacity: 0.8;
}

hr.divider {
    border: none;
    border-top: 1px solid var(--rule);
    width: 60%;
    margin: 2.5rem 0;
}

/* ------------------------------------------------------------
   Poem / verse
------------------------------------------------------------ */

.verse {
    white-space: pre-wrap;
    line-height: 1.7;
    margin: 2rem 0;
}

/* ------------------------------------------------------------
   Reading path (index)
------------------------------------------------------------ */

nav.path {
    margin: 3rem 0;
}

nav.path ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: piece;
}

nav.path li {
    counter-increment: piece;
    border-top: 1px solid var(--rule);
    padding: 1.1rem 0;
    margin: 0;
}

nav.path li:last-child {
    border-bottom: 1px solid var(--rule);
}

nav.path li::before {
    content: counter(piece, decimal-leading-zero);
    display: inline-block;
    width: 2.2rem;
    font-size: 0.8rem;
    opacity: 0.45;
    letter-spacing: 0.08em;
    vertical-align: top;
    padding-top: 0.2rem;
}

nav.path li a {
    display: inline;
    font-size: 1.05rem;
    border-bottom: none;
    color: var(--ink);
    transition: opacity 0.2s ease;
}

nav.path li a:hover {
    opacity: 0.65;
}

nav.path li .desc {
    display: block;
    margin-left: 2.2rem;
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.6;
    margin-top: 0.25rem;
}

/* ------------------------------------------------------------
   Footer / provenance
------------------------------------------------------------ */

footer.site {
    margin-top: 5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
}

footer.site .provenance {
    font-style: italic;
    margin-bottom: 1.25rem;
    max-width: var(--measure);
}

footer.site nav.piece-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

footer.site nav.piece-nav a {
    border-bottom: none;
    color: var(--muted);
    opacity: 0.75;
    transition: opacity 0.2s ease;
}

footer.site nav.piece-nav a:hover {
    opacity: 1;
    border-bottom: 1px solid var(--link);
}
/* ------------------------------------------------------------
   Footer — press line and divider
------------------------------------------------------------ */

footer.site .divider {
    width: 40%;
    margin: 1.75rem 0 1.25rem;
    background: var(--rule);
}

.press-line {
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
    opacity: 0.6;
}

.press-line a {
    color: inherit;
    text-decoration: none;
    border-bottom: none;
    transition: opacity 0.25s ease;
}

.press-line a:hover {
    opacity: 0.9;
}

/* ------------------------------------------------------------
   Terms list and inline blockquotes
------------------------------------------------------------ */

ul.terms {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

ul.terms li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: 0.95rem;
}

ul.terms li:last-child {
    border-bottom: none;
}

main blockquote {
    margin: 1.5rem 0;
    padding-left: 1.25rem;
    border-left: 2px solid var(--rule);
    font-style: italic;
    opacity: 0.85;
    font-size: 0.95rem;
    line-height: 1.6;
}

.note {
    font-size: 0.9rem;
    opacity: 0.75;
    margin-top: 1.5rem;
    line-height: 1.6;
}
/* ------------------------------------------------------------
   Small screens
------------------------------------------------------------ */

@media (max-width: 600px) {
    html { font-size: 17px; }
    .wrap { padding: 2rem 1.25rem 4rem; }
    header.site h1 { font-size: 2rem; }
}