/* Blog, problem of the week and poems. Builds on /style.css and /notes/note.css. */

.lang { font-size: 0.7rem; letter-spacing: 0.08em; border: 1px solid var(--border); border-radius: 5px; padding: 1px 5px; margin-right: 6px; }
.note .claim p:last-child { margin-bottom: 0; }
.note blockquote { border-left: 3px solid var(--border); padding-left: 16px; color: var(--muted); margin: 0 0 14px; }
.note img { max-width: 100%; height: auto; border-radius: 10px; }
.note pre { overflow-x: auto; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; margin-bottom: 14px; font-size: 0.9rem; }
.note a { color: var(--accent); }

.reveal { margin: 18px 0; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.reveal summary { cursor: pointer; padding: 11px 16px; list-style: none; color: var(--accent); }
.reveal summary::-webkit-details-marker { display: none; }
.reveal summary::after { content: " +"; color: var(--muted); }
.reveal[open] summary::after { content: " −"; }
.reveal > div { padding: 0 16px 6px; }

.poem-toc { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 8px 0 12px; }
.poem-toc a { text-decoration: none; font-size: 0.9rem; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; }
.poem-toc a:hover { color: var(--accent); border-color: var(--accent); }
.poem { max-width: 620px; margin: 0 auto; padding: 56px 0 8px; scroll-margin-top: 12px; }
.poem h2 { font-family: var(--display); font-weight: normal; font-size: 1.9rem; letter-spacing: 0; text-transform: none; color: var(--text); margin-bottom: 22px; display: block; }
.poem h2::after { content: none; }
.stanza { margin-bottom: 1.25em; line-height: 1.7; }
.line { display: block; padding-left: 1.6em; text-indent: -1.6em; }
.sc { font-variant: small-caps; }

.poem h1 { font-family: var(--display); font-weight: normal; font-size: clamp(2rem, 6vw, 2.6rem); line-height: 1.12; margin-bottom: 26px; }
.poem .crumb { margin-bottom: 12px; }
.song { margin: 0 0 30px; padding: 14px 16px 12px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.song audio { display: block; width: 100%; height: 40px; }
.song figcaption { margin-top: 8px; font-size: 0.82rem; color: var(--muted); }
.poem-nav { max-width: 620px; margin: 30px auto 0; display: flex; justify-content: space-between; gap: 16px; font-size: 0.92rem; }
.poem-nav a { text-decoration: none; color: var(--muted); }
.poem-nav a:hover { color: var(--accent); }
.poem-list a::after { content: none; }
.poem-list span { color: var(--accent); }

.song figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.download { flex: none; font-size: 0.85rem; text-decoration: none; color: var(--accent); border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px; }
.download:hover { border-color: var(--accent); }
.download::before { content: "↓ "; }
.synced .line { border-radius: 6px; transition: background-color 0.25s, color 0.25s; margin-left: -6px; padding-right: 6px; padding-left: calc(1.6em + 6px); }
.synced .line.seekable { cursor: pointer; }
.synced .line.seekable:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.synced .line.sung { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--text); }
.synced .stanza { color: color-mix(in srgb, var(--text) 82%, var(--bg)); }

/* Problem figures (see content/problems/figures/). Builds on the .fig styles in /notes/note.css. */
.inc { fill: none; stroke: var(--blue); stroke-width: 1.8; }
.exc { fill: color-mix(in srgb, var(--green) 6%, transparent); stroke: var(--green); stroke-width: 1.4; stroke-dasharray: 6 4; }
.diam { stroke: var(--blue); stroke-width: 1.2; stroke-dasharray: 4 4; }
.cevian { stroke: var(--rose); stroke-width: 1.6; }
.equal { stroke: var(--gold); stroke-width: 5; stroke-linecap: round; opacity: 0.85; }
.mark { fill: var(--text); stroke: var(--card); stroke-width: 2; }
.sw.inc { border-color: var(--blue); }
.sw.equal { border-color: var(--gold); border-top-width: 4px; }
/* zoomed-out figures keep strokes the same width on screen */
#figure .inc, #figure .exc, #figure .diam, #figure .cevian, #figure .equal, #figure .tri-edge, #figure .aux, #figure .tangent { vector-effect: non-scaling-stroke; }

/* Shared by the figures built with /problem/fig.js */
.circle { fill: none; stroke: var(--text); stroke-width: 1.5; }
.chord { stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
.chord-thin { stroke: var(--blue); stroke-width: 1.5; }
.perp { stroke: var(--green); stroke-width: 1.5; }
.goal { fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-dasharray: 9 5; }
.equi { fill: color-mix(in srgb, var(--blue) 8%, transparent); stroke: var(--blue); stroke-width: 1.4; stroke-linejoin: round; }
.napo { fill: color-mix(in srgb, var(--gold) 14%, transparent); stroke: var(--gold); stroke-width: 2.4; stroke-linejoin: round; }
.legend .sw + .sw { margin-left: -4px; }
#figure line, #figure polygon, #figure circle:not(.hit):not(.dot) { vector-effect: non-scaling-stroke; }
.nobr { white-space: nowrap; }
