/* Deployably Consulting theme
   1. Fonts       2. Tokens      3. Base        4. Layout
   5. Header      6. Buttons     7. Type        8. Homepage
   9. Articles   10. Content    11. Code       12. Footer
   13. Small screens */

/* 1. Fonts: self-hosted variable fonts, SIL Open Font License (see assets/fonts) */
@font-face {
    font-family: "Archivo";
    font-style: normal;
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
    src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Source Serif 4";
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    src: url("../fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Source Serif 4";
    font-style: italic;
    font-weight: 200 900;
    font-display: swap;
    src: url("../fonts/source-serif-4-latin-opsz-italic.woff2") format("woff2");
}

/* 2. Tokens */
:root {
    --chalk: #F9F6EE;
    --granite: #F1EDE0;
    --slate: #161950;
    --slate-hover: #2E3370;
    --graphite: #434872;
    --pewter: #5F6489;
    --rule: #D6CFB9;
    --rule-soft: #E4DFCE;
    --dash: #7D81A3;
    --mist: #D8D2BB;
    --code-bg: #EEE9D8;

    /* Set the accent in Ghost Admin (Settings, Design & branding); this is the fallback. */
    --accent: var(--ghost-accent-color, #B4440E);
    --link-hover: #8F350B;
    --focus: #2A31D8;
    --focus-on-dark: #C6C9E6;

    /* Ghost sets these two variables only if you pick other fonts in Admin; otherwise the theme's fonts apply. */
    --font-display: var(--gh-font-heading, "Archivo", "Helvetica Neue", Arial, sans-serif);
    --font-body: var(--gh-font-body, "Source Serif 4", Georgia, "Times New Roman", serif);
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

    --container: 1200px;
    --gutter: clamp(20px, 5vw, 64px);
    --header-h: 88px;
    --section-space: clamp(72px, 9vw, 112px);
    --section-bg: var(--chalk);
}

/* 3. Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 8px);
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    background: var(--chalk);
    color: var(--slate);
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

a {
    color: inherit;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
}

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

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 50;
    padding: 12px 18px;
    background: var(--slate);
    color: var(--chalk);
    border-radius: 6px;
    font-family: var(--font-display);
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 16px;
    color: var(--chalk);
}

.nowrap {
    white-space: nowrap;
}

/* 4. Layout */
.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow {
    max-width: calc(720px + 2 * var(--gutter));
}

.container--wide {
    max-width: calc(1040px + 2 * var(--gutter));
}

.section {
    padding-block: var(--section-space);
}

/* Homepage bands alternate chalk and granite, whatever sections are present. */
.home-sections > section {
    background: var(--section-bg);
}

.home-sections > section:nth-of-type(even) {
    --section-bg: var(--granite);
}

.home-sections > section.contact {
    --section-bg: var(--slate);
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 48px;
    margin-bottom: 44px;
}

.section-head > p {
    margin: 0;
    max-width: 26em;
    color: var(--graphite);
}

.section-head > .text-link {
    padding-block: 8px;
}

.section-title {
    margin-bottom: 48px;
}

/* 5. Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgb(249 246 238 / 0.94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--rule-soft);
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    min-height: var(--header-h);
}

.wordmark {
    padding-block: 10px;
    font-family: var(--font-display);
    font-stretch: 85%;
    font-weight: 700;
    font-size: 1.4375rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
    text-decoration: none;
}

.wordmark span {
    font-weight: 400;
}

.wordmark:hover {
    color: var(--slate);
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    display: block;
    padding: 12px 14px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.3;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.is-current {
    text-decoration: underline;
}

.site-nav > .button {
    margin-left: 12px;
}

.nav-toggle {
    display: none;
    padding: 10px 16px;
    background: transparent;
    color: var(--slate);
    border: 1px solid var(--slate);
    border-radius: 6px;
    font: 600 1rem/1.2 var(--font-display);
    cursor: pointer;
}

/* 6. Buttons and links */
.button {
    display: inline-block;
    padding: 17px 26px;
    background: var(--slate);
    color: var(--chalk);
    border-radius: 6px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.0625rem;
    line-height: 1.2;
    text-decoration: none;
}

.button:hover {
    background: var(--slate-hover);
    color: var(--chalk);
}

.button--small {
    padding: 12px 20px;
    font-size: 1rem;
}

.button--light {
    background: var(--chalk);
    color: var(--slate);
}

.button--light:hover {
    background: #FFFFFF;
    color: var(--slate);
}

.text-link {
    display: inline-block;
    padding: 17px 6px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.0625rem;
    line-height: 1.2;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}

/* 7. Type */
.display-1,
.display-2,
.display-3,
.display-4 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    color: inherit;
}

.display-1 {
    font-stretch: 82%;
    font-size: clamp(2.5rem, 1.6rem + 3.2vw, 3.75rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.display-2 {
    font-stretch: 82%;
    font-size: clamp(2.25rem, 1.65rem + 2.2vw, 3.25rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.display-3 {
    font-stretch: 85%;
    font-size: clamp(1.75rem, 1.45rem + 1.1vw, 2.25rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.display-4 {
    font-stretch: 85%;
    font-size: clamp(1.5rem, 1.3rem + 0.75vw, 1.875rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.heading-4 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.3125rem;
    line-height: 1.25;
}

.small-sans {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.9375rem;
    line-height: 1.4;
    color: var(--pewter);
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    margin: 0;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    line-height: 1.4;
    color: var(--pewter);
}

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

/* 8. Homepage */
.hero__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 56px 72px;
    padding-block: clamp(56px, 8vw, 88px) var(--section-space);
}

.hero__copy {
    flex: 1 1 540px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hero__copy .display-1 {
    max-width: 760px;
}

.hero__tagline {
    margin: -8px 0 0;
    font-family: var(--font-display);
    font-stretch: 85%;
    font-weight: 600;
    font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.625rem);
    line-height: 1.25;
    color: var(--accent);
}

.hero__lede {
    margin: 0;
    max-width: 32em;
    font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.3125rem);
    line-height: 1.6;
    color: var(--graphite);
}

.hero__availability {
    margin: 0;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--pewter);
}

.hero__photo {
    flex: 0 1 340px;
    min-width: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero__photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 8px;
    background: var(--rule-soft);
}

.hero__photo figcaption {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    line-height: 1.4;
    color: var(--pewter);
}

.clients__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px 48px;
    padding-block: 36px;
}

.clients__title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
}

.clients__list {
    flex: 1 1 640px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--font-display);
    font-stretch: 90%;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.35;
    color: var(--pewter);
}

.clients__note {
    flex: 1 0 100%;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--pewter);
}

.services {
    border-top: 2px solid var(--slate);
}

.service {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px 48px;
    padding-block: 36px;
    border-bottom: 1px solid var(--rule);
}

.service__name {
    flex: 0 0 230px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.service__desc {
    flex: 1 1 400px;
    max-width: 34em;
    margin: 0;
    color: var(--graphite);
}

.service__price {
    flex: 0 0 210px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: var(--font-display);
}

.price {
    margin: 0;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.2;
}

.price--quiet {
    font-size: 1.25rem;
    line-height: 1.3;
}

.price-note {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.4;
    color: var(--pewter);
}

.thesis__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 56px 80px;
}

.thesis__copy {
    flex: 1 1 480px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.thesis__copy p {
    margin: 0;
    max-width: 34em;
    font-size: 1.1875rem;
    line-height: 1.7;
    color: var(--graphite);
}

.scope-figure {
    flex: 0 1 440px;
    min-width: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.scope {
    width: 100%;
    max-width: 440px;
}

.scope__box {
    position: relative;
    width: min(336px, 78%);
    margin-top: 13px;
    padding: 46px 24px 34px 28px;
    border: 2px dashed var(--dash);
    border-radius: 10px;
}

.scope__label {
    position: absolute;
    top: 0;
    left: 18px;
    margin: 0;
    padding: 2px 10px;
    transform: translateY(-55%);
    background: var(--section-bg);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--pewter);
}

.scope__list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.125rem;
    line-height: 1.3;
}

.scope__list li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-check {
    flex: 0 0 auto;
}

.scope__outside {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: min(244px, 62%);
    margin: 29px 0 0 auto;
}

.ring {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    border: 3px solid var(--accent);
    border-radius: 50%;
}

.scope__outside-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: var(--font-display);
}

.scope__outside-text strong {
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.3;
}

.scope__outside-label {
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--accent);
}

.scope-figure figcaption {
    max-width: 26em;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--pewter);
}

.work-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 56px 64px;
}

.work-item {
    flex: 1 1 460px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
}

.work-item__desc {
    margin: 0;
    max-width: 34em;
    color: var(--graphite);
}

.finding {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.45;
    color: var(--accent);
}

.finding .ring {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    border-width: 2.5px;
}

.testimonials {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 64px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--rule);
}

.testimonial {
    flex: 1 1 440px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
}

.testimonial blockquote {
    margin: 0;
    font-style: italic;
    font-size: 1.375rem;
    line-height: 1.5;
}

.testimonial blockquote p {
    margin: 0;
}

.testimonial figcaption {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    line-height: 1.4;
    color: var(--pewter);
}

.terms-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 48px;
}

.term {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.term p {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--graphite);
}

.ai {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--rule);
}

.ai__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px 80px;
}

.ai__head .display-3 {
    flex: 1 1 320px;
    font-stretch: 82%;
}

.ai__head p {
    flex: 1 1 520px;
    max-width: 36em;
    margin: 0;
    line-height: 1.7;
    color: var(--graphite);
}

.about__copy {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 38em;
}

.about__copy .display-2 {
    margin-bottom: 8px;
}

.about__copy p {
    margin: 0;
    line-height: 1.7;
    color: var(--graphite);
}

.about__copy .about__lede {
    font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.3125rem);
    line-height: 1.6;
    color: var(--slate);
}

.faq__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px 80px;
}

.faq__inner > .display-2 {
    flex: 1 1 300px;
}

.faq-list {
    flex: 2 1 560px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.faq-item h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.375rem;
    line-height: 1.3;
}

.faq-item p {
    margin: 0;
    max-width: 36em;
    color: var(--graphite);
}

.contact {
    color: var(--chalk);
}

.contact :focus-visible {
    outline-color: var(--focus-on-dark);
}

.contact__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 56px 80px;
    padding-block: var(--section-space) clamp(64px, 8vw, 96px);
}

.contact__main {
    flex: 1 1 520px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact__main .display-1 {
    font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4rem);
    line-height: 1;
}

.contact__lede {
    margin: 0;
    max-width: 32em;
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--mist);
}

.contact .text-link {
    padding-inline: 4px;
    color: var(--chalk);
    overflow-wrap: anywhere;
}

.contact .text-link:hover {
    color: #FFFFFF;
}

.cover {
    flex: 1 1 360px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 10px;
}

.cover h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.3;
}

.cover ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cover li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    line-height: 1.5;
    color: var(--mist);
}

.cover li::before {
    content: "";
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin-top: 10px;
    background: var(--dash);
    border-radius: 50%;
}

/* 9. Articles: index, tag pages, post cards */
.page-head {
    padding-block: clamp(56px, 8vw, 88px) clamp(32px, 4vw, 48px);
}

.page-head__lede {
    margin: 20px 0 0;
    max-width: 36em;
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--graphite);
}

.page-head__back {
    margin: 0 0 8px;
}

.page-head__back .text-link {
    padding: 8px 0;
    font-size: 1rem;
}

.page-head--error {
    padding-bottom: var(--section-space);
}

.page-head--error .actions {
    margin-top: 32px;
}

.listing {
    padding-bottom: var(--section-space);
}

.post-list {
    border-top: 2px solid var(--slate);
}

.post-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-block: 32px;
    border-bottom: 1px solid var(--rule);
}

.post-card > * {
    max-width: 44rem;
}

.post-card__title {
    margin: 0;
    font-family: var(--font-display);
    font-stretch: 85%;
    font-weight: 700;
    font-size: clamp(1.5rem, 1.3rem + 0.75vw, 1.875rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
}

.post-card__title a {
    text-decoration: none;
}

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

.post-card__excerpt {
    margin: 0;
    color: var(--graphite);
}

.empty {
    margin: 0;
    padding-top: 32px;
    border-top: 2px solid var(--slate);
    color: var(--graphite);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
}

.pagination__count {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    color: var(--pewter);
}

/* 10. Article pages and Ghost content */
.article {
    padding-top: clamp(48px, 7vw, 80px);
}

.article__head {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 44px;
}

.article__title {
    margin: 0;
    font-family: var(--font-display);
    font-stretch: 82%;
    font-weight: 700;
    font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
}

.article__standfirst {
    margin: 0;
    font-style: italic;
    font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.375rem);
    line-height: 1.55;
    color: var(--graphite);
}

.article__image {
    margin-bottom: 48px;
}

.article__image img {
    width: 100%;
    border-radius: 8px;
}

.article__image figcaption {
    margin-top: 10px;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    line-height: 1.4;
    color: var(--pewter);
}

/* Ghost's editor uses these width classes; the grid gives wide and full-width cards room. */
.gh-content {
    --measure: 720px;
    display: grid;
    grid-template-columns:
        [full-start] minmax(var(--gutter), 1fr)
        [wide-start] minmax(0, 160px)
        [main-start] min(var(--measure), calc(100% - 2 * var(--gutter))) [main-end]
        minmax(0, 160px) [wide-end]
        minmax(var(--gutter), 1fr) [full-end];
    font-size: 1.1875rem;
    line-height: 1.75;
}

.gh-content > * {
    grid-column: main-start / main-end;
    margin-block: 0;
}

.gh-content > * + * {
    margin-top: 1.4em;
}

.gh-content > .kg-width-wide {
    grid-column: wide-start / wide-end;
}

.gh-content > .kg-width-full {
    grid-column: full-start / full-end;
}

.gh-content > .kg-width-full img {
    width: 100%;
}

.gh-content > * + h2 {
    margin-top: 1.9em;
}

.gh-content > * + h3 {
    margin-top: 1.6em;
}

.gh-content > h2 + *,
.gh-content > h3 + * {
    margin-top: 0.6em;
}

.gh-content h2 {
    font-family: var(--font-display);
    font-stretch: 85%;
    font-weight: 700;
    font-size: clamp(1.625rem, 1.35rem + 1vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.gh-content h3 {
    font-family: var(--font-display);
    font-weight: 650;
    font-size: 1.375rem;
    line-height: 1.25;
}

.gh-content h4 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1875rem;
    line-height: 1.3;
}

.gh-content a {
    color: var(--slate);
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
}

.gh-content a:hover {
    color: var(--link-hover);
}

.gh-content ul,
.gh-content ol {
    padding-left: 1.3em;
}

.gh-content li + li {
    margin-top: 0.45em;
}

.gh-content blockquote:not([class]) {
    margin-inline: 0;
    padding-left: 1.2em;
    border-left: 3px solid var(--accent);
    font-style: italic;
}

.gh-content hr {
    width: 100%;
    margin-block: 2.4em;
    border: 0;
    border-top: 1px solid var(--rule);
}

.gh-content figure {
    margin-inline: 0;
}

.gh-content figcaption {
    margin-top: 10px;
    font-family: var(--font-display);
    font-size: 0.9375rem;
    line-height: 1.4;
    color: var(--pewter);
    text-align: center;
}

.gh-content img {
    border-radius: 6px;
}

.gh-content > .kg-width-full img {
    border-radius: 0;
}

.gh-content table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-display);
    font-size: 1rem;
}

.gh-content th,
.gh-content td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--rule);
    text-align: left;
    vertical-align: top;
}

.article__cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 64px;
    margin-bottom: var(--section-space);
    padding-top: 28px;
    border-top: 2px solid var(--slate);
}

.article__cta p {
    margin: 0;
    color: var(--graphite);
}

.article__cta .article__cta-title {
    font-family: var(--font-display);
    font-stretch: 85%;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--slate);
}

.article__cta p:last-child {
    margin-top: 8px;
}

.article__body--page {
    padding-bottom: var(--section-space);
}

/* 11. Code */
.gh-content code {
    padding: 0.1em 0.35em;
    background: var(--granite);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.86em;
}

.gh-content pre {
    overflow-x: auto;
    padding: 18px 20px;
    background: var(--code-bg);
    border: 1px solid var(--rule-soft);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
    tab-size: 2;
}

.gh-content pre code {
    padding: 0;
    background: none;
    font-size: inherit;
}

/* Prism tokens, tuned for at least 4.5:1 contrast on the code background */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #56616B;
    font-style: italic;
}

.token.punctuation,
.token.operator {
    color: var(--graphite);
}

.token.keyword,
.token.atrule,
.token.selector,
.token.important,
.token.builtin {
    color: #23558F;
}

.token.string,
.token.char,
.token.attr-value,
.token.regex,
.token.inserted {
    color: #2F6B3B;
}

.token.number,
.token.boolean,
.token.constant,
.token.symbol {
    color: #8A4307;
}

.token.function,
.token.class-name {
    color: #6A3A99;
}

.token.property,
.token.tag,
.token.attr-name,
.token.variable,
.token.deleted {
    color: #A0331E;
}

/* 12. Footer */
.site-footer {
    background: var(--slate);
    color: #B5B8D2;
}

.site-footer :focus-visible {
    outline-color: var(--focus-on-dark);
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding-block: 28px 44px;
    font-family: var(--font-display);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* On the homepage the footer follows the dark contact band, so a rule separates them. */
main:has(.home-sections) + .site-footer .site-footer__inner {
    border-top: 1px solid #33376B;
}

.site-footer p {
    margin: 0;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
}

.site-footer .nav-link {
    padding: 12px 8px;
    font-size: 0.875rem;
    font-weight: 400;
    color: #E0DEF0;
}

.site-footer .nav-link:hover {
    color: #FFFFFF;
}

/* 13. Small screens */
@media (max-width: 859px) {
    :root {
        --header-h: 68px;
    }

    .js .nav-toggle {
        display: inline-block;
    }

    .js .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 8px var(--gutter) 24px;
        background: var(--chalk);
        border-bottom: 1px solid var(--rule-soft);
    }

    .js .site-nav.is-open {
        display: flex;
    }

    .js .site-nav .nav-list {
        flex-direction: column;
        align-items: stretch;
    }

    .js .site-nav .nav-link {
        padding-inline: 0;
        font-size: 1.125rem;
    }

    .js .site-nav > .button {
        margin: 12px 0 0;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .service__name,
    .service__price {
        flex-basis: 100%;
    }

    .hero__photo {
        flex-basis: 100%;
        max-width: 360px;
    }

    .contact__main .actions .button {
        width: 100%;
        text-align: center;
    }
}
