/* ECHO.11 — Field Notes.
   Layered on session.css, which already carries the palette, the header,
   the drawer and the footer. Only the reading column lives here. */

.essay {
    padding: 11rem 2.5rem 6rem;
}
.essay-inner {
    max-width: 42rem;      /* ~70 characters of Outfit at this size */
    margin: 0 auto;
}

.essay-eyebrow {
    font-family: var(--mono);
    font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase;
    color: var(--text-light); margin-bottom: 1.6rem;
    display: flex; flex-wrap: wrap; gap: 0.6rem 1rem;
}
.essay-eyebrow a { color: var(--text-light); text-decoration: none; border-bottom: 1px solid var(--border); }
.essay-eyebrow a:hover, .essay-eyebrow a:focus-visible { color: var(--text); border-color: var(--text); }

.essay h1 {
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    font-weight: 200; letter-spacing: -0.025em; line-height: 1.12;
    margin-bottom: 1.1rem;
}
.essay-standfirst {
    font-size: 1.15rem; font-weight: 300; line-height: 1.7;
    color: var(--text-secondary); margin-bottom: 2.2rem;
}
.essay-meta {
    font-family: var(--mono); font-size: 0.7rem;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-light);
    padding-bottom: 2.4rem; border-bottom: 1px solid var(--border);
}

.essay-figure { margin: 2.8rem 0 3rem; }
.essay-figure img {
    width: 100%; height: auto; display: block;
    filter: grayscale(100%);
}

/* The body itself — set once here so a pasted essay needs no classes */
.essay-body { font-size: 1.05rem; line-height: 1.95; font-weight: 300; }
.essay-body > * + * { margin-top: 1.5rem; }
.essay-body h2 {
    font-size: 1.45rem; font-weight: 400; letter-spacing: -0.01em;
    line-height: 1.3; margin-top: 3rem;
}
.essay-body h3 {
    font-size: 1.15rem; font-weight: 500; margin-top: 2.4rem;
}
.essay-body strong { font-weight: 500; }
.essay-body em { font-style: italic; }
.essay-body a {
    color: var(--text); text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: border-color .25s ease;
}
.essay-body a:hover, .essay-body a:focus-visible { border-color: var(--text); }
.essay-body ul, .essay-body ol { padding-left: 1.4rem; }
.essay-body li + li { margin-top: 0.6rem; }
.essay-body blockquote {
    border-left: 1px solid var(--border);
    padding-left: 1.4rem; color: var(--text-secondary);
}
.essay-body img { width: 100%; height: auto; filter: grayscale(100%); }

.essay-foot {
    margin-top: 4rem; padding-top: 2.2rem; border-top: 1px solid var(--border);
    font-family: var(--mono); font-size: 0.72rem;
    letter-spacing: 0.14em; text-transform: uppercase;
    display: flex; flex-wrap: wrap; gap: 1.4rem;
}
.essay-foot a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.essay-foot a:hover, .essay-foot a:focus-visible { border-color: var(--text); }

/* ── The index ── */
.notes-list { margin-top: 3.4rem; border-top: 1px solid var(--border); }
.note-item {
    display: grid; grid-template-columns: 1fr 9rem;
    gap: 1.5rem; align-items: start;
    padding: 2rem 0; border-bottom: 1px solid var(--border);
    text-decoration: none; color: var(--text);
    transition: opacity .25s ease;
}
.note-item:hover { opacity: 0.72; }
.note-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.note-date {
    font-family: var(--mono); font-size: 0.68rem;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-light); margin-bottom: 0.7rem; display: block;
}
.note-title { font-size: 1.3rem; font-weight: 400; line-height: 1.35; margin-bottom: 0.6rem; }
.note-sub { font-size: 0.95rem; font-weight: 300; line-height: 1.7; color: var(--text-secondary); }
.note-thumb img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; filter: grayscale(100%); display: block; }

@media (max-width: 768px) {
    .essay { padding: 8rem 1.5rem 4rem; }
    .note-item { grid-template-columns: 1fr; }
    .note-thumb { order: -1; }
    .note-thumb img { aspect-ratio: 16/9; }
}
