@font-face {
    font-family: "IBM Plex Sans";
    src: url("../fonts/IBMPlexSans-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Sans";
    src: url("../fonts/IBMPlexSans-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Sans";
    src: url("../fonts/IBMPlexSans-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --paper: #faf9f6;
    --ink: #20211f;
    --ink-soft: #41433f;
    --muted: #73756f;
    --line: #d9d8d2;
    --accent: #315c47;
    --header-height: 72px;
    --site-width: 1080px;
    --article-width: 760px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    color: inherit;
    font: inherit;
}

p,
h1,
h2,
h3,
blockquote {
    margin-top: 0;
}

[hidden] {
    display: none !important;
}

::selection {
    background: #dce8df;
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.sr-only {
    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 {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    padding: 8px 12px;
    background: var(--ink);
    color: var(--paper);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-shell {
    width: min(calc(100% - 48px), var(--site-width));
    margin-inline: auto;
}

.article-shell {
    width: min(calc(100% - 48px), var(--article-width));
    margin-inline: auto;
}

.site-header {
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    min-height: var(--header-height);
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-name {
    display: inline-flex;
    align-items: baseline;
    gap: 9px;
    flex-shrink: 0;
    font-size: 14px;
}

.site-name strong {
    color: var(--accent);
    font-weight: 600;
}

.name-separator {
    color: var(--line);
}

.site-navigation {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--muted);
    font-size: 13px;
}

.site-navigation > a:hover,
.site-navigation > a:focus-visible {
    color: var(--accent);
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 5px;
}

.language-switch button {
    padding: 2px 0;
    border: 0;
    border-bottom: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
}

.language-switch button[aria-pressed="true"] {
    border-bottom-color: var(--accent);
    color: var(--ink);
}

.language-switch > span {
    color: var(--line);
}

.intro {
    padding-block: clamp(90px, 12vw, 150px) clamp(65px, 9vw, 105px);
}

.intro h1 {
    margin-bottom: 32px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(74px, 12vw, 132px);
    font-weight: 400;
    letter-spacing: -0.065em;
    line-height: 0.9;
}

.intro > p {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: clamp(21px, 2.5vw, 28px);
    line-height: 1.5;
}

.topics {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 30px;
    padding-block: 19px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.topics span:not(:last-child)::after {
    margin-left: 30px;
    color: var(--line);
    content: "/";
}

.posts {
    padding-block: clamp(85px, 10vw, 125px);
}

.section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.section-heading h2 {
    margin-bottom: 0;
    font-size: 16px;
    font-weight: 600;
}

.section-heading > span {
    color: var(--muted);
    font-size: 12px;
}

.post-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 30px;
    align-items: start;
    gap: clamp(30px, 6vw, 75px);
    padding-block: clamp(34px, 5vw, 55px);
    border-top: 1px solid var(--ink);
}

.post-row:last-child {
    border-bottom: 1px solid var(--ink);
}

.post-row > time {
    display: grid;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.post-topic {
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.post-copy h3 {
    margin-bottom: 17px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5.5vw, 62px);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1;
    transition: color 150ms ease;
}

.post-copy > p:last-child {
    max-width: 620px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 16px;
}

.post-action {
    padding-top: 42px;
    color: var(--accent);
    font-size: 22px;
    transition: transform 150ms ease;
}

.post-row:hover h3 {
    color: var(--accent);
}

.post-row:hover .post-action {
    transform: translateX(5px);
}

.notes-purpose {
    padding-block: clamp(75px, 10vw, 120px);
    border-top: 1px solid var(--line);
}

.notes-purpose p {
    max-width: 800px;
    margin-bottom: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(29px, 4vw, 44px);
    letter-spacing: -0.025em;
    line-height: 1.32;
}

.site-footer {
    border-top: 1px solid var(--line);
}

.site-footer > div {
    display: flex;
    min-height: 94px;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    color: var(--muted);
    font-size: 11px;
}

.site-footer p {
    margin-bottom: 0;
}

.made-in {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tenerife-icon {
    display: block;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* Article */

.article-hero {
    padding-block: clamp(75px, 10vw, 120px) clamp(60px, 8vw, 90px);
    border-bottom: 1px solid var(--line);
}

.back-link {
    display: inline-block;
    margin-bottom: clamp(65px, 9vw, 100px);
    color: var(--muted);
    font-size: 12px;
}

.back-link:hover {
    color: var(--accent);
}

.article-topic {
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.article-hero h1 {
    margin-bottom: 30px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(57px, 9vw, 92px);
    font-weight: 400;
    letter-spacing: -0.06em;
    line-height: 0.95;
}

.article-standfirst {
    max-width: 700px;
    margin-bottom: 35px;
    color: var(--ink-soft);
    font-size: clamp(20px, 2.7vw, 25px);
    line-height: 1.55;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 25px;
    color: var(--muted);
    font-size: 11px;
}

.article-content {
    padding-block: clamp(65px, 9vw, 105px);
}

.article-media {
    margin-top: clamp(34px, 5vw, 58px);
    margin-bottom: 0;
}

.article-media img {
    display: block;
    width: 100%;
    height: auto;
}

.article-media figcaption {
    display: flex;
    justify-content: space-between;
    gap: 12px 32px;
    padding-top: 11px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.55;
}

.article-media figcaption > span:last-child {
    flex-shrink: 0;
    text-align: right;
}

.article-media figcaption a {
    text-decoration: underline;
    text-decoration-color: var(--line);
    text-underline-offset: 3px;
}

.article-media figcaption a:hover {
    color: var(--accent);
    text-decoration-color: currentColor;
}

.article-copy p {
    margin-bottom: 29px;
    color: var(--ink-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.78;
}

.article-copy h2 {
    margin: 62px 0 24px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 4.5vw, 42px);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.article-copy > *:first-child {
    margin-top: 0;
}

.article-copy > *:last-child {
    margin-bottom: 0;
}

.article-navigation {
    padding-block: 38px clamp(75px, 9vw, 110px);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.article-navigation a:hover {
    color: var(--accent);
}

@media (max-width: 720px) {
    :root {
        --header-height: 66px;
    }

    .site-shell,
    .article-shell {
        width: min(calc(100% - 32px), var(--site-width));
    }

    .article-shell {
        max-width: var(--article-width);
    }

    .header-inner {
        gap: 18px;
    }

    .site-name {
        gap: 6px;
        font-size: 12px;
    }

    .site-navigation {
        gap: 16px;
        font-size: 11px;
    }

    .article-page .portfolio-link {
        display: none;
    }

    .intro {
        padding-block: 75px 60px;
    }

    .intro h1 {
        margin-bottom: 24px;
        font-size: clamp(68px, 23vw, 100px);
    }

    .intro > p {
        font-size: 20px;
    }

    .topics {
        gap: 7px 20px;
        font-size: 12px;
    }

    .topics span:not(:last-child)::after {
        margin-left: 20px;
    }

    .posts {
        padding-block: 72px;
    }

    .post-row {
        grid-template-columns: 1fr 24px;
        gap: 16px;
        padding-block: 30px 38px;
    }

    .post-row > time {
        grid-column: 1 / -1;
        display: flex;
        gap: 5px;
    }

    .post-copy h3 {
        font-size: clamp(39px, 13vw, 55px);
    }

    .post-action {
        padding-top: 39px;
    }

    .notes-purpose {
        padding-block: 70px;
    }

    .site-footer > div {
        min-height: 115px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 2px;
    }

    .made-in {
        flex-wrap: wrap;
    }

    .back-link {
        margin-bottom: 60px;
    }

    .article-hero h1 {
        font-size: clamp(54px, 17vw, 72px);
    }

    .article-content {
        padding-block: 60px 80px;
    }

    .article-media figcaption {
        display: block;
    }

    .article-media figcaption > span {
        display: block;
    }

    .article-media figcaption > span:last-child {
        margin-top: 4px;
        text-align: left;
    }

    .article-copy p {
        font-size: 19px;
        line-height: 1.72;
    }
}

@media (max-width: 380px) {
    .site-name .owner,
    .site-name .name-separator {
        display: none;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }
}
