:root {
    --color-slate: #1d1f27;
    --color-blue: #283b4f;
    --color-white: #ffffff;
    --color-coral: #ff8a8e;
    --color-grey: #d9d9d9;
    --color-footer-ink: #1e1e1e;

    --font-display: "GT Sectra Fine", Georgia, "Times New Roman", serif;
    --font-body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;

    --gutter: 1.5rem;
    --content-max: 90rem;
    --page-padding-inline: 0.75rem;

    --transition-speed: 0.2s;
    --focus-ring: #6cb6ff;
}

@supports (color: oklch(0% 0 0)) {
    :root {
        --color-slate: oklch(24.08% 0.0156 274.14);
        --color-blue: oklch(34.53% 0.0429 250.40);
        --color-white: oklch(100% 0 89.88);
        --color-coral: oklch(76.24% 0.1418 18.82);
        --color-grey: oklch(88.53% 0 89.88);
        --color-footer-ink: oklch(23.50% 0 89.88);
    }
}

@font-face {
    font-family: "GT Sectra Fine";
    src: url("/fonts/gt-sectra-fine/GTSectraFine-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Atkinson Hyperlegible Next";
    src: url("/fonts/atkinson-hyperlegible-next/AtkinsonHyperlegibleNext-ExtraLight.woff2") format("woff2");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Atkinson Hyperlegible Next";
    src: url("/fonts/atkinson-hyperlegible-next/AtkinsonHyperlegibleNext-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Atkinson Hyperlegible Next";
    src: url("/fonts/atkinson-hyperlegible-next/AtkinsonHyperlegibleNext-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
    transition: color var(--transition-speed) ease, background-color var(--transition-speed) ease;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--color-slate);
    color: var(--color-white);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

body > .page {
    flex: 1 0 auto;
    width: 100%;
}

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

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--color-white);
    color: var(--color-slate);
    padding: 0.75rem 1rem;
    z-index: 100;
}

.skip-link:focus {
    left: 0.5rem;
    top: 0.5rem;
}

a {
    color: inherit;
}

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

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
}

.link-accent {
    color: var(--color-coral);
    text-decoration: underline;
    text-decoration-skip-ink: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.button {
    display: inline-block;
    background: var(--color-coral);
    color: var(--color-slate);
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: underline;
    text-decoration-skip-ink: auto;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
}

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

.link-accent:hover {
    color: var(--color-white);
    text-decoration-thickness: 2px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gutter);
}

.col12-1 { grid-column: span 1; }
.col12-2 { grid-column: span 2; }
.col12-3 { grid-column: span 3; }
.col12-4 { grid-column: span 4; }
.col12-5 { grid-column: span 5; }
.col12-6 { grid-column: span 6; }
.col12-7 { grid-column: span 7; }
.col12-8 { grid-column: span 8; }
.col12-9 { grid-column: span 9; }
.col12-10 { grid-column: span 10; }
.col12-11 { grid-column: span 11; }
.col12-12 { grid-column: span 12; }

@media (max-width: 48rem) {
    [class*="col12-"] {
        grid-column: span 12;
    }
}

.divider {
    border: 0;
    border-top: 2px solid var(--color-blue);
    width: 20%;
    margin: 40px 0 0;
}

.page {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 2.5rem var(--page-padding-inline);
}

.site-logo {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 4.5rem;
    line-height: 1.15;
    text-align: center;
}

.site-logo a {
    text-decoration: none;
}

.site-tagline {
    margin: 0.75rem 0 3rem;
    font-family: var(--font-body);
    font-weight: 200;
    font-size: 2.5rem;
    line-height: 1.15;
    color: var(--color-coral);
    text-align: center;
}

.primary-nav {
    border-right: 2px solid var(--color-blue);
    padding-right: 1.5rem;
    align-self: start;
}

.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav li {
    text-align: left;
}

.primary-nav li.nav-group-start {
    margin-top: 1.25rem;
}

.primary-nav a {
    display: inline-block;
    padding: 0.25rem 0;
    font-size: 1.125rem;
    line-height: 1.2;
    text-decoration: underline;
    text-decoration-skip-ink: auto;
}

.primary-nav a[aria-current="page"] {
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 48rem) {
    .site-logo {
        font-size: 2.25rem;
    }

    .site-tagline {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }

    .primary-nav {
        border-right: 0;
        border-bottom: 2px solid var(--color-blue);
        padding-right: 0;
        padding-bottom: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .primary-nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem 1.25rem;
    }

    .primary-nav li.nav-group-start {
        margin-top: 0;
    }
}

.hero {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
}

.hero p {
    margin: 0 0 1.25rem;
}

.hero-divider {
    margin-bottom: 2.5rem;
}

.hero-cta {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.75rem;
    margin: 0;
}

.work-list {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.work-card,
.discipline-block {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.work-card__image,
.discipline-block__image {
    flex: 0 0 17.8rem;
    width: 17.8rem;
    aspect-ratio: 285 / 184;
    border-radius: 4px;
    background: var(--color-grey);
    object-fit: cover;
}

.work-card__body,
.discipline-block__body {
    flex: 1 1 auto;
    min-width: 0;
}

.work-card__title {
    margin: 0 0 0.5rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.4;
}

.work-card__subtitle {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    font-style: italic;
}

.work-card__summary {
    margin: 0 0 1.25rem;
    font-size: 1.125rem;
}

.work-card__cta {
    display: block;
    width: fit-content;
    margin-left: auto;
    background: var(--color-coral);
    color: var(--color-slate);
    font-weight: 700;
    font-size: 1.125rem;
    text-align: center;
    text-decoration: underline;
    text-decoration-skip-ink: auto;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
}

.work-card__cta:hover {
    background: var(--color-white);
    color: var(--color-slate);
}

@media (max-width: 48rem) {
    .work-card,
    .discipline-block {
        flex-direction: column;
    }

    .work-card__image,
    .discipline-block__image {
        width: 100%;
        flex-basis: auto;
    }
}

.info-section {
    margin-top: 3rem;
}

.info-block .divider {
    margin-bottom: 1.5rem;
}

.info-block h2 {
    margin: 0 0 1.25rem;
}

.info-block ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.info-block li {
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
}

.info-block li:last-child {
    margin-bottom: 0;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 1.75rem;
    margin: 0 0 1rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
    margin: 0 0 1rem;
}

.site-footer {
    flex-shrink: 0;
    color: var(--color-slate);
    margin-top: 40px;
}

.footer-peekaboo {
    max-width: var(--content-max);
    margin-inline: auto;
    padding-inline: var(--page-padding-inline);
}

.footer-peekaboo img {
    width: 175px;
    margin-left: auto;
}

.footer-bar {
    background: var(--color-grey);
}

.footer-bar .page {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    padding-block: 1.25rem;
}

.footer-links {
    margin: 0;
    font-weight: 700;
    font-size: 0.875rem;
}

.footer-links a {
    text-decoration: underline;
    text-decoration-skip-ink: auto;
}

.footer-links a:hover {
    color: var(--color-blue);
}

.footer-copyright {
    margin: 0;
    font-size: 0.875rem;
}

@media (max-width: 48rem) {
    .footer-bar .page {
        justify-content: center;
        text-align: center;
    }
}

.case-study {
    font-size: 1.125rem;
}

.breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 2.5rem;
}

.breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
}

.breadcrumb li {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
}

.breadcrumb li + li::before {
    content: ">";
    color: var(--color-white);
}

.breadcrumb a {
    color: var(--color-coral);
    text-decoration: underline;
    text-decoration-skip-ink: auto;
}

.breadcrumb a:hover {
    color: var(--color-white);
}

.breadcrumb [aria-current="page"] {
    color: var(--color-white);
}

.case-study__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 1.5rem;
}

.case-meta {
    margin: 0;
    border-left: 2px solid var(--color-coral);
    padding-left: 1.5rem;
}

.case-meta > div + div {
    margin-top: 1rem;
}

.case-meta dt,
.case-meta dd {
    display: inline;
    margin: 0;
}

.case-meta dt {
    font-weight: 700;
}

.section-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    margin: 2rem 0 0;
    font-weight: 700;
}

.section-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.section-nav li {
    display: flex;
    gap: 0.5rem;
}

.section-nav li + li::before {
    content: "|";
    color: var(--color-white);
    font-weight: 400;
}

.case-section {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.25rem var(--gutter);
}

.case-section > * {
    flex-basis: 100%;
    margin: 0;
}

.case-section > h2 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.4;
}

.case-section--lead {
    font-size: 1.5rem;
}

.rich-text > :first-child { margin-top: 0; }
.rich-text > :last-child { margin-bottom: 0; }

.rich-text p,
.rich-text ul,
.rich-text ol {
    margin: 0 0 1.25rem;
}

.rich-text a {
    color: var(--color-coral);
    text-decoration: underline;
    text-decoration-skip-ink: auto;
}

.rich-text a:hover {
    color: var(--color-white);
}

/* Links marked "Open in a new tab" in rich text carry their own target/rel
   (set via the field's CKEditor link decorator), but not a visible label -
   announce the context change the same way the visually-hidden class does. */
.rich-text a[target="_blank"]::after {
    content: " (opens in new tab)";
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.case-quote {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 20px;
    align-items: start;
    font-style: italic;
    font-size: 1.5rem;
}

.case-quote::before {
    content: "\f10d" / "";
    grid-column: 1;
    grid-row: 1;
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    font-size: 5rem;
    line-height: 1;
    font-style: normal;
    color: var(--color-blue);
}

.case-quote blockquote {
    grid-column: 2;
    margin: 0;
}

.case-quote p {
    margin: 0 0 1.25rem;
}

.case-quote p:last-child {
    margin-bottom: 0;
}

.case-quote__attribution {
    grid-column: 2;
    margin-top: 0.5rem;
    font-style: normal;
    font-weight: 700;
    text-align: right;
}

.case-figure {
    margin: 0;
}

.case-figure img {
    width: 100%;
    border-radius: 4px;
}

.case-figure__link {
    display: block;
    cursor: zoom-in;
}

.case-figure__link:hover img {
    opacity: 0.92;
}

.case-figure figcaption {
    margin-top: 0.75rem;
    padding-left: 0.75rem;
    font-size: 0.875rem;
    font-style: italic;
}

.case-figure--full {
    flex-basis: 100%;
}

.case-figure--half {
    flex: 1 1 calc(50% - (var(--gutter) / 2));
}

.case-figure--half img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.case-study__more {
    margin: 2.5rem 0 0;
}

.basicLightbox {
    background: rgba(29, 31, 39, 0.92);
}

.page-intro {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
}

.discipline-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 2rem;
}

.discipline-block__body > * {
    margin: 0 0 1rem;
}

.discipline-block__body > :last-child {
    margin-bottom: 0;
}

.discipline-block .button {
    display: block;
    width: fit-content;
    margin-left: auto;
}

.discipline-block__title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.75rem;
    line-height: 1.2;
    color: var(--color-coral);
    text-decoration: underline;
}

.discipline-block__title a {
    color: inherit;
    text-decoration: underline;
}

.page-entry > h1 {
    margin: 0 0 1.5rem;
}

.page-content > * {
    margin-top: 2rem;
    margin-bottom: 0;
}

.page-content > h2 {
    margin-top: 3rem;
}

.page-content > h3,
.page-content > h4 {
    margin-top: 2.5rem;
}

.page-content > .page-figure,
.page-content > .case-quote,
.page-content > .page-figure + *,
.page-content > .case-quote + * {
    margin-top: 20px;
}

.page-content > :first-child {
    margin-top: 0;
}

.page-figure {
    margin-inline: 0;
}

.page-figure img {
    border-radius: 4px;
}

.page-figure--full img {
    width: 100%;
}

.page-figure--half {
    max-width: 50%;
}

.page-figure--half img {
    width: 100%;
}

.page-figure--native img {
    width: auto;
    max-width: 100%;
    height: auto;
}

.page-figure figcaption {
    margin-top: 0.75rem;
    padding-left: 0.75rem;
    font-size: 0.875rem;
    font-style: italic;
}

.thoughts-lede {
    font-size: 1.5rem;
    margin-top: 1rem;
}

.thoughts-lede br {
    display: block;
    content: "";
    margin-bottom: 20px;
}

.thoughts-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    margin: 2.5rem 0 0;
}

.thoughts-search__label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.75rem;
}

.search-field {
    flex: 1 1 20rem;
    display: flex;
    align-items: stretch;
    background: var(--color-white);
    border: 0;
    border-radius: 999px;
    overflow: hidden;
}

.search-field:focus-within {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
}

.search-field input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0.6rem 1.25rem;
    font: inherit;
    color: var(--color-slate);
}

.search-field input:focus {
    outline: none;
}

.search-field button {
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    background: var(--color-coral);
    color: var(--color-slate);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
    cursor: pointer;
}

.search-field button:hover {
    background: var(--color-grey);
}

.thought-list {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    margin-top: 2.5rem;
}

.thought-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.thought-card__title a {
    color: var(--color-coral);
    text-decoration: underline;
    text-decoration-skip-ink: auto;
}

.thought-card__title a:hover {
    color: var(--color-white);
}

.thought-card__meta,
.thought-entry__meta {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    font-style: italic;
}

.tag-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    border: 1px solid var(--color-grey);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-coral);
    text-decoration: underline;
    text-decoration-skip-ink: auto;
}

.tag:hover {
    background: var(--color-grey);
    color: var(--color-slate);
}

.thought-card__excerpt {
    margin: 0 0 1.25rem;
}

.thought-card__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
    margin: 0;
}

.thoughts-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin: 3rem 0 0;
}

.thoughts-archive__count {
    margin: 1.5rem 0 0;
    font-size: 0.875rem;
    font-style: italic;
}

.pager {
    margin: 3rem 0 0;
}

.pager__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.pager a {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-skip-ink: auto;
}

.pager__num {
    display: inline-block;
    min-width: 2.25rem;
    padding: 0.35rem 0.5rem;
    text-align: center;
    border-radius: 4px;
}

.pager__num--current {
    background: var(--color-coral);
    color: var(--color-slate);
    text-decoration: none;
}

.pager__gap {
    padding: 0.35rem 0.25rem;
}

@media (max-width: 48rem) {
    .case-figure--half {
        flex-basis: 100%;
    }

    .case-section--lead {
        font-size: 1.25rem;
    }

    .case-quote {
        font-size: 1.25rem;
    }

    .case-quote::before {
        font-size: 3.5rem;
    }

    .page-figure--half {
        max-width: 100%;
    }

    .thought-card__actions {
        justify-content: flex-start;
    }
}

/* Entry gallery */
.gallery-section {
    margin-top: 2.5rem;
}

.gallery {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(max(200px, (100% - 3 * var(--gutter)) / 4), 1fr));
    align-items: start;
    gap: var(--gutter);
}

.gallery__item {
    margin: 0;
}

.gallery__link {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    cursor: zoom-in;
}

.gallery__image {
    display: block;
    width: 100%;
    height: auto;
}

.gallery__link:hover .gallery__image {
    opacity: 0.92;
}
