:root {
    --paper: #efeae0;
    --paper-light: #f7f3ea;
    --paper-dark: #e4ddd1;
    --ink: #221e1a;
    --muted: #6d655c;
    --copper: #c45c26;
    --line: rgba(34, 30, 26, .16);
    --soft: #f7f3ea;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: var(--base, 18px); }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--serif), Georgia, serif;
    font-size: 1rem;
    line-height: var(--leading, 1.55);
}
body.desk { background: #e7e2d6; }
a { color: inherit; }
.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--ink);
    color: var(--paper);
    padding: .4rem .7rem;
}
.skip:focus { top: .5rem; z-index: 7; }
.top, main, .foot { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.top {
    position: sticky;
    top: 0;
    z-index: 6;
    width: 100%;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.3rem max(1rem, calc((100% - 1120px) / 2)) 1rem;
    border-bottom: 1px solid var(--ink);
    margin-bottom: 2rem;
    background: var(--paper);
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.top.lifted {
    background: rgba(214, 200, 178, .62);
    border-bottom-color: rgba(34, 30, 26, .28);
    box-shadow: 0 10px 28px rgba(34, 30, 26, .06);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
body.desk .top { background: #e7e2d6; }
.find { position: relative; flex: 1 1 14rem; max-width: 18rem; margin-left: 1.4rem; }
.find input {
    width: 100%;
    margin: 0;
    padding: .42rem .9rem;
    border-radius: 999px;
    background: rgba(247, 243, 234, .72);
    border: 1px solid rgba(34, 30, 26, .22);
    font-family: var(--sans), "Segoe UI", sans-serif;
    font-size: .9rem;
}
.find input:focus { outline: 2px solid var(--copper); outline-offset: 2px; }
.find-list {
    position: absolute;
    z-index: 8;
    top: calc(100% + .4rem);
    left: 0;
    width: min(26rem, 78vw);
    margin: 0;
    padding: .3rem;
    background: rgba(247, 243, 234, .88);
    border: 1px solid rgba(34, 30, 26, .14);
    box-shadow: 0 16px 36px rgba(34, 30, 26, .12);
    backdrop-filter: blur(16px) saturate(1.15);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
}
.find-list a, .find-empty {
    display: block;
    padding: .55rem .7rem;
    text-decoration: none;
}
.find-list a + a, .find-list a + .find-empty { border-top: 1px solid var(--line); }
.find-list a:hover, .find-list a:focus { background: rgba(34, 30, 26, .05); }
.find-list strong {
    display: block;
    font-family: var(--serif), Georgia, serif;
    font-weight: 560;
    font-size: 1.02rem;
    line-height: 1.2;
}
.find-list span {
    display: block;
    margin-top: .15rem;
    color: var(--muted);
    font-family: var(--sans), "Segoe UI", sans-serif;
    font-size: .75rem;
}
.find-list .more {
    color: var(--copper);
    font-family: var(--sans), "Segoe UI", sans-serif;
    font-size: .84rem;
}
.find-empty { margin: 0; color: var(--muted); font-family: var(--sans), "Segoe UI", sans-serif; font-size: .88rem; }
.panel .find { flex: none; width: min(28rem, 100%); max-width: none; margin: .2rem 0 1.4rem; }
.panel .find-list { width: min(36rem, 88vw); }
.hits { max-width: 46rem; }
.hit { padding: 1rem 0; border-bottom: 1px solid var(--ink); }
.hit h2 { font-size: calc(1.35rem * var(--reader, 1)); margin: .15rem 0; }
.hit h2 a { text-decoration: none; }
.hit h2 a:hover { color: var(--copper); }
.hit p { margin: .2rem 0 0; color: var(--muted); font-size: calc(1rem * var(--reader, 1)); }
.hit .when { font-size: calc(.95rem * var(--reader, 1)); }
body.desk .top.lifted { background: rgba(198, 190, 174, .62); }
@media (prefers-reduced-transparency: reduce) {
    .top.lifted { background: #e4ddd1; backdrop-filter: none; }
    body.desk .top.lifted { background: #d9d2c4; }
}
.mark {
    font-size: 2rem;
    line-height: 1;
    text-decoration: none;
}
.mark img {
    height: 0.78em;
    width: auto;
    vertical-align: baseline;
}
.today, .kicker, .fine, .when, button, .ghost, label, th, .facts, .signed, .banner, input, select, textarea, code {
    font-family: var(--sans), "Segoe UI", sans-serif;
}
.today { position: relative; margin: 0; color: var(--muted); }
.today summary {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    cursor: pointer;
    list-style: none;
}
.today summary::-webkit-details-marker { display: none; }
.today summary::after {
    content: "";
    width: .38rem;
    height: .38rem;
    margin-top: -.18rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
}
.today summary:hover, .today[open] summary { color: var(--ink); }
.today summary:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.today-menu {
    position: absolute;
    z-index: 8;
    top: calc(100% + .45rem);
    left: 0;
    width: max(15rem, 100%);
    margin: 0;
    padding: .3rem;
    background: rgba(247, 243, 234, .88);
    border: 1px solid rgba(34, 30, 26, .14);
    box-shadow: 0 16px 36px rgba(34, 30, 26, .12);
    backdrop-filter: blur(16px) saturate(1.15);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
}
.today-menu a {
    display: block;
    padding: .5rem .7rem;
    text-decoration: none;
    font-size: .92rem;
}
.today-menu a + a { border-top: 1px solid var(--line); }
.today-menu a:hover, .today-menu a:focus { background: rgba(34, 30, 26, .05); }
.today-menu a.here { color: var(--ink); font-weight: 600; }
.today-menu a.more { color: var(--copper); font-size: .84rem; }
nav { display: flex; gap: 1.1rem; }
nav a { text-decoration: none; }
.desk-nav a.here { border-bottom: 2px solid var(--ink); }
.gate { margin: 0; }
.switch {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0;
    font-size: .92rem;
}
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; padding: 0; }
.slider {
    width: 2.5rem;
    height: 1.35rem;
    border-radius: 999px;
    background: var(--ink);
    position: relative;
    flex: 0 0 auto;
    transition: background .16s ease;
}
.slider:before {
    content: "";
    position: absolute;
    width: 1rem;
    height: 1rem;
    left: .18rem;
    top: .16rem;
    border-radius: 50%;
    background: #fff;
    transform: translateX(1.1rem);
    transition: transform .16s ease;
}
.switch input:checked + .slider { background: #c8c2b6; }
.switch input:checked + .slider:before { transform: translateX(0); }
.switch input:focus-visible + .slider { outline: 2px solid var(--copper); outline-offset: 2px; }
input.date-field {
    width: 11.5rem;
    background: #fff;
    border: 1px solid #c8c2b6;
    font-variant-numeric: tabular-nums;
}
.day-pick { margin: .2rem 0 1.2rem; }
.day-pick label { margin: 0; }
.kicker {
    margin: 0 0 .4rem;
    color: var(--copper);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}
h1, h2 { font-weight: 560; letter-spacing: -.02em; line-height: 1.08; }
h1 { font-size: calc(clamp(2.4rem, 5vw, 4.3rem) * var(--display, 1)); margin: 0 0 .8rem; }
h2 { font-size: 1.55rem; margin: .8rem 0 .4rem; }
.deck { font-size: 1.35rem; line-height: 1.35; max-width: 40rem; }
.when, .fine, .signed { color: var(--muted); font-size: .95rem; }
.lead {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 2.4rem;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--ink);
}
.lead h1 { font-size: calc(clamp(1.85rem, 2.7vw, 2.7rem) * var(--display, 1) * var(--reader, 1)); margin-bottom: .55rem; }
.piece h1 { font-size: calc(clamp(1.65rem, 2.8vw, 2.35rem) * var(--story, 1) * var(--reader, 1)); }
.lead .frame { aspect-ratio: 5 / 4; }
.lead .deck { font-size: calc(1.12rem * var(--reader, 1)); line-height: 1.4; }
.lead .when, .piece .when { font-size: calc(.95rem * var(--reader, 1)); }
.piece .deck { font-size: calc(1.35rem * var(--reader, 1)); }
.card h2 { font-size: calc(1.55rem * var(--reader, 1)); }
.card p { font-size: calc(1rem * var(--reader, 1)); }
.lead h1 a, .card a { text-decoration: none; }
.lead h1 a:hover, .card a:hover { color: var(--copper); }
.frame {
    aspect-ratio: 16 / 9;
    background: linear-gradient(160deg, #f7f3ea, #e4dcd0 60%, #ecd5c6);
    overflow: hidden;
}
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plate { display: grid; place-items: center; }
.plate span {
    font-size: 1.4rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(34, 30, 26, .35);
}
.frame-link { display: block; }
.rest {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem 1.3rem;
    padding-top: 1.8rem;
}
.card {
    padding: .95rem .9rem 1.15rem;
    border-bottom: 1px solid var(--ink);
    background: var(--paper-light);
}
.card:nth-child(even) { background: var(--paper-dark); }
.card p { color: var(--muted); margin: .2rem 0 0; }
.quiet, .piece { max-width: 46rem; padding-bottom: 2rem; }
.piece .wide { margin-bottom: 1.4rem; }
.copy p { font-size: calc(1.2rem * var(--reader, 1)); }
.piece .when { color: #3c352f; font-weight: 600; }
.share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem;
    margin: .45rem 0 1.5rem;
}
.share a,
.share button {
    display: grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    min-width: 2.15rem;
    min-height: 2.15rem;
    flex: 0 0 2.15rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: .55rem;
    appearance: none;
    background: transparent;
    color: var(--ink);
    font-size: 0;
    line-height: 0;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
}
.share svg { width: 2.15rem; height: 2.15rem; min-width: 2.15rem; min-height: 2.15rem; display: block; }
.share a:hover,
.share button:hover { transform: translateY(-1px); }
.share a:focus-visible,
.share button:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.share-copy .icon-check { display: none; }
.share-copy[data-copied="1"] .icon-copy { display: none; }
.share-copy[data-copied="1"] .icon-check { display: block; }
.source-line { margin-top: 1.6rem; font-family: var(--sans), "Segoe UI", sans-serif; font-size: .82rem; color: var(--muted); }
.source-line a { color: var(--muted); }
.edition { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 1.4rem; }
.archive-link { margin-top: 1.6rem; font-family: var(--sans), "Segoe UI", sans-serif; }
.days { list-style: none; padding: 0; margin: 0; }
.days li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: .75rem 0; }
.days a { text-decoration: none; }
.written { display: block; color: var(--muted); font-family: var(--sans), "Segoe UI", sans-serif; font-size: .78rem; margin-top: .2rem; }
form.inline { display: flex; gap: .4rem; align-items: center; }
form.inline input { width: auto; margin: 0; padding: .35rem .45rem; }
.shots { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1rem 0; }
.shots figure { width: min(100%, 16rem); margin: 0; }
.shots figcaption { font-family: var(--sans), "Segoe UI", sans-serif; font-size: .8rem; margin-top: .35rem; }
td.actions form { margin: 0; }
td.actions a { align-self: center; }
.foot {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    border-top: 1px solid var(--line);
    margin-top: 3rem;
    padding: 1rem 0 2rem;
    color: var(--muted);
    font-family: var(--sans), "Segoe UI", sans-serif;
    font-size: .92rem;
}
.foot-links { display: flex; gap: 1rem; }
.foot a { color: var(--muted); }
.colophon { display: inline-flex; align-items: center; gap: .45rem; }
.colophon img { height: .82rem; width: auto; display: block; }
.panel { padding: 0 0 2.2rem; }
.panel h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.panel h2 { font-size: 1.8rem; }
.day-label { font-size: 1.35rem; margin: 1.5rem 0 .35rem; }
.banner {
    background: var(--ink);
    color: var(--paper);
    padding: .8rem 1rem;
    margin: 0 0 1rem;
}
.actions, .meters { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.times-form { max-width: 28rem; margin: .2rem 0 1rem; }
.time-row { display: flex; gap: .6rem; align-items: center; margin: .45rem 0; }
.time-row input { width: 9.5rem; margin: 0; }
.time-row button { width: auto; }
.agenda { list-style: none; padding: 0; margin: .2rem 0 1.1rem; }
.agenda li { padding: .4rem 0; border-bottom: 1px solid var(--line); }
.agenda li.next { box-shadow: inset 3px 0 0 var(--copper); padding-left: .7rem; }
.meters { align-items: stretch; margin: 1rem 0 1.4rem; }
.cal-wrap { max-width: 28rem; margin: 0 0 1.6rem; }
.cal-nav { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-family: var(--sans), "Segoe UI", sans-serif; font-size: .92rem; }
.cal-nav p { margin: 0; }
.cal-nav a { color: var(--copper); text-decoration: none; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: .25rem; margin-top: .6rem; font-family: var(--sans), "Segoe UI", sans-serif; }
.cal a, .cal span { display: block; text-align: center; padding: .4rem 0; text-decoration: none; }
.cal .dow, .cal .future { color: var(--muted); font-size: .75rem; }
.cal a.spent { box-shadow: inset 0 -2px 0 var(--copper); }
.cal a.picked { background: var(--ink); color: var(--paper); }
.meters article {
    flex: 1 1 12rem;
    border-top: 1px solid var(--ink);
    padding-top: .6rem;
}
.meter-bar { height: .4rem; margin: .35rem 0; background: rgba(34, 30, 26, .12); border-radius: 999px; overflow: hidden; }
.meter-bar span { display: block; height: 100%; background: var(--ink); }
.meter-bar.hot span { background: var(--copper); }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; justify-content: space-between; gap: 1.2rem; border-bottom: 1px solid var(--line); padding: .75rem 0; }
.check-list .bad { color: var(--copper); }
.figure { font-size: 2.4rem; margin: .2rem 0; line-height: 1; }
button, .button {
    background: var(--ink);
    color: var(--paper);
    border: 1px solid var(--ink);
    padding: .65rem .9rem;
    font-size: .95rem;
    cursor: pointer;
}
button.ghost { background: transparent; color: var(--ink); }
.turnstile-slot { display: inline-block; vertical-align: middle; min-height: 65px; }
button.plain {
    display: inline;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: .15em;
    cursor: pointer;
}
button.danger { background: transparent; color: #8c2f1b; border-color: #8c2f1b; }
button:disabled { opacity: .4; cursor: not-allowed; }
label { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; margin: .9rem 0; }
label.check { text-transform: none; letter-spacing: 0; font-size: 1rem; }
input, textarea, select {
    display: block;
    width: 100%;
    margin-top: .35rem;
    padding: .7rem .75rem;
    font-size: 1rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
    background: var(--soft);
    border: 1px solid var(--line);
}
.grid-form { max-width: 40rem; }
.facts { padding-left: 1.1rem; }
.facts li { margin: .35rem 0; }
.facts form { display: inline; margin-left: .5rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th {
    text-align: left;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}
td, th { padding: .65rem .45rem; border-bottom: 1px solid var(--line); vertical-align: top; }
td.actions { display: flex; gap: .4rem; }
.url { max-width: 28rem; overflow-wrap: anywhere; }
code { font-size: .86rem; }
.flag {
    display: inline-block;
    margin-left: .4rem;
    padding: .1rem .35rem;
    border: 1px solid var(--line);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.log {
    white-space: pre-wrap;
    background: var(--soft);
    border: 1px solid var(--line);
    padding: .8rem 1rem;
    min-height: 4rem;
    font-size: .92rem;
}
.preview { margin: 1rem 0; max-width: 36rem; }
details { margin-top: 1rem; }
.sign-in { padding-top: 2rem; }
.consent {
    position: fixed;
    left: 1.15rem;
    bottom: 1.15rem;
    z-index: 5;
    max-width: min(28rem, calc(100% - 8rem));
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem .75rem;
    padding: .75rem .85rem;
    background: rgba(247, 243, 234, .96);
    border: 1px solid rgba(34, 30, 26, .16);
    border-radius: 1rem;
    box-shadow: 0 12px 32px rgba(34, 30, 26, .1);
    backdrop-filter: blur(12px);
}
.consent[hidden] { display: none; }
.consent p {
    margin: 0;
    flex: 1 1 12rem;
    font-family: var(--sans), "Segoe UI", sans-serif;
    font-size: .92rem;
}
.consent button { width: auto; }
.consent button[aria-pressed="true"],
[data-consent-panel] button[aria-pressed="true"] { box-shadow: inset 0 -2px 0 var(--copper); }
.reader {
    position: fixed;
    right: 1.15rem;
    bottom: 1.15rem;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: .1rem;
    padding: .18rem;
    background: rgba(247, 243, 234, .92);
    border: 1px solid rgba(34, 30, 26, .16);
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(34, 30, 26, .1);
    backdrop-filter: blur(12px);
}
.reader button {
    width: 2.3rem;
    height: 2.3rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font-family: var(--sans), "Segoe UI", sans-serif;
    line-height: 1;
}
.reader button[data-act="down"] { font-size: .82rem; }
.reader button[data-act="reset"] { width: 2.5rem; font-size: 1.02rem; }
.reader button[data-act="up"] { font-size: 1.12rem; }
.reader button:hover { background: rgba(34, 30, 26, .06); }
.reader[data-at="mid"] button[data-act="reset"] { color: var(--copper); }
.reader[data-at="min"] button[data-act="down"],
.reader[data-at="max"] button[data-act="up"] { opacity: .35; }
@media (max-width: 860px) {
    .lead, .rest { grid-template-columns: 1fr; }
    body.paper .top {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        column-gap: .8rem;
        row-gap: .2rem;
        padding-top: .85rem;
        padding-bottom: .7rem;
    }
    body.paper .mark { grid-area: 1 / 1; font-size: 1.7rem; }
    body.paper .top > nav { grid-area: 1 / 2; }
    body.paper .today { grid-area: 2 / 1 / auto / -1; margin: 0; font-size: .88rem; }
    body.paper .find { grid-area: 3 / 1 / auto / -1; max-width: none; margin: .45rem 0 0; }
    body.paper .find-list { width: 100%; }
    .consent { right: 1.15rem; bottom: 4.8rem; max-width: none; }
}
