body {
    background: #fff;
    color: #222;
}

body > header {
    display: none;
}

main {
    box-sizing: border-box;
    width: calc(100% - 2rem);
    max-width: 68.5rem;
    margin: 4rem auto;
    padding: 0;
    border: 0;
    background: #fff !important;
    color: #222 !important;
    font-size: 1.3125rem;
    overflow-wrap: anywhere;
}

main::before {
    display: none;
}

.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 44.5rem) minmax(12rem, 16rem);
    gap: 5rem;
}

.post-layout aside {
    position: sticky;
    top: 2rem;
    align-self: start;
}

aside {
    font-size: 1.15rem;
}

aside .banana-home {
    margin-bottom: 1.25rem;
}

aside h2 {
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 700;
    margin: 0 0 1rem;
}

.all-posts {
    display: block;
    border-top: 1px solid #a8b1be;
    padding-top: 1rem;
}

aside .post-links {
    padding: 0;
    margin-bottom: 0;
    list-style: none;
}

.post-links li {
    padding: 1rem 0;
    border-top: 1px solid #a8b1be;
    line-height: 1.35;
}

.post-links a, .banana-home {
    text-decoration: none;
}

.post-links a:hover {
    text-decoration: underline;
}

.banana-home {
    display: inline-block;
}

.banana-home img {
    display: block;
}


@media (max-width: 900px) {
    main {
        max-width: 44.5rem;
    }

    .post-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 3rem;
    }

    .post-layout aside {
        position: static;
    }

    aside {
        padding-top: 1.5rem;
    }
}

main p {
    max-width: none;
    margin: 0 0 1.25rem;
    font-size: inherit;
    line-height: 1.5;
}

main > p:first-child {
    font-size: 1rem;
    margin-bottom: 1.75rem;
}

main h1, main h2, main h3 {
    text-align: left;
    letter-spacing: normal;
    padding-bottom: 0;
}

main h1 {
    font-size: clamp(2rem, 4vw, 2.875rem);
    line-height: 1.1;
    margin: 0 0 1.5rem;
}

h1::after {
    display: none;
}

.post-header {
    padding: 0;
    margin: 0 0 2.5rem;
    border: 0;
}

.post-header h1 {
    margin-bottom: 0;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #444;
}

.post-header .byline {
    margin: 0;
    padding: 0.65rem 0;
    border-bottom: 1px solid #d6d6d6;
    font-size: 1.25rem;
    color: #142e60;
}

article h2, article h3 {
    margin: 2rem 0 0.75rem;
    line-height: 1.25;
}

article > p {
    margin-bottom: 0.5rem;
}

article > p + p {
    text-indent: 1.5em;
}

article > p:has(img) {
    text-indent: 0;
    margin: 1.25rem 0;
}

main > ul > li > a {
  text-decoration: none;
}

article h2 {
    font-size: 1.8rem;
}

main ul, main ol {
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
    line-height: 1.5;
}

article li + li {
    margin-top: 0.4em;
}

main > ul {
    list-style: none;
    padding-left: 0;
}

article table {
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

article th, article td {
    padding: 0.5rem;
    border: 1px solid #5a678e;
}

article pre {
    overflow-x: auto;
    padding: 1rem;
    background: #e8e0d4;
}

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

.rainbow {
    color: #b33b55;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
    .rainbow {
        background: linear-gradient(90deg, #b42318, #925600, #587000, #087f70, #245ac4, #843bb5, #b42318);
        background-size: 200% 100%;
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: rainbow-shift 4s linear infinite;
    }
}

@keyframes rainbow-shift {
    to { background-position: 200% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .rainbow {
        animation: none;
    }
}

@media (max-width: 600px) {
    main {
        margin: 2rem 1rem;
        padding: 0;
        font-size: 1.25rem;
    }
}

.prices {
    display: table;
    width: 100%;
    font-variant-numeric: tabular-nums;
}

.prices caption {
    text-align: left;
    font-style: italic;
    padding-bottom: 0.4rem;
}

.prices td {
    padding: 0.35rem 0;
    border: 0;
    border-bottom: 1px solid #d6d6d6;
}

.prices th {
    padding: 0.35rem 0;
    border: 0;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    font-weight: 400;
    font-style: italic;
    text-align: left;
}

.prices td:not(:first-child), .prices th:not(:first-child) {
    text-align: right;
    white-space: nowrap;
    padding-left: 1rem;
}

.prices tr:first-child td {
    border-top: 1px solid #222;
}

.prices thead + tbody tr:first-child td {
    border-top: 0;
}
