:root {
    --tpm-ink: #030307;
    --tpm-paper: #f5f5f5;
    --tpm-accent: #d31c1c;
    --tpm-font-display: "Estedad", "Circular Std", Arial, Helvetica, sans-serif;
    --tpm-font-terminal: "Estedad", "IBM Plex Mono", "Courier New", monospace;
    --tpm-font-body: "Estedad", "Circular Std", Arial, Helvetica, sans-serif;
    --tpm-motion-fast: 140ms;
    --tpm-motion-base: 240ms;
    --tpm-ease-smooth: cubic-bezier(.22, 1, .36, 1);
}

/* Magazines archive and individual issue views. */
.tpm-magazines,
.tpm-magazine {
    color: var(--tpm-ink);
    background: var(--tpm-paper);
}

.tpm-magazines__masthead {
    display: grid;
    grid-template-columns: 130px 1fr;
    align-items: end;
    min-height: 320px;
    padding: 0 32px 18px;
    color: var(--tpm-paper);
    background: var(--tpm-accent);
}

.tpm-magazines__masthead small { padding-bottom: 9px; font-size: 24px; }
.tpm-magazines__masthead h1 { margin: 0; font-size: 56px; line-height: 1; }
.tpm-magazines__latest { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 32px; }
.tpm-magazines__latest-cover { display: block; aspect-ratio: 170 / 230; overflow: hidden; }
.tpm-magazines__latest-cover img,
.tpm-magazine-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.tpm-magazines__latest-copy { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.tpm-magazines__latest-copy h2 { margin: 0 0 12px; color: var(--tpm-accent); font-size: 40px; line-height: 1.02; }
.tpm-magazines__latest-copy time { color: rgba(211, 28, 28, .55); font: 500 24px/1.2 var(--tpm-font-terminal); }
.tpm-magazines__latest-copy p { margin: 42px 0 24px; font-size: 20px; line-height: 1.35; }
.tpm-magazine-actions { display: grid; gap: 16px; width: 100%; }
.tpm-magazine-actions .tpm-button,
.tpm-magazine-actions .tpm-outline-button { width: 100%; }
.tpm-magazine-actions .is-disabled { opacity: .48; cursor: not-allowed; }
.tpm-magazines__previous { padding: 96px 32px 128px; }
.tpm-magazines__previous > header { margin-bottom: 48px; }
.tpm-magazines__previous h2 { display: flex; gap: 16px; align-items: center; margin: 0 0 12px; font-size: 40px; }
.tpm-magazines__previous h2 span { font-family: var(--tpm-font-terminal); }
.tpm-magazines__previous header p { margin: 0; color: rgba(3,3,7,.55); font-size: 20px; }
.tpm-magazines__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
.tpm-magazine-card { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-width: 0; }
.tpm-magazine-card__cover { aspect-ratio: 292 / 395; overflow: hidden; }
.tpm-magazine-card__copy { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.tpm-magazine-card h3 { margin: 0; font-size: 32px; line-height: 1.08; }
.tpm-magazine-card h3 a { color: inherit; }
.tpm-magazine-card__copy > div > p { margin: 12px 0; color: rgba(3,3,7,.5); font: 500 24px/1.2 var(--tpm-font-terminal); }
.tpm-magazine-card .tpm-button,
.tpm-magazine-card .tpm-outline-button { min-height: 64px; padding: 10px 16px; font-size: 24px; }
.tpm-magazines__empty { min-height: 400px; padding: 64px 32px; font: 700 24px var(--tpm-font-terminal); }

.tpm-magazine__hero { position: relative; height: min(880px, 69vw); min-height: 560px; margin-top: -80px; overflow: hidden; }
.tpm-magazine__hero::after { position: absolute; inset: 0; content: ""; background: rgba(3,3,7,.08); }
.tpm-magazine__hero > img { width: 100%; height: 100%; object-fit: cover; }
.tpm-magazine__hero h1 { position: absolute; z-index: 2; top: 50%; left: 50%; display: flex; flex-direction: column; align-items: center; margin: 0; transform: translate(-50%, -50%); color: var(--tpm-paper); font-size: clamp(48px, 5vw, 64px); line-height: 1; text-align: center; }
.tpm-magazine__hero h1 span { padding: 0 .12em .08em; background: var(--tpm-accent); white-space: nowrap; }
.tpm-magazine__information { display: grid; grid-template-columns: minmax(0, 600px) 292px; gap: 16px; justify-content: center; padding: 128px 32px 96px; }
.tpm-magazine__information > div { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; }
.tpm-magazine__cover { grid-column: 2; width: 292px; height: 395px; object-fit: cover; }
.tpm-magazine__information h2,
.tpm-magazine__description h2 { display: flex; align-items: center; gap: 16px; margin: 0 0 32px; color: var(--tpm-accent); font-size: 32px; }
.tpm-heading-icon { display: block; width: 32px; height: 32px; flex: 0 0 32px; object-fit: contain; }
.tpm-heading-icon--large,
.tpm-heading-icon--articles { width: 40px; height: 40px; flex-basis: 40px; }
.tpm-button__icon { display: block; width: 32px; height: 32px; flex: 0 0 32px; object-fit: contain; }
.tpm-magazine__information dl { display: grid; gap: 16px; margin: 0 0 26px; font-size: 20px; }
.tpm-magazine__information dl div { display: flex; gap: 6px; }
.tpm-magazine__information dt { font-weight: 700; }
.tpm-magazine__information dd { margin: 0; }
.tpm-magazine__information .tpm-button { width: 426px; max-width: 100%; margin-top: auto; gap: 16px; }
.tpm-magazine__description { position: relative; max-width: 972px; min-height: 500px; margin: 0 auto; padding: 0 32px 120px; }
.tpm-magazine__description::after { position: absolute; z-index: 0; right: 12%; bottom: 10px; width: 52%; height: 60%; content: ""; opacity: .14; background: repeating-linear-gradient(25deg, var(--tpm-accent) 0 1px, transparent 1px 11px); transform: skew(-18deg); pointer-events: none; }
.tpm-magazine__description > * { position: relative; z-index: 1; }
.tpm-magazine__description div { font-size: 20px; line-height: 1.4; }
.tpm-magazine__articles { padding: 32px; color: var(--tpm-paper); background: var(--tpm-ink); }
.tpm-magazine__articles header { margin-bottom: 32px; }
.tpm-magazine__articles h2 { margin: 0; font-size: 40px; }
.tpm-magazine__articles header p { margin: 8px 0 0; color: rgba(245,245,245,.65); }
.tpm-magazine__articles-title { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.tpm-magazine__articles-title h2 { display: flex; align-items: center; gap: 16px; }
.tpm-magazine__article-nav { display: flex; flex: 0 0 auto; gap: 32px; }
.tpm-magazine__article-nav button { width: 40px; height: 40px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.tpm-magazine__article-nav img { display: block; width: 100%; height: 100%; }
.tpm-magazine__article-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 292px); gap: 16px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; scroll-snap-type: x mandatory; }
.tpm-magazine__article-track::-webkit-scrollbar { display: none; }
.tpm-magazine__article-track .tpm-card { min-width: 0; color: var(--tpm-paper); scroll-snap-align: start; }

@media (max-width: 900px) {
    .tpm-magazines__masthead { min-height: 288px; }
    .tpm-magazines__latest { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .tpm-magazines__latest-copy h2 { font-size: 32px; }
    .tpm-magazines__latest-copy p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 7; font-size: 14px; }
    .tpm-magazines__grid { grid-template-columns: 1fr; }
    .tpm-magazine__information { grid-template-columns: minmax(0, 1fr) 245px; padding-inline: 32px; }
    .tpm-magazine__cover { width: 245px; height: 332px; }
    .tpm-magazine__article-track { grid-auto-columns: 260px; }
}

@media (max-width: 700px) {
    .tpm-magazines__masthead { grid-template-columns: 56px 1fr; min-height: 200px; padding: 0 16px 16px; }
    .tpm-magazines__masthead small { font-size: 12px; }
    .tpm-magazines__masthead h1 { font-size: 36px; }
    .tpm-magazines__latest { grid-template-columns: 1fr; padding: 16px; }
    .tpm-magazines__latest-cover { aspect-ratio: 288 / 390; }
    .tpm-magazines__latest-copy { gap: 24px; }
    .tpm-magazines__latest-copy h2 { margin-top: 4px; font-size: 28px; }
    .tpm-magazines__latest-copy time { font-size: 16px; }
    .tpm-magazines__latest-copy p { display: block; margin: 20px 0 0; font-size: 15px; }
    .tpm-magazines__previous { padding: 64px 16px 80px; }
    .tpm-magazines__previous h2 { font-size: 24px; }
    .tpm-magazines__previous header p { font-size: 13px; }
    .tpm-magazine-card { grid-template-columns: 1fr 1fr; }
    .tpm-magazine-card h3 { font-size: 19px; }
    .tpm-magazine-card__copy > div > p { font-size: 14px; }
    .tpm-magazine-card .tpm-button,
    .tpm-magazine-card .tpm-outline-button { min-height: 44px; font-size: 14px; }
    .tpm-magazine__hero { height: 440px; min-height: 440px; margin-top: -64px; }
    .tpm-magazine__hero h1 { width: calc(100% - 32px); font-size: 32px; }
    .tpm-magazine__hero h1 span { max-width: 100%; white-space: normal; }
    .tpm-magazine__information { display: flex; flex-direction: column; padding: 16px 16px 64px; }
    .tpm-magazine__cover { order: -1; width: 100%; height: auto; aspect-ratio: 288 / 390; }
    .tpm-magazine__information h2,
    .tpm-magazine__description h2 { margin-top: 24px; font-size: 20px; }
    .tpm-magazine__information dl { font-size: 15px; }
    .tpm-magazine__information dl div { display: block; }
    .tpm-magazine__information dt,
    .tpm-magazine__information dd { display: inline; }
    .tpm-magazine__information dd::before { content: " "; }
    .tpm-magazine__information .tpm-button { width: 100%; margin-top: 28px; }
    .tpm-magazine__description { min-height: 0; padding: 0 16px 80px; }
    .tpm-magazine__description div { font-size: 15px; }
    .tpm-magazine__articles { padding: 32px 16px; }
    .tpm-magazine__articles h2 { font-size: 24px; }
    .tpm-heading-icon { width: 24px; height: 24px; flex-basis: 24px; }
    .tpm-heading-icon--large,
    .tpm-heading-icon--articles { width: 32px; height: 32px; flex-basis: 32px; }
    .tpm-button__icon { width: 24px; height: 24px; flex-basis: 24px; }
    .tpm-magazine__articles-title { gap: 16px; }
    .tpm-magazine__article-nav { gap: 16px; }
    .tpm-magazine__article-nav button { width: 32px; height: 32px; }
    .tpm-magazine__article-track { grid-auto-columns: 214px; }
}

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: tpm-page-out 180ms ease both;
}

::view-transition-new(root) {
    animation: tpm-page-in 420ms var(--tpm-ease-smooth) both;
}

@keyframes tpm-page-out {
    to { opacity: 0; transform: translateY(-6px); }
}

@keyframes tpm-page-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

body {
    margin: 0;
    background: var(--tpm-paper);
    color: var(--tpm-ink);
    font-family: var(--tpm-font-display);
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

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

* {
    box-sizing: border-box;
}

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

button,
input,
select {
    font: inherit;
}

.wp-site-blocks {
    padding: 0;
}

.tpm-site {
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--tpm-paper);
}

.tpm-site--articles,
.tpm-site--shots {
    display: flow-root;
    background: linear-gradient(to bottom, var(--tpm-accent) 0 320px, var(--tpm-paper) 320px);
}

.tpm-header {
    position: sticky;
    top: 32px;
    z-index: 100;
    display: flex;
    gap: 32px;
    align-items: center;
    height: 48px;
    margin: 32px 32px 0;
    padding: 0 16px;
    color: var(--tpm-paper);
    background: var(--tpm-accent);
}

.tpm-header--light {
    color: var(--tpm-accent);
    background: var(--tpm-paper);
}

body.admin-bar .tpm-header {
    top: 64px;
}

.tpm-header__logo {
    display: flex;
    align-items: center;
    flex: 0 0 55px;
    width: 55px;
    height: 32px;
}

.tpm-header__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tpm-header__nav,
.tpm-header__actions {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 500;
}

.tpm-header__nav {
    flex: 1 1 auto;
    align-self: stretch;
}

.tpm-header__nav > a,
.tpm-header__item > a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 32px;
    white-space: nowrap;
}

.tpm-header__item {
    position: relative;
    height: 48px;
}

.tpm-header__dropdown {
    position: absolute;
    top: 48px;
    left: 0;
    display: none;
    width: 292px;
    color: var(--tpm-paper);
    background: var(--tpm-accent);
    box-shadow: 0 10px 24px rgba(3, 3, 7, .12);
    max-height: min(70vh, 480px);
    overflow-y: auto;
}

.tpm-header__dropdown a {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 32px;
    white-space: nowrap;
}

.tpm-header__item:hover > a,
.tpm-header__item:focus-within > a,
.tpm-header__dropdown a:hover,
.tpm-header__dropdown a:focus-visible {
    color: var(--tpm-accent);
    background: var(--tpm-paper);
    opacity: 1;
}

.tpm-header__item:hover .tpm-header__dropdown,
.tpm-header__item:focus-within .tpm-header__dropdown {
    display: block;
}

.tpm-header__item--articles.is-active > a {
    position: relative;
    overflow: hidden;
    color: var(--tpm-accent);
    background: var(--tpm-paper);
    animation: tpm-nav-boot 520ms steps(6, end) both;
}

.tpm-header__item--articles.is-active > a::after {
    margin-left: 3px;
    content: "_";
    font-family: var(--tpm-font-terminal);
    animation: tpm-terminal-cursor 880ms steps(1, end) infinite;
}

.tpm-header--light .tpm-header__item--articles.is-active > a {
    color: var(--tpm-accent);
    background: transparent;
}

.tpm-header--light .tpm-header__item--articles.is-active > a::after {
    display: none;
}

.tpm-header--light .tpm-header__nav > a:hover,
.tpm-header--light .tpm-header__nav > a:focus-visible,
.tpm-header--light .tpm-header__item:hover > a,
.tpm-header--light .tpm-header__item:focus-within > a {
    color: var(--tpm-paper);
    background: var(--tpm-accent);
    opacity: 1;
}

.tpm-header__actions {
    flex: 0 0 auto;
    gap: 32px;
    font-family: var(--tpm-font-terminal);
    font-weight: 700;
    font-size: 24px;
}

.tpm-header__actions a {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
}

.tpm-header__actions img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.tpm-header a,
.tpm-header button {
    transition: opacity var(--tpm-motion-fast) ease;
}

.tpm-header a:hover,
.tpm-header button:hover {
    opacity: .68;
}

.tpm-header__item:hover > a,
.tpm-header__item:focus-within > a,
.tpm-header__dropdown a:hover,
.tpm-header__dropdown a:focus-visible {
    opacity: 1;
}

.tpm-header__toggle {
    display: none;
    position: relative;
    width: 24px;
    height: 24px;
    margin-left: auto;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font-family: var(--tpm-font-terminal);
    cursor: pointer;
}

.tpm-header__toggle img {
    position: absolute;
    inset: 0;
    display: block;
    width: 24px;
    height: 24px;
}

.tpm-header__toggle-close,
.tpm-header__toggle[aria-expanded="true"] .tpm-header__toggle-open {
    display: none !important;
}

.tpm-header__toggle[aria-expanded="true"] .tpm-header__toggle-close {
    display: block !important;
}

.tpm-mobile-menu {
    position: absolute;
    top: 48px;
    right: 0;
    left: 0;
    padding-bottom: 12px;
    color: var(--tpm-paper);
    background: var(--tpm-accent);
    border-top: 1px solid var(--tpm-paper);
    font-family: var(--tpm-font-terminal);
    font-size: 14px;
}

.tpm-mobile-menu__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--tpm-paper);
}

.tpm-mobile-menu__tabs strong,
.tpm-mobile-menu a {
    padding: 10px 8px;
}

.tpm-mobile-menu__search {
    display: grid;
    grid-template-columns: 1fr 32px;
    align-items: center;
    min-height: 48px;
    padding: 0 8px;
    border-bottom: 1px solid var(--tpm-paper);
}

.tpm-mobile-menu__search input {
    min-width: 0;
    padding: 0;
    color: var(--tpm-paper);
    background: transparent;
    border: 0;
    outline: 0;
    font-family: var(--tpm-font-terminal);
    font-size: 18px;
    font-weight: 700;
}

.tpm-mobile-menu__search input::placeholder {
    color: var(--tpm-paper);
    opacity: 1;
}

.tpm-mobile-menu__search button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 4px;
    border: 0;
    background: transparent;
}

.tpm-mobile-menu__search img {
    width: 24px;
    height: 24px;
}

.tpm-mobile-menu__tabs strong + strong {
    border-left: 1px solid var(--tpm-paper);
}

.tpm-mobile-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tpm-mobile-menu a > img {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    object-fit: contain;
}

.tpm-mobile-menu .tpm-mobile-menu__child {
    padding: 7px 24px;
    font-family: var(--tpm-font-display);
}

.tpm-mobile-menu:not([hidden]) {
    transform-origin: top;
    animation: tpm-menu-boot 220ms steps(4, end) both;
}

.tpm-main {
    margin-top: 0;
}

.tpm-footer {
    display: grid;
    grid-template-columns: auto 1fr auto;
    column-gap: clamp(20px, 2vw, 40px);
    align-items: center;
    height: auto;
    min-height: 48px;
    padding: 0 32px;
    color: var(--tpm-paper);
    background: var(--tpm-ink);
    border-top: 1px solid var(--tpm-paper);
}

.tpm-footer__socials {
    display: flex;
    justify-content: center;
    gap: clamp(16px, 1.7vw, 32px);
    min-width: 0;
    font-family: var(--tpm-font-terminal);
}

.tpm-footer__socials a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 500;
}

.tpm-footer__socials img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.tpm-footer__copyright,
.tpm-footer__credit {
    font-size: 16px;
    font-weight: 400;
    white-space: nowrap;
}

.tpm-footer__credit {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.tpm-footer__developer {
    font-size: .875em;
}

.tpm-footer__credit img {
    width: 18px;
    height: 20px;
    object-fit: contain;
}

.tpm-footer__divider {
    opacity: .5;
}

.tpm-card {
    min-width: 0;
    color: var(--tpm-ink);
}

.tpm-card__image {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #ddd;
}

.tpm-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms var(--tpm-ease-smooth);
}

.tpm-media-fit--contain {
    object-fit: contain !important;
}

.tpm-card__image:has(.tpm-media-fit--contain),
.tpm-home-hero:has(> .tpm-media-fit--contain),
.tpm-article__hero-wrap:has(> .tpm-media-fit--contain) {
    background: var(--tpm-paper);
}

.tpm-card:hover .tpm-card__image img {
    transform: scale(1.025);
}

.tpm-motion-ready .tpm-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 520ms var(--tpm-ease-smooth),
        transform 620ms var(--tpm-ease-smooth);
    transition-delay: calc(var(--tpm-reveal-order, 0) * 55ms);
}

.tpm-motion-ready .tpm-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* The community copy is centered with a transform of its own. Preserve that
 * centering while the shared reveal motion is running. */
.tpm-motion-ready .tpm-community__overlay.tpm-reveal {
    transform: translate(-50%, calc(-50% + 18px));
}

.tpm-motion-ready .tpm-community__overlay.tpm-reveal.is-visible {
    transform: translate(-50%, -50%);
}

.tpm-card__copy {
    padding-top: 16px;
}

.tpm-card__meta {
    display: flex;
    gap: .45em;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 0 8px;
    font-family: var(--tpm-font-terminal);
    font-size: clamp(10px, 1.25vw, 16px);
}

.tpm-card__meta a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--tpm-motion-fast) ease, background var(--tpm-motion-fast) ease;
}

.tpm-card__meta a:hover,
.tpm-card__meta a:focus-visible {
    color: var(--tpm-paper);
    background: var(--tpm-accent);
    outline: 0;
}

.tpm-card h3 {
    margin: 0;
    font-size: clamp(16px, 1.9vw, 24px);
    line-height: 1.05;
}

.tpm-card__excerpt {
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 1.15;
}

.tpm-card:nth-child(4n + 2) {
    color: var(--tpm-accent);
}

.tpm-card:nth-child(4n + 2) .tpm-card__image {
    border: 4px solid var(--tpm-accent);
}

.tpm-home-hero {
    position: relative;
    height: clamp(640px, 56.25vw, 960px);
    margin-top: -80px;
    overflow: hidden;
}

.tpm-home-hero::after,
.tpm-page-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background: rgba(3, 3, 7, .12);
    pointer-events: none;
}

.tpm-home-hero > img,
.tpm-page-hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tpm-home-hero h1 {
    position: absolute;
    z-index: 2;
    right: 32px;
    bottom: 64px;
    left: 32px;
    margin: 0;
    color: var(--tpm-paper);
    font-size: clamp(42px, 5.4vw, 72px);
    line-height: 1.08;
    overflow-wrap: anywhere;
    word-break: normal;
}

.tpm-home-hero h1 a {
    padding: .02em .1em .08em 0;
    background: var(--tpm-accent);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.tpm-home-grid,
.tpm-article-grid,
.tpm-picks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 16px;
    padding: 32px;
}

.tpm-article-grid .tpm-card__excerpt {
    display: none;
}

.tpm-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tpm-home-grid .tpm-card__meta,
.tpm-home-grid .tpm-card h3 {
    font-size: 20px;
}

.tpm-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 44px 32px 0;
}

.tpm-section-heading h2 {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    font-family: var(--tpm-font-terminal);
    font-size: 32px;
}

.tpm-section-heading > a {
    display: grid;
    place-items: center;
    font-family: var(--tpm-font-terminal);
    font-size: 38px;
}

.tpm-section-heading > a img {
    display: block;
    width: 40px;
    height: 40px;
}

.tpm-community {
    position: relative;
    min-height: 944px;
    margin: 0 32px;
    text-align: center;
}

.tpm-community__desktop {
    position: absolute;
    inset: 0;
}

.tpm-community__mobile {
    display: none;
}

.tpm-community__mosaic {
    position: absolute;
    inset: 0;
}

.tpm-community__mosaic img {
    position: absolute;
    width: 24.67%;
    height: 39.72%;
    object-fit: cover;
}

.tpm-community__mosaic img:nth-child(1) { top: 0; left: 29.36%; }
.tpm-community__mosaic img:nth-child(2) { top: 33.79%; right: 0; width: 16.45%; height: 26.48%; }
.tpm-community__mosaic img:nth-child(3) { right: 18.91%; bottom: 6.36%; }
.tpm-community__mosaic img:nth-child(4) { top: 25.42%; left: 0; width: 32.89%; height: 52.97%; }
.tpm-community__mosaic img:nth-child(5) { bottom: 5.72%; left: 25.49%; width: 16.45%; height: 26.48%; }
.tpm-community__mosaic img:nth-child(6) { top: 6.78%; right: 19.16%; width: 16.45%; height: 26.48%; }

.tpm-community__mosaic .tpm-community__fallback {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tpm-community__overlay {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: min(877px, 76%);
    transform: translate(-50%, -50%);
}

.tpm-community h2 {
    margin: 0 auto 32px;
    color: var(--tpm-paper);
    font-size: 56px;
    line-height: 1;
}

.tpm-community h2 span {
    display: table;
    margin: auto;
    padding: 0 8px;
    background: var(--tpm-accent);
}

.tpm-community p {
    margin: 0 auto 128px;
    padding: 12px 20px;
    color: var(--tpm-ink);
    background: var(--tpm-paper);
    font-size: 20px;
}

.tpm-community p strong {
    color: var(--tpm-accent);
    font-weight: inherit;
}

.tpm-community .tpm-outline-button {
    width: 360px;
    max-width: 100%;
    min-height: 80px;
    background: rgba(245, 245, 245, .9);
}

.tpm-shots__masthead {
    display: flex;
    align-items: end;
    justify-content: space-between;
    height: 240px;
    padding: 0 32px 15px;
    color: var(--tpm-paper);
    background: var(--tpm-accent);
}

.tpm-shots__masthead h1 {
    margin: 0;
    font-size: 64px;
}

.tpm-shots__masthead strong {
    font-family: var(--tpm-font-terminal);
    font-size: 24px;
    font-weight: 400;
}

.tpm-shots__feed {
    display: grid;
    gap: 76px;
    padding: 96px 32px 160px;
}

.tpm-shot {
    position: relative;
    width: min(100%, 728px);
    margin: auto;
}

.tpm-shot > :not(.tpm-shot__carousel) {
    width: 600px;
    margin-right: auto;
    margin-left: auto;
}

.tpm-shot__date {
    display: inline-block;
    width: max-content !important;
    margin: 0 0 16px;
    padding: 0;
    color: var(--tpm-paper);
    background: var(--tpm-accent);
    font-family: var(--tpm-font-terminal);
    font-weight: 700;
    font-family: var(--tpm-font-body);
    font-size: 48px;
    line-height: 1;
}

.tpm-shot__carousel {
    position: relative;
    width: 100%;
    padding: 0 64px;
}

.tpm-shot__slides figure {
    aspect-ratio: 4 / 5;
    margin: 0;
}

.tpm-shot__slides figure[hidden] {
    display: none;
}

.tpm-shot__slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tpm-shot__nav {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    padding: 0;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    font-family: var(--tpm-font-terminal);
    cursor: pointer;
}

.tpm-shot__nav img { width: 100%; height: 100%; }
.tpm-shot__nav:disabled { opacity: .28; cursor: default; }

.tpm-shot__nav--prev { left: 0; }
.tpm-shot__nav--next { right: 0; }

.tpm-shot__dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding-top: 10px;
}

.tpm-shot__dots i {
    width: 10px;
    height: 10px;
    background: url("../figma/icons/shot-dot.svg") center / contain no-repeat;
}

.tpm-shot__dots i.is-active {
    background-image: url("../figma/icons/shot-dot-active.svg");
}

.tpm-shot h2 {
    margin: 16px 0 8px;
    color: var(--tpm-accent);
    font-family: var(--tpm-font-terminal);
    font-size: 24px;
}

.tpm-shot h2 span { display: block; }

.tpm-shot__description {
    margin: 0;
    font-size: 16px;
}

.tpm-shots__empty {
    min-height: 420px;
    padding: 40px;
    border: 4px solid var(--tpm-accent);
    font-family: var(--tpm-font-terminal);
}

.tpm-button,
.tpm-outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 12px 42px;
    color: var(--tpm-paper);
    background: var(--tpm-accent);
    border: 4px solid var(--tpm-accent);
    font-family: var(--tpm-font-terminal);
    font-size: 24px;
    font-weight: 700;
    transition:
        transform var(--tpm-motion-base) var(--tpm-ease-smooth),
        filter var(--tpm-motion-base) ease;
}

.tpm-button:hover,
.tpm-outline-button:hover,
.tpm-newsletter__form button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.tpm-outline-button {
    color: var(--tpm-accent);
    background: transparent;
}

.tpm-issue-promo {
    position: relative;
    height: clamp(640px, 56.25vw, 960px);
    overflow: hidden;
    color: var(--tpm-paper);
}

.tpm-issue-promo > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tpm-issue-promo > div {
    position: absolute;
    top: 50%;
    left: 32px;
    max-width: 620px;
    transform: translateY(-50%);
}

.tpm-issue-promo h2 {
    margin: 0 0 20px;
    color: var(--tpm-accent);
    font-size: 56px;
    line-height: .95;
}

.tpm-issue-promo .tpm-button,
.tpm-issue-promo .tpm-outline-button {
    margin-right: 16px;
}

.tpm-latest-issue {
    color: var(--tpm-paper);
    background: var(--tpm-ink);
}

.tpm-latest-issue .tpm-card {
    color: var(--tpm-paper);
}

.tpm-section-heading--dark {
    color: var(--tpm-paper);
}

.tpm-newsletter {
    position: relative;
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 4vw, 72px);
    min-height: 832px;
    padding: 64px clamp(32px, 10vw, 192px);
    color: var(--tpm-paper);
    background: var(--tpm-ink);
}

.tpm-newsletter__content {
    width: min(100%, 720px);
}

.tpm-newsletter__book {
    width: 290px;
    max-height: 330px;
    object-fit: contain;
}

.tpm-newsletter__content > p {
    margin: 0 0 32px;
    font-size: 32px;
    line-height: 1.05;
}

.tpm-newsletter__form {
    display: grid;
    gap: 16px;
}

.tpm-newsletter__honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }

.tpm-newsletter__feedback {
    position: relative;
    justify-self: end;
    width: min(100%, 440px);
    min-height: 64px;
    padding: 0 54px;
    transition: min-height 180ms ease, padding-bottom 180ms ease;
}

.tpm-newsletter__form.is-success .tpm-newsletter__feedback,
.tpm-newsletter__form.is-error .tpm-newsletter__feedback { min-height: 182px; padding-bottom: 88px; }

.tpm-newsletter__arrows {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 180ms ease;
    pointer-events: none;
}

.tpm-newsletter__form.is-success .tpm-newsletter__arrows,
.tpm-newsletter__form.is-error .tpm-newsletter__arrows { opacity: 1; }

.tpm-newsletter__arrows img { position: absolute; display: block; object-fit: fill; }
.tpm-newsletter__arrows img:nth-child(1) { right: 2px; bottom: 58px; width: 116px; height: 28px; }
.tpm-newsletter__arrows img:nth-child(2) { top: 72px; left: 0; width: 88px; height: 23px; }
.tpm-newsletter__arrows img:nth-child(3) { right: 15px; bottom: 7px; width: 68px; height: 36px; }
.tpm-newsletter__arrows img:nth-child(4) { bottom: 0; left: 76px; width: 43px; height: 75px; }

.tpm-newsletter__form label {
    position: relative;
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 12px;
    height: 52px;
    padding: 0 12px;
    border: 4px solid var(--tpm-paper);
    transition:
        border-color var(--tpm-motion-fast) ease,
        box-shadow var(--tpm-motion-base) ease,
        transform var(--tpm-motion-base) var(--tpm-ease-smooth);
}

.tpm-newsletter__form label:focus-within {
    border-color: var(--tpm-accent);
    box-shadow: 6px 6px 0 rgba(211, 28, 28, .32);
    transform: translate(-2px, -2px);
}

.tpm-newsletter__form label.is-error {
    color: var(--tpm-accent);
    border-color: var(--tpm-accent);
    animation: tpm-newsletter-glitch 180ms steps(2, end) 2;
}

.tpm-newsletter__form label.is-error img { filter: sepia(1) saturate(8) hue-rotate(330deg); }
.tpm-newsletter__form label.is-success { border-color: var(--tpm-paper); }

.tpm-newsletter__form label img {
    width: 24px;
    height: 24px;
}

.tpm-newsletter__form input {
    min-width: 0;
    color: var(--tpm-paper);
    background: transparent;
    border: 0;
    outline: 0;
    font-family: var(--tpm-font-terminal);
    font-size: 20px;
    font-weight: 700;
    caret-color: transparent;
}

.tpm-newsletter__terminal-cursor {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: block;
    width: 9px;
    background: var(--tpm-paper);
    opacity: 0;
    transform: translateY(-50%);
    pointer-events: none;
}

.tpm-newsletter__form label:focus-within .tpm-newsletter__terminal-cursor {
    opacity: 1;
    animation: tpm-terminal-cursor 720ms steps(1, end) infinite;
}

.tpm-newsletter__form label.is-error .tpm-newsletter__terminal-cursor { background: var(--tpm-accent); }
.tpm-newsletter__form label.is-keying input { animation: tpm-newsletter-key 110ms steps(2, end); }

.tpm-newsletter__form input::placeholder {
    color: var(--tpm-paper);
    opacity: 1;
}

.tpm-newsletter__form button {
    width: 100%;
    min-width: 0;
    min-height: 64px;
    color: var(--tpm-paper);
    background: var(--tpm-accent);
    border: 0;
    font-family: var(--tpm-font-terminal);
    font-size: 24px;
    font-weight: 700;
    transition:
        transform var(--tpm-motion-base) var(--tpm-ease-smooth),
        filter var(--tpm-motion-base) ease;
}

.tpm-newsletter__form button:disabled { cursor: default; }
.tpm-newsletter__form.is-success button,
.tpm-newsletter__form.is-error button { animation: tpm-newsletter-response 260ms steps(4, end) both; }

@keyframes tpm-nav-boot {
    0% {
        clip-path: inset(0 100% 0 0);
        filter: brightness(1.7);
    }
    100% {
        clip-path: inset(0);
        filter: brightness(1);
    }
}

@keyframes tpm-terminal-cursor {
    0%, 48% { opacity: 1; }
    49%, 100% { opacity: 0; }
}

@keyframes tpm-menu-boot {
    from {
        opacity: 0;
        transform: scaleY(.82);
    }
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

.tpm-newsletter__form output {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
    color: var(--tpm-accent);
    font-family: var(--tpm-font-terminal);
    font-weight: 700;
}

@keyframes tpm-newsletter-response {
    0% { filter: brightness(1); transform: translateX(0); }
    35% { filter: brightness(1.45); transform: translateX(-3px); }
    70% { filter: brightness(.8); transform: translateX(2px); }
    100% { filter: brightness(1); transform: translateX(0); }
}

@keyframes tpm-newsletter-glitch {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

@keyframes tpm-newsletter-key {
    0% { text-shadow: 2px 0 var(--tpm-accent); }
    100% { text-shadow: none; }
}

.tpm-articles__masthead {
    display: flex;
    align-items: end;
    justify-content: space-between;
    height: 240px;
    padding: 32px;
    color: var(--tpm-paper);
    background: var(--tpm-accent);
}

.tpm-articles__masthead > div {
    display: flex;
    align-items: end;
    gap: 56px;
    min-width: 0;
}

.tpm-articles__masthead small {
    font-size: 20px;
}

.tpm-articles-search {
    display: grid;
    gap: 12px;
    padding: 24px 32px;
    color: var(--tpm-accent);
    background: var(--tpm-paper);
    border-bottom: 2px solid var(--tpm-accent);
    font-family: var(--tpm-font-terminal);
    font-size: 16px;
    font-weight: 700;
}

.tpm-articles-search > div {
    display: grid;
    grid-template-columns: 1fr auto;
    border: 3px solid var(--tpm-accent);
}

.tpm-articles-search input {
    min-width: 0;
    height: 52px;
    padding: 0 16px;
    color: var(--tpm-ink);
    background: transparent;
    border: 0;
    outline: 0;
    font: inherit;
}

.tpm-articles-search button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    color: var(--tpm-accent);
    background: transparent;
    border: 0;
    border-left: 3px solid var(--tpm-accent);
    font: inherit;
}

.tpm-articles-search button img {
    width: 24px;
    height: 24px;
}

.tpm-articles__masthead h1 {
    margin: 0;
    font-size: 56px;
    line-height: 1;
    overflow-wrap: anywhere;
}

.tpm-articles__masthead button {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.tpm-articles__masthead button img {
    width: 100%;
    height: 100%;
}

.tpm-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: min(1216px, calc(100% - 64px));
    margin: 0 auto;
    padding: 32px 0 0;
    color: var(--tpm-ink);
    background: var(--tpm-paper);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 260ms var(--tpm-ease-smooth), transform 320ms var(--tpm-ease-smooth);
}

.tpm-filters[hidden] {
    display: none;
}

.tpm-filters.is-open {
    opacity: 1;
    transform: translateY(0);
}

.tpm-writer-profile {
    display: grid;
    grid-template-columns: 144px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    max-width: 908px;
    margin: 48px auto 0;
    padding: 28px;
    color: var(--tpm-paper);
    background: var(--tpm-ink);
    border-left: 8px solid var(--tpm-accent);
}

.tpm-writer-profile > img {
    width: 144px;
    height: 144px;
    object-fit: cover;
    filter: grayscale(1) contrast(1.1);
}

.tpm-writer-profile__role {
    margin: 0 0 12px;
    color: var(--tpm-accent);
    font-family: var(--tpm-font-terminal);
    font-weight: 700;
}

.tpm-writer-profile__bio p {
    max-width: 680px;
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
}

.tpm-writer-profile__links {
    display: flex;
    gap: 8px 16px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.tpm-writer-profile__links a {
    color: var(--tpm-paper);
    font-family: var(--tpm-font-terminal);
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.tpm-writer-profile__links a:hover,
.tpm-writer-profile__links a:focus-visible {
    color: var(--tpm-accent);
}

.tpm-filter-control {
    position: relative;
    width: 100%;
    font-family: var(--tpm-font-terminal);
}

.tpm-filter-control:nth-of-type(3),
.tpm-filters__save {
    grid-column: 1 / -1;
}

.tpm-articles-empty {
    display: grid;
    place-items: start;
    max-width: 680px;
    min-height: 320px;
    margin: 64px auto 96px;
    padding: 40px;
    border: 4px solid var(--tpm-accent);
    font-family: var(--tpm-font-terminal);
}

.tpm-articles-empty strong {
    color: var(--tpm-accent);
    font-size: clamp(24px, 4vw, 40px);
}

.tpm-articles-empty p {
    max-width: 560px;
    margin: 28px 0;
    font-family: var(--tpm-font-display);
    font-size: 20px;
}

.tpm-articles-empty a {
    padding: 8px 12px;
    color: var(--tpm-paper);
    background: var(--tpm-accent);
    font-weight: 700;
}

.tpm-filter-control__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 64px;
    padding: 0 16px;
    color: var(--tpm-accent);
    background: var(--tpm-paper);
    border: 4px solid var(--tpm-accent);
    font-family: var(--tpm-font-terminal);
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
}

.tpm-filter-control__copy {
    display: flex;
    gap: 8px;
    align-items: center;
    min-width: 0;
    white-space: nowrap;
}

.tpm-filter-control__copy > img,
.tpm-filter-control__chevron {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.tpm-filter-control__copy strong {
    color: var(--tpm-accent);
    font-weight: 600;
}

.tpm-filter-control__copy span:last-child {
    overflow: hidden;
    color: var(--tpm-ink);
    text-overflow: ellipsis;
}

.tpm-filter-control__chevron {
    transform: rotate(135deg);
    transition: transform 240ms steps(4, end);
}

.tpm-filter-control.is-open .tpm-filter-control__chevron {
    transform: rotate(-45deg);
}

.tpm-filter-control__menu {
    position: absolute;
    z-index: 40;
    top: 64px;
    right: 0;
    left: 0;
    max-height: min(336px, 55vh);
    overflow-y: auto;
    color: var(--tpm-paper);
    background: var(--tpm-accent);
    box-shadow: 8px 10px 0 rgba(3, 3, 7, .18);
    transform-origin: top;
}

.tpm-filter-control__menu[hidden] {
    display: none;
}

.tpm-filter-control__menu.is-open {
    animation: tpm-filter-menu-in 220ms steps(5, end) both;
}

.tpm-filter-control__menu button {
    display: flex;
    align-items: center;
    width: 100%;
    height: 64px;
    padding: 0 32px;
    color: var(--tpm-paper);
    background: var(--tpm-accent);
    border: 0;
    font-family: var(--tpm-font-terminal);
    font-size: 24px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.tpm-filter-control__menu.is-open button {
    animation: tpm-filter-row-in 160ms steps(4, end) both;
}

.tpm-filter-control__menu button:nth-child(2) { animation-delay: 30ms; }
.tpm-filter-control__menu button:nth-child(3) { animation-delay: 60ms; }
.tpm-filter-control__menu button:nth-child(4) { animation-delay: 90ms; }
.tpm-filter-control__menu button:nth-child(n+5) { animation-delay: 120ms; }

.tpm-filter-control__menu button:hover,
.tpm-filter-control__menu button:focus-visible {
    color: var(--tpm-accent);
    background: var(--tpm-paper);
    outline: 0;
}

.tpm-filters__save {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 64px;
    margin-top: 0;
    padding: 0 16px;
    color: var(--tpm-paper);
    background: var(--tpm-accent);
    border: 0;
    font-family: var(--tpm-font-terminal);
    font-size: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: filter var(--tpm-motion-fast) ease, transform var(--tpm-motion-base) var(--tpm-ease-smooth);
}

.tpm-filters__save img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.tpm-filters__save:hover,
.tpm-filters__save:focus-visible {
    filter: brightness(1.14);
    transform: translateY(-2px);
}

.tpm-filters__save.is-saving span::after {
    content: "_";
    animation: tpm-terminal-cursor 600ms steps(1, end) infinite;
}

@keyframes tpm-filter-menu-in {
    from { opacity: 0; clip-path: inset(0 0 100%); transform: scaleY(.84); }
    to { opacity: 1; clip-path: inset(0); transform: scaleY(1); }
}

@keyframes tpm-filter-row-in {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
}

.tpm-article {
    padding: 0 32px 120px;
}

.tpm-article__bar {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    min-height: 48px;
    color: var(--tpm-accent);
    border: 4px solid var(--tpm-accent);
    border-top: 0;
    font-size: 20px;
    font-weight: 500;
}

.tpm-article__bar span {
    display: flex;
    align-items: center;
    flex: 0 1 760px;
    max-width: 62%;
    min-width: 0;
    padding: 10px 14px;
    color: var(--tpm-paper);
    background: var(--tpm-accent);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.tpm-article__bar a {
    align-self: center;
    padding: 0 16px;
}

.tpm-article__bar button {
    align-self: center;
    margin-left: auto;
    padding: 0 16px;
    color: inherit;
    background: transparent;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.tpm-article__bar output {
    min-width: 0;
    color: var(--tpm-accent);
    font-family: var(--tpm-font-terminal);
    font-size: 12px;
}

.tpm-article__hero-wrap {
    margin: 32px 0 0;
}

.tpm-article__hero {
    width: 100%;
    height: 752px;
    margin: 0;
    object-fit: cover;
    border: 4px solid var(--tpm-accent);
}

.tpm-article__hero-wrap figcaption {
    padding: 8px 4px 0;
    font-family: var(--tpm-font-terminal);
    font-size: 13px;
    text-align: right;
}

.tpm-article__info {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 32px;
    color: var(--tpm-ink);
    border: 4px solid var(--tpm-accent);
    font-family: var(--tpm-font-terminal);
    font-size: 18px;
}

.tpm-article__info b {
    color: var(--tpm-accent);
}

.tpm-article__header {
    max-width: 1100px;
    padding-top: 32px;
}

.tpm-article__header h1 {
    display: inline;
    margin: 0;
    padding: .02em .12em .08em 0;
    color: var(--tpm-paper);
    font-size: 56px;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.tpm-article__header h1 {
    background: var(--tpm-accent);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.tpm-article__header > p {
    margin: 20px 0 64px;
    font-size: 32px;
}

.tpm-article__sponsored {
    display: table;
    margin: 32px 0 12px;
    padding: 4px 8px;
    color: var(--tpm-paper);
    background: var(--tpm-ink);
    font-family: var(--tpm-font-terminal);
    font-size: 14px;
    text-transform: lowercase;
}

.tpm-article__content {
    max-width: 908px;
    margin: auto;
    font-size: 20px;
    line-height: 1.3;
}

.tpm-article__content > * + * {
    margin-top: 1.35em;
}

.tpm-article__content p {
    margin-bottom: 0;
}

.tpm-article__content .is-style-tpm-lead {
    color: var(--tpm-accent);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.08;
}

.tpm-article__content .is-style-tpm-terminal-note {
    padding: 18px 20px;
    color: var(--tpm-paper);
    background: var(--tpm-ink);
    border-left: 6px solid var(--tpm-accent);
    font-family: var(--tpm-font-terminal);
    font-size: 15px;
}

.tpm-article__content .is-style-tpm-framed {
    padding: 8px;
    border: 4px solid var(--tpm-accent);
}

.tpm-article__content a {
    color: var(--tpm-accent);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: .14em;
    transition: color var(--tpm-motion-fast) ease, background var(--tpm-motion-fast) ease;
}

.tpm-article__content a:hover,
.tpm-article__content a:focus-visible {
    color: var(--tpm-paper);
    background: var(--tpm-accent);
    outline-offset: 2px;
}

.tpm-article__content h2 {
    margin-top: 2.25em;
    font-size: 36px;
    line-height: 1;
}

.tpm-article__content h3 {
    margin-top: 1.8em;
    font-size: 28px;
    line-height: 1.05;
}

.tpm-article__content h4 {
    margin-top: 1.6em;
    font-family: var(--tpm-font-terminal);
    font-size: 20px;
}

.tpm-article__content ul,
.tpm-article__content ol {
    padding-left: 1.4em;
}

.tpm-article__content li + li {
    margin-top: .55em;
}

.tpm-article__content blockquote,
.tpm-article__content .wp-block-pullquote {
    margin: 2.5em 0;
    padding: 28px 32px;
    color: var(--tpm-paper);
    background: var(--tpm-accent);
    border: 0;
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.05;
}

.tpm-article__content blockquote cite,
.tpm-article__content .wp-block-pullquote cite {
    display: block;
    margin-top: 18px;
    font-family: var(--tpm-font-terminal);
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
}

.tpm-article__content figure {
    margin: 2.5em 0;
}

.tpm-article__content .wp-block-gallery.is-style-tpm-slider {
    position: relative;
    display: block;
    width: 100%;
    margin: 3em 0;
    padding: 0;
    background: var(--tpm-paper);
    border: 4px solid var(--tpm-accent);
}

.tpm-article-gallery__stage {
    position: relative;
    width: 100%;
    height: min(76vh, 760px);
    overflow: hidden;
    background: var(--tpm-paper);
    isolation: isolate;
}

.tpm-article-gallery__stage > .wp-block-image {
    position: absolute;
    inset: 0;
    display: none !important;
    width: 100% !important;
    height: 100%;
    flex-basis: 100% !important;
    margin: 0;
    place-items: center;
    background: var(--tpm-paper);
    pointer-events: none;
}

.tpm-article-gallery__stage > .wp-block-image.is-active {
    z-index: 1;
    display: grid !important;
    pointer-events: auto;
    animation: tpm-gallery-image-in 260ms var(--tpm-ease-smooth) both;
}

@keyframes tpm-gallery-image-in {
    from { opacity: 0; transform: scale(.995); }
    to { opacity: 1; transform: scale(1); }
}

.tpm-article__content .tpm-article-gallery__stage > .wp-block-image img {
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
}

.tpm-article-gallery__stage > .wp-block-image figcaption {
    position: absolute;
    right: 12px;
    bottom: 58px;
    left: 12px;
    z-index: 2;
    width: auto;
    margin: 0;
    padding: 8px 10px;
    color: var(--tpm-paper);
    background: rgb(0 0 0 / 72%);
}

.tpm-article-gallery__controls {
    position: absolute;
    top: 50%;
    right: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    transform: translateY(-50%);
}

.tpm-article-gallery__arrow {
    display: grid;
    flex: 0 0 48px;
    min-width: 48px;
    max-width: 48px;
    min-height: 48px;
    max-height: 48px;
    width: 48px;
    height: 48px;
    aspect-ratio: 1;
    padding: 0;
    place-items: center;
    overflow: hidden;
    background: rgb(0 0 0 / 68%);
    border: 1px solid rgb(245 245 245 / 35%);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    transition: transform var(--tpm-motion-fast) ease, background var(--tpm-motion-fast) ease;
}

.tpm-article-gallery__arrow:hover,
.tpm-article-gallery__arrow:focus-visible {
    background: var(--tpm-accent);
    transform: scale(1.08);
}

.tpm-article__content .tpm-article-gallery__arrow img {
    display: block;
    width: 28px;
    height: 28px;
    aspect-ratio: 1;
    margin: 0;
    object-fit: contain;
}

.tpm-article-gallery__footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 48px;
    padding: 8px 12px;
    color: var(--tpm-paper);
    background: var(--tpm-ink);
    font-family: var(--tpm-font-terminal);
    font-size: 12px;
}

.tpm-article-gallery__dots {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
}

.tpm-article-gallery__dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    background: var(--tpm-paper);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    opacity: .42;
}

.tpm-article-gallery__dots button.is-active {
    background: var(--tpm-accent);
    opacity: 1;
    transform: scale(1.2);
}

.tpm-article-gallery__status {
    grid-column: 3;
    justify-self: end;
}

.tpm-article__content figcaption,
.tpm-article__content .wp-element-caption {
    margin-top: 8px;
    font-family: var(--tpm-font-terminal);
    font-size: 13px;
    line-height: 1.35;
}

.tpm-article__content pre,
.tpm-article__content code,
.tpm-article__content kbd {
    font-family: var(--tpm-font-terminal);
}

.tpm-article__content :not(pre) > code,
.tpm-article__content kbd {
    padding: .1em .35em;
    color: var(--tpm-paper);
    background: var(--tpm-ink);
}

.tpm-article__content pre {
    overflow-x: auto;
    padding: 24px;
    color: var(--tpm-paper);
    background: var(--tpm-ink);
    border-left: 6px solid var(--tpm-accent);
    font-size: 15px;
}

.tpm-article__content table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--tpm-font-terminal);
    font-size: 15px;
}

.tpm-article__content th,
.tpm-article__content td {
    padding: 12px;
    border: 2px solid var(--tpm-ink);
    text-align: left;
}

.tpm-article__content th {
    color: var(--tpm-paper);
    background: var(--tpm-ink);
}

.tpm-article__content hr {
    margin: 64px 0;
    border: 0;
    border-top: 4px solid var(--tpm-accent);
}

.tpm-article__content .wp-block-embed__wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.tpm-article__content .wp-block-embed__wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.tpm-article__source,
.tpm-author-box,
.tpm-next-article {
    max-width: 908px;
    margin-right: auto;
    margin-left: auto;
}

.tpm-article__source {
    margin-top: 64px;
    padding: 16px 20px;
    border: 3px solid var(--tpm-accent);
    font-family: var(--tpm-font-terminal);
}

.tpm-article__source a {
    color: var(--tpm-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tpm-author-box {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 24px;
    align-items: start;
    margin-top: 72px;
    padding: 28px;
    color: var(--tpm-paper);
    background: var(--tpm-ink);
}

.tpm-author-box img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    filter: grayscale(1) contrast(1.1);
}

.tpm-author-box small,
.tpm-author-box__role {
    font-family: var(--tpm-font-terminal);
}

.tpm-author-box h2 {
    margin: 2px 0 8px;
    color: var(--tpm-accent);
    font-size: 28px;
}

.tpm-author-box p {
    margin: 4px 0 0;
}

.tpm-next-article {
    display: grid;
    gap: 10px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 4px solid var(--tpm-accent);
}

.tpm-next-article small {
    color: var(--tpm-accent);
    font-family: var(--tpm-font-terminal);
}

.tpm-next-article a {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    line-height: .98;
}

.tpm-article__content h2,
.tpm-article__content h3 {
    color: var(--tpm-accent);
}

.tpm-article__content img,
.tpm-article__content iframe,
.tpm-article__content .wp-block-embed {
    width: 100%;
    margin: 40px 0;
}

.tpm-page-hero {
    position: relative;
    height: 720px;
    margin-top: -80px;
    overflow: hidden;
}

.tpm-page-hero h1 {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: min(1080px, calc(100% - 48px));
    margin: 0;
    transform: translate(-50%, -50%);
    color: var(--tpm-paper);
    font-size: clamp(38px, 5vw, 64px);
    line-height: .98;
    text-align: center;
    overflow-wrap: anywhere;
}

.tpm-page-hero h1 span {
    display: inline-block;
    max-width: 100%;
    padding: .12em .28em .18em;
    box-sizing: border-box;
    background: var(--tpm-accent);
}

@media (max-width: 1200px) and (min-width: 701px) {
    .tpm-page-hero h1 {
        width: min(820px, calc(100% - 64px));
        font-size: clamp(38px, 4.5vw, 50px);
        line-height: 1.04;
    }
}

.tpm-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 32px;
    border: 4px solid var(--tpm-accent);
}

.tpm-tabs button {
    height: 60px;
    color: var(--tpm-paper);
    background: var(--tpm-accent);
    border: 0;
    font-family: var(--tpm-font-terminal);
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
}

.tpm-tabs button[aria-selected="true"] {
    color: var(--tpm-accent);
    background: var(--tpm-paper);
}

.tpm-contact__panel {
    max-width: 908px;
    min-height: 820px;
    margin: auto;
    padding: 80px 0;
    text-align: center;
    font-size: 20px;
}

.tpm-contact__panel[hidden] {
    display: none;
}

.tpm-contact__panel .tpm-button {
    margin: 48px 0 16px;
}

.tpm-contact__panel a:not(.tpm-button),
.tpm-about__contacts a {
    color: var(--tpm-accent);
}

.tpm-about {
    padding-top: 80px;
}

.tpm-about__book {
    position: relative;
    top: 0;
    display: block;
    overflow: hidden;
    width: 377px;
    height: 240px;
    margin: 0 auto 128px;
}

.tpm-about__book img {
    position: absolute;
    top: -104.49%;
    left: -25.98%;
    width: 151.97%;
    height: 308.99%;
    max-width: none;
    object-fit: fill;
}

.tpm-about__content {
    max-width: 908px;
    margin: auto;
    text-align: center;
    font-size: 20px;
    line-height: 1.25;
}

.tpm-about__content h1 {
    margin: 0 0 64px;
    font-size: 32px;
}

.tpm-about__contacts {
    display: grid;
    gap: 36px;
    max-width: 500px;
    margin: 96px auto 120px;
    text-align: center;
    font-size: 24px;
}

.tpm-about__contacts p,
.tpm-about__contacts b,
.tpm-about__contacts a {
    display: block;
    margin: 0;
}

@media (max-width: 900px) {
    .tpm-header__nav,
    .tpm-header__actions {
        display: none;
    }

    .tpm-header {
        gap: 16px;
    }

    .tpm-header__toggle {
        display: block;
    }

    .tpm-shot {
        width: min(100%, 678px);
    }

    .tpm-shot > :not(.tpm-shot__carousel) {
        width: min(100%, 506px);
    }

    .tpm-shot__carousel {
        padding-inline: max(48px, calc((100% - 506px) / 2));
    }

    .tpm-home-grid,
    .tpm-article-grid,
    .tpm-picks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tpm-newsletter {
        grid-template-columns: 240px 1fr;
        padding: 64px;
    }

    .tpm-footer__socials {
        display: none;
    }

    .tpm-footer {
        grid-template-columns: 1fr auto;
    }

}

@media (max-width: 1400px) {
    .tpm-footer {
        column-gap: 20px;
        padding-inline: 24px;
    }

    .tpm-footer__socials {
        gap: 18px;
    }

    .tpm-footer__socials a {
        gap: 6px;
        font-size: 18px;
    }

    .tpm-footer__copyright,
    .tpm-footer__credit {
        font-size: 14px;
    }
}

@media (max-width: 1240px) {
    .tpm-header {
        gap: 16px;
    }

    .tpm-header__nav > a,
    .tpm-header__item > a {
        padding-inline: 18px;
    }

    .tpm-header__actions {
        gap: 16px;
        font-size: 20px;
    }

    .tpm-footer {
        grid-template-areas:
            "copyright credit"
            "socials socials";
        grid-template-columns: 1fr auto;
        row-gap: 10px;
        min-height: 84px;
        padding-block: 10px;
    }

    .tpm-footer__copyright {
        grid-area: copyright;
    }

    .tpm-footer__socials {
        grid-area: socials;
    }

    .tpm-footer__credit {
        grid-area: credit;
    }
}

@media (max-width: 1080px) {
    .tpm-header__nav,
    .tpm-header__actions {
        display: none;
    }

    .tpm-header__toggle {
        display: block;
    }
}

@media (max-width: 900px) {
    .tpm-footer {
        grid-template-areas: "copyright credit";
        grid-template-columns: 1fr auto;
        row-gap: 0;
        min-height: 48px;
        padding-block: 0;
    }
}

@media (max-width: 600px) {
    .tpm-site {
        width: 100%;
    }

    .tpm-site--articles,
    .tpm-site--shots {
        background: linear-gradient(to bottom, var(--tpm-accent) 0 200px, var(--tpm-paper) 200px);
    }

    .tpm-header {
        top: 16px;
        height: 48px;
        margin: 16px 16px 0;
    }

    .tpm-header__logo {
        flex-basis: 55px;
        width: 55px;
        height: 32px;
    }

    .tpm-home-hero,
    .tpm-page-hero {
        height: 536px;
        margin-top: -64px;
    }

    .tpm-home-hero h1 {
        right: 16px;
        bottom: 28px;
        left: 16px;
        font-size: clamp(26px, 8vw, 32px);
        line-height: 1.1;
    }

    .tpm-home-grid,
    .tpm-article-grid,
    .tpm-picks {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }

    .tpm-home-grid .tpm-card__meta,
    .tpm-home-grid .tpm-card h3,
    .tpm-card h3 {
        font-size: 16px;
    }

    .tpm-card__meta {
        font-size: 12px;
    }

    .tpm-card__excerpt {
        display: block;
        font-size: 14px;
    }

    .tpm-article-grid .tpm-card__copy {
        padding-top: 8px;
    }

    .tpm-articles-search {
        padding: 16px;
    }

    .tpm-articles-search button span {
        display: none;
    }

    .tpm-card {
        padding-bottom: 16px;
        border-bottom: 1px solid var(--tpm-accent);
    }

    .tpm-section-heading {
        padding: 36px 16px 0;
    }

    .tpm-section-heading h2 {
        font-size: 20px;
    }

    .tpm-community {
        min-height: 499px;
        margin: 0;
        padding: 0 16px;
        text-align: left;
    }

    .tpm-community__desktop {
        display: none;
    }

    .tpm-community__mobile {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
        overflow: hidden;
    }

    .tpm-community__mobile-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .tpm-community__mobile-head > a {
        padding: 0 2px;
        color: var(--tpm-paper);
        background: var(--tpm-accent);
        font-size: 24px;
        font-weight: 700;
        line-height: 1;
    }

    .tpm-community__mobile-head > div {
        display: flex;
        gap: 16px;
    }

    .tpm-community__mobile-head button {
        width: 24px;
        height: 24px;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .tpm-community__mobile-head img {
        width: 24px;
        height: 24px;
    }

    .tpm-community__mobile > p {
        width: 288px;
        margin: 0;
        padding: 0;
        color: var(--tpm-ink);
        background: transparent;
        font-size: 14px;
        line-height: 1.2;
    }

    .tpm-community__track {
        display: flex;
        gap: 8px;
        width: calc(100% + 16px);
        padding: 0 16px 8px 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
    }

    .tpm-community__track::-webkit-scrollbar {
        display: none;
    }

    .tpm-community__track article {
        flex: 0 0 214px;
        scroll-snap-align: start;
    }

    .tpm-community__track article > img {
        display: block;
        width: 214px;
        height: 268px;
        object-fit: cover;
    }

    .tpm-community__track article > div {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding-top: 16px;
        font-family: var(--tpm-font-terminal);
        font-size: 16px;
        line-height: 1.1;
    }

    .tpm-community__track strong {
        font-weight: 600;
    }

    .tpm-shots__masthead {
        height: 136px;
        padding: 0 16px 8px;
    }

    .tpm-shots__masthead h1 {
        font-size: 30px;
        line-height: 1;
    }

    .tpm-shots__masthead strong {
        font-size: 12px;
    }

    .tpm-shots__feed {
        gap: 32px;
        padding: 16px 16px 80px;
    }

    .tpm-shot {
        width: 100%;
    }

    .tpm-shot > :not(.tpm-shot__carousel) {
        width: 100%;
    }

    .tpm-shot__date {
        margin: 0 0 8px;
        padding: 0;
        font-size: 20px;
    }

    .tpm-shot__carousel {
        padding: 0;
    }

    .tpm-shot__nav {
        display: none;
    }

    .tpm-shot h2 {
        margin-top: 8px;
        font-size: 14px;
    }

    .tpm-shot__description {
        font-size: 11px;
    }

    .tpm-shot__dots i {
        width: 6px;
        height: 6px;
    }

    .tpm-outline-button,
    .tpm-button {
        min-height: 48px;
        padding: 9px 22px;
        font-size: 16px;
    }

    .tpm-issue-promo {
        height: 536px;
    }

    .tpm-issue-promo > div {
        right: 16px;
        left: 16px;
    }

    .tpm-issue-promo h2 {
        font-size: 32px;
    }

    .tpm-newsletter {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        min-height: 720px;
        padding: 48px 16px;
    }

    .tpm-newsletter__book {
        width: 190px;
        height: 190px;
        margin: auto;
    }

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

    .tpm-newsletter__form button {
        justify-self: stretch;
        min-width: 0;
    }

    .tpm-newsletter__feedback,
    .tpm-newsletter__form.is-success .tpm-newsletter__feedback,
    .tpm-newsletter__form.is-error .tpm-newsletter__feedback { width: 100%; min-height: 64px; padding: 0; }
    .tpm-newsletter__arrows { display: none; }

    .tpm-articles__masthead {
        height: 136px;
        padding: 16px;
    }

    .tpm-articles__masthead > div {
        gap: 0;
    }

    .tpm-articles__masthead small {
        display: none;
    }

    .tpm-articles__masthead h1 {
        font-size: 30px;
    }

    .tpm-articles__masthead button {
        width: 24px;
        height: 24px;
    }

    .tpm-filters {
        grid-template-columns: 1fr;
        gap: 16px;
        width: calc(100% - 32px);
        padding: 16px 0 0;
    }

    .tpm-filter-control:nth-of-type(3),
    .tpm-filters__save {
        grid-column: auto;
    }

    .tpm-filter-control__trigger {
        height: 40px;
        padding-inline: 8px;
        border-width: 2px;
        font-size: 14px;
    }

    .tpm-filter-control__copy {
        gap: 6px;
    }

    .tpm-filter-control__copy > img,
    .tpm-filter-control__chevron {
        flex-basis: 16px;
        width: 16px;
        height: 16px;
    }

    .tpm-filter-control__menu {
        top: 40px;
    }

    .tpm-filter-control__menu button {
        height: 40px;
        padding: 0 16px;
        font-size: 16px;
    }

    .tpm-filters__save {
        height: 40px;
        font-size: 18px;
    }

    .tpm-filters__save img {
        width: 20px;
        height: 20px;
    }

    .tpm-writer-profile {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 16px;
        width: calc(100% - 32px);
        margin-top: 24px;
        padding: 16px;
        border-left-width: 4px;
    }

    .tpm-writer-profile > img {
        width: 72px;
        height: 72px;
    }

    .tpm-writer-profile__role {
        margin-bottom: 8px;
        font-size: 12px;
    }

    .tpm-writer-profile__bio p {
        font-size: 15px;
    }

    .tpm-writer-profile__links {
        gap: 6px 12px;
        margin-top: 12px;
    }

    .tpm-writer-profile__links a {
        font-size: 11px;
    }

    .tpm-articles-empty {
        width: calc(100% - 32px);
        min-height: 240px;
        margin: 32px auto 64px;
        padding: 24px;
        border-width: 2px;
    }

    .tpm-articles-empty p {
        font-size: 16px;
    }

    .tpm-article {
        padding: 0 8px 64px;
    }

    .tpm-article__bar {
        min-height: 24px;
        border-width: 2px;
        font-size: 9px;
    }

    .tpm-article__bar span {
        flex-basis: auto;
        max-width: 72%;
        padding: 6px 8px;
        line-height: 1.2;
    }

    .tpm-article__hero {
        height: 320px;
        margin-top: 0;
        border-width: 2px;
    }

    .tpm-article__hero-wrap {
        margin-top: 8px;
    }

    .tpm-article__hero-wrap figcaption {
        font-size: 9px;
    }

    .tpm-article__info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
        padding: 6px;
        border-width: 2px;
        font-size: 9px;
    }

    .tpm-article__info span:last-child {
        grid-column: 2;
    }

    .tpm-article__header {
        padding-top: 12px;
    }

    .tpm-article__header h1 {
        font-size: 28px;
        line-height: 1.14;
    }

    .tpm-article__header > p {
        margin-bottom: 28px;
        font-size: 16px;
    }

    .tpm-article__content {
        padding: 0 8px;
        font-size: 15px;
    }

    .tpm-article__content h2 {
        font-size: 26px;
    }

    .tpm-article__content h3 {
        font-size: 22px;
    }

    .tpm-article__content blockquote,
    .tpm-article__content .wp-block-pullquote {
        padding: 20px;
        font-size: 24px;
    }

    .tpm-article__content .wp-block-gallery.is-style-tpm-slider {
        margin: 2em 0;
        border-width: 2px;
    }

    .tpm-article-gallery__stage {
        height: min(68vh, 560px);
    }

    .tpm-article-gallery__controls {
        right: 8px;
        left: 8px;
    }

    .tpm-article-gallery__arrow {
        flex-basis: 38px;
        min-width: 38px;
        max-width: 38px;
        min-height: 38px;
        max-height: 38px;
        width: 38px;
        height: 38px;
    }

    .tpm-article__content .tpm-article-gallery__arrow img {
        width: 22px;
        height: 22px;
    }

    .tpm-article-gallery__footer {
        min-height: 42px;
        padding: 7px 9px;
        font-size: 10px;
    }

    .tpm-article__content pre {
        padding: 16px;
        font-size: 12px;
    }

    .tpm-article__content table {
        display: block;
        overflow-x: auto;
        font-size: 12px;
    }

    .tpm-article__source,
    .tpm-author-box,
    .tpm-next-article {
        margin-right: 8px;
        margin-left: 8px;
    }

    .tpm-author-box {
        grid-template-columns: 64px 1fr;
        gap: 16px;
        padding: 18px;
    }

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

    .tpm-author-box h2 {
        font-size: 22px;
    }

    .tpm-next-article a {
        font-size: 28px;
    }

    .tpm-page-hero h1 {
        width: 92%;
        font-size: 32px;
        line-height: 1.05;
    }

    .tpm-page-hero h1 span {
        padding: .16em .24em .2em;
    }

    .tpm-tabs {
        grid-template-columns: repeat(2, 1fr);
        margin: 16px;
    }

    .tpm-tabs button {
        height: 48px;
        font-size: 16px;
    }

    .tpm-contact__panel {
        min-height: 720px;
        padding: 48px 16px;
        font-size: 16px;
    }

    .tpm-about {
        padding-top: 48px;
    }

    .tpm-about__book {
        top: 0;
        width: 140px;
        height: 89px;
        margin-bottom: 48px;
    }

    .tpm-about__content {
        padding: 0 16px;
        font-size: 14px;
    }

    .tpm-about__content h1 {
        margin-bottom: 32px;
        font-size: 20px;
    }

    .tpm-about__contacts {
        gap: 16px;
        margin: 32px auto 64px;
        padding: 0 16px;
        font-size: 14px;
    }

    .tpm-footer {
        grid-template-areas:
            "copyright"
            "credit";
        grid-template-columns: 1fr;
        row-gap: 4px;
        height: auto;
        min-height: 48px;
        padding: 6px 16px;
        font-size: 9px;
    }

    .tpm-footer__copyright,
    .tpm-footer__credit {
        font-size: 9px;
    }

    .tpm-footer__credit {
        justify-content: flex-start;
        gap: 4px;
    }

    .tpm-footer__credit img {
        width: 10px;
        height: 12px;
    }
}

@media screen and (max-width: 782px) {
    body.admin-bar .tpm-header {
        top: 62px;
    }
}

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

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

    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }

    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none;
    }
}
