:root {
    --primary: rgb(40, 44, 48) !important;
    --primary-focus: rgba(40, 44, 48, 0.25) !important;
    --primary-hover: rgb(20, 22, 24) !important;
    --primary-invers: rgb(255, 255, 255) !important;

    --secondary: rgb(110, 110, 110) !important;
    --secondary-focus: rgb(110, 110, 110) !important;
    --secondary-hover: rgb(92, 92, 92) !important;

    --contrast: rgb(32, 32, 32) !important;
    --contrast-focus: rgb(32, 32, 32) !important;

    --red: rgb(255, 164, 164);
    --red-focus: rgb(255, 164, 164);
    --red-inverse: rgb(64, 0, 0);
    --red-hover: rgb(255, 128, 128);

    --green: rgb(140, 240, 140);
    --green-focus: rgb(140, 240, 140);
    --green-inverse: rgb(0, 64, 0);
    --green-hover: rgb(92, 255, 92);

    --page-bg: #ffffff;
    --panel-bg: #f6f7f8;
    --border: #e3e5e8;
    --border-strong: #d1d4d8;
    --text: #1f2328;
    --text-muted: #6a7178;

    --link: rgb(64, 128, 192);
    --link-hover: rgb(40, 92, 150);
}

body {
    background: var(--page-bg);
}

a {
    text-decoration: none;
}

/* Links are blue. Pico colours them with --primary, which is near-black on
   this site and is also what its buttons use, so links get their own colour
   rather than a new --primary. */
a {
    --color: var(--link);
}

a:is([aria-current], :hover, :active, :focus) {
    --color: var(--link-hover);
}

/* Every text link has a dotted underline (solid on hover) and starts with a
   small open-link mark: a square with an arrow, drawn as a mask so it takes
   the link's own colour and hover colour. Links with a class are the
   whole-card links, the brand link and the like, which get neither. */
:is(header, main) :is(a:not([class]), a.back-link) {
    text-decoration: underline dotted;
    text-underline-offset: 0.2em;
}

:is(header, main) :is(a:not([class]), a.back-link):is(:hover, :focus) {
    text-decoration-style: solid;
}

/* A link back up a level starts with a larger arrow going up and then
   left instead of the open-link mark, and its text carries no arrow. */
a.back-link::before {
    content: "";
    display: inline-block;
    width: 1.15em;
    height: 1.15em;
    margin-right: 0.35em;
    vertical-align: -0.2em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-9a4 4 0 0 0-4-4H4'/%3E%3Cpath d='M9 3L4 8l5 5'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-9a4 4 0 0 0-4-4H4'/%3E%3Cpath d='M9 3L4 8l5 5'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* The mark is an inline box holding a word joiner (U+2060), not an
   inline-block: an inline-block is a line-break opportunity, which left
   the mark at the end of one line and the link text on the next. */
:is(header, main) a:not([class])::before {
    content: "\2060";
    padding-left: 0.8em;
    margin-right: 0.3em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4'/%3E%3Cpath d='M14 3h7v7M21 3l-9 9'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4'/%3E%3Cpath d='M14 3h7v7M21 3l-9 9'/%3E%3C/svg%3E") no-repeat center / contain;
}

.container {
    padding-top: 20px;
    padding-bottom: 10px;
}

.site-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.home-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text) !important;
    font-weight: 600;
}

.home-link:hover {
    color: var(--text-muted) !important;
}

.home-link .icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

/* The way back up a level sits at the right end of the page title. It
   floats rather than taking a column, so only the title line makes room
   for it and the description below keeps the full width. It comes before
   the hgroup in the markup, which a float needs. Below 576px it goes on
   its own line above the title. */
.page-head-back {
    float: right;
    margin: 0.375rem 0 0 1.5rem;
    white-space: nowrap;
}

@media (max-width: 575px) {
    .page-head-back {
        float: none;
        margin: 0 0 0.5rem;
    }
}

.hero {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 10px;
}

.hero .icon-lg {
    width: 192px;
    height: 192px;
    margin: 0 auto 10px;
    display: block;
}

.hero h1 {
    margin-bottom: 8px;
}

.hero p {
    color: var(--text-muted);
    max-width: 46em;
    margin: 0 auto;
}

.crossroad-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .crossroad-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px;
    }
}

/* An odd card out would sit alone in the left column of the two-column tier,
   so let it take the whole row instead. Only this tier needs it: the widest
   tier below fits all three sections on one row. */
@media (min-width: 768px) and (max-width: 991px) {
    .crossroad-grid > .crossroad-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

@media (min-width: 992px) {
    .crossroad-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.crossroad-card {
    display: block;
    min-width: 0;
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 35px 30px;
    color: var(--text) !important;
    transition: border-color 0.15s ease, background 0.15s ease;
    position: relative;
    overflow: hidden;
}

.crossroad-card:hover {
    border-color: var(--border-strong);
    background: #eef0f1;
}

/* The preview bleeds out to the card's border: the negative margins undo the
   card padding, and the top corners follow the card's 8px radius minus its
   1px border. The height cap only bites on the full-row card of the
   two-column tier, which would otherwise be a 400px-tall picture. */
.crossroad-card-preview {
    display: block;
    width: calc(100% + 60px);
    max-width: none;
    height: auto;
    max-height: 260px;
    object-fit: cover;
    margin: -35px -30px 25px;
    border-bottom: 1px solid var(--border);
    border-radius: 7px 7px 0 0;
}

.crossroad-card h2 {
    margin-bottom: 8px;
    font-size: 1.3em;
}

.crossroad-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.badge-soon {
    display: inline-block;
    font-size: 0.7em;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--page-bg);
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    padding: 3px 10px;
    margin-left: 8px;
    vertical-align: middle;
}

.prank-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 25px;
}

@media (min-width: 768px) {
    .prank-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .prank-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.keyboard-grid,
.tool-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 25px;
}

@media (min-width: 768px) {
    .keyboard-grid,
    .tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.prank-card,
.keyboard-card,
.tool-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 25px;
    color: var(--text) !important;
    transition: border-color 0.15s ease, background 0.15s ease;
}

a.prank-card:hover,
a.keyboard-card:hover,
a.tool-card:hover {
    border-color: var(--border-strong);
    background: #eef0f1;
}

.prank-card h2,
.keyboard-card h2,
.tool-card h2 {
    font-size: 1.2em;
    margin-bottom: 8px;
}

.prank-card-teaser,
.keyboard-card-teaser,
.tool-card-teaser {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.prank-card p,
.keyboard-card p,
.tool-card p {
    color: var(--text-muted);
    font-size: 0.75em;
    margin-bottom: 0;
}

.prank-card-cta,
.keyboard-card-cta,
.tool-card-cta {
    color: var(--link);
    margin-top: auto;
    padding-top: 18px;
    font-weight: 600;
}

a.prank-card:hover .prank-card-cta,
a.keyboard-card:hover .keyboard-card-cta,
a.tool-card:hover .tool-card-cta {
    color: var(--link-hover);
}

/* The call to action ends in a large, bold arrow drawn as a mask over
   currentColor, rather than a text arrow, which came out thin and small. */
.prank-card-cta::after,
.keyboard-card-cta::after,
.tool-card-cta::after {
    content: "";
    display: inline-block;
    width: 1.05em;
    height: 0.8em;
    margin-left: 0.35em;
    vertical-align: -0.08em;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 20' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 10h21M15 2l8 8-8 8'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 20' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 10h21M15 2l8 8-8 8'/%3E%3C/svg%3E") no-repeat center / contain;
    transition: transform 0.15s ease;
}

a.prank-card:hover .prank-card-cta::after,
a.keyboard-card:hover .keyboard-card-cta::after,
a.tool-card:hover .tool-card-cta::after {
    transform: translateX(3px);
}

.prank-card-soon {
    opacity: 0.65;
}

kbd {
    font-size: 0.85em;
    padding: 2px 6px;
}

button {
    font-size: 1.2em;
    flex-flow: column !important;
    box-shadow: none;
    border-radius: 8px;
}

button span {
    display: block !important;
    width: 100%;
}

button small {
    width: 100%;
    display: block !important;
    font-size: 0.75em;
    line-height: 1.1em;
    opacity: 0.7;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    padding-top: 10px;
    margin-top: 10px;
}

button.gray small,
button.blue small,
button.black small {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}



:is(button, input[type=submit], input[type=button], [role=button]).red {
    --background-color: var(--red);
    --border-color: var(--red);
    --color: var(--red-inverse);
}
:is(button, input[type=submit], input[type=button], [role=button]).red:is([aria-current], :hover, :active, :focus) {
    --background-color: var(--red-hover);
    --border-color: var(--red-hover);
    --color: var(--red-inverse);
}
:is(button, input[type=submit], input[type=button], [role=button]).red:focus {
    --box-shadow: var(--button-hover-box-shadow),
    0 0 0 var(--outline-width) var(--red-focus);
}

:is(button, input[type=submit], input[type=button], [role=button]).green {
    --background-color: var(--green);
    --border-color: var(--green);
    --color: var(--green-inverse);
}
:is(button, input[type=submit], input[type=button], [role=button]).green:is([aria-current], :hover, :active, :focus) {
    --background-color: var(--green-hover);
    --border-color: var(--green-hover);
    --color: var(--green-inverse);
}
:is(button, input[type=submit], input[type=button], [role=button]).green:focus {
    --box-shadow: var(--button-hover-box-shadow),
    0 0 0 var(--outline-width) var(--green-focus);
}

:is(button, input[type=submit], input[type=button], [role=button]).blue {
    --background-color: rgb(64, 164, 255);
    --border-color: rgb(64, 164, 255);
    --color: rgb(255, 255, 255);
}
:is(button, input[type=submit], input[type=button], [role=button]).blue:is([aria-current], :hover, :active, :focus) {
    --background-color: rgb(32, 92, 255);
    --border-color: rgb(32, 92, 255);
    --color: rgb(255, 255, 255);
}
:is(button, input[type=submit], input[type=button], [role=button]).blue:focus {
    --box-shadow: var(--button-hover-box-shadow),
    0 0 0 var(--outline-width) rgba(64, 164, 255, 0.35);
}



#solid-color {
    left: 0;
    top: 0;
    display: none;
    visibility: hidden;
    pointer-events: none;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 1000;
}

#solid-color.visible {
    visibility: visible;
    display: block;
    pointer-events: all;
    cursor: none;
}

#solid-color.white {
    background: rgb(255, 255, 255);
}

#solid-color.gray {
    background: rgb(118, 118, 118);
}

#solid-color.black {
    background: rgb(0, 0, 0);
}

#solid-color.red {
    background: rgb(255, 0, 0);
}

#solid-color.green {
    background: rgb(0, 255, 0);
}

#solid-color.blue {
    background: rgb(0, 0, 255);
}


section {
    margin-bottom: 25px;
}

section.description {
    border-top: 1px solid var(--border);
    padding-top: 25px;
}

h2 {
    font-size: 1.35em;
    margin-bottom: 10px;
}

hgroup {
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

hgroup p {
    margin-bottom: 10px;
    color: var(--text-muted) !important;
}

footer.container small {
    color: var(--text-muted);
}
