@font-face {
    font-family: "SP Montserrat";
    src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: "SP Archivo";
    src: url("../fonts/archivo-black-latin-ext.woff2") format("woff2");
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}

:root {
    --sp-primary: #174c3c;
    --sp-accent: #d94c3d;
    --sp-support: #f2bd3f;
    --sp-ink: #13231c;
    --sp-muted: #68746e;
    --sp-paper: #f4f0e7;
    --sp-surface: #fffdf8;
    --sp-white: #fff;
    --sp-line: rgba(19, 35, 28, .15);
    --sp-shadow: 0 24px 70px rgba(26, 45, 37, .12);
    --sp-font-body: "SP Montserrat", Arial, sans-serif;
    --sp-font-display: Georgia, "Times New Roman", serif;
    --sp-wrap: min(1320px, calc(100vw - 72px));
    --sp-reading: 760px;
    --sp-radius-media: 34px;
    --sp-radius-panel: 22px;
    --sp-radius-control: 999px;
    --sp-space: clamp(72px, 8vw, 132px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    margin: 0;
    color: var(--sp-ink);
    background: var(--sp-surface);
    font-family: var(--sp-font-body);
    font-size: 17px;
    line-height: 1.68;
    text-rendering: optimizeLegibility;
}

body.sp-font-modern {
    --sp-font-display: "SP Archivo", "Arial Black", sans-serif;
}

body.sp-font-soft {
    --sp-font-display: "SP Montserrat", Arial, sans-serif;
}

body.sp-font-soft h1,
body.sp-font-soft h2,
body.sp-font-soft h3 {
    letter-spacing: -.045em;
    font-weight: 800;
}

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

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

a:hover {
    color: var(--sp-accent);
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
.button {
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: var(--sp-font-display);
    line-height: 1.06;
    letter-spacing: -.035em;
}

h1 {
    font-size: clamp(46px, 5.5vw, 88px);
}

h2 {
    font-size: clamp(38px, 4.3vw, 66px);
}

h3 {
    font-size: clamp(24px, 2.1vw, 34px);
}

p {
    margin: 0 0 1.25em;
}

.wrap {
    width: var(--sp-wrap);
    margin-inline: auto;
}

.screen-reader-text,
.skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    z-index: 9999;
    top: 12px;
    left: 12px;
    padding: 12px 18px;
    color: var(--sp-white);
    background: var(--sp-ink);
    border-radius: 8px;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 24px;
    border: 0;
    border-radius: var(--sp-radius-control);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, color .2s ease, background-color .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button--primary {
    color: var(--sp-white);
    background: var(--sp-primary);
}

.button--primary:hover,
.button--accent {
    color: var(--sp-white);
    background: var(--sp-accent);
}

.button--accent:hover {
    color: var(--sp-ink);
    background: var(--sp-support);
}

.route-label,
.section-heading__route {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--sp-accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .15em;
    line-height: 1.2;
    text-transform: uppercase;
}

.route-label::before,
.section-heading__route::before {
    width: 11px;
    height: 11px;
    content: "";
    background: currentColor;
    border-radius: 50%;
    box-shadow: 16px 0 0 -4px currentColor;
}

.text-link {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.text-link span {
    font-size: 22px;
    transition: transform .2s ease;
}

.text-link:hover span {
    transform: translateX(4px);
}

/* Header */
.site-header {
    position: relative;
    z-index: 200;
    background: var(--sp-surface);
    border-bottom: 1px solid var(--sp-line);
}

.site-header__utility {
    color: color-mix(in srgb, var(--sp-primary) 86%, white);
    background: var(--sp-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}

.site-header__utility .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
}

.site-header__utility p {
    margin: 0;
}

.site-header__utility nav {
    display: flex;
    gap: 22px;
}

.site-header__utility a {
    color: inherit;
    text-decoration: none;
}

.site-header__utility a:hover {
    color: var(--sp-white);
}

.site-header__main {
    display: grid;
    grid-template-columns: minmax(220px, .72fr) auto 44px;
    gap: 28px;
    align-items: center;
    min-height: 106px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    width: max-content;
    text-decoration: none;
}

.site-brand:hover {
    color: inherit;
}

.site-brand__mark {
    width: 52px;
    flex: 0 0 52px;
}

.site-brand__mark circle:first-child {
    fill: var(--sp-primary);
}

.site-brand__mark path {
    fill: none;
    stroke: var(--sp-white);
    stroke-width: 4;
    stroke-linecap: round;
}

.site-brand__mark circle:not(:first-child) {
    fill: var(--sp-support);
}

.site-brand span {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-brand strong {
    font-family: var(--sp-font-display);
    font-size: 26px;
    letter-spacing: -.035em;
}

.site-brand small {
    max-width: 240px;
    margin-top: 5px;
    color: var(--sp-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.site-nav__list {
    display: flex;
    gap: clamp(16px, 2.2vw, 34px);
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    position: relative;
    padding-block: 18px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.site-nav .current-menu-item > a,
.site-nav a:hover {
    color: var(--sp-accent);
}

.site-nav .current-menu-item > a::after {
    position: absolute;
    right: 0;
    bottom: 8px;
    left: 0;
    height: 3px;
    content: "";
    background: var(--sp-accent);
    border-radius: 2px;
}

.search-toggle,
.menu-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--sp-ink);
    background: transparent;
    border: 1px solid var(--sp-line);
    border-radius: 50%;
    cursor: pointer;
}

.search-toggle svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.menu-toggle {
    display: none;
}

.header-search {
    padding: 20px 0;
    background: var(--sp-paper);
    border-top: 1px solid var(--sp-line);
}

.search-form {
    display: flex;
    gap: 10px;
    width: min(100%, 760px);
}

.search-form label {
    flex: 1;
}

.search-form input[type="search"] {
    width: 100%;
    min-height: 50px;
    padding: 10px 20px;
    background: var(--sp-white);
    border: 1px solid var(--sp-line);
    border-radius: var(--sp-radius-control);
}

.search-form input[type="submit"] {
    padding: 10px 22px;
    color: var(--sp-white);
    background: var(--sp-accent);
    border: 0;
    border-radius: var(--sp-radius-control);
    font-weight: 800;
    cursor: pointer;
}

/* Shared headings and breadcrumbs */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    padding-block: 26px;
    color: var(--sp-muted);
    font-size: 12px;
    font-weight: 700;
}

.breadcrumbs a {
    text-decoration: none;
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px 36px;
    align-items: end;
    margin-bottom: clamp(34px, 4vw, 62px);
}

.section-heading__route {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.section-heading h2 {
    max-width: 880px;
}

.section-heading > a {
    padding-bottom: 8px;
    color: var(--sp-accent);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.section-heading--compact {
    margin-bottom: 30px;
}

.section-heading--compact h2 {
    font-size: clamp(30px, 3.3vw, 48px);
}

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

/* Homepage hero */
.home-hero {
    padding-top: clamp(52px, 6vw, 92px);
}

.home-hero__intro {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, .7fr);
    gap: 40px 80px;
    align-items: end;
    margin-bottom: clamp(40px, 5vw, 70px);
}

.home-hero__intro .route-label {
    grid-column: 1 / -1;
    margin-bottom: -14px;
}

.home-hero__intro h1 {
    max-width: 950px;
}

.home-hero__intro > p:last-child {
    margin: 0;
    color: var(--sp-muted);
    font-size: clamp(17px, 1.4vw, 21px);
}

.feature-slider {
    position: relative;
}

.feature-slide {
    display: none;
    grid-template-columns: minmax(0, 1.52fr) minmax(310px, .68fr);
    min-height: clamp(540px, 54vw, 700px);
}

.feature-slide.is-active {
    display: grid;
}

.feature-slide__media {
    position: relative;
    z-index: 1;
    min-height: 100%;
    overflow: hidden;
    border-radius: var(--sp-radius-media) 0 0 var(--sp-radius-media);
}

.feature-slide__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}

.feature-slide__media:hover .feature-slide__image {
    transform: scale(1.025);
}

.feature-slide__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(42px, 5vw, 76px);
    color: var(--sp-white);
    background: var(--sp-primary);
    border-radius: 0 var(--sp-radius-media) var(--sp-radius-media) 0;
}

.feature-slide__content::before {
    position: absolute;
    top: 58px;
    left: -18px;
    width: 36px;
    height: 36px;
    content: "";
    background: var(--sp-support);
    border: 8px solid var(--sp-primary);
    border-radius: 50%;
}

.feature-slide__content h2 {
    margin: 18px 0 24px;
    font-size: clamp(38px, 4.2vw, 64px);
}

.feature-slide__content h2 a {
    text-decoration: none;
}

.feature-slide__content h2 a:hover,
.feature-slide__content .text-link:hover {
    color: var(--sp-support);
}

.feature-slide__content > p {
    max-width: 540px;
    color: color-mix(in srgb, var(--sp-white) 80%, transparent);
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    color: var(--sp-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.feature-slide__content .post-meta {
    color: color-mix(in srgb, var(--sp-white) 78%, transparent);
}

.post-meta__category {
    color: var(--sp-accent);
    text-decoration: none;
}

.feature-slide__content .post-meta__category {
    color: var(--sp-support);
}

.feature-slider__controls {
    position: absolute;
    z-index: 5;
    right: clamp(28px, 4vw, 62px);
    bottom: clamp(26px, 3vw, 44px);
    display: flex;
    gap: 8px;
    transform: translateY(85px);
}

.feature-slider__dot {
    width: 54px;
    height: 54px;
    color: var(--sp-muted);
    background: var(--sp-paper);
    border: 0;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.feature-slider__dot.is-active {
    color: var(--sp-white);
    background: var(--sp-accent);
}

/* Latest */
.home-latest {
    padding-top: calc(var(--sp-space) + 38px);
}

.latest-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr);
    gap: clamp(34px, 5vw, 72px);
    align-items: start;
}

.latest-lead__media {
    display: block;
    overflow: hidden;
    border-radius: var(--sp-radius-media);
}

.latest-lead__media img {
    width: 100%;
    aspect-ratio: 1.33;
    object-fit: cover;
}

.latest-lead__content {
    padding: 26px 8px 0;
}

.latest-lead h3 {
    margin: 15px 0;
    font-size: clamp(32px, 3.2vw, 50px);
}

.latest-lead h3 a,
.post-row h3 a {
    text-decoration: none;
}

.latest-lead p {
    color: var(--sp-muted);
}

.latest-list {
    border-top: 1px solid var(--sp-line);
}

.post-row {
    display: grid;
    grid-template-columns: 142px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding-block: 22px;
    border-bottom: 1px solid var(--sp-line);
}

.post-row__media {
    overflow: hidden;
    border-radius: 18px;
}

.post-row__media img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.post-row h3 {
    margin: 8px 0;
    font-size: clamp(21px, 1.7vw, 27px);
    line-height: 1.15;
}

.post-row p {
    margin: 0;
    color: var(--sp-muted);
    font-size: 13px;
    line-height: 1.5;
}

/* Topic route section */
.home-topics {
    color: var(--sp-white);
    background: var(--sp-primary);
}

.section-heading--light .section-heading__route {
    color: var(--sp-support);
}

.section-heading--light h2 {
    max-width: 980px;
}

.topic-routes {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, .25);
}

.topic-routes li {
    display: grid;
    grid-template-columns: 80px minmax(250px, .85fr) minmax(280px, 1.15fr);
    gap: 24px;
    align-items: center;
    min-height: 154px;
    padding-block: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, .25);
}

.topic-routes__number {
    color: var(--sp-support);
    font-size: 13px;
    font-weight: 900;
}

.topic-routes h3 {
    font-size: clamp(30px, 3.3vw, 48px);
}

.topic-routes h3 a,
.topic-routes__story {
    text-decoration: none;
}

.topic-routes h3 a:hover,
.topic-routes__story:hover {
    color: var(--sp-support);
}

.topic-routes p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
}

.topic-routes__story {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    font-size: 14px;
    font-weight: 800;
}

.topic-routes__story span {
    font-size: 26px;
}

/* Gallery */
.gallery-river {
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr;
    grid-template-rows: repeat(2, minmax(250px, 1fr));
    gap: 18px;
}

.gallery-teaser:first-child {
    grid-row: 1 / 3;
}

.gallery-teaser:nth-child(4) {
    grid-column: 2 / 4;
}

.gallery-teaser a,
.gallery-card a {
    position: relative;
    display: block;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    color: var(--sp-white);
    border-radius: var(--sp-radius-media);
}

.gallery-teaser img,
.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.gallery-teaser a::after,
.gallery-card a::after {
    position: absolute;
    inset: 36% 0 0;
    content: "";
    background: linear-gradient(to bottom, transparent, rgba(7, 20, 14, .84));
}

.gallery-teaser a:hover img,
.gallery-card a:hover img {
    transform: scale(1.035);
}

.gallery-teaser span,
.gallery-card span {
    position: absolute;
    z-index: 2;
    right: 24px;
    bottom: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.gallery-teaser strong,
.gallery-card strong {
    font-family: var(--sp-font-display);
    font-size: clamp(22px, 2.2vw, 36px);
    line-height: 1.06;
}

.gallery-teaser small,
.gallery-card small {
    color: rgba(255, 255, 255, .75);
    line-height: 1.4;
}

/* Company teaser */
.home-companies {
    display: grid;
    grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr);
    gap: clamp(50px, 8vw, 130px);
    align-items: start;
    padding-inline: clamp(34px, 5vw, 78px);
    background: color-mix(in srgb, var(--sp-support) 22%, var(--sp-paper));
    border-radius: var(--sp-radius-media);
}

.company-intro h2 {
    margin-bottom: 24px;
    font-size: clamp(38px, 4.2vw, 62px);
}

.company-intro > p:not(.section-heading__route) {
    color: var(--sp-muted);
}

.company-list {
    border-top: 1px solid var(--sp-line);
}

.company-row {
    display: grid;
    grid-template-columns: 1fr 54px;
    gap: 20px;
    align-items: center;
    min-height: 128px;
    border-bottom: 1px solid var(--sp-line);
}

.company-row p,
.directory-card__content > p:first-child {
    margin: 0 0 6px;
    color: var(--sp-accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.company-row h3 {
    font-size: clamp(26px, 2.6vw, 40px);
}

.company-row h3 a {
    text-decoration: none;
}

.company-row__arrow,
.directory-card__arrow {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: var(--sp-white);
    background: var(--sp-primary);
    border-radius: 50%;
    font-size: 22px;
    text-decoration: none;
}

.company-row__arrow:hover,
.directory-card__arrow:hover {
    color: var(--sp-white);
    background: var(--sp-accent);
}

/* Homepage editorial */
.home-editorial {
    display: grid;
    grid-template-columns: 100px minmax(0, 1.25fr) minmax(250px, .55fr);
    gap: clamp(32px, 5vw, 78px);
    align-items: start;
}

.home-editorial__marker {
    position: relative;
    width: 92px;
    height: 92px;
    background: var(--sp-accent);
    border-radius: 50%;
}

.home-editorial__marker::before,
.home-editorial__marker::after,
.home-editorial__marker span {
    position: absolute;
    width: 12px;
    height: 12px;
    content: "";
    background: var(--sp-support);
    border-radius: 50%;
}

.home-editorial__marker::before {
    top: 25px;
    left: 18px;
}

.home-editorial__marker::after {
    top: 48px;
    right: 17px;
}

.home-editorial__marker span {
    top: 39px;
    left: 40px;
}

.home-editorial__content h2 {
    margin-bottom: 30px;
}

.home-editorial__content > p:last-child {
    max-width: 850px;
    color: var(--sp-muted);
    font-size: clamp(17px, 1.5vw, 21px);
}

.home-editorial__links {
    border-top: 1px solid var(--sp-line);
}

.home-editorial__links a {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--sp-line);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

/* Archives and categories */
.archive-page,
.gallery-archive,
.content-page,
.not-found {
    padding-bottom: var(--sp-space);
}

.archive-hero {
    padding: clamp(46px, 7vw, 104px) 0 clamp(50px, 6vw, 90px);
}

.archive-hero--plain {
    max-width: 980px;
}

.archive-hero--plain p:last-child,
.archive-hero--gallery p:last-child {
    max-width: 740px;
    margin-top: 24px;
    color: var(--sp-muted);
    font-size: 20px;
}

.archive-page > .post-stream {
    max-width: 980px;
}

.archive-page .post-row {
    grid-template-columns: 250px minmax(0, 1fr);
    padding-block: 28px;
}

.archive-page .post-row__media img {
    aspect-ratio: 1.42;
}

.archive-page .post-row h3 {
    font-size: clamp(27px, 2.7vw, 42px);
}

.category-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .65fr);
    gap: clamp(50px, 8vw, 140px);
    align-items: end;
    padding: clamp(50px, 7vw, 100px) 0 clamp(60px, 8vw, 120px);
}

.category-hero > p {
    margin: 0;
    color: var(--sp-muted);
    font-size: clamp(18px, 1.7vw, 23px);
}

.category-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: clamp(55px, 8vw, 120px);
    align-items: start;
    padding-bottom: var(--sp-space);
}

.category-posts .post-row {
    grid-template-columns: 220px minmax(0, 1fr);
}

.category-posts .post-row__media img {
    aspect-ratio: 1.35;
}

.category-aside,
.article-sidebar {
    display: grid;
    gap: 26px;
}

.aside-module {
    padding: 26px;
    background: var(--sp-paper);
    border-radius: var(--sp-radius-panel);
}

.aside-module > p:first-child,
.company-contact > p:first-child {
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.aside-module > a {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--sp-line);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.aside-module > a:last-child {
    border-bottom: 0;
}

.aside-module--ad {
    color: var(--sp-white);
    background: var(--sp-primary);
}

.aside-module--ad small {
    display: block;
    margin-bottom: 48px;
    color: var(--sp-support);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
}

.aside-module--ad strong {
    display: block;
    font-family: var(--sp-font-display);
    font-size: 28px;
    line-height: 1.05;
}

.aside-module--ad p {
    margin: 16px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
}

.category-editorial {
    padding-block: var(--sp-space);
    background: var(--sp-paper);
}

.category-editorial__inner {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(50px, 9vw, 150px);
}

.category-editorial__inner h2 {
    font-size: clamp(38px, 4vw, 60px);
}

.category-editorial__inner > p {
    margin: 0;
    color: var(--sp-muted);
    font-size: 19px;
}

.nav-links {
    display: flex;
    gap: 8px;
    margin-top: 44px;
}

.page-numbers {
    display: grid;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    place-items: center;
    background: var(--sp-paper);
    border-radius: var(--sp-radius-control);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.page-numbers.current {
    color: var(--sp-white);
    background: var(--sp-accent);
}

/* Single article */
.article-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: clamp(50px, 6vw, 92px);
    align-items: start;
    padding: 30px 0 var(--sp-space);
}

.article-header {
    max-width: 1020px;
    margin-bottom: 44px;
}

.article-header h1 {
    margin-bottom: 30px;
    font-size: clamp(45px, 5.3vw, 78px);
}

.article-lead {
    max-width: 900px;
    color: var(--sp-muted);
    font-size: clamp(19px, 1.9vw, 26px);
    line-height: 1.55;
}

.article-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--sp-line);
    color: var(--sp-muted);
    font-size: 12px;
}

.article-byline img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
}

.article-byline div {
    display: flex;
    flex-direction: column;
    margin-right: auto;
}

.article-byline div a {
    color: var(--sp-ink);
    font-weight: 900;
    text-decoration: none;
}

.article-featured {
    margin: 0 0 48px;
}

.article-featured img {
    width: 100%;
    max-height: 720px;
    object-fit: cover;
    border-radius: var(--sp-radius-media);
}

.article-featured figcaption,
.gallery-single__lead figcaption {
    padding: 10px 12px 0;
    color: var(--sp-muted);
    font-size: 11px;
}

.article-content {
    max-width: var(--sp-reading);
    margin-inline: auto;
    font-size: clamp(17px, 1.25vw, 19px);
}

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

.entry-content h2 {
    margin: 2.1em 0 .7em;
    font-size: clamp(32px, 3vw, 46px);
    scroll-margin-top: 120px;
}

.entry-content h3 {
    margin: 1.8em 0 .6em;
    font-size: clamp(26px, 2.3vw, 34px);
    scroll-margin-top: 120px;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content figure,
.entry-content blockquote {
    margin: 0 0 1.5em;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.25em;
}

.entry-content li + li {
    margin-top: .55em;
}

.entry-content blockquote {
    padding: 26px 32px;
    background: var(--sp-paper);
    border-radius: 6px var(--sp-radius-panel) var(--sp-radius-panel) 6px;
    border-left: 6px solid var(--sp-support);
}

.article-sidebar {
    position: sticky;
    top: 28px;
}

.article-toc {
    padding: 26px;
    background: color-mix(in srgb, var(--sp-support) 18%, var(--sp-paper));
    border-radius: var(--sp-radius-panel);
}

.article-toc__title {
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.article-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-toc li {
    border-top: 1px solid var(--sp-line);
}

.article-toc a {
    display: block;
    padding: 10px 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

.article-toc__item--3 a {
    padding-left: 14px;
    color: var(--sp-muted);
}

.article-mobile-toc {
    display: none;
}

.article-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    max-width: var(--sp-reading);
    margin: 56px auto;
    padding-top: 26px;
    border-top: 1px solid var(--sp-line);
}

.back-link {
    display: inline-flex;
    margin-block: 20px;
    color: var(--sp-accent);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tags a {
    padding: 7px 12px;
    background: var(--sp-paper);
    border-radius: var(--sp-radius-control);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.author-box {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 24px;
    max-width: var(--sp-reading);
    margin: 0 auto 70px;
    padding: 32px;
    background: var(--sp-paper);
    border-radius: var(--sp-radius-panel);
}

.author-box img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
}

.author-box div > p:first-child {
    margin: 0;
    color: var(--sp-accent);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.author-box h2 {
    margin: 5px 0 10px;
    font-size: 30px;
}

.author-box p {
    color: var(--sp-muted);
    font-size: 13px;
}

.author-box a {
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.related-posts {
    margin-top: 70px;
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.related-posts .post-row {
    display: block;
    padding: 0;
    border: 0;
}

.related-posts .post-row__media {
    display: block;
    margin-bottom: 18px;
}

.related-posts .post-row p {
    display: none;
}

.related-posts .post-row h3 {
    font-size: 22px;
}

/* Gallery archive and single */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 330px;
    gap: 18px;
}

.gallery-card:nth-child(5n + 1) {
    grid-row: span 2;
}

.gallery-card:nth-child(5n + 4) {
    grid-column: span 2;
}

.gallery-single {
    padding: 50px 0 var(--sp-space);
}

.gallery-single__header {
    max-width: 980px;
    margin-bottom: 46px;
}

.gallery-single__header > p:last-child {
    max-width: 780px;
    margin-top: 24px;
    color: var(--sp-muted);
    font-size: 21px;
}

.gallery-single__lead {
    margin: 0 0 50px;
}

.gallery-single__lead img {
    width: 100%;
    max-height: 840px;
    object-fit: cover;
    border-radius: var(--sp-radius-media);
}

.gallery-single__content {
    max-width: var(--sp-reading);
    margin-inline: auto;
}

/* Directory */
.directory-page {
    padding-bottom: var(--sp-space);
}

.directory-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 60px;
    align-items: end;
    padding: clamp(60px, 8vw, 116px) 0 70px;
}

.directory-hero h1 {
    max-width: 900px;
}

.directory-hero p:not(.route-label) {
    max-width: 700px;
    margin-top: 24px;
    color: var(--sp-muted);
    font-size: 20px;
}

.directory-filters {
    display: flex;
    gap: 10px;
    padding-bottom: 42px;
    overflow-x: auto;
}

.directory-filters a {
    flex: 0 0 auto;
    padding: 10px 16px;
    background: var(--sp-paper);
    border-radius: var(--sp-radius-control);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.directory-filters span {
    margin-left: 5px;
    color: var(--sp-muted);
}

.directory-list {
    border-top: 1px solid var(--sp-line);
}

.directory-card {
    display: grid;
    grid-template-columns: 60px 190px minmax(0, 1fr) 60px;
    gap: 26px;
    align-items: center;
    min-height: 220px;
    padding-block: 26px;
    border-bottom: 1px solid var(--sp-line);
}

.directory-card__number {
    color: var(--sp-accent);
    font-size: 12px;
    font-weight: 900;
}

.directory-card__media {
    overflow: hidden;
    border-radius: 20px;
}

.directory-card__media img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.directory-card__content h2 {
    margin-bottom: 12px;
    font-size: clamp(30px, 3.3vw, 48px);
}

.directory-card__content h2 a {
    text-decoration: none;
}

.directory-card__content > p:last-child {
    max-width: 720px;
    margin: 0;
    color: var(--sp-muted);
}

.company-single {
    padding: 50px 0 var(--sp-space);
}

.company-single__header {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr);
    gap: clamp(48px, 7vw, 110px);
    align-items: center;
    margin-bottom: 70px;
}

.company-single__header > div > p:last-child {
    margin-top: 24px;
    color: var(--sp-muted);
    font-size: 20px;
}

.company-single__header figure {
    margin: 0;
}

.company-single__header img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: var(--sp-radius-media);
}

.company-single__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(50px, 8vw, 120px);
    align-items: start;
}

.company-contact {
    display: grid;
    gap: 12px;
    padding: 30px;
    background: color-mix(in srgb, var(--sp-support) 22%, var(--sp-paper));
    border-radius: var(--sp-radius-panel);
}

.company-contact a:not(.button) {
    font-weight: 800;
    text-decoration: none;
}

.company-contact small {
    color: var(--sp-muted);
    line-height: 1.45;
}

/* Forms and simple pages */
.content-page {
    padding-top: 40px;
}

.content-page > article {
    max-width: 900px;
}

.content-page header {
    margin-bottom: 42px;
}

.submit-company {
    max-width: 1000px;
}

.company-form {
    margin-top: 44px;
    padding: clamp(28px, 5vw, 58px);
    background: var(--sp-paper);
    border-radius: var(--sp-radius-media);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.form-grid p {
    margin: 0;
}

.form-grid__wide {
    grid-column: 1 / -1;
}

.company-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
}

.company-form input:not([type="checkbox"]),
.company-form textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--sp-white);
    border: 1px solid var(--sp-line);
    border-radius: 12px;
}

.company-form textarea {
    resize: vertical;
}

.form-consent label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 600;
}

.company-form .button {
    margin-top: 28px;
}

.hp-field {
    position: absolute !important;
    left: -10000px !important;
}

.form-notice {
    margin: 24px 0;
    padding: 18px 22px;
    border-radius: 12px;
    font-weight: 700;
}

.form-notice--success {
    color: var(--sp-white);
    background: var(--sp-primary);
}

.form-notice--error {
    color: var(--sp-white);
    background: var(--sp-accent);
}

.not-found {
    max-width: 900px;
    padding-top: clamp(70px, 10vw, 150px);
}

.not-found > p:not(.route-label) {
    max-width: 650px;
    margin-top: 28px;
    color: var(--sp-muted);
    font-size: 20px;
}

.not-found .search-form {
    margin: 34px 0 20px;
}

/* Footer */
.site-footer {
    position: relative;
    overflow: hidden;
    color: var(--sp-white);
    background: var(--sp-ink);
}

.site-footer__route {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    height: 8px;
}

.site-footer__route span:nth-child(1) {
    background: var(--sp-primary);
}

.site-footer__route span:nth-child(2) {
    background: var(--sp-accent);
}

.site-footer__route span:nth-child(3) {
    background: var(--sp-support);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.3fr .7fr .7fr 1fr;
    gap: 54px;
    padding-block: clamp(70px, 8vw, 120px);
}

.site-footer__name {
    margin: 0 0 20px;
    font-family: var(--sp-font-display);
    font-size: clamp(36px, 3.6vw, 54px);
    line-height: 1;
}

.site-footer__brand > p:last-child {
    max-width: 430px;
    color: rgba(255, 255, 255, .62);
}

.site-footer nav {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.site-footer nav p,
.site-footer__search > p {
    margin: 0 0 12px;
    color: var(--sp-support);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.site-footer nav a {
    color: rgba(255, 255, 255, .76);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.site-footer nav a:hover {
    color: var(--sp-white);
}

.site-footer .search-form {
    display: grid;
}

.site-footer .search-form input[type="search"] {
    color: var(--sp-white);
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .15);
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    padding-block: 20px;
    color: rgba(255, 255, 255, .48);
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: 11px;
}

.site-footer__bottom p {
    margin: 0;
}

@media (max-width: 1180px) {
    :root {
        --sp-wrap: min(100% - 44px, 1120px);
    }

    .site-header__main {
        grid-template-columns: 1fr 44px 44px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        align-items: center;
        justify-content: center;
    }

    .menu-toggle span:not(.screen-reader-text) {
        width: 18px;
        height: 2px;
        background: currentColor;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        padding: 20px 22px 30px;
        background: var(--sp-surface);
        border-top: 1px solid var(--sp-line);
        box-shadow: var(--sp-shadow);
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav__list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-content: stretch;
        width: var(--sp-wrap);
        margin-inline: auto;
    }

    .site-nav a {
        display: block;
        padding: 12px 0;
    }

    .feature-slide {
        grid-template-columns: 1.25fr .75fr;
    }

    .feature-slide__content {
        padding: 42px;
    }

    .feature-slide__content h2 {
        font-size: 42px;
    }

    .article-page {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 46px;
    }

    .site-footer__grid {
        grid-template-columns: 1.2fr repeat(2, .7fr);
    }

    .site-footer__search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    :root {
        --sp-radius-media: 26px;
        --sp-space: 84px;
    }

    .site-header__utility p {
        display: none;
    }

    .site-header__utility .wrap {
        justify-content: flex-end;
    }

    .home-hero__intro,
    .category-hero,
    .category-editorial__inner,
    .company-single__header {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .feature-slide {
        grid-template-columns: 1fr;
    }

    .feature-slide__content {
        order: -1;
        min-height: 410px;
        border-radius: var(--sp-radius-media) var(--sp-radius-media) 0 0;
    }

    .feature-slide__content::before {
        top: auto;
        bottom: -18px;
        left: 58px;
    }

    .feature-slide__media {
        min-height: 480px;
        border-radius: 0 0 var(--sp-radius-media) var(--sp-radius-media);
    }

    .feature-slider__controls {
        right: 24px;
        bottom: 24px;
        transform: none;
    }

    .home-latest {
        padding-top: var(--sp-space);
    }

    .latest-layout,
    .home-companies,
    .home-editorial,
    .category-body,
    .article-page,
    .company-single__body {
        grid-template-columns: 1fr;
    }

    .topic-routes li {
        grid-template-columns: 55px minmax(0, 1fr);
    }

    .topic-routes__story {
        grid-column: 2;
    }

    .gallery-river {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 280px);
    }

    .gallery-teaser:first-child {
        grid-row: 1 / 3;
    }

    .gallery-teaser:nth-child(4) {
        grid-column: 1 / 3;
    }

    .home-companies {
        gap: 40px;
    }

    .home-editorial {
        padding-block: var(--sp-space);
    }

    .category-aside {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-sidebar {
        position: static;
        grid-template-columns: repeat(2, 1fr);
    }

    .article-sidebar .article-toc {
        display: none;
    }

    .article-mobile-toc {
        display: block;
        max-width: var(--sp-reading);
        margin: 0 auto 40px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .directory-hero {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .directory-hero .button {
        width: max-content;
    }

    .directory-card {
        grid-template-columns: 48px 150px minmax(0, 1fr) 54px;
    }

    .site-footer__grid {
        grid-template-columns: 1.2fr .8fr .8fr;
    }
}

@media (max-width: 680px) {
    :root {
        --sp-wrap: calc(100vw - 30px);
        --sp-radius-media: 21px;
        --sp-radius-panel: 17px;
        --sp-space: 68px;
    }

    body {
        font-size: 16px;
    }

    h1 {
        font-size: clamp(42px, 13vw, 64px);
    }

    h2 {
        font-size: clamp(34px, 10vw, 50px);
    }

    .site-header__utility nav {
        gap: 14px;
        width: 100%;
        justify-content: space-between;
    }

    .site-header__main {
        grid-template-columns: minmax(0, 1fr) 42px 42px;
        gap: 8px;
        min-height: 86px;
    }

    .site-brand__mark {
        width: 44px;
        flex-basis: 44px;
    }

    .site-brand strong {
        font-size: 20px;
    }

    .site-brand small {
        display: none;
    }

    .site-nav__list {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .home-hero {
        padding-top: 42px;
    }

    .home-hero__intro {
        margin-bottom: 34px;
    }

    .home-hero__intro .route-label {
        margin-bottom: -4px;
    }

    .home-hero__intro > p:last-child {
        font-size: 16px;
    }

    .feature-slide__content {
        min-height: 390px;
        padding: 34px 28px 78px;
    }

    .feature-slide__content h2 {
        font-size: 36px;
    }

    .feature-slide__media {
        min-height: 330px;
    }

    .feature-slider__dot {
        width: 45px;
        height: 45px;
    }

    .section-heading {
        grid-template-columns: 1fr;
    }

    .section-heading > a {
        width: max-content;
    }

    .latest-lead__media img {
        aspect-ratio: 1.18;
    }

    .post-row,
    .category-posts .post-row,
    .archive-page .post-row {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 16px;
    }

    .post-row .post-meta > *:not(.post-meta__category),
    .post-row p {
        display: none;
    }

    .post-row h3,
    .archive-page .post-row h3 {
        font-size: 21px;
    }

    .topic-routes li {
        grid-template-columns: 38px minmax(0, 1fr);
        min-height: 140px;
    }

    .topic-routes__story {
        display: none;
    }

    .gallery-river {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .gallery-teaser {
        min-width: 82vw;
        height: 480px;
        scroll-snap-align: start;
    }

    .home-companies {
        width: calc(100vw - 20px);
        padding-inline: 24px;
    }

    .company-row {
        min-height: 112px;
    }

    .company-row h3 {
        font-size: 27px;
    }

    .home-editorial__marker {
        width: 70px;
        height: 70px;
    }

    .category-hero {
        padding-top: 44px;
    }

    .category-aside,
    .article-sidebar {
        grid-template-columns: 1fr;
    }

    .article-page {
        padding-top: 16px;
    }

    .article-header h1 {
        font-size: clamp(40px, 12vw, 58px);
    }

    .article-byline {
        gap: 12px;
    }

    .article-byline time,
    .article-byline > span:last-child {
        width: calc(50% - 8px);
    }

    .article-content {
        font-size: 17px;
    }

    .article-featured {
        margin-inline: -7px;
    }

    .author-box {
        grid-template-columns: 60px 1fr;
        padding: 24px;
    }

    .author-box img {
        width: 60px;
        height: 60px;
    }

    .related-posts__grid {
        grid-template-columns: 1fr;
    }

    .related-posts .post-row {
        display: grid;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-rows: 420px;
    }

    .gallery-card:nth-child(n) {
        grid-row: auto;
        grid-column: auto;
    }

    .directory-card {
        grid-template-columns: 34px 104px minmax(0, 1fr);
        gap: 12px;
        min-height: 170px;
    }

    .directory-card__arrow {
        display: none;
    }

    .directory-card__content h2 {
        font-size: 25px;
    }

    .directory-card__content > p:last-child {
        display: none;
    }

    .company-single__header {
        margin-bottom: 44px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid__wide {
        grid-column: auto;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 42px 24px;
    }

    .site-footer__brand,
    .site-footer__search {
        grid-column: 1 / -1;
    }

    .site-footer__bottom {
        display: grid;
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

