:root {
    --color-accent: #5A4A3B;
    --color-link: #6B4F2F;
    --color-accent-text: #FFFFFF;
    --color-heading: #211D1A;
    --color-text: #2F2B27;
    --color-surface: #EBE7E1;
    --color-bg: #F5F3F0;
    --color-muted: #675F57;
    --color-border: #D8D1C8;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    color: var(--color-text);
    background: var(--color-bg);
    font-size: 1rem;
    margin: 0;
    line-height: 1.7;
    font-family: "Literata", Georgia, serif;
    overflow-wrap: break-word;
}

h1, h2, h3, h4 {
    color: var(--color-heading);
    line-height: 1.25;
    font-family: "Outfit", system-ui, sans-serif;
}

a {
    color: var(--color-link);
}

img {
    height: auto;
    max-width: 100%;
}

pre, table {
    overflow-x: auto;
    max-width: 100%;
}

table {
    border-collapse: collapse;
    display: block;
}

blockquote {
    color: var(--color-muted);
    margin: 1.25rem 0;
    border-left: 3px solid var(--color-accent);
    padding: 0.25rem 1.25rem;
}

.a11y {
    position: absolute;
    height: 1px;
    overflow: hidden;
    width: 1px;
    white-space: nowrap;
    clip: rect(0 0 0 0);
}

.skip {
    position: absolute;
    top: 0;
    left: -60rem;
}

.skip:focus {
    background: var(--color-bg);
    padding: 0.5rem;
    z-index: 50;
    left: 1rem;
}

.pager {
    flex-wrap: wrap;
    gap: 1rem;
    display: flex;
    margin-top: 2rem;
    justify-content: space-between;
}

.archive li {
    padding: 0.35rem 0;
}

.year-month {
    font-size: 1.2rem;
    margin-top: 1.75rem;
}

.site-head > .container {
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    display: flex;
    padding-bottom: 0.9rem;
    justify-content: space-between;
    padding-top: 0.9rem;
}

.site-name {
    color: var(--color-heading);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: "Outfit", system-ui, sans-serif;
}

.ticker {
    color: var(--color-bg);
    background: var(--color-heading);
    font-size: 0.85rem;
    overflow: hidden;
}

.ticker > .container {
    padding-bottom: 0.45rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-top: 0.45rem;
}

.ticker a {
    color: var(--color-bg);
}

.ticker strong {
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.links {
    flex-wrap: wrap;
    gap: 0.25rem 1.1rem;
    display: flex;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
    list-style: none;
}

.links a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.95rem;
}

.links a:hover {
    color: var(--color-link);
    text-decoration: underline;
}

.intro {
    box-sizing: border-box;
    margin-bottom: 2rem;
    overflow-wrap: break-word;
}

.intro .display-title {
    font-size: 2rem;
    margin: 0 0 0.5rem;
    line-height: 1.15;
}

.intro .intro-text {
    font-size: 1.08rem;
    margin: 0 0 1rem;
    max-width: 60ch;
}

.intro img {
    max-width: 100%;
}

.intro-rl > .container {
    gap: 1.25rem;
    display: grid;
    padding-bottom: 2rem;
    grid-template-columns: minmax(0,1fr);
    padding-top: 2rem;
}

.intro-rl .stamp {
    display: none;
}

.intro-rl .stamp::before {
    content: attr(data-t);
}

.intro-rl .figure img {
    object-fit: cover;
    min-height: 12rem;
    display: block;
    height: 100%;
    width: 100%;
}

.section-title h1 {
    color: var(--color-heading);
    font-size: 1.5rem;
    margin: 0 0 1.25rem;
}

.container {
    margin: 0 auto;
    box-sizing: border-box;
    max-width: 72rem;
    padding-right: 1rem;
    padding-left: 1rem;
}

.columns {
    padding-bottom: 2.5rem;
    padding-top: 1.5rem;
}

.main-column {
    min-width: 0;
}

.left-col {
    margin-top: 2rem;
    min-width: 0;
}

.entry-title {
    font-size: 1.55rem;
    margin: 0 0 0.4rem;
    line-height: 1.25;
    font-family: "Outfit", system-ui, sans-serif;
}

.entry-title a {
    color: var(--color-heading);
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--color-link);
    text-decoration: underline;
}

.meta {
    color: var(--color-muted);
    font-size: 0.85rem;
    margin: 0 0 0.9rem;
}

.meta a {
    color: var(--color-muted);
}

.post-body img {
    height: auto;
    max-width: 100%;
}

.post-body h2:not(.entry-title), .summary-text h2 {
    font-size: 1.15rem;
    margin: 1.25rem 0 0.5rem;
}

.post-body h3, .summary-text h3 {
    font-size: 1.02rem;
}

.card-image {
    margin: 0 0 1rem;
}

.card-image img {
    border-radius: 0.75rem;
    display: block;
    height: auto;
    width: 100%;
}

.main-story .entry-title {
    font-size: 2.1rem;
    line-height: 1.15;
}

.main-story {
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--color-heading);
    margin-bottom: 2rem;
}

.side-story {
    gap: 2rem;
    display: grid;
    grid-template-columns: minmax(0,1fr);
    margin-bottom: 2rem;
}

.entries-sm {
    margin: 0;
    padding: 0;
    list-style: none;
}

.entries-sm .post {
    gap: 0.5rem;
    display: grid;
    padding-bottom: 2rem;
    grid-template-columns: minmax(0,1fr);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2rem;
}

.entries-sm .meta {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.block {
    font-size: 0.92rem;
    margin-bottom: 1.75rem;
}

.side-heading {
    color: var(--color-heading);
    font-size: 1rem;
    margin: 0 0 0.6rem;
    padding-bottom: 0.35rem;
    text-transform: none;
    font-family: "Outfit", system-ui, sans-serif;
    border-bottom: 2px solid var(--color-accent);
}

.link-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.link-list li, .link-list > div {
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--color-border);
}

.block a {
    color: var(--color-link);
    text-decoration: none;
}

.block a:hover {
    text-decoration: underline;
}

.page-heading {
    color: var(--color-heading);
    font-size: 2.1rem;
    margin: 0 0 0.5rem;
    line-height: 1.2;
    font-family: "Outfit", system-ui, sans-serif;
}

.published {
    color: var(--color-muted);
    font-size: 0.88rem;
    margin: 0 0 1.5rem;
}

.published a {
    color: var(--color-muted);
}

.prose img {
    height: auto;
    max-width: 100%;
}

.after-post {
    border-top: 1px solid var(--color-border);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
}

.outline {
    border-radius: 0.75rem;
    background: var(--color-surface);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.outline p {
    margin: 0 0 0.4rem;
}

.bio {
    border-radius: 0.75rem;
    border: 1px solid var(--color-border);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.bio p {
    margin: 0 0 0.4rem;
}

.see-also h2 {
    font-size: 1.15rem;
}

.pager {
    flex-wrap: wrap;
    gap: 1rem;
    display: flex;
    margin-top: 1.5rem;
    justify-content: space-between;
}

.trail {
    color: var(--color-muted);
    font-size: 0.82rem;
    margin: 0 0 1rem;
}

.trail a {
    color: var(--color-muted);
}

.foot-ln {
    text-align: center;
    color: var(--color-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--color-border);
    margin-top: 2rem;
    padding: 1.5rem 0;
}

.foot-ln a {
    color: var(--color-muted);
}

.section-head, h2.section-head {
    margin: 0 0 1.5rem;
}

.section-head h2, h2.section-head {
    font-size: 1.9rem;
    margin-bottom: 0.35rem;
}

.section-head p {
    color: var(--color-muted);
    margin: 0;
}

.block div.places {
    border-radius: 0.75rem;
    flex-wrap: wrap;
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    gap: 0.4rem 0.8rem;
    display: flex;
    padding: 0.8rem;
}

.block div.places > span {
    align-items: center;
    font-size: 0.88rem;
    gap: 0.35rem;
    display: inline-flex;
}

.block div.places .marker {
    border-radius: 50%;
    background: var(--color-accent);
    display: inline-block;
    height: 0.55rem;
    width: 0.55rem;
}

.hello-card {
    margin: 1rem 0;
    box-sizing: border-box;
    max-width: 100%;
}

.hello-card .callback {
    gap: 0.6rem;
    display: grid;
    grid-template-columns: minmax(0,1fr);
}

.hello-card .entry-field {
    gap: 0.2rem;
    display: grid;
    min-width: 0;
}

.hello-card label {
    font-size: 0.85rem;
    font-weight: 600;
}

.hello-card input[type=text], .hello-card input[type=tel], .hello-card textarea {
    border-radius: 0.75rem;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    font: inherit;
    box-sizing: border-box;
    padding: 0.5rem 0.6rem;
    width: 100%;
}

.hello-card button {
    border-radius: 0.75rem;
    color: var(--color-accent-text);
    background: var(--color-accent);
    border: 0;
    font: inherit;
    font-weight: 700;
    padding: 0.65rem 1.1rem;
    cursor: pointer;
}

.hello-card .number {
    font-size: 0.9rem;
    margin: 0.6rem 0 0;
}

.hello-card .deck {
    margin: 0 0 0.6rem;
}

.hello-card-boxed {
    border-radius: 1.5rem;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.14);
}

.hello-card-inline {
    border-radius: 1.5rem;
    color: var(--color-text);
    background: var(--color-surface);
    padding: 0.9rem;
}

.hello-card-tabbed {
    color: var(--color-text);
    background: var(--color-bg);
    border-top: 4px solid var(--color-accent);
    padding: 1rem;
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
}

.hello-card .choice-row {
    flex-wrap: wrap;
    gap: 0;
    display: flex;
    border-bottom: 1px solid var(--color-border);
}

.hello-card .choice-row input {
    position: absolute;
    height: 1px;
    width: 1px;
    opacity: 0;
}

.hello-card .choice-row label {
    color: var(--color-muted);
    padding: 0.45rem 0.9rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.hello-card .choice-row input:checked + label {
    color: var(--color-heading);
    border-bottom-color: var(--color-accent);
}

.hello-card-call {
    border-radius: 1.5rem;
    text-align: center;
    color: var(--color-text);
    background: var(--color-surface);
    padding: 1rem;
}

.hello-card .call-button {
    border-radius: 999px;
    color: var(--color-accent-text);
    background: var(--color-accent);
    text-decoration: none;
    font-size: 1.25rem;
    display: inline-block;
    font-weight: 700;
    padding: 0.9rem 1.6rem;
}

.hello-card-two {
    border-radius: 1.5rem;
    color: var(--color-text);
    background: var(--color-bg);
    border: 2px dashed var(--color-border);
    padding: 1.1rem;
}

.hello-card fieldset {
    border: 0;
    gap: 0.5rem;
    display: grid;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.hello-card legend {
    color: var(--color-muted);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.hello-card details > summary {
    border-radius: 0.75rem;
    color: var(--color-bg);
    background: var(--color-heading);
    display: inline-block;
    margin: 0.3rem 0;
    padding: 0.5rem 1rem;
    cursor: pointer;
    list-style: none;
}

.hello-card-compact {
    border-radius: 1.5rem;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 1rem;
}

.hello-card-pill {
    border-radius: 2.25rem;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 0.6rem;
}

.hello-card-pill input[type=text], .hello-card-pill input[type=tel], .hello-card-pill button {
    border-radius: 999px;
}

.hello-card-pill input[type=text], .hello-card-pill input[type=tel] {
    padding: 0.55rem 1rem;
}

.hello-card-pill .number {
    text-align: center;
}

.entry-header .published {
    margin: 0 0 1.25rem;
}

.entry-tc .intro-panel {
    margin-bottom: 1.5rem;
}

.entry-tc .intro-panel .card-image {
    margin: 0;
}

.entry-tc .intro-panel img {
    border-radius: 1.5rem;
    object-fit: cover;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.entry-tc .intro-panel .entry-header {
    border-radius: 0.75rem;
    background: var(--color-bg);
    position: relative;
    margin: -1.5rem 0.75rem 0;
    border-top: 4px solid var(--color-accent);
    padding: 1rem 1.1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.entry-tc > .entry-header {
    border-top: 4px solid var(--color-accent);
    padding-top: 1rem;
}

.site-name {
    text-decoration-color: var(--color-accent);
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

.button, .call-button, .hello-card button, .finder button {
    color: var(--color-accent);
    background: transparent;
    border: 2px solid var(--color-accent);
}

.post-body a, .prose a {
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.card-image img {
    object-fit: cover;
    aspect-ratio: 21 / 9;
}

[data-rt]::after {
    content: " · " attr(data-rt);
}

.trail a {
    border-radius: 999px;
    background: var(--color-surface);
    text-decoration: none;
    padding: 0.1rem 0.5rem;
}

.outline li {
    list-style: decimal inside;
}

.post-body blockquote, .prose blockquote {
    font-style: italic;
    border-left-width: 1px;
}

.post-body ul, .prose ul {
    list-style-type: "\2713  ";
}

.topic-chips a {
    border-radius: 0;
}

.ticker-darkTop {
    text-align: center;
    font-size: 0.82rem;
    overflow: hidden;
    padding: 0.35rem 0;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ticker-darkTop, .ticker-darkTop a {
    color: var(--color-bg);
    background: var(--color-heading);
}

.pager-top {
    text-align: right;
    margin: 0.5rem 0;
}

.entry-pg-band .entry-header {
    border-radius: 1.5rem;
    color: var(--color-accent-text);
    background: var(--color-accent);
    padding: 1.25rem 1rem;
    margin-bottom: 1.25rem;
}

.entry-pg-band .page-heading {
    color: var(--color-accent-text);
    margin: 0;
}

table.archive td {
    padding: 0.4rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

@media (min-width: 800px) {
    .intro .display-title {
        font-size: 2.6rem;
    }
    .intro-rl > .container {
        align-items: stretch;
        grid-template-columns: 2.5rem minmax(0,3fr) minmax(0,2fr);
    }
    .intro-rl .stamp {
        color: var(--color-muted);
        font-size: 0.75rem;
        transform: rotate(180deg);
        letter-spacing: 0.2em;
        display: block;
        text-transform: uppercase;
        border-right: 2px solid var(--color-accent);
        writing-mode: vertical-rl;
    }
    .columns {
        align-items: start;
        display: grid;
        grid-template-columns: 17rem minmax(0,1fr);
        grid-template-areas: "l m";
        column-gap: 2.25rem;
    }
    .main-column {
        grid-area: m;
    }
    .left-col {
        margin-top: 0;
        grid-area: l;
    }
    .side-story {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
    .entries-sm .post {
        gap: 1.5rem;
        grid-template-columns: 9rem minmax(0,1fr);
    }
    .hello-card-inline .callback {
        align-items: end;
        grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto;
    }
    .hello-card-pill {
        border-radius: 999px;
        padding: 0.4rem 0.5rem;
    }
    .hello-card-pill .callback {
        align-items: center;
        grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto;
    }
    .hello-card-pill .entry-field label {
        position: absolute;
        height: 1px;
        overflow: hidden;
        width: 1px;
        white-space: nowrap;
        clip: rect(0 0 0 0);
    }
    .entry-tc .intro-panel .entry-header {
        margin: -4rem 2.5rem 0;
        padding: 1.5rem 1.75rem;
    }
}
