/* === The Chronicle — news as entries in a ledger, no frames ===
   Shared by the home page and news.html. Colours come from the page's own tokens. */

.chr { max-width: 1120px; margin: 0 auto; }
.chr:empty { display: none; }

/* --- date stamp: a blackletter day over the month and the year in roman --- */
.chr-stamp {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    line-height: 1;
}
.chr-day {
    font-family: 'Mortmain Sig', 'Cormorant Garamond', serif;
    font-feature-settings: 'lnum' 1;
    font-size: clamp(64px, 7.4vw, 104px);
    line-height: 0.74;
    color: var(--accent);
    text-shadow: 0 0 28px rgba(201, 169, 97, 0.18);
}
.chr-mo {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-bottom: 4px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--text-secondary);
}
.chr-mo span + span { color: var(--text-tertiary); letter-spacing: 0.26em; }

.chr-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(201, 169, 97, 0.85);
}
.chr-tag::before {
    content: '';
    width: 22px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent));
}

/* --- the lead entry --- */
.chr-lead {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
    gap: clamp(32px, 4.6vw, 72px);
    align-items: center;
    margin-bottom: clamp(56px, 7vw, 96px);
}
.chr-lead-body { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.chr-lead-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    -webkit-mask-image: radial-gradient(125% 115% at 50% 50%, #000 58%, transparent 100%);
    mask-image: radial-gradient(125% 115% at 50% 50%, #000 58%, transparent 100%);
}
.chr-lead-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.92) brightness(0.98);
    transform: scale(1.015);
    transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.9s ease;
}
.chr-lead:hover .chr-lead-media img { transform: scale(1.055); filter: saturate(1.02) brightness(1.1); }

.chr-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(32px, 3.7vw, 50px);
    line-height: 1.06;
    letter-spacing: 0.005em;
    color: var(--text-primary);
    text-wrap: balance;
    margin: 0;
}
.chr-title a {
    color: inherit;
    text-decoration: none;
    background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat;
    padding-bottom: 4px;
    transition: background-size 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), color 0.4s ease;
}
.chr-lead:hover .chr-title a, .chr-title a:focus-visible { background-size: 100% 1px; color: #efe4c8; }
.chr-ex {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.06rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 46ch;
    margin: 0;
}

/* "Read the entry" — a quill line that draws out on hover */
.chr-more {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    align-self: flex-start;
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    padding: 6px 0;
}
.chr-more i {
    position: relative;
    display: block;
    width: 34px;
    height: 1px;
    background: currentColor;
    transition: width 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.chr-more i::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 7px;
    height: 7px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
}
.chr-more:hover i, .chr-lead:hover .chr-more i { width: 64px; }
.chr-more:hover { color: var(--accent-hover); }

/* --- the rest: ledger rows --- */
.chr-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border-subtle);
}
.chr-list li { margin: 0; padding: 0; }
.chr-row {
    position: relative;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 200px;
    gap: clamp(20px, 3vw, 44px);
    align-items: center;
    padding: 30px 6px;
    border-bottom: 1px solid var(--border-subtle);
    color: inherit;
    text-decoration: none;
    transition: background-color 0.5s ease;
}
.chr-row::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), rgba(201, 169, 97, 0.35) 60%, transparent);
    transition: width 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.chr-row:hover { background-color: rgba(201, 169, 97, 0.025); }
.chr-row:hover::after, .chr-row:focus-visible::after { width: 100%; }
.chr-row .chr-day { font-size: clamp(46px, 4.6vw, 64px); }
.chr-row .chr-mo { font-size: 11px; gap: 6px; }
.chr-row-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.chr-row-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(22px, 2.2vw, 28px);
    line-height: 1.15;
    color: var(--text-primary);
    transition: color 0.4s ease;
}
.chr-row:hover .chr-row-title { color: #efe4c8; }
.chr-row-ex {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.chr-row-thumb {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    -webkit-mask-image: radial-gradient(120% 120% at 50% 50%, #000 55%, transparent 100%);
    mask-image: radial-gradient(120% 120% at 50% 50%, #000 55%, transparent 100%);
}
.chr-row-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0.7) sepia(0.35) brightness(0.72);
    transform: scale(1.02);
    transition: filter 0.8s ease, transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.chr-row:hover .chr-row-thumb img { filter: grayscale(0) sepia(0.08) brightness(0.98); transform: scale(1.07); }

/* entrance: entries slide in like ink drying, one after another */
.chr.chr-ink .chr-lead, .chr.chr-ink .chr-list li {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.chr.chr-ink.chr-in .chr-lead, .chr.chr-ink.chr-in .chr-list li { opacity: 1; transform: none; }
.chr.chr-ink.chr-in .chr-list li:nth-child(2) { transition-delay: 0.12s; }
.chr.chr-ink.chr-in .chr-list li:nth-child(3) { transition-delay: 0.24s; }
.chr.chr-ink.chr-in .chr-list li:nth-child(4) { transition-delay: 0.36s; }
.chr.chr-ink.chr-in .chr-list li:nth-child(n+5) { transition-delay: 0.42s; }

@media (max-width: 900px) {
    .chr-lead { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .chr-lead-media { order: -1; }
    .chr-row { grid-template-columns: 96px minmax(0, 1fr); padding: 24px 2px; }
    .chr-row-thumb { display: none; }
}
@media (max-width: 520px) {
    .chr-row { grid-template-columns: 74px minmax(0, 1fr); gap: 16px; }
    .chr-row .chr-stamp { flex-direction: column; align-items: flex-start; gap: 8px; }
    .chr-row .chr-day { font-size: 46px; }
    .chr-row .chr-mo { font-size: 10px; letter-spacing: 0.22em; }
    .chr-stamp { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .chr.chr-ink .chr-lead, .chr.chr-ink .chr-list li { opacity: 1; transform: none; transition: none; }
    .chr-lead-media img, .chr-row-thumb img { transition: none; }
}
