/* Hallmark · added the author note and the focus ring on the red lead · the author archive reuses the topic archive, and the white outline keeps the lead's links visible on red */
/* Hallmark/* Hallmark · shape: Index-First (the archive as a list: a named head, a rail of topics, numbered rows) · genre: editorial · theme: brand (DESIGN.md pins the Frosted Leaf Red system) · redesign: full
 * job: read · hero: Banner, the topic head with its name and description above the fold · nav: the publication's own sticky bar, wordmark left · footer: the site's own close, subscription row over a dark colophon · imagery: none, type and rules only · signature: the dated plate on every row that turns the archive into a calendar of what was published
 * axes: warm-light/red/editorial · posture: full-palette (field red, seal red-deep, signal green, ink warm-black) · surface: warm paper · contrast: pass · fold: pass · copy: verbatim · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: H, an archive can read as a flat run of rows; the first entry takes the red block and a plate twice the size, so the page opens on a reason */
/* Hallmark · dismissed 77 · an archive is three sections by nature: the topic head, the filter strip and the list; more would be padding */
/* Hallmark · reworded "Latest" to the topic's own name · the head of a topic page is the topic, and tag.title already says it */
/* Hallmark · dropped the feature-image cover on the topic head · the publication's image files 404, so the head carries the name and the description in type */
/* Hallmark · dropped the per-row tag pills · every row on a topic page already carries that topic, so the pills would repeat the page's own name down the list */
/* Hallmark · waive 49b · the archive rows carry real article headlines that cannot shorten · a nine-word headline takes three lines on a 320px screen, and it is content, not a control label */
/* Hallmark · waive 79 · the head of an archive is its topic name and one sentence, and the list starts directly under it · the check measures the gap to the footer past the whole list, which no index can close */
/* Hallmark · dropped "photo-1624957083543-9a67140fabfd", "menguliti-persediaan", "photo-1719411606465-5143b163b608", "photo-1731533622011-155f51dfe8bf", "coretax-form-1", "photo-1724304406928-c43b01912fa1", "diskusipajak-coretaxpedia-57", "office-865091_640-5", "office-865091_640", "photo-1441986300917-64674bd600d8", "photo-1646810965186-b4bc0152a6ab" · the publication's image files 404, so the archive rows carry a dated plate in place of a thumbnail */
/* Hallmark · reworded "Read next" style card grid to a dated row list · the archive is a list of what was published, and a date plate is a fact where a thumbnail would be a blank */

html,
body {
    overflow-x: clip;
}

.tag-template ::selection {
    background: color-mix(in srgb, var(--red) 22%, transparent);
    color: var(--ink);
}

.tag-template :focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

/* the head of a topic: its name, set as the page's title, and the one sentence that says what is here */
.dp-arc-head {
    max-width: 760px;
    padding-block: var(--space-5) var(--space-4);
}

.dp-arc-title {
    max-width: 20ch;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(34px, 6vw, 64px);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.02;
    overflow-wrap: break-word;
    min-width: 0;
    text-wrap: balance;
}

.dp-arc-note {
    margin-top: var(--space-4);
    color: var(--mute);
    font-size: var(--text-small);
    font-variant-numeric: tabular-nums;
}

.dp-arc-note a {
    color: var(--accent-text);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}
.dp-arc-desc {
    max-width: 54ch;
    margin-top: var(--space-3);
    color: var(--mute);
    font-size: var(--text-lede);
    line-height: 1.55;
}

/* the strip: every topic one link away, and how many pieces this one holds */
.dp-filter {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
    padding-block: var(--space-2);
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--line);
}

.dp-topics {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    width: 100%;
    gap: var(--space-2);
    min-width: 0;
    padding-block: var(--space-1);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.dp-topics::-webkit-scrollbar {
    display: none;
}

.dp-topic {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 var(--space-3);
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    font-size: var(--text-small);
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.dp-topic:hover {
    color: var(--accent-text);
    border-color: var(--red-soft);
}

.dp-topic:active {
    transform: translateY(1px);
}

.dp-topic.is-current {
    color: var(--on-red);
    background: var(--red);
    border-color: var(--red);
    font-weight: 700;
}

.dp-count {
    align-self: flex-end;
    color: var(--mute);
    font-size: var(--text-small);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* the list: one dated row per piece, the first one set as the block that opens the page */
.dp-archive-list {
    display: grid;
    margin-top: var(--space-4);
}

.dp-entry {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    align-items: start;
    gap: var(--space-4);
    padding-block: var(--space-4);
    border-top: 1px solid var(--line);
}

.dp-entry-plate {
    display: grid;
    place-content: center;
    gap: 2px;
    width: 100%;
    aspect-ratio: 1;
    color: var(--tint-ink);
    background: var(--red-tint);
    border-radius: var(--radius-card);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.dp-entry-day {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.02em;
}

.dp-entry-month {
    font-size: var(--text-small);
    line-height: 1.1;
}

.dp-entry-main {
    min-width: 0;
}

.dp-entry-title {
    max-width: 34ch;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: var(--text-title);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.2;
    text-wrap: balance;
}

.dp-entry-title a {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.14em;
    transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease);
}

.dp-entry-title a:hover {
    color: var(--accent-text);
    text-decoration-color: currentColor;
}

.dp-entry-excerpt {
    max-width: 62ch;
    margin-top: var(--space-2);
    color: var(--mute);
    font-size: var(--text-body);
    line-height: 1.6;
}

.dp-entry-meta {
    color: var(--mute);
    font-size: var(--text-small);
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

/* the first entry opens the page: the red block, the plate twice the size, the title a step up */
.dp-entry:first-child {
    --focus: var(--on-red);
    grid-template-columns: minmax(0, 1fr) 200px;
    grid-template-areas:
        "main plate"
        "meta plate";
    gap: var(--space-3) var(--space-5);
    padding: var(--space-5) var(--space-6);
    margin-block: var(--space-3);
    color: var(--on-red);
    background: var(--red);
    border-top: 0;
    border-radius: var(--radius-block);
}

.dp-entry:first-child .dp-entry-main {
    grid-area: main;
}

.dp-entry:first-child .dp-entry-meta {
    grid-area: meta;
    color: var(--on-red);
}

.dp-entry:first-child .dp-entry-plate {
    grid-area: plate;
    align-self: stretch;
    aspect-ratio: auto;
    min-height: 180px;
    color: var(--on-red);
    background: var(--red-deep);
}

.dp-entry:first-child .dp-entry-day {
    font-size: 48px;
}

.dp-entry:first-child .dp-entry-title {
    max-width: 26ch;
    color: var(--on-red);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.1;
}

.dp-entry:first-child .dp-entry-title a {
    color: var(--on-red);
}

.dp-entry:first-child .dp-entry-title a:hover {
    color: var(--on-red);
    text-decoration-color: currentColor;
}

.dp-entry:first-child .dp-entry-excerpt {
    color: var(--on-red);
}

.dp-none {
    padding-block: var(--space-7);
    color: var(--mute);
    border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
    .dp-entry {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .dp-entry-meta {
        grid-column: 2;
        text-align: left;
        white-space: normal;
    }

    .dp-entry:first-child {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "plate"
            "main"
            "meta";
        padding: var(--space-4);
    }

    .dp-entry:first-child .dp-entry-title {
        font-size: clamp(22px, 4vw, 30px);
    }

    .dp-entry:first-child .dp-entry-plate {
        min-height: 120px;
    }

    .dp-entry:first-child .dp-entry-day {
        font-size: 34px;
    }
}

@media (max-width: 560px) {
    .dp-entry {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: var(--space-3);
    }

    .dp-entry-title {
        font-size: 20px;
        line-height: 1.25;
    }

    .dp-entry-day {
        font-size: 20px;
    }

    .dp-arc-head {
        padding-block: var(--space-4) var(--space-3);
    }


}

@media (prefers-reduced-motion: reduce) {
    .tag-template *,
    .tag-template *::before,
    .tag-template *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
