/* Sherlock theme: ledger look, the dark olive panel, notebook, stamps */
/* titles in the blackletter of the wordmark; everything read or pressed in Lora */
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; color: var(--accent); }
h1 { font-size: var(--text-4xl); line-height: 1.05; }
@media (max-width: 600px) { h1 { font-size: var(--text-3xl); } }
h2 { font-size: var(--text-xl); line-height: 1.15; }
h3 { font-family: var(--font-body); font-weight: 700; }
/* the olive ledger head on tables (01-base) */
th:first-child { border-radius: var(--radius-tag) 0 0 0; } th:last-child { border-radius: 0 var(--radius-tag) 0 0; }
td { border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent); }
tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--peach) 18%, transparent); }
tr.current td { background: color-mix(in srgb, var(--peach) 70%, transparent) !important; }
.card { background: var(--sheet); border-radius: var(--radius-panel); }
.step.ok .marker { color: var(--on-accent); }
.toast { background: var(--accent); color: var(--on-accent); border-color: var(--brass); }

/* the dark olive panel: its own paper and ink */
.hero { --fg: var(--on-dark); --muted: var(--on-dark-muted); --bg: var(--dark-well); --line: var(--dark-line); --accent: var(--dark-accent); --accent-2: var(--dark-accent-2); --on-accent: var(--ink); --good: var(--on-dark-good); --bad: var(--on-dark-bad); --warn: var(--on-dark-warn); --field-edge: var(--dark-line); --panel-2: var(--dark-well); --panel: var(--dark-well); --sheet: var(--dark-well); background: var(--dark-panel); border-top-color: var(--brass); color: var(--fg); }
.hero .eyebrow { color: var(--muted); }
.hero .goal .v { color: var(--fg); }
.hero .bar { background: var(--dark-well-2); border-color: var(--dark-line); color: var(--on-dark); }
.hero .fill { background: linear-gradient(90deg, var(--brass-deep), var(--dark-accent) 70%, var(--brass-light)); }
.hero .key { background: var(--dark-accent); }

/* footprints walking along the filled bar */
.bar .fill::before { content: ""; position: absolute; inset: 3px 6px; opacity: .45; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='16' viewBox='0 0 28 16'%3E%3Cg fill='%232a2214'%3E%3Cellipse cx='5' cy='5' rx='3' ry='2'/%3E%3Cellipse cx='19' cy='11' rx='3' ry='2'/%3E%3C/g%3E%3C/svg%3E") repeat-x left center / 28px 16px; }

/* the magnifier beside the progress pin: a drawn icon, coloured by the token */
.magnifier-pin::before { content: ""; position: absolute; right: -22px; top: 1px; width: 16px; height: 16px; background: var(--accent); transform: rotate(10deg); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='6.5'/%3E%3Cpath d='m15 15 6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='6.5'/%3E%3Cpath d='m15 15 6 6'/%3E%3C/svg%3E") center / contain no-repeat; animation: peek 2.6s ease-in-out 2; }
@keyframes peek { 0%, 100% { transform: translateX(0) rotate(10deg); } 50% { transform: translateX(4px) rotate(-8deg); } }

/* Sherlock's notebook */
.notebook { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: var(--space-md); align-items: center; background: repeating-linear-gradient(180deg, var(--sheet) 0 27px, color-mix(in srgb, var(--line) 55%, transparent) 27px 28px); }
.notebook .who { font: 600 var(--text-sm) var(--font-body); color: var(--rust); }
.notebook .quote { font: italic 400 var(--text-md)/1.55 var(--font-body); transition: opacity .5s ease; }
.js .notebook .quote.fade { opacity: 0; }
.notebook svg { width: 54px; height: 54px; }

/* rubber stamps: in their own place, never over the text */
.stamped { position: relative; }
.stamp { display: inline-block; justify-self: end; align-self: start; transform: rotate(-6deg); pointer-events: none; white-space: nowrap; font: 700 var(--text-sm) var(--font-body); color: var(--bad); border: 3px double var(--bad); border-radius: var(--radius-control); padding: var(--space-2xs) var(--space-sm); opacity: .9; mix-blend-mode: var(--stamp-blend); animation: stampIn .45s var(--ease-out); }
.stamp.green { color: var(--good); border-color: var(--good); }
.card > .stamp { order: 99; }
@keyframes stampIn { 0% { transform: rotate(-6deg) scale(1.6); opacity: 0; } 100% { transform: rotate(-6deg) scale(1); opacity: .9; } }
.day { cursor: zoom-in; }
