/*
Theme Name: I Am Pink Moss Editorial
Theme URI: https://iampinkmoss.com/
Author: OpenAI for Terrill Moss
Description: Custom lightweight editorial theme for I Am Pink Moss.
Version: 2.17.3
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: iampinkmoss
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, custom-logo, custom-menu, featured-images, translation-ready
*/

/* =========================================================
   ROOT
   ========================================================= */

:root {
    --pm-ink: #292720;
    --pm-ink-soft: #4a4338;

    --pm-paper: #efe4d2;
    --pm-paper-soft: #f7efe3;
    --pm-paper-deep: #dcc4a2;

    --pm-pink: #c68a96;
    --pm-pink-deep: #a96d7b;

    --pm-moss: #54563c;
    --pm-moss-deep: #3f412b;

    --pm-line: rgba(41, 39, 32, 0.14);
    --pm-shadow: 0 22px 48px rgba(26, 18, 12, 0.20);

    --pm-serif: Georgia, "Times New Roman", Times, serif;
    --pm-mono: "Courier New", Courier, monospace;
    --pm-script: "Segoe Script", "Lucida Handwriting", "Brush Script MT", cursive;

    --pm-max: 1360px;
}

/* =========================================================
   RESET / BASE
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;

    color: var(--pm-ink);
    background: #f7f2ea;

    font: 400 18px/1.7 var(--pm-serif);
    text-rendering: optimizeLegibility;
}

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

svg {
    max-width: 100%;
}

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

a:hover,
a:focus-visible {
    color: var(--pm-pink-deep);
}

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

:focus-visible {
    outline: 3px solid var(--pm-pink);
    outline-offset: 3px;
}

.screen-reader-text {
    position: absolute;

    width: 1px;
    height: 1px;

    margin: -1px;
    padding: 0;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);

    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    clip: auto;

    width: auto;
    height: auto;

    top: 1rem;
    left: 1rem;

    padding: 0.75rem 1rem;

    background: #fff;
    z-index: 9999;
}

.pm-shell {
    width: min(calc(100% - 2rem), var(--pm-max));
    margin-inline: auto;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;

    background: rgba(249, 244, 237, 0.97);
    backdrop-filter: blur(8px);

    border-bottom: 1px solid rgba(74, 67, 56, 0.08);
}

.admin-bar .site-header {
    top: 32px;
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;

    align-items: center;
    gap: 2rem;

    min-height: 114px;
}

.site-branding {
    min-width: 270px;
}

.site-branding a {
    text-decoration: none;
}

.custom-logo {
    width: auto;
    max-height: 76px;
}

.site-title {
    margin: 0;

    color: #404033;

    font-family: var(--pm-mono);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 0.88;

    letter-spacing: -0.04em;
}

.site-title .pink {
    color: var(--pm-pink);
}

.site-description {
    margin: 0.1rem 0 0;

    color: var(--pm-ink-soft);

    font: 700 0.76rem/1.3 var(--pm-mono);

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.site-navigation {
    justify-self: center;
}

.primary-menu,
.footer-menu {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 2.75rem);

    margin: 0;
    padding: 0;

    list-style: none;
}

.primary-menu li {
    position: relative;
}

.primary-menu a,
.footer-menu a {
    text-decoration: none;

    font: 700 0.78rem/1 var(--pm-serif);

    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* Desktop dropdowns */

.primary-menu .sub-menu {
    position: absolute;

    top: calc(100% + 0.75rem);
    left: 50%;

    z-index: 1000;

    display: none;

    min-width: 190px;

    margin: 0;
    padding: 0.45rem 0;

    list-style: none;

    background: #f9f4ed;

    border: 1px solid rgba(41, 39, 32, 0.12);

    box-shadow:
        0 10px 24px rgba(41, 39, 32, 0.12);

    transform: translateX(-50%);
}

/* Small invisible bridge prevents dropdown from
   disappearing while moving the mouse downward */

.primary-menu .sub-menu::before {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 100%;

    height: 0.75rem;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
    display: block;
}

.primary-menu .sub-menu li {
    display: block;

    width: 100%;
    margin: 0;
}

.primary-menu .sub-menu a {
    display: block;

    width: 100%;

    padding: 0.75rem 1.1rem;

    color: var(--pm-ink);

    white-space: nowrap;
    text-align: left;

    border: 0;

    font-size: 0.74rem;
    line-height: 1.2;
}

.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a:focus-visible {
    color: var(--pm-pink-deep);

    background: rgba(198, 138, 150, 0.10);
}

/* Header social links */

.header-social {
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

.header-social a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 1.2rem;

    color: var(--pm-pink);

    font: 700 1rem/1 var(--pm-mono);

    text-decoration: none;
}

/* Mobile menu button */

.menu-toggle {
    display: none;

    padding: 0.65rem 0.9rem;

    color: var(--pm-moss-deep);
    background: transparent;

    border: 1px solid var(--pm-line);

    cursor: pointer;
}
/* =========================================================
   HOMEPAGE HERO
   ========================================================= */

.pm-home-hero {
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(248,244,237,.98) 0 47%,
            rgba(248,244,237,.80) 59%,
            rgba(248,244,237,.32) 70%,
            rgba(248,244,237,0) 100%
        ),
        radial-gradient(
            circle at 16% 20%,
            rgba(198,138,150,.10),
            transparent 24%
        ),
        radial-gradient(
            circle at 31% 72%,
            rgba(84,86,60,.05),
            transparent 28%
        ),
        #f8f0e6;

    border-bottom: 1px solid var(--pm-line);
}

.pm-home-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            rgba(255,255,255,.05),
            rgba(255,255,255,0)
        ),
        radial-gradient(
            circle at 0 0,
            rgba(89,60,42,.03) 0 1px,
            transparent 1px 4px
        );

    pointer-events: none;
}

.pm-home-hero .pm-shell {
    position: relative;

    display: grid;
    grid-template-columns:
        minmax(340px, 0.88fr)
        minmax(420px, 1.12fr);

    align-items: center;

    min-height: 760px;
}

.pm-home-copy {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: flex-start;

    max-width: 36rem;

    padding: 4rem 0 5rem;
}

.pm-home-eyebrow {
    margin: 0 0 1rem;

    color: var(--pm-pink);

    font: 700 0.95rem/1.1 var(--pm-serif);

    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.pm-home-title {
    margin: 0;

    color: #333228;

    font: 400 clamp(3.1rem, 7vw, 6rem)/0.88 var(--pm-serif);

    letter-spacing: -0.05em;
}

.pm-home-title .script {
    display: block;

    margin-top: 0.15em;

    color: var(--pm-pink);

    font-family: var(--pm-script);
    font-size: 0.72em;
    line-height: 0.84;
}

.pm-home-divider {
    display: flex;
    align-items: center;

    gap: 1rem;

    width: min(360px, 100%);

    margin: 2rem 0 1.8rem;

    color: var(--pm-pink);
}

.pm-home-divider::before,
.pm-home-divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: currentColor;
}

.pm-home-copy p {
    margin: 0 0 1.8rem;

    max-width: 33rem;

    color: #51473b;

    font-size: clamp(1.15rem, 1.8vw, 1.5rem);
}

.pm-home-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 1.25rem 2rem;

    align-items: center;
}

.pm-button {
    display: inline-block;

    padding: 1rem 1.4rem;

    color: #fff;
    background: var(--pm-moss);

    border: 1px solid var(--pm-moss);

    text-decoration: none;

    font: 700 0.77rem/1 var(--pm-serif);

    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.pm-button:hover,
.pm-button:focus-visible {
    color: #fff;
    background: var(--pm-moss-deep);
}

.pm-link {
    padding-bottom: 0.25rem;

    font: 700 0.8rem/1 var(--pm-serif);

    letter-spacing: 0.14em;
    text-transform: uppercase;

    text-decoration: none;

    border-bottom: 2px solid var(--pm-pink);
}

.pm-home-art {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: flex-end;

    min-height: 760px;

    background: transparent;
}

.pm-home-art img {
    position: relative;

    width: min(100%, 860px);
    max-height: 86%;

    margin-left: auto;

    object-fit: contain;
    object-position: center center;

    filter: saturate(0.98);
}

/* =========================================================
   TOPIC STRIP
   ========================================================= */

.pm-topics {
    color: #fff;

    background:
        linear-gradient(
            90deg,
            #666a44,
            #40422d 48%,
            #666a44
        );

    border-top: 1px solid rgba(255,255,255,.1);
}

.pm-topics ul {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 1rem;

    min-height: 68px;

    margin: 0;
    padding: 0;

    list-style: none;

    overflow-x: auto;
}

.pm-topics li {
    white-space: nowrap;

    font: 700 0.76rem/1 var(--pm-serif);

    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.pm-topics li + li::before {
    content: "✦";

    margin-right: clamp(1rem, 2vw, 2rem);

    color: var(--pm-pink);
}

.pm-manifesto {
    padding: 1.3rem 1rem;

    color: var(--pm-ink-soft);
    background: #efcfd2;

    text-align: center;

    font: 1rem/1.4 var(--pm-mono);
}

/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.pm-section {
    padding: clamp(4rem, 7vw, 6rem) 0;
}

.pm-section-heading {
    margin: 0 0 2rem;

    color: #302d25;

    text-align: center;

    font: 400 clamp(2.2rem, 5vw, 4.25rem)/1 var(--pm-serif);
}

.pm-section-heading .script {
    color: var(--pm-pink);

    font-family: var(--pm-script);
}

/* =========================================================
   LATEST STORIES
   ========================================================= */

.pm-latest-section {
    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(241, 233, 221, .86),
            rgba(241, 233, 221, .88)
        ),
        var(
            --pm-latest-bg,
            url('assets/images/latest-fixed-bg.jpg')
        )
        center center / cover no-repeat fixed;

    border-top: 1px solid rgba(71, 53, 37, .10);
    border-bottom: 1px solid rgba(71, 53, 37, .12);
}

.pm-latest-section::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.10),
            transparent 24%,
            transparent 76%,
            rgba(255,255,255,.10)
        );
}

.pm-latest-section .pm-shell {
    position: relative;
    z-index: 1;
}

.pm-latest-section .pm-section-heading {
    margin-bottom: 2.25rem;

    color: var(--pm-pink-deep);

    text-align: center;

    font: 400 clamp(2.7rem, 5.5vw, 4.9rem)/1 var(--pm-script);
}

.pm-latest-section .pm-section-heading::after {
    content: "⌁⌁⌁";

    display: block;

    margin-top: 0.4rem;

    color: #65574d;

    font: 400 1.15rem/1 var(--pm-serif);

    letter-spacing: 0.18em;
}

.pm-latest-section .pm-post-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: clamp(0.85rem, 1.45vw, 1.35rem);

    align-items: start;
}

.pm-latest-story-card {
    position: relative;

    width: 100%;
    max-width: 330px;

    margin: 0 auto;

    transform-origin: center bottom;

    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}

.pm-latest-story-card:nth-child(1) {
    transform: rotate(-0.8deg);
}

.pm-latest-story-card:nth-child(2) {
    transform: rotate(-0.25deg);
}

.pm-latest-story-card:nth-child(3) {
    transform: rotate(0.3deg);
}

.pm-latest-story-card:nth-child(4) {
    transform: rotate(0.7deg);
}

.pm-latest-story-card:hover,
.pm-latest-story-card:focus-within {
    transform: translateY(-7px);

    filter:
        drop-shadow(
            0 13px 22px rgba(45,31,20,.20)
        );
}

.pm-latest-story-paper {
    position: relative;

    aspect-ratio: 690 / 900;

    overflow: hidden;

    background:
        url('assets/images/story-card-paper-short.png')
        center top / 100% 100% no-repeat;

    filter:
        drop-shadow(
            0 8px 14px rgba(45,31,20,.16)
        );
}

.pm-latest-story-photo {
    position: absolute;

    top: 17.6%;
    left: 18.25%;

    width: 66.7%;
    height: 25.15%;

    display: block;

    overflow: hidden;

    background: #e7d8c7;

    border-radius: 9px;

    box-shadow:
        inset 0 0 0 1px rgba(92,68,48,.10);
}

.pm-latest-story-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;

    filter:
        contrast(1.02)
        saturate(.98);

    image-rendering: auto;
}

.pm-latest-story-photo::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(246,237,224,.025),
            rgba(90,65,46,.025)
        );
}

.pm-latest-story-content {
    position: absolute;

    left: 15.6%;
    right: 12.8%;
    top: 46.2%;
    bottom: 7.3%;

    padding: 0.45rem 0.55rem 0.4rem;

    background: rgba(247, 239, 227, .78);

    border-radius: 8px;

    box-shadow:
        0 1px 0 rgba(255,255,255,.45) inset;
}

.pm-latest-story-category {
    margin: 0 0 0.38rem;

    color: #8e5f64;

    font: 700 0.67rem/1.05 var(--pm-serif);

    letter-spacing: 0.085em;
    text-transform: uppercase;
}

.pm-latest-story-title {
    margin: 0 0 0.55rem;

    max-width: 100%;

    color: #28221d;

    font: 700 clamp(.98rem, 1.02vw, 1.12rem)/1.08 var(--pm-mono);

    letter-spacing: -0.015em;
}

.pm-latest-story-title a {
    color: inherit;

    text-decoration: none;
}

.pm-latest-story-title a:hover,
.pm-latest-story-title a:focus-visible {
    color: var(--pm-pink-deep);
}

.pm-latest-story-excerpt {
    max-width: 100%;

    color: #453c33;

    font: 400 0.82rem/1.34 var(--pm-mono);
}

.pm-latest-story-date-wrap {
    position: absolute;

    left: 0.55rem;
    right: 0.55rem;
    bottom: 0.48rem;

    display: flex;

    align-items: baseline;

    gap: 0.55rem;

    padding-top: 0.4rem;

    border-top: 1px solid rgba(92,72,55,.18);
}

.pm-latest-story-date-label {
    margin: 0;

    color: #6f5b4d;

    font: 700 0.61rem/1 var(--pm-serif);

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pm-latest-story-date {
    margin: 0;

    color: #9d645f;

    font: 700 0.72rem/1.1 var(--pm-mono);
}

.pm-latest-actions {
    margin-top: 1.65rem;

    text-align: center;
}

.pm-latest-actions .pm-button {
    background:
        linear-gradient(
            180deg,
            #c78c95,
            #b87d87
        );

    border-color: #9c6770;

    box-shadow:
        0 6px 12px rgba(80,49,49,.16);
}

.pm-latest-actions .pm-button:hover,
.pm-latest-actions .pm-button:focus-visible {
    background:
        linear-gradient(
            180deg,
            #b87d87,
            #a56d76
        );
}

/* =========================================================
   CONTACT SECTION
   ========================================================= */

.pm-contact-section {
    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(246,229,220,.98) 0 42%,
            rgba(246,229,220,.72) 57%,
            rgba(246,229,220,.18) 74%,
            rgba(246,229,220,0) 100%
        ),
        #eed4d2;

    border-top: 1px solid rgba(87,59,51,.14);
}

.pm-contact-grid {
    display: grid;

    grid-template-columns:
        minmax(280px, 0.8fr)
        minmax(420px, 1.2fr);

    align-items: center;

    min-height: 430px;
}

.pm-contact-copy {
    position: relative;
    z-index: 2;

    max-width: 31rem;

    padding: 4.5rem 0;
}

.pm-contact-title {
    margin: 0 0 1rem;

    color: var(--pm-pink-deep);

    font: 400 clamp(2.8rem, 6vw, 5.2rem)/0.95 var(--pm-script);
}

.pm-contact-copy p {
    margin: 0 0 1.4rem;

    color: #453a32;

    font: 400 1rem/1.6 var(--pm-mono);
}

.pm-contact-art {
    align-self: center;

    min-height: 430px;

    background-image:
        var(
            --pm-contact-art,
            url('assets/images/contact-art.png')
        );

    background-size: contain;
    background-position: right center;
    background-repeat: no-repeat;
}

/* =========================================================
   CONTACT SOCIAL LINKS
   ========================================================= */

.pm-contact-list {
    display: flex;
    flex-wrap: wrap;

    gap: 0.75rem 1rem;

    margin: 2rem 0 0;
    padding: 0;

    list-style: none;

    font: 400 0.95rem/1.45 var(--pm-mono);
}

.pm-contact-list li {
    margin: 0;
    padding: 0;
}

.pm-social-link {
    display: inline-flex;

    align-items: center;
    justify-content: flex-start;

    gap: 0.55rem;

    max-width: 100%;

    padding: 0.55rem 0.85rem;

    color: var(--pm-ink);

    background: rgba(255,255,255,.35);

    border: 1px solid rgba(41,39,32,.15);
    border-radius: 999px;

    text-decoration: none;

    font-family: var(--pm-serif);
    font-size: 0.9rem;
    line-height: 1;

    overflow: hidden;

    transition:
        transform 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease;
}

.pm-social-link:hover {
    transform: translateY(-2px);

    background: #f3e3e5;
    border-color: var(--pm-pink);
}

.pm-social-link:focus-visible {
    outline: 2px solid var(--pm-moss);
    outline-offset: 3px;
}

.pm-social-icon,
.pm-social-link svg,
.pm-social-link img {
    display: block;

    width: 18px !important;
    height: 18px !important;

    min-width: 18px !important;
    min-height: 18px !important;

    max-width: 18px !important;
    max-height: 18px !important;

    flex: 0 0 18px;

    object-fit: contain;

    overflow: hidden;
}

svg.pm-social-icon {
    fill: none;
    stroke: #6d7963;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pm-social-email {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    color: #6d7963;

    font-size: 1rem;
    line-height: 1;
}

.pm-contact-label {
    display: inline-block;

    min-width: 2rem;

    color: var(--pm-pink-deep);

    font-weight: 700;
}

/* =========================================================
   STANDARD POST CARDS
   ========================================================= */

.pm-post-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 2rem;
}

.pm-card {
    display: flex;
    flex-direction: column;

    background: #fbf7f1;

    border: 1px solid rgba(60,47,34,.12);

    box-shadow:
        0 12px 26px rgba(44,31,20,.08);
}

.pm-card-media {
    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: #e6d4bc;
}

.pm-card-media img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .3s ease;
}

.pm-card:hover .pm-card-media img {
    transform: scale(1.03);
}

.pm-card-body {
    padding: 1.4rem;
}

.pm-card-meta {
    margin: 0 0 0.7rem;

    color: var(--pm-pink-deep);

    font: 700 0.72rem/1.4 var(--pm-mono);

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pm-card-title {
    margin: 0 0 0.7rem;

    color: #2f2a22;

    font-size: 1.6rem;
    line-height: 1.12;
}

.pm-card-title a {
    text-decoration: none;
}

.pm-card-excerpt {
    margin: 0;

    color: #52483d;

    font-size: 1rem;
}

/* =========================================================
   ARCHIVES / PAGES
   ========================================================= */

.pm-page-main {
    width: min(calc(100% - 2rem), 980px);

    margin: 0 auto;

    padding: 4rem 0 5rem;
}

.archive-title {
    margin: 0 0 2rem;

    text-align: center;

    font: 400 clamp(2.4rem, 5vw, 4.4rem)/1 var(--pm-serif);
}

.navigation.pagination {
    margin-top: 3rem;

    text-align: center;
}

.page-numbers {
    display: inline-block;

    padding: 0.45rem 0.75rem;

    border: 1px solid var(--pm-line);

    text-decoration: none;
}

/* =========================================================
   SINGLE POSTS
   ========================================================= */

.pm-wood {
    min-height: 100vh;

    background:
        linear-gradient(
            rgba(32,22,16,.22),
            rgba(32,22,16,.22)
        ),
        url('assets/images/post-background-alt.png')
        center center / cover no-repeat fixed;

    padding: clamp(1rem, 2vw, 2rem);
}

.pm-paper-stage {
    width: min(calc(100% - 2rem), 1040px);

    margin: 0 auto;

    filter: none;
}

.pm-paper-frame {
    position: relative;

    min-height: 0;

    padding: clamp(1.5rem, 3vw, 2.5rem) 0;

    background: none;
}

.pm-paper-frame::before,
.pm-paper-frame::after {
    content: none;
    display: none;
}

.pm-paper-content {
    position: relative;
    z-index: 1;

    max-width: 900px;

    margin: 0 auto;

    padding:
        clamp(2.4rem, 5vw, 4rem)
        clamp(1.75rem, 5vw, 3.75rem)
        clamp(3rem, 6vw, 4.75rem);

    background-color: #f3eadc;

    background-image:
        radial-gradient(
            circle at 18% 14%,
            rgba(116,86,58,.055) 0 1px,
            transparent 1.6px
        ),
        radial-gradient(
            circle at 74% 32%,
            rgba(116,86,58,.04) 0 1px,
            transparent 1.5px
        ),
        repeating-radial-gradient(
            circle at 0 0,
            rgba(88,64,43,.022) 0 1px,
            transparent 1px 4px
        ),
        linear-gradient(
            180deg,
            rgba(255,255,255,.35),
            rgba(231,215,193,.18)
        );

    background-size:
        160px 145px,
        210px 190px,
        5px 5px,
        auto;

    border: 1px solid rgba(115,86,60,.14);

    box-shadow:
        0 18px 42px rgba(48,33,22,.17),
        inset 0 0 70px rgba(125,92,60,.055);
}

.pm-back {
    display: inline-block;

    margin-bottom: 1.2rem;

    text-decoration: none;

    font: 0.85rem/1 var(--pm-mono);
}

.pm-article-brand {
    margin-bottom: 2.4rem;

    text-align: center;
}

.pm-article-brand .top {
    display: block;

    margin-bottom: 0.4rem;

    color: #726252;

    font: 0.84rem/1.3 var(--pm-serif);

    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.pm-article-brand strong {
    display: block;

    color: var(--pm-pink-deep);

    font: 400 clamp(2.7rem, 7vw, 4.8rem)/1 var(--pm-script);
}

.pm-article-brand .bottom {
    display: block;

    margin-top: 0.35rem;

    font: 0.82rem/1.5 var(--pm-mono);
}

.entry-header {
    margin-bottom: 1.8rem;

    text-align: center;
}

.entry-title {
    max-width: 860px;

    margin: 0 auto 1.2rem;

    color: #1f1d19;

    font: 700 clamp(2.7rem, 5vw, 4.9rem)/1.06 var(--pm-mono);

    letter-spacing: -0.04em;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;

    justify-content: center;

    gap: 0.25rem 1rem;

    color: #4c433a;

    font: 0.8rem/1.4 var(--pm-mono);
}

.entry-content {
    color: #26211d;

    font: 400 clamp(1.02rem, 1.4vw, 1.17rem)/1.55 var(--pm-mono);
}

.entry-content::after {
    content: "";

    display: table;
    clear: both;
}

.entry-content > p:first-child::first-letter {
    float: left;

    margin: 0.02em 0.14em 0 0;

    color: var(--pm-pink-deep);

    font: 700 5.4em/0.72 var(--pm-serif);
}

.entry-content h2,
.entry-content h3 {
    margin: 1.55em 0 0.45em;

    color: var(--pm-pink-deep);

    font-family: var(--pm-script);
    font-weight: 400;
    line-height: 1.1;
}

.entry-content h2 {
    font-size: clamp(2rem, 4vw, 3.15rem);
}

.entry-content h3 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.entry-content .alignright,
.pm-featured-float {
    float: right;

    width: min(46%, 430px);

    margin: 0.25rem 0 1.7rem 2rem;
    padding: 0.45rem;

    background: #e2cfb5;

    border-radius: 2px;

    box-shadow:
        0 8px 20px rgba(66,46,29,.18);

    transform: rotate(.55deg);
}

.entry-content blockquote {
    margin: 2rem 0;

    padding: 1rem 1.35rem;

    color: #43392f;

    border-left: 4px solid var(--pm-pink);

    font: italic 1.2rem/1.6 var(--pm-serif);
}

.entry-content a {
    color: var(--pm-pink-deep);
}

.post-navigation {
    margin-top: 3rem;

    padding-top: 1.5rem;

    border-top: 1px solid rgba(70,50,35,.22);

    font: 0.82rem/1.45 var(--pm-mono);
}

.comment-respond,
#comments {
    margin-top: 3rem;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    padding: 1.8rem 1rem 1.5rem;

    background: #363823;
    color: #ffffff;

    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Stack menu ABOVE copyright */
.footer-inner {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 0.85rem;

    width: min(calc(100% - 2rem), var(--pm-max));
    margin: 0 auto;

    text-align: center;
}

/* =========================================================
   FOOTER LEGAL MENU
   ========================================================= */

.footer-menu {
    order: 1;

    display: flex;
    flex-wrap: wrap;

    align-items: center;
    justify-content: center;

    gap: 0.4rem 1.2rem;

    width: 100%;

    margin: 0;
    padding: 0;

    list-style: none;
}

.footer-menu li {
    margin: 0;
    padding: 0;
}

/* Small divider between links */
.footer-menu li:not(:last-child)::after {
    content: "•";

    margin-left: 1.2rem;

    color: rgba(255, 255, 255, 0.35);

    font-family: var(--pm-mono);
    font-size: 0.7rem;
}

/* Match copyright/typewriter style */
.footer-menu a {
    color: #fffdf8;

    font-family: var(--pm-mono);
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.4;

    letter-spacing: 0.04em;
    text-transform: none;

    text-decoration: none;

    transition:
        color 160ms ease,
        opacity 160ms ease;
}

.footer-menu a:hover,
.footer-menu a:focus-visible {
    color: #efcfd2;
}

/* =========================================================
   COPYRIGHT
   ========================================================= */

/* Works with common copyright markup */
.footer-inner > p,
.footer-inner .site-info,
.footer-inner .copyright,
.site-footer .site-info,
.site-footer .copyright {
    order: 2;

    margin: 0;
    padding: 0;

    color: rgba(255, 255, 255, 0.78);

    font-family: var(--pm-mono);
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.4;

    letter-spacing: 0.05em;
}

/* =========================================================
   FOOTER MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .site-footer {
        padding: 1.6rem 1rem;
    }

    .footer-inner {
        gap: 1rem;
    }

    .footer-menu {
        flex-direction: column;

        gap: 0.55rem;
    }

    .footer-menu li:not(:last-child)::after {
        content: none;
        display: none;
    }

    .footer-menu a {
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .footer-inner > p,
    .footer-inner .site-info,
    .footer-inner .copyright,
    .site-footer .site-info,
    .site-footer .copyright {
        font-size: 0.74rem;
    }
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1280px) {

    .pm-latest-section .pm-post-grid {
        grid-template-columns:
            repeat(2, minmax(260px, 1fr));

        gap: 1.25rem;

        justify-items: center;
    }

    .pm-latest-story-card {
        max-width: 350px;
    }

    .pm-latest-story-title {
        font-size: 1.08rem;
    }

    .pm-latest-story-excerpt {
        font-size: 0.86rem;
    }
}

@media (max-width: 1100px) {

    .pm-home-hero .pm-shell {
        grid-template-columns: 1fr;

        min-height: 0;
    }

    .pm-home-copy {
        max-width: 44rem;

        padding: 4rem 0 1rem;
    }

    .pm-home-art {
        justify-content: center;

        min-height: 520px;
    }

    .pm-home-art img {
        width: min(100%, 760px);
        max-height: 100%;

        margin-left: 0;
    }

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

    .pm-contact-grid {
        grid-template-columns: 1fr;
    }

    .pm-contact-copy {
        padding-bottom: 1rem;
    }

    .pm-contact-art {
        min-height: 330px;

        background-position: center center;
    }
}

/* =========================================================
   MOBILE NAV / TABLET
   ========================================================= */
@media (max-width: 960px) {
.primary-menu .sub-menu{
    position:static;
    display:block;
    min-width:0;
    padding-left:1.25rem;
    background:transparent;
    border:0;
    box-shadow:none;
    transform:none
}
    .admin-bar .site-header {
        top: 46px;
    }

    .header-inner {
        grid-template-columns: 1fr auto;

        min-height: 88px;

        gap: 1rem;
    }

    .menu-toggle {
        display: inline-block;
    }

    .site-navigation {
        grid-column: 1 / -1;

        display: none;

        width: 100%;

        padding-bottom: 1rem;
    }

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

    .primary-menu {
        display: grid;

        gap: 0;
    }

    .primary-menu > li {
        width: 100%;
    }

    .primary-menu a {
        display: block;

        padding: 0.8rem 0;

        border-top: 1px solid var(--pm-line);
    }

    /* Mobile submenu */

    .primary-menu .sub-menu {
        position: static;

        display: block;

        min-width: 0;

        margin: 0;
        padding: 0 0 0 1.25rem;

        background: transparent;

        border: 0;

        box-shadow: none;

        transform: none;
    }

    .primary-menu .sub-menu::before {
        content: none;
    }

    .primary-menu .sub-menu a {
        padding: 0.7rem 0;

        font-size: 0.72rem;
    }

    .header-social {
        display: none;
    }

    .pm-home-hero {
        background:
            linear-gradient(
                180deg,
                rgba(248,244,237,.98),
                rgba(248,244,237,.88)
            );
    }

    .pm-home-copy {
        padding-bottom: 0;
    }

    .pm-home-art {
        min-height: 440px;
    }

    .pm-wood {
        background-attachment: scroll;
        background-position: center top;
    }
}
/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 720px) {

    .pm-latest-section {
        background-attachment: scroll;
    }

    .pm-latest-section .pm-post-grid {
        grid-template-columns: 1fr;

        gap: 1rem;
    }

    .pm-latest-story-card {
        width: min(100%, 380px);
        max-width: 380px;

        transform: none !important;
    }

    .pm-latest-story-card:hover,
    .pm-latest-story-card:focus-within {
        transform: translateY(-6px) !important;
    }

    .pm-latest-story-content {
        top: 46%;
    }

    .pm-latest-story-title {
        font-size: 1.1rem;
    }

    .pm-latest-story-excerpt {
        font-size: 0.88rem;
    }
}

@media (max-width: 700px) {

    body {
        font-size: 17px;
    }

    .pm-shell {
        width: min(calc(100% - 1.25rem), var(--pm-max));
    }

    .site-branding {
        min-width: 0;
    }

    .custom-logo {
        max-width: 205px;
        max-height: 68px;
    }

    .pm-home-copy {
        padding: 3rem 0 0.5rem;
    }

    .pm-home-copy p {
        font-size: 1.06rem;
    }

    .pm-home-art {
        min-height: 380px;
    }

    .pm-topics ul {
        justify-content: flex-start;
    }

    .pm-post-grid {
        grid-template-columns: 1fr;
    }

    .pm-contact-section {
        background: #f1d8d5;
    }

    .pm-contact-grid {
        min-height: 0;
    }

    .pm-contact-copy {
        padding: 3.5rem 0 2rem;
    }

    .pm-contact-art {
        min-height: 250px;

        background-position: center bottom;
    }

    .pm-contact-list {
        flex-direction: column;

        align-items: flex-start;

        margin-top: 1.5rem;
    }

    .pm-social-link {
        width: 100%;
    }

    .pm-paper-stage {
        width: min(calc(100% - 1rem), 1040px);
    }

    .pm-paper-frame {
        padding: 0.75rem 0;
    }

    .pm-paper-content {
        padding: 1.5rem 1.1rem 2.25rem;
    }

    .entry-content .alignright,
    .pm-featured-float {
        float: none;

        width: 100%;

        margin: 1rem 0 1.5rem;
    }

    .footer-inner {
        display: grid;
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .header-inner {
        min-height: 82px;
    }

    .custom-logo {
        max-width: 185px;
    }

    .menu-toggle {
        padding: 0.55rem 0.75rem;

        color: var(--pm-moss-deep);
    }

    .pm-contact-title {
        font-size: 2.8rem;
    }

    .pm-contact-copy p {
        font-size: 0.95rem;
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@supports (-webkit-touch-callout: none) {
    .pm-latest-section {
        background-attachment: scroll;
    }
}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
