/*
Theme Name: byMonica Lookbook
Description: A WordPress editorial theme for byMonica.
Version: 1.1.0
Requires at least: 6.3
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: bymonica-lookbook
*/

:root {
    --bm-bg:#fffcf9;
    --bm-text:#191513;
    --bm-muted:#5f5b58;
    --bm-wine:#633a29;
    --bm-dark:#4c2c20;
    --bm-sand:#f3e9e1;
    --bm-line:#e9ded6;
    --bm-surface:#faf4ef;
    --bm-type:"Wallace Sans",Arial,Helvetica,sans-serif;
    --bm-site:min(100% - 2.5rem,1380px);
    --bm-measure:780px;
}

*,*::before,*::after {
    box-sizing:border-box;
}

body {
    margin:0;
    background:var(--bm-bg);
    color:var(--bm-text);
    font:400 clamp(1rem,1.2vw,1.0625rem)/1.55 var(--bm-type);
}

img {
    max-width:100%;
    height:auto;
    vertical-align:middle;
}

a {
    color:var(--bm-wine);
    text-underline-offset:.2em;
}

:focus-visible {
    outline:2px solid #8a563a;
    outline-offset:4px;
}

[hidden] {
    display:none!important;
}

h1,h2,h3 {
    font-family:var(--bm-type);
    line-height:1.06;
    letter-spacing:-.035em;
    text-wrap:balance;
}

h1 {
    font-weight:750;
    font-size:clamp(2.15rem,5.2vw,4.75rem);
    margin:.25em 0 .28em;
}

h2 {
    font-size:clamp(1.5rem,2.6vw,2.2rem);
}

h3 {
    font-size:clamp(1.15rem,2vw,1.65rem);
}

input,button,select,textarea {
    font:inherit;
    max-width:100%;
}

input:not([type=checkbox]):not([type=radio]),textarea {
    padding:.55rem .75rem;
    border:1px solid var(--bm-line);
    border-radius:6px;
    background:#fff;
    color:var(--bm-text);
}

.bm-link-button,button,input[type=submit] {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:.65rem;
    min-height:44px;
    padding:.5rem 1rem;
    border:1px solid var(--bm-wine);
    border-radius:6px;
    background:var(--bm-wine);
    color:#fff;
    text-decoration:none;
    cursor:pointer;
}

.bm-link-button:hover,button:hover,input[type=submit]:hover {
    background:var(--bm-dark);
    color:#fff;
}

.bm-shell {
    width:var(--bm-site);
    margin-inline:auto;
}

.bm-skip,.screen-reader-text {
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip-path:inset(50%);
    white-space:nowrap;
}

.bm-skip:focus,.screen-reader-text:focus {
    z-index:12;
    top:.5rem;
    left:.5rem;
    width:auto;
    height:auto;
    padding:.5rem;
    background:#fff;
    clip-path:none;
}

.bm-site-header {
    background:var(--bm-bg);
}

.bm-topline {
    display:grid;
    grid-template-columns:auto 1fr auto;
    gap:1rem;
    align-items:center;
    min-height:5.1rem;
    position:relative;
}

.bm-brand {
    position:relative;
    display:inline-block;
    color:var(--bm-text);
    font-size:clamp(1.9rem,3.2vw,2.85rem);
    font-weight:750;
    line-height:1;
    letter-spacing:-.07em;
    text-decoration:none;
    white-space:nowrap;
    padding-block-end:.42em;
}

.bm-brand span {
    position:absolute;
    inset-inline-end:.4em;
    inset-block-end:.03em;
    color:var(--bm-wine);
    font-size:.34em;
    letter-spacing:-.04em;
}

.bm-site-nav ul,.bm-foot-links {
    display:flex;
    gap:.15rem clamp(.65rem,2.6vw,2.5rem);
    list-style:none;
    margin:0;
    padding:0;
}

.bm-site-nav ul {
    justify-content:center;
}

.bm-site-nav a,.bm-foot-links a {
    display:inline-flex;
    align-items:center;
    min-height:44px;
    color:var(--bm-text);
    text-decoration:none;
    font-size:.9rem;
    font-weight:650;
    white-space:nowrap;
}

.bm-site-nav a:hover,.bm-foot-links a:hover,[aria-current=page] {
    text-decoration:underline;
}

.bm-header-actions {
    display:flex;
    align-items:center;
    gap:1rem;
}

.bm-header-actions summary {
    display:grid;
    place-items:center;
    min-width:44px;
    min-height:44px;
    cursor:pointer;
    list-style:none;
}

.bm-header-actions summary::-webkit-details-marker {
    display:none;
}

.bm-header-actions details>div {
    position:absolute;
    inset-block-start:100%;
    inset-inline-end:0;
    z-index:6;
    padding:.75rem;
    background:var(--bm-bg);
    border:1px solid var(--bm-line);
    max-width:100%;
    border-radius:8px;
}

.bm-subscribe-nav {
    font-size:.85rem;
}

.bm-global-search {
    display:flex;
    flex-wrap:wrap;
    gap:.45rem;
    align-items:center;
}

.bm-global-search input {
    flex:1 1 10rem;
    min-width:0;
    min-height:44px;
}

.bm-kicker {
    color:var(--bm-wine);
    font-weight:700;
    font-size:.71rem;
    letter-spacing:.14em;
    text-transform:uppercase;
}

.bm-hero {
    display:grid;
    grid-template-columns:minmax(0,54fr) minmax(0,46fr);
    align-items:center;
    gap:clamp(1.5rem,4vw,4rem);
    margin-block:.6rem 1.75rem;
}

.bm-hero-photo {
    display:block;
    overflow:hidden;
    border-radius:22px;
    background:var(--bm-sand);
}

.bm-hero-photo img {
    width:100%;
    aspect-ratio:1.94;
    object-fit:cover;
    object-position:center 36%;
}

.bm-hero-copy p {
    color:var(--bm-muted);
    max-width:42ch;
    margin:.2rem 0 1.05rem;
}

.bm-home-features {
    margin-block:1.25rem 2.25rem;
}

.bm-home-features .bm-theme-cards {
    gap:1rem 1.6rem;
}

.bm-home-features .bm-theme-card article {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,.85fr);
    align-items:center;
    gap:.9rem;
}

.bm-home-features .bm-theme-card img {
    aspect-ratio:1.2;
}

.bm-home-teaser {
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,2.45fr);
    align-items:center;
    gap:clamp(.8rem,2vw,2rem);
    padding-block:1.3rem;
    border-block-start:1px solid var(--bm-line);
}

.bm-home-teaser h2 {
    margin:.24em 0;
    max-width:23ch;
}

.bm-home-teaser img {
    display:block;
    width:100%;
    aspect-ratio:4.5;
    object-fit:cover;
    object-position:center 28%;
    border-radius:18px;
}

.bm-route-head {
    padding-block:clamp(1.65rem,4vw,3.2rem) clamp(1rem,2vw,1.75rem);
    max-width:var(--bm-measure);
}

.bm-route-head p,.bm-entry-intro {
    color:var(--bm-muted);
    max-width:60ch;
}

.bm-category-head {
    text-align:center;
    margin-inline:auto;
}

.bm-category-head p {
    margin-inline:auto;
}

.bm-category-head::after {
    content:"";
    display:block;
    width:2.6rem;
    height:1px;
    margin:1.1rem auto 0;
    background:var(--bm-wine);
}

.bm-breadcrumb,.bm-entry-date {
    font-size:.85rem;
    color:var(--bm-muted);
}

.bm-breadcrumb {
    letter-spacing:.10em;
    text-transform:uppercase;
}

.bm-article-head h1 {
    font-size:clamp(2rem,4.35vw,3.9rem);
}

.bm-theme-collection {
    margin-block:clamp(2.15rem,5vw,4rem);
}

.bm-theme-collection h2 {
    margin:0 0 .85em;
}

.bm-theme-cards {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:1.75rem 1.4rem;
    margin:0;
    padding:0;
    list-style:none;
}

.bm-theme-card {
    min-width:0;
    border-block-end:1px solid var(--bm-line);
    padding-block-end:.95rem;
}

.bm-card-media {
    display:block;
    overflow:hidden;
    border-radius:18px;
    background:var(--bm-sand);
}

.bm-theme-card img {
    display:block;
    width:100%;
    aspect-ratio:1.68;
    object-fit:cover;
    object-position:center 32%;
}

.bm-card-copy {
    min-width:0;
    padding-block:.65rem;
}

.bm-theme-card h2,.bm-theme-card h3 {
    font-size:clamp(1.05rem,1.7vw,1.55rem);
    margin:.25em 0;
}

.bm-theme-card h2 a,.bm-theme-card h3 a {
    color:inherit;
    text-decoration:none;
}

.bm-theme-card h2 a:hover,.bm-theme-card h3 a:hover {
    text-decoration:underline;
}

.bm-theme-card p:not(.bm-kicker) {
    font-size:.9rem;
    color:var(--bm-muted);
    margin:.3em 0;
}

.bm-theme-card .bm-kicker {
    margin:0;
}

.bm-read {
    display:inline-flex;
    align-items:center;
    gap:.4rem;
    min-height:44px;
    font-size:.84rem;
    font-weight:700;
}

.bm-article-head,.bm-entry > :not(.alignwide):not(.alignfull):not(.bm-gallery),.bm-article-end {
    max-width:var(--bm-measure);
    margin-inline:auto;
}

.bm-entry {
    font-size:clamp(1rem,1.4vw,1.125rem);
}

.bm-entry > .bm-gallery {
    max-width:1020px;
    margin-inline:auto;
}

.bm-entry p {
    margin-block:0 1em;
}

.bm-entry > figure {
    margin-block:1.75rem;
}

.bm-entry .wp-block-image img {
    max-width:100%;
    height:auto;
}

.bm-entry .aligncenter {
    text-align:center;
}

.bm-scroll-story {
    line-height:1.72;
}

.bm-scroll-story h2,.bm-scroll-story h3 {
    margin-block:1.55em .55em;
}

.bm-scroll-story > :is(.wp-block-image,.wp-block-gallery,.bm-article-image) {
    max-width:52rem;
    margin:1.55rem auto;
}

.bm-scroll-story > :is(.wp-block-image,.bm-article-image) img {
    display:block;
    width:auto;
    max-width:100%;
    max-height:76svh;
    height:auto;
    margin-inline:auto;
    object-fit:contain;
    border-radius:18px;
}

.bm-scroll-story :is(figcaption,.wp-caption-text) {
    margin:.65rem auto 0;
    max-width:66ch;
    color:var(--bm-muted);
    font-size:.9rem;
    text-align:center;
}

.bm-pagination {
    margin-block:2rem;
}

.bm-pagination .page-numbers {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:44px;
    min-height:44px;
}

.bm-empty-state {
    padding:clamp(1.1rem,4vw,2.5rem);
    background:var(--bm-sand);
    max-width:var(--bm-measure);
    margin:1rem 0 3rem;
}

.bm-site-footer {
    margin-block-start:clamp(1.5rem,5vw,4rem);
    padding-block:1rem 1.5rem;
}

.bm-join {
    background:var(--bm-surface);
    display:grid;
    grid-template-columns:minmax(100px,.75fr) minmax(0,1.25fr) auto;
    align-items:center;
    gap:1rem;
    position:relative;
    overflow:hidden;
    border-radius:18px;
    min-height:112px;
    padding:1.25rem clamp(1rem,4vw,3.25rem);
}

.bm-join>svg {
    position:absolute;
    inset-inline-start:-.5rem;
    inset-block-end:-1rem;
    width:clamp(135px,35%,360px);
    height:auto;
    pointer-events:none;
}

.bm-join-copy {
    grid-column:2;
    position:relative;
}

.bm-join h2 {
    margin:0;
    font-style:italic;
}

.bm-join p {
    margin:.28em 0 0;
    color:var(--bm-muted);
}

.bm-join .bm-newsletter {
    grid-column:3;
    position:relative;
    margin:0;
    padding:0;
    background:transparent;
}

.bm-join-form {
    grid-column: 3;
    position: relative;
    min-width: 0;
}

.bm-foot-links {
    margin-block-start:.7rem;
    flex-wrap:wrap;
}

.bm-foot-links a {
    font-weight:400;
}

@media(min-width:1024px) {
    :root {
        --bm-site:min(100% - 8rem,1380px);
    }
}

.bm-topline>.bm-brand {
    justify-self:start;
}

.bm-home-teaser img {
    object-fit:contain;
    background:var(--bm-sand);
}

.bm-site-footer {
    margin-block-start:clamp(1.5rem,3vw,2.5rem);
}

.bm-article>.bm-related {
    max-width:var(--bm-measure);
    margin:2rem auto;
}

@media(min-width:768px) and (max-width:1023px) {
    .bm-theme-cards {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .bm-home-features .bm-theme-cards {
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
    .bm-home-features .bm-theme-card article {
        display:block;
    }
}

@media(max-width:767px) {
    .bm-topline {
        grid-template-columns:minmax(0,1fr) auto;
        gap:0;
        min-height:auto;
        padding-block:.8rem .35rem;
    }
    .bm-topline>.bm-site-nav {
        grid-column:1/-1;
        grid-row:2;
        overflow-x:auto;
        scrollbar-width:thin;
    }
    .bm-site-nav ul {
        justify-content:space-between;
        min-width:max-content;
    }
    .bm-header-actions {
        grid-column:2;
        grid-row:1;
    }
    .bm-subscribe-nav {
        display:none;
    }
    .bm-hero,.bm-home-teaser {
        grid-template-columns:minmax(0,1fr);
        gap:1rem;
    }
    .bm-hero {
        margin-block:.2rem 1rem;
    }
    .bm-hero-copy h1 {
        font-size:clamp(2.1rem,8.4vw,3.6rem);
    }
    .bm-hero-link {
        color:var(--bm-dark);
        background:transparent;
        border:0;
        padding-inline:0;
        border-radius:0;
        text-decoration:underline;
    }
    .bm-hero-link:hover {
        background:transparent;
        color:var(--bm-dark);
    }
    .bm-hero-link span {
        display:grid;
        place-items:center;
        width:30px;
        height:30px;
        background:var(--bm-sand);
        border-radius:100%;
        text-decoration:none;
    }
    .bm-theme-cards {
        grid-template-columns:minmax(0,1fr);
        gap:1rem;
    }
    .bm-home-features .bm-theme-card article {
        grid-template-columns:minmax(0,40%) minmax(0,1fr);
    }
    .bm-home-features .bm-theme-card img {
        aspect-ratio:1.45;
    }
    .bm-home-teaser img {
        aspect-ratio:2.2;
    }
    .bm-join {
        display:block;
        text-align:center;
        min-height:106px;
        padding-block:1.1rem;
    }
    .bm-join>svg {
        opacity:.64;
        inset-inline-start:-32px;
    }
    .bm-join .bm-newsletter {
        margin-block-start:.75rem;
    }
}
