:root {
    --head: #14301f;
    --fg: #1f2a22;
    --bg: #ffffff;
    --on-accent: #ffffff;
    --alt: #f1f5f1;
    --accent: #2f6b45;
    --mute: #55665a;
    --line: #dbe5dc;
    --link: #2f6b45;
}

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

.hero .hero__title {
    margin: 0 0 0.5em;
    font-size: 2em;
    line-height: 1.15;
}

.hero .hero__blurb {
    margin: 0 0 1em;
    font-size: 1.08em;
    max-width: 60ch;
}

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

.hero-tt {
    background: linear-gradient(180deg, var(--alt) 0, var(--alt) 60%, var(--bg) 60%);
}

.hero-tt > .page-width {
    align-items: center;
    grid-template-columns: minmax(0,1fr);
    gap: 1.5em;
    padding-top: 2.2em;
    display: grid;
    padding-bottom: 2.2em;
}

.hero-tt .hero__figure img {
    width: 100%;
    border-radius: 1.5em;
    box-shadow: 0 16px 40px rgba(0,0,0,.2);
    display: block;
}

.page-title h1 {
    margin: 0 0 1.25em;
    color: var(--head);
    font-size: 1.5em;
}

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

.site-body {
    padding-top: 1.5em;
    padding-bottom: 2.5em;
}

.page-content {
    min-width: 0;
}

.secondary {
    margin-top: 2em;
    min-width: 0;
}

.post-item__headline {
    margin: 0 0 0.4em;
    font-size: 1.55em;
    font-family: "DM Serif Display", Georgia, serif;
    line-height: 1.25;
}

.post-item__headline a {
    color: var(--head);
    text-decoration: none;
}

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

.post-item__post-meta {
    margin: 0 0 0.9em;
    color: var(--mute);
    font-size: 0.85em;
}

.post-item__post-meta a {
    color: var(--mute);
}

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

.post-item__text h2:not(.post-item__headline), .post-item__post-excerpt h2 {
    margin: 1.25em 0 0.5em;
    font-size: 1.15em;
}

.post-item__text h3, .post-item__post-excerpt h3 {
    font-size: 1.02em;
}

.post-item__preview {
    margin: 0 0 1em;
}

.post-item__preview img {
    width: 100%;
    height: auto;
    border-radius: 0.5em;
    display: block;
}

.featured .post-item__headline {
    font-size: 2.1em;
    line-height: 1.15;
}

.featured {
    border-bottom: 3px solid var(--head);
    margin-bottom: 2em;
    padding-bottom: 1.5em;
}

.small-post {
    grid-template-columns: minmax(0,1fr);
    gap: 2em;
    margin-bottom: 2em;
    display: grid;
}

.feed-mg .magazine .post-item__headline {
    font-size: 2.2em;
    line-height: 1.1;
}

.feed-mg .magazine {
    border-bottom: 4px double var(--head);
    margin-bottom: 2em;
    padding-bottom: 1.5em;
}

.feed-mg .post-full__single-head {
    align-items: end;
    grid-template-columns: minmax(0,1fr);
    gap: 1em;
    display: grid;
}

.feed-mg .small-post {
    margin: 0;
    padding: 0;
    grid-template-columns: minmax(0,1fr);
    gap: 1.75em;
    list-style: none;
    display: grid;
}

.feed-mg > .callout, .feed-mg > li > .callout {
    grid-column: 1 / -1;
}

.feed-mg .small-post > *:has(.callout) {
    grid-column: 1 / -1;
}

.feed-mg .small-post .post-item__headline {
    font-size: 1.2em;
}

.feed-mg .small-post .post-item__text {
    font-size: 0.93em;
}

.box {
    font-size: 0.92em;
    margin-bottom: 1.75em;
}

.box__block-title {
    margin: 0 0 0.6em;
    border-bottom: 2px solid var(--accent);
    color: var(--head);
    font-size: 1em;
    font-family: "DM Serif Display", Georgia, serif;
    text-transform: none;
    padding-bottom: 0.35em;
}

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

.box__link-list li, .box__link-list > div {
    border-bottom: 1px solid var(--line);
    padding: 0.3em 0;
}

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

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

.post-full__page-heading {
    margin: 0 0 0.5em;
    color: var(--head);
    font-size: 2.1em;
    font-family: "DM Serif Display", Georgia, serif;
    line-height: 1.2;
}

.post-full__published {
    margin: 0 0 1.5em;
    color: var(--mute);
    font-size: 0.88em;
}

.post-full__published a {
    color: var(--mute);
}

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

.post-full__post-footer {
    border-top: 1px solid var(--line);
    margin-top: 2.5em;
    padding-top: 1.5em;
}

.toc {
    background: var(--alt);
    border-radius: 0.5em;
    padding: 1em 1.25em;
    margin-bottom: 1.5em;
}

.toc p {
    margin: 0 0 0.4em;
}

.author-box {
    border-radius: 0.5em;
    padding: 1.25em;
    margin-bottom: 1.5em;
    border: 1px solid var(--line);
}

.author-box p {
    margin: 0 0 0.4em;
}

.more-reading h2 {
    font-size: 1.15em;
}

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

.crumbs {
    margin: 0 0 1em;
    color: var(--mute);
    font-size: 0.82em;
}

.crumbs a {
    color: var(--mute);
}

.bottom-s2 {
    border-top: 2px solid var(--head);
    padding: 2em 0 0.5em;
    margin-top: 2.5em;
}

.bottom-s2 .bottom__foot-columns {
    grid-template-columns: minmax(0,1fr);
    gap: 1.5em;
    display: grid;
}

.bottom-s2 ul, .bottom-s2 ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bottom-s2 .box__link-list {
    columns: 2;
}

.bottom-s2 .bottom__small-print {
    color: var(--mute);
    margin-top: 1.5em;
    font-size: 0.8em;
}

.lookup {
    margin: 0;
    max-width: 100%;
    gap: 0.4em;
    display: flex;
}

.lookup input[type=search] {
    font: inherit;
    flex: 1 1 auto;
    color: var(--fg);
    background: var(--bg);
    border-radius: 0.5em;
    padding: 0.45em 0.6em;
    min-width: 0;
    border: 1px solid var(--line);
}

.lookup button {
    font: inherit;
    color: var(--on-accent);
    background: var(--accent);
    border-radius: 0.5em;
    padding: 0.45em 0.8em;
    cursor: pointer;
    border: 0;
}

.topic-cloud {
    margin: 0;
    line-height: 1.9;
}

.topic-cloud a {
    white-space: nowrap;
    margin-right: 0.4em;
}

.contact-box {
    margin: 1em 0;
    box-sizing: border-box;
    max-width: 100%;
}

.contact-box .quote-form {
    grid-template-columns: minmax(0,1fr);
    gap: 0.6em;
    display: grid;
}

.contact-box .control {
    min-width: 0;
    gap: 0.2em;
    display: grid;
}

.contact-box label {
    font-size: 0.85em;
    font-weight: 600;
}

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

.contact-box button {
    font: inherit;
    color: var(--on-accent);
    background: var(--accent);
    border-radius: 0.5em;
    padding: 0.65em 1.1em;
    font-weight: 700;
    cursor: pointer;
    border: 0;
}

.contact-box .hotline {
    margin: 0.6em 0 0;
    font-size: 0.9em;
}

.contact-box .standfirst-line {
    margin: 0 0 0.6em;
}

.contact-box-boxed {
    color: var(--fg);
    background: var(--bg);
    border-radius: 1em;
    padding: 1.25em;
    box-shadow: 0 10px 30px rgba(0,0,0,.14);
    border: 1px solid var(--line);
}

.contact-box-inline {
    color: var(--fg);
    background: var(--alt);
    border-radius: 1em;
    padding: 0.9em;
}

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

.contact-box .switcher {
    border-bottom: 1px solid var(--line);
    flex-wrap: wrap;
    gap: 0;
    display: flex;
}

.contact-box .switcher input {
    width: 1px;
    height: 1px;
    position: absolute;
    opacity: 0;
}

.contact-box .switcher label {
    border-bottom: 3px solid transparent;
    color: var(--mute);
    padding: 0.45em 0.9em;
    cursor: pointer;
}

.contact-box .switcher input:checked + label {
    border-bottom-color: var(--accent);
    color: var(--head);
}

.contact-box-call {
    color: var(--fg);
    background: var(--alt);
    border-radius: 1em;
    padding: 1em;
    text-align: center;
}

.contact-box .dial {
    color: var(--on-accent);
    background: var(--accent);
    border-radius: 999px;
    padding: 0.9em 1.6em;
    font-size: 1.25em;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
}

.contact-box-two {
    color: var(--fg);
    background: var(--bg);
    border-radius: 1em;
    padding: 1.1em;
    border: 2px dashed var(--line);
}

.contact-box fieldset {
    margin: 0;
    padding: 0;
    min-width: 0;
    gap: 0.5em;
    display: grid;
    border: 0;
}

.contact-box legend {
    letter-spacing: 0.08em;
    color: var(--mute);
    font-size: 0.75em;
}

.contact-box details > summary {
    margin: 0.3em 0;
    color: var(--bg);
    background: var(--head);
    border-radius: 0.5em;
    padding: 0.5em 1em;
    list-style: none;
    display: inline-block;
    cursor: pointer;
}

.contact-box-compact {
    color: var(--fg);
    background: var(--alt);
    border-radius: 1em;
    padding: 1em;
    border: 1px solid var(--line);
}

.contact-box-side {
    color: var(--fg);
    background: var(--bg);
    border-radius: 1em;
    overflow: hidden;
    display: grid;
    border: 1px solid var(--line);
}

.contact-box-side > .callout {
    color: var(--bg);
    background: var(--head);
    padding: 1.1em;
    gap: 0.4em;
    display: grid;
    align-content: center;
    text-align: center;
}

.contact-box-side > .callout p {
    margin: 0;
}

.contact-box-side .dial {
    color: var(--on-accent);
    background: var(--accent);
    border-radius: 0.5em;
    padding: 0.6em 1em;
    text-decoration: none;
    overflow-wrap: anywhere;
    display: inline-block;
    font-weight: 700;
}

.contact-box-side > .phase {
    padding: 1.1em;
}

.post-full__single-head .post-full__published {
    margin: 0 0 1.25em;
}

.key-details {
    background: var(--alt);
    border-radius: 1em;
    padding: 1em;
    font-size: 0.9em;
    margin-bottom: 1.5em;
}

.key-details dl {
    margin: 0;
    grid-template-columns: auto minmax(0,1fr);
    gap: 0.3em 1em;
    display: grid;
}

.key-details dd {
    margin: 0;
}

.key-details dt {
    color: var(--mute);
}

.hero__cta-button, .dial, .contact-box button, .lookup button {
    color: var(--accent);
    background: transparent;
    border: 2px solid var(--accent);
}

.post-item__text a, .post-full__rich-text a {
    border-bottom: 1px solid var(--accent);
    text-decoration: none;
}

.post-item__preview img, .post-full__rich-text img, .post-item__text img {
    border-radius: 0;
}

.post-item__text > p:first-child, .post-full__rich-text > p:first-child {
    font-size: 1.15em;
}

body {
    line-height: 1.7;
}

.crumbs {
    border-radius: 0.5em;
    padding: 0.35em 0.7em;
    border: 1px solid var(--line);
}

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

.post-item__text ul, .post-full__rich-text ul {
    list-style-type: "\2713  ";
}

.quick-links a::before, .post-item__post-meta a::before {
    color: var(--accent);
    content: "#";
}

.paginator-top {
    margin: 0.5em 0;
    text-align: right;
}

.post-full-pg-card {
    background: var(--alt);
    border-radius: 1.5em;
    padding: 1.5em;
    border: 1px solid var(--line);
}

.timeline-list.grid {
    grid-template-columns: minmax(0,1fr);
    gap: 0.75em;
    display: grid;
}

.timeline-list.grid > div {
    border-radius: 1em;
    padding: 0.9em;
    border: 1px solid var(--line);
}

.timeline-list.grid a {
    text-decoration: none;
    display: block;
}

.timeline-list.grid span {
    color: var(--mute);
    font-size: 0.85em;
    display: block;
}

@media (min-width: 640px) {
    .hero .hero__title {
        font-size: 2.6em;
    }
    .hero-tt {
        background: linear-gradient(90deg, var(--alt) 0, var(--alt) 55%, var(--accent) 55%);
    }
    .hero-tt > .page-width {
        grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    }
    .site-body {
        align-items: start;
        grid-template-areas: "l m";
        grid-template-columns: 17em minmax(0,1fr);
        column-gap: 2.25em;
        display: grid;
    }
    .page-content {
        grid-area: m;
    }
    .secondary {
        grid-area: l;
        margin-top: 0;
    }
    .feed-mg .post-full__single-head:has(figure) {
        grid-template-columns: minmax(0,3fr) minmax(0,2fr);
    }
    .bottom-s2 .bottom__foot-columns {
        grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    }
    .contact-box-inline .quote-form {
        align-items: end;
        grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto;
    }
    .contact-box-side:has(> .callout) {
        grid-template-columns: minmax(0,2fr) minmax(0,3fr);
    }
    .timeline-list.grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (min-width: 960px) {
    .small-post {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
    .feed-mg .small-post {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}
