:root {
    --color-paper: #f7f3e8;
    --color-ink: #111111;
    --color-muted: #5b584f;
    --color-line: #111111;
    --color-cyan: #00d6ff;
    --color-lime: #c4ff00;
    --color-pink: #ff4fb8;
    --color-orange: #ff7a1a;
    --color-white: #ffffff;
    --shadow-hard: 10px 10px 0 #111111;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-paper);
    color: var(--color-ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.55;
}

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

a {
    color: inherit;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: 0;
    text-transform: uppercase;
}

p {
    margin: 0;
}

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

.skip-link:focus {
    z-index: 1000;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    clip: auto;
    background: var(--color-lime);
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 3px solid var(--color-line);
    background: rgba(247, 243, 232, 0.94);
    backdrop-filter: blur(10px);
}

.site-header__inner,
.section,
.site-footer__grid,
.site-footer__bottom,
.archive-hero,
.single-article {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.custom-logo {
    max-width: 220px;
    max-height: 64px;
}

.brand__mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 3px solid var(--color-line);
    background: var(--color-lime);
    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: 19px;
    box-shadow: 5px 5px 0 var(--color-line);
}

.brand__text {
    font-family: "Arial Narrow", Impact, sans-serif;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.primary-nav ul,
.footer-nav ul,
.footer-meta ul {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav a,
.footer-nav a,
.footer-meta a {
    display: block;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    text-transform: uppercase;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
    background: var(--color-ink);
    color: var(--color-white);
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 44px;
    padding: 9px;
    border: 3px solid var(--color-line);
    background: var(--color-white);
}

.menu-toggle span:not(.screen-reader-text) {
    display: block;
    height: 3px;
    margin: 5px 0;
    background: var(--color-ink);
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 78px);
    border-bottom: 3px solid var(--color-line);
    background:
        linear-gradient(90deg, transparent 49%, rgba(17, 17, 17, 0.11) 50%, transparent 51%) 0 0 / 48px 48px,
        linear-gradient(0deg, transparent 49%, rgba(17, 17, 17, 0.11) 50%, transparent 51%) 0 0 / 48px 48px,
        var(--color-paper);
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    align-items: center;
    width: min(var(--max-width), calc(100% - 32px));
    min-height: calc(100vh - 78px);
    margin: 0 auto;
    gap: 48px;
    padding: 60px 0 72px;
}

.hero__copy h1 {
    max-width: 820px;
    font-size: clamp(56px, 10vw, 148px);
}

.hero__copy p {
    max-width: 650px;
    margin-top: 28px;
    font-size: clamp(20px, 2.5vw, 34px);
    font-weight: 800;
    line-height: 1.1;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 34px;
    padding: 14px 22px;
    border: 3px solid var(--color-line);
    background: var(--color-white);
    box-shadow: 6px 6px 0 var(--color-line);
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 var(--color-line);
}

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

.hero__poster {
    position: relative;
    min-height: 520px;
}

.poster-card {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 275px;
    min-height: 330px;
    padding: 22px;
    border: 3px solid var(--color-line);
    box-shadow: var(--shadow-hard);
    color: var(--color-ink);
}

.poster-card span {
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
}

.poster-card strong {
    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: 66px;
    line-height: 0.86;
    text-transform: uppercase;
}

.poster-card--one {
    top: 16px;
    right: 100px;
    z-index: 3;
    background: var(--color-cyan);
    transform: rotate(-5deg);
}

.poster-card--two {
    top: 122px;
    right: 0;
    z-index: 2;
    background: var(--color-lime);
    transform: rotate(7deg);
}

.poster-card--three {
    top: 245px;
    right: 150px;
    z-index: 1;
    background: var(--color-orange);
    transform: rotate(-2deg);
}

.ticker {
    display: flex;
    overflow: hidden;
    border-bottom: 3px solid var(--color-line);
    background: var(--color-ink);
    color: var(--color-white);
}

.ticker span {
    min-width: max-content;
    padding: 14px 28px;
    border-right: 3px solid var(--color-white);
    font-family: "Arial Narrow", Impact, sans-serif;
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.section {
    padding: 74px 0;
}

.section__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    border-bottom: 3px solid var(--color-line);
    padding-bottom: 18px;
}

.section__header h2,
.archive-hero h1 {
    font-size: clamp(42px, 7vw, 88px);
}

.section__header a,
.section__header span {
    max-width: 360px;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.post-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border: 3px solid var(--color-line);
    background: var(--color-white);
    box-shadow: 8px 8px 0 var(--color-line);
}

.post-card:nth-child(3n + 2) {
    background: #fdf6cb;
}

.post-card:nth-child(3n + 3) {
    background: #e5fbff;
}

.post-card__image {
    display: block;
    aspect-ratio: 1.25 / 1;
    border-bottom: 3px solid var(--color-line);
    background:
        radial-gradient(circle at 25% 30%, var(--color-pink) 0 11%, transparent 12%),
        radial-gradient(circle at 78% 58%, var(--color-lime) 0 13%, transparent 14%),
        linear-gradient(135deg, var(--color-ink) 0 30%, var(--color-cyan) 30% 64%, var(--color-orange) 64%);
    text-decoration: none;
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.15);
}

.post-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.post-card__meta,
.single-hero__meta {
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.post-card h3 {
    font-size: clamp(28px, 3.5vw, 44px);
}

.post-card h3 a {
    text-decoration: none;
}

.post-card p {
    color: var(--color-muted);
    font-size: 16px;
}

.section--about {
    width: 100%;
    max-width: none;
    border-top: 3px solid var(--color-line);
    border-bottom: 3px solid var(--color-line);
    background: var(--color-ink);
    color: var(--color-white);
}

.about-panel {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
    gap: 40px;
}

.about-panel h2 {
    color: var(--color-lime);
    font-size: clamp(44px, 7vw, 92px);
}

.about-panel p {
    font-size: clamp(21px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.12;
}

.feature-list {
    display: grid;
    gap: 10px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    border-top: 2px solid rgba(255, 255, 255, 0.32);
    padding-top: 12px;
    font-weight: 800;
}

.place-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.place-card {
    min-height: 310px;
    border: 3px solid var(--color-line);
    padding: 20px;
    box-shadow: 8px 8px 0 var(--color-line);
}

.place-card span {
    font-family: Impact, "Arial Narrow", sans-serif;
    font-size: 72px;
    line-height: 1;
}

.place-card h3 {
    margin-top: 80px;
    font-size: clamp(34px, 4vw, 58px);
}

.place-card--cyan {
    background: var(--color-cyan);
}

.place-card--lime {
    background: var(--color-lime);
}

.place-card--pink {
    background: var(--color-pink);
}

.archive-hero {
    padding: 76px 0 34px;
}

.archive-hero > div {
    border-bottom: 3px solid var(--color-line);
    padding-bottom: 28px;
}

.archive-hero p {
    max-width: 760px;
    margin-top: 18px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.18;
}

.single-article {
    padding: 56px 0 86px;
}

.single-hero {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: end;
    gap: 32px;
    margin-bottom: 48px;
    border-bottom: 3px solid var(--color-line);
    padding-bottom: 34px;
}

.single-hero--page {
    display: block;
}

.single-hero h1 {
    margin-top: 12px;
    font-size: clamp(48px, 8vw, 106px);
}

.single-hero p {
    margin-top: 20px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.single-hero__image {
    border: 3px solid var(--color-line);
    box-shadow: var(--shadow-hard);
}

.entry-content {
    max-width: 820px;
    margin: 0 auto;
}

.entry-content > * {
    margin-top: 0;
    margin-bottom: 1.25em;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 1.2em;
}

.entry-content h2 {
    font-size: 52px;
}

.entry-content h3 {
    font-size: 38px;
}

.entry-content a {
    font-weight: 800;
}

.entry-content blockquote {
    margin-left: 0;
    border-left: 10px solid var(--color-pink);
    padding-left: 22px;
    font-size: 24px;
    font-weight: 800;
}

.entry-footer {
    max-width: 820px;
    margin: 32px auto 0;
    font-weight: 900;
    text-transform: uppercase;
}

.pagination,
.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 42px;
}

.page-numbers {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--color-line);
    background: var(--color-white);
    font-weight: 900;
    text-decoration: none;
}

.page-numbers.current {
    background: var(--color-lime);
}

.empty-state {
    border: 3px solid var(--color-line);
    background: var(--color-white);
    padding: 30px;
    box-shadow: var(--shadow-hard);
}

.empty-state h2 {
    font-size: 54px;
}

.search-form {
    display: flex;
    max-width: 620px;
    gap: 10px;
    margin-top: 24px;
}

.search-field {
    width: 100%;
    min-height: 54px;
    border: 3px solid var(--color-line);
    padding: 12px 14px;
    background: var(--color-white);
    color: var(--color-ink);
    font: inherit;
}

.search-form button {
    min-height: 54px;
    border: 3px solid var(--color-line);
    padding: 12px 18px;
    background: var(--color-lime);
    color: var(--color-ink);
    font-weight: 900;
    text-transform: uppercase;
}

.site-footer {
    border-top: 3px solid var(--color-line);
    background: var(--color-ink);
    color: var(--color-white);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1fr;
    gap: 36px;
    padding: 54px 0;
}

.brand--footer .brand__mark {
    background: var(--color-cyan);
}

.site-footer p {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.76);
}

.footer-nav ul,
.footer-meta ul {
    display: grid;
    align-items: start;
    gap: 8px;
}

.footer-nav a,
.footer-meta a {
    color: var(--color-white);
}

.footer-meta {
    border: 2px solid rgba(255, 255, 255, 0.26);
    padding: 18px;
    background: rgba(255, 255, 255, 0.035);
}

.footer-menu-title {
    margin: 0 0 14px;
    color: var(--color-lime);
    font-family: "Arial Narrow", Impact, sans-serif;
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.footer-meta a {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding: 12px 30px 12px 0;
}

.footer-meta li:last-child a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.footer-meta a::after {
    position: absolute;
    right: 2px;
    content: "→";
    color: var(--color-lime);
    font-size: 18px;
    line-height: 1;
    transition: transform 160ms ease;
}

.footer-meta a:hover {
    color: var(--color-lime);
}

.footer-meta a:hover::after {
    transform: translateX(4px);
}

.footer-widget__title {
    margin-bottom: 12px;
    color: var(--color-lime);
    font-size: 28px;
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    padding: 18px 0 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

@media (max-width: 920px) {
    .menu-toggle {
        display: block;
    }

    .primary-nav {
        position: absolute;
        top: 78px;
        right: 16px;
        left: 16px;
        display: none;
        border: 3px solid var(--color-line);
        background: var(--color-white);
        box-shadow: 8px 8px 0 var(--color-line);
    }

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

    .primary-nav ul {
        display: grid;
        gap: 0;
    }

    .primary-nav a {
        border-bottom: 2px solid var(--color-line);
        padding: 16px;
    }

    .hero__inner,
    .single-hero,
    .about-panel,
    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .hero__inner {
        align-items: start;
        min-height: auto;
    }

    .hero__poster {
        min-height: 390px;
    }

    .poster-card {
        width: 230px;
        min-height: 255px;
    }

    .poster-card strong {
        font-size: 50px;
    }

    .post-grid,
    .place-strip {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .site-header__inner,
    .section,
    .site-footer__grid,
    .site-footer__bottom,
    .archive-hero,
    .single-article,
    .hero__inner {
        width: min(100% - 24px, var(--max-width));
    }

    .brand__text {
        max-width: 190px;
        font-size: 21px;
    }

    .hero__copy h1 {
        font-size: 54px;
    }

    .hero__copy p {
        font-size: 21px;
    }

    .hero__poster {
        min-height: 330px;
    }

    .poster-card {
        width: 190px;
        min-height: 220px;
        padding: 16px;
    }

    .poster-card strong {
        font-size: 40px;
    }

    .poster-card--one {
        right: 76px;
    }

    .poster-card--two {
        top: 90px;
        right: 0;
    }

    .poster-card--three {
        top: 172px;
        right: 92px;
    }

    .section {
        padding: 54px 0;
    }

    .section__header {
        display: block;
    }

    .section__header a,
    .section__header span {
        display: block;
        margin-top: 12px;
    }

    .post-grid,
    .place-strip {
        grid-template-columns: 1fr;
    }

    .search-form,
    .site-footer__bottom {
        display: grid;
    }

    .place-card {
        min-height: 240px;
    }

    .place-card h3 {
        margin-top: 48px;
    }
}
