/* =========================================================
   Article page (article.html) — builds on master, shop and blog css
   ========================================================= */
.ar-page {
    padding: 128px 0 110px;
    font-family: "DM Sans", "Montserrat", sans-serif
}

/* reading progress */
.ar-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 3px;
    pointer-events: none
}

.ar-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--brand-olive-d), var(--brand-gold));
    transform: scaleX(0);
    transform-origin: left
}

/* ---------- header ---------- */
.ar-head {
    max-width: 900px;
    margin: 0 auto;
    padding: 22px 5% 0;
    text-align: center
}

.ar-head .pd-crumbs {
    justify-content: center;
    margin-bottom: 34px
}

.ar-topic {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--brand-gold)
}

.ar-head h1 {
    font-family: "Gilda Display", "Marcellus", serif;
    font-weight: 400;
    font-size: clamp(36px, 4.6vw, 64px);
    line-height: 1.06;
    letter-spacing: -.015em;
    color: var(--brand-ink);
    text-wrap: balance
}

.ar-dek {
    max-width: 700px;
    margin: 22px auto 0;
    font-size: 18.5px;
    line-height: 1.65;
    color: #6B6656;
    text-wrap: pretty
}

.ar-byline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 18px;
    margin-top: 32px;
    text-align: left
}

.ar-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #F1EBE0;
    overflow: hidden
}

.ar-avatar img {
    width: 70%
}

.ar-by {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 14.5px;
    color: var(--brand-ink)
}

.ar-by a {
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(46, 44, 32, .25);
    text-underline-offset: 4px
}

.ar-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13.5px;
    color: #8C8378
}

.ar-share {
    display: flex;
    gap: 8px;
    padding-left: 18px;
    border-left: 1px solid rgba(46, 44, 32, .12)
}

.ar-share a,
.ar-share button {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(46, 44, 32, .12);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--brand-ink);
    font-size: 14px;
    cursor: pointer;
    transition: background .3s, color .3s, border-color .3s
}

.ar-share a:hover,
.ar-share button:hover {
    background: var(--brand-olive-d);
    border-color: var(--brand-olive-d);
    color: #fff
}

.ar-hero {
    margin: 44px 16px 0
}

.ar-hero img {
    display: block;
    width: 100%;
    height: clamp(320px, 52vw, 640px);
    object-fit: cover;
    border-radius: 34px
}

.ar-hero figcaption,
.ar-figure figcaption {
    margin-top: 12px;
    text-align: center;
    font-size: 13.5px;
    color: #8C8378
}

/* ---------- desktop: header split — text left, photo right ---------- */
@media (min-width:1025px) {
    .ar-top {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        gap: 56px;
        align-items: center;
        padding: 0 5%
    }

    .ar-top .ar-head {
        max-width: none;
        margin: 0;
        padding: 22px 0 0;
        text-align: left
    }

    .ar-top .pd-crumbs {
        justify-content: flex-start
    }

    .ar-top .ar-head h1 {
        font-size: clamp(38px, 3.6vw, 58px)
    }

    .ar-top .ar-dek {
        margin-left: 0
    }

    .ar-top .ar-byline {
        justify-content: flex-start
    }

    .ar-top .ar-byline .ar-share {
        flex-basis: 100%;
        padding: 6px 0 0;
        border: 0
    }

    .ar-top .ar-hero {
        margin: 22px 0 0
    }

    .ar-top .ar-hero img {
        height: clamp(460px, 42vw, 620px)
    }

    .ar-top .ar-hero figcaption {
        text-align: left
    }
}

/* ---------- layout: TOC + body ---------- */
.ar-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 720px);
    justify-content: center;
    gap: 72px;
    padding: 64px 5% 0
}

.ar-aside {
    position: sticky;
    top: 116px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 16px
}

.ar-toc details {
    padding: 20px 14px 14px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(46, 44, 32, .04), 0 18px 40px -34px rgba(46, 44, 32, .5)
}

.ar-toc summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 12px;
    list-style: none;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--brand-ink)
}

.ar-toc summary::-webkit-details-marker {
    display: none
}

.ar-toc summary i {
    margin-right: 8px;
    color: var(--brand-gold)
}

.ar-toc-pct {
    padding: 4px 9px;
    border-radius: 999px;
    background: #F4EFE6;
    font-size: 11.5px;
    letter-spacing: .04em;
    color: var(--brand-olive-d)
}

.ar-toc ol {
    list-style: none;
    counter-reset: toc;
    display: grid;
    gap: 2px
}

.ar-toc li {
    counter-increment: toc
}

.ar-toc a {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 10px 10px 10px 12px;
    border-radius: 12px;
    font-size: 14.5px;
    line-height: 1.4;
    color: #6B6656;
    transition: background .3s, color .3s
}

.ar-toc a::before {
    content: counter(toc, decimal-leading-zero);
    flex: none;
    min-width: 18px;
    font-variant-numeric: tabular-nums;
    font-size: 12px;
    line-height: 1.7;
    color: #B5AC9F;
    transition: color .3s
}

.ar-toc a:hover {
    background: #F7F3EC;
    color: var(--brand-ink)
}

.ar-toc a.is-active {
    background: #F4EFE6;
    color: var(--brand-olive-d);
    font-weight: 500
}

.ar-toc a.is-active::before {
    color: var(--brand-gold)
}

.ar-aside-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 20px;
    background: var(--brand-olive-d);
    color: var(--brand-cream);
    transition: transform .35s var(--ease)
}

.ar-aside-card:hover {
    transform: translateY(-3px)
}

.ar-aside-card img {
    width: 70px;
    height: 70px;
    border-radius: 14px;
    object-fit: cover
}

.ar-aside-card span {
    display: flex;
    flex-direction: column;
    gap: 2px
}

.ar-aside-card small {
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand-gold-l)
}

.ar-aside-card b {
    font-family: "Gilda Display", "Marcellus", serif;
    font-weight: 400;
    font-size: 18px
}

.ar-aside-card em {
    font-style: normal;
    font-size: 13px;
    color: rgba(251, 248, 241, .75)
}

/* ---------- body typography ---------- */
.ar-body {
    min-width: 0;
    font-size: 18px;
    line-height: 1.8;
    color: #3E3A2E
}

.ar-body > * + * {
    margin-top: 22px
}

.ar-body h2 {
    margin-top: 56px;
    scroll-margin-top: 120px;
    font-family: "Gilda Display", "Marcellus", serif;
    font-weight: 400;
    font-size: clamp(28px, 2.6vw, 36px);
    line-height: 1.2;
    color: var(--brand-ink)
}

.ar-body section {
    scroll-margin-top: 120px
}

.ar-body strong,
.ar-body b {
    font-weight: 500;
    color: var(--brand-ink)
}

.ar-body ul,
.ar-body ol {
    padding-left: 22px
}

.ar-body li + li {
    margin-top: 8px
}

.ar-body li::marker {
    color: var(--brand-gold)
}

/* key takeaways */
.ar-summary {
    padding: 30px 32px;
    border-radius: 26px;
    background: var(--brand-olive-d);
    color: rgba(251, 248, 241, .85)
}

.ar-body .ar-summary h2 {
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    color: var(--brand-cream)
}

.ar-summary h2 i {
    font-size: 16px;
    color: var(--brand-gold-l)
}

.ar-summary ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 10px;
    font-size: 16px;
    line-height: 1.6
}

.ar-summary li {
    position: relative;
    padding-left: 28px
}

.ar-summary li::before {
    content: "\f00c";
    position: absolute;
    left: 0;
    top: 1px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 13px;
    color: var(--brand-gold-l)
}

.ar-summary b {
    color: var(--brand-cream)
}

/* tip */
.ar-tip {
    display: flex;
    gap: 16px;
    padding: 22px 24px;
    border-radius: 20px;
    background: #F4EFE6;
    font-size: 16px;
    line-height: 1.65
}

.ar-tip i {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--brand-gold);
    font-size: 17px
}

/* palette */
.ar-palette {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px
}

.ar-palette span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12.5px;
    line-height: 1.4;
    color: #8C8378
}

.ar-palette span::before {
    content: "";
    height: 86px;
    margin-bottom: 10px;
    border-radius: 16px;
    background: var(--c);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06)
}

.ar-palette b {
    font-size: 14.5px;
    color: var(--brand-ink)
}

/* figures */
.ar-figure {
    margin-top: 34px;
    margin-bottom: 34px
}

.ar-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px
}

/* pull quote */
.ar-quote {
    position: relative;
    margin: 40px 0;
    padding: 6px 0 6px 34px;
    border-left: 3px solid var(--brand-gold)
}

.ar-quote p {
    font-family: "Cormorant Garamond", "Gilda Display", serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(26px, 2.4vw, 32px);
    line-height: 1.3;
    color: var(--brand-olive-d)
}

/* table */
.ar-table-wrap {
    overflow-x: auto;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(46, 44, 32, .04)
}

.ar-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15.5px
}

.ar-table caption {
    padding: 18px 20px 6px;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #8C8378
}

.ar-table th,
.ar-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(46, 44, 32, .07)
}

.ar-table th {
    font-weight: 500;
    color: var(--brand-ink)
}

.ar-table tbody tr:last-child td {
    border-bottom: 0
}

.ar-table td:last-child {
    font-weight: 500;
    color: var(--brand-olive-d)
}

/* shop the look */
.ar-shop {
    margin-top: 44px !important;
    padding: 24px;
    border-radius: 26px;
    background: #F4EFE6
}

.ar-body .ar-shop-title {
    margin: 0 0 16px;
    font-size: 24px
}

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

.ar-shop-grid a {
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    transition: transform .35s var(--ease), box-shadow .35s
}

.ar-shop-grid a:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px -22px rgba(46, 44, 32, .55)
}

.ar-shop-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover
}

.ar-shop-grid span {
    display: flex;
    flex-direction: column;
    padding: 12px 14px 14px;
    font-size: 13.5px;
    line-height: 1.4;
    color: var(--brand-olive-d)
}

.ar-shop-grid b {
    font-family: "Gilda Display", "Marcellus", serif;
    font-weight: 400;
    font-size: 17px;
    color: var(--brand-ink)
}

/* checklist */
.ar-body .ar-check {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 10px
}

.ar-check li {
    display: flex;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 16px;
    background: #fff;
    font-size: 16.5px;
    line-height: 1.5
}

.ar-body .ar-check li + li {
    margin-top: 0
}

.ar-check li::before {
    content: "\f00c";
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    background: var(--brand-olive-d);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    color: #fff
}

/* FAQ */
.ar-body .ar-faq h2 {
    margin-bottom: 20px
}

.ar-faq details {
    border-radius: 18px;
    background: #fff;
    transition: background .4s var(--ease)
}

.ar-faq details + details {
    margin-top: 10px
}

.ar-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 18px 24px;
    list-style: none;
    cursor: pointer;
    font-family: "Gilda Display", "Marcellus", serif;
    font-size: 19px;
    line-height: 1.35;
    color: var(--brand-ink)
}

.ar-faq summary::-webkit-details-marker {
    display: none
}

.ar-faq summary::after {
    content: "\f078";
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(46, 44, 32, .12);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    transition: transform .4s var(--ease), background .3s, color .3s
}

.ar-faq details[open] {
    background: var(--brand-olive-d)
}

.ar-faq details[open] summary {
    color: var(--brand-cream)
}

.ar-faq details[open] summary::after {
    transform: rotate(180deg);
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    color: #fff
}

.ar-faq details p {
    padding: 0 24px 20px;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(251, 248, 241, .82)
}

/* tags + end share */
.ar-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 56px !important;
    padding-top: 28px;
    border-top: 1px solid rgba(46, 44, 32, .1)
}

.ar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px
}

.ar-tags a {
    padding: 8px 14px;
    border-radius: 999px;
    background: #F4EFE6;
    font-size: 13.5px;
    color: #4A463A;
    transition: background .3s, color .3s
}

.ar-tags a:hover {
    background: var(--brand-olive-d);
    color: #fff
}

.ar-share-end {
    align-items: center;
    border: 0;
    padding: 0;
    font-size: 13.5px;
    color: #8C8378
}

.ar-share-end span {
    margin-right: 4px
}

/* author box */
.ar-author {
    display: flex;
    gap: 24px;
    margin-top: 40px !important;
    padding: 30px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(46, 44, 32, .04), 0 22px 44px -36px rgba(46, 44, 32, .55)
}

.ar-author-img {
    flex: none;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #F4EFE6;
    overflow: hidden
}

.ar-author-img img {
    width: 80%
}

.ar-author-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--brand-gold)
}

.ar-body .ar-author-name {
    margin: 4px 0 8px;
    font-size: 26px
}

.ar-author p {
    font-size: 15.5px;
    line-height: 1.7;
    color: #6B6656
}

.ar-author-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 500
}

.ar-author-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-olive-d);
    transition: color .3s
}

.ar-author-links a:hover {
    color: var(--brand-gold)
}

/* keep reading */
.ar-more {
    margin-top: 100px
}

.ar-more-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 0 5% 28px
}

.ar-more h2 {
    font-family: "Gilda Display", "Marcellus", serif;
    font-weight: 400;
    font-size: clamp(32px, 3.2vw, 46px);
    color: var(--brand-ink)
}

.ar-more-title {
    font-family: "Gilda Display", "Marcellus", serif;
    font-weight: 400;
    font-size: 23px;
    line-height: 1.25;
    color: var(--brand-ink)
}

/* toast */
.pd-toast {
    position: fixed;
    top: 112px;
    left: 50%;
    z-index: 140;
    padding: 14px 22px;
    border-radius: 999px;
    background: var(--brand-olive-d);
    color: var(--brand-cream);
    font-size: 14.5px;
    opacity: 0;
    transform: translate(-50%, -12px);
    pointer-events: none;
    transition: opacity .35s var(--ease), transform .35s var(--ease)
}

.pd-toast.is-show {
    opacity: 1;
    transform: translate(-50%, 0)
}

/* ---------- responsive ---------- */
@media (max-width:1180px) {
    .ar-layout {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 44px
    }
}

@media (max-width:1024px) {
    .ar-page {
        padding-top: 112px
    }

    .ar-layout {
        grid-template-columns: minmax(0, 720px);
        gap: 0;
        padding-top: 36px
    }

    /* TOC becomes a sticky collapsible bar */
    .ar-aside {
        top: 84px;
        z-index: 20;
        margin-bottom: 24px
    }

    .ar-aside-card {
        display: none
    }

    .ar-toc details {
        padding: 14px 10px 10px;
        border-radius: 20px;
        box-shadow: 0 16px 34px -24px rgba(46, 44, 32, .55)
    }

    .ar-toc summary {
        padding-bottom: 4px
    }

    .ar-toc details[open] summary {
        padding-bottom: 10px
    }

    .ar-toc ol {
        max-height: 50vh;
        overflow-y: auto
    }
}

@media (max-width:767px) {
    .ar-page {
        padding: 104px 0 80px
    }

    .ar-head .pd-crumbs {
        margin-bottom: 24px;
        font-size: 12.5px
    }

    .ar-dek {
        font-size: 16.5px
    }

    .ar-byline {
        flex-direction: column;
        text-align: center
    }

    .ar-by {
        align-items: center
    }

    .ar-dates {
        justify-content: center
    }

    .ar-share {
        border: 0;
        padding: 0
    }

    .ar-hero {
        margin: 32px 10px 0
    }

    .ar-hero img {
        border-radius: 24px
    }

    .ar-aside {
        top: 76px
    }

    .ar-body {
        font-size: 17px
    }

    .ar-summary {
        padding: 24px 22px
    }

    .ar-palette {
        grid-template-columns: repeat(3, minmax(0, 1fr))
    }

    .ar-palette span::before {
        height: 64px
    }

    .ar-shop-grid {
        grid-template-columns: minmax(0, 1fr)
    }

    .ar-shop-grid a {
        flex-direction: row
    }

    .ar-shop-grid img {
        width: 110px;
        aspect-ratio: 1
    }

    .ar-author {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 22px
    }

    .ar-author-img {
        width: 72px;
        height: 72px
    }

    .ar-more-head {
        flex-direction: column;
        align-items: flex-start
    }
}
