/* ============================================================
   THE SUPADAA JOURNAL — editorial redesign
   ------------------------------------------------------------
   Token system
   Color   : Ink #334633 (display/primary) · Brass #C9A15D (signature accent)
             Paper #F6F3EC (page bg) · Linen #F7F3F0 (card bg) · Cloud #FFFFFF
             Muted Ink #6b6b6b (body) · Ash #a8a196 (placeholder/caption)
             Rule #e6e0d5 (hairline borders)
   Type    : Display = 'Lora' (headlines) · Voice = 'Cormorant Upright' italic
             (pull-quotes) · Body = 'Raleway' · Label = 'Merriweather Sans'
             (eyebrows, meta, tags)
   Signature: the "gift tag" card — a die-cut corner + brass punch-hole,
             echoing the paper gift tags tied to Supadaa's products.
   ============================================================ */

/* ---------- shared label ---------- */
.jr-eyebrow {
    display: inline-block;
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #C9A15D;
    margin-bottom: 14px;
}

.jr-eyebrow-light {
    color: #C9A15D;
}

/* ---------- hero ---------- */
.jr-hero {
    background-color: #F6F3EC;
    padding-top: 56px;
    margin-bottom: 40px;
}

.jr-hero-top {
    text-align: center;
    padding-bottom: 40px;
}

.jr-hero h1 {
    font-family: 'Lora', serif;
    font-size: 46px;
    font-weight: 700;
    color: #334633;
    line-height: 1.15;
    margin-bottom: 16px;
}

.jr-hero-top p {
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    color: #6b6b6b;
    max-width: 460px;
    margin: 0 auto 30px !important;
}

.jr-search {
    max-width: 440px;
    margin: 0 auto;
    position: relative;
}

.jr-search i {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: #C9A15D;
    font-size: 13px;
}

.jr-search input {
    width: 100%;
    border: 1.5px solid #e6e0d5;
    background-color: #fff;
    border-radius: 30px;
    padding: 14px 22px 14px 48px;
    font-family: 'Raleway', sans-serif;
    font-size: 13.5px;
    color: #334633;
    outline: none;
    transition: border-color 0.2s ease;
}

.jr-search input:focus {
    border-color: #334633;
}

.jr-search input::placeholder {
    color: #a8a196;
}

/* topic ribbon — signature ambient motion, paused on hover/reduced-motion */
.jr-ribbon-wrap {
    border-top: 1px solid rgba(51, 70, 51, 0.12);
    background-color: #334633;
    overflow: hidden;
}

.jr-ribbon {
    overflow: hidden;
    white-space: nowrap;
    padding: 14px 0;
}

.jr-ribbon-track {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    animation: jrRibbonScroll 28s linear infinite;
}

.jr-ribbon.jr-paused .jr-ribbon-track {
    animation-play-state: paused;
}

.jr-ribbon-item {
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #F6F3EC;
    white-space: nowrap;
}

.jr-ribbon-dot {
    color: #C9A15D;
    font-size: 14px;
}

@keyframes jrRibbonScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .jr-ribbon-track {
        animation: none;
    }
}

/* ---------- hang tag (signature) ---------- */
.jr-hang-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #C9A15D;
    color: #fff;
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 8px 16px 8px 12px;
    border-radius: 3px 12px 12px 3px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.jr-hang-hole {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #F6F3EC;
    border: 1.5px dashed rgba(51, 70, 51, 0.5);
    flex-shrink: 0;
}

/* ---------- featured story ---------- */
.jr-feature {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background-color: #F7F3F0;
    border-radius: 4px 22px 4px 4px;
    overflow: hidden;
    text-decoration: none;
    margin-bottom: 40px;
    transition: box-shadow 0.3s ease;
}

.jr-feature:hover {
    box-shadow: 0 20px 40px rgba(51, 70, 51, 0.12);
}

.jr-feature-img {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.jr-feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.jr-feature:hover .jr-feature-img img {
    transform: scale(1.045);
}

.jr-feature .jr-hang-tag {
    position: absolute;
    top: 24px;
    left: 0;
    transform: rotate(-3deg);
    z-index: 2;
}

.jr-feature-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.jr-cat {
    display: inline-block;
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #334633;
    background-color: rgba(51, 70, 51, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    width: fit-content;
}

.jr-feature-content h2 {
    font-family: 'Lora', serif;
    font-size: 28px;
    font-weight: 700;
    color: #334633;
    line-height: 1.3;
    margin-bottom: 18px;
}

.jr-pullquote {
    font-family: 'Cormorant Upright', serif;
    font-style: italic;
    font-size: 19px;
    font-weight: 500;
    color: #55684f;
    line-height: 1.55;
    padding-left: 18px;
    border-left: 2px solid #C9A15D;
    margin-bottom: 26px !important;
}

.jr-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 12.5px;
    color: #808080;
    margin-bottom: 22px;
}

.jr-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #334633;
    color: #fff;
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jr-meta-name {
    color: #334633;
    font-weight: 600;
}

.jr-meta-dot {
    color: #C9A15D;
}

.jr-read-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Lora', serif;
    font-size: 14px;
    font-weight: 700;
    color: #334633;
    transition: gap 0.25s ease;
}

.jr-feature:hover .jr-read-link {
    gap: 12px;
    color: #C9A15D;
}

/* ---------- body: articles + sidebar ---------- */
.jr-body-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
    margin-bottom: 20px;
}

.jr-section-head {
    margin-bottom: 26px;
}

.jr-section-head h2 {
    font-family: 'Lora', serif;
    font-size: 24px;
    font-weight: 700;
    color: #334633;
    margin: 0;
    position: relative;
    padding-left: 16px;
}

.jr-section-head h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #C9A15D;
}

.jr-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-bottom: 34px;
}

/* card — signature die-cut + punch hole */
.jr-card {
    position: relative;
    display: block;
    background-color: #fff;
    border: 1px solid #f0ece4;
    border-radius: 4px 16px 4px 4px;
    overflow: hidden;
    text-decoration: none;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.jr-card:hover {
    box-shadow: 0 16px 32px rgba(51, 70, 51, 0.1);
    transform: translateY(-4px) rotate(-0.3deg);
}

.jr-punch {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #F6F3EC;
    border: 1.5px dashed rgba(51, 70, 51, 0.35);
    z-index: 2;
}

.jr-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background-color: #f6f3ec;
}

.jr-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.jr-card:hover .jr-card-img img {
    transform: scale(1.07);
}

.jr-card-body {
    padding: 20px;
}

.jr-cat-sm {
    font-size: 9.5px;
    padding: 4px 11px;
    margin-bottom: 10px;
}

.jr-card-body h5 {
    font-family: 'Lora', serif;
    font-size: 15.5px;
    font-weight: 700;
    color: #334633;
    line-height: 1;
    margin-bottom: 8px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jr-card-body p {
    font-family: 'Raleway', sans-serif;
    font-size: 12.5px;
    color: #808080;
    line-height: 1.3;
    margin-bottom: 8px !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jr-meta-sm {
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 11.5px;
    color: #a8a196;
    margin-bottom: 0;
}

/* large (featured-in-grid) card spans both columns, horizontal layout */
.jr-card-lg {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
}

.jr-card-lg .jr-card-img {
    aspect-ratio: auto;
    height: 100%;
}

.jr-card-lg .jr-card-body {
    padding: 26px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.jr-card-lg .jr-card-body h5 {
    font-size: 19px;
    min-height: 0;
    -webkit-line-clamp: 2;
}

.jr-card-lg .jr-card-body p {
    font-size: 13.5px;
    -webkit-line-clamp: 2;
}

/* ---------- sidebar ---------- */
.jr-sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.jr-side-card {
    background-color: #F7F3F0;
    border-radius: 4px 16px 4px 4px;
    padding: 26px;
}

.jr-side-heading {
    font-family: 'Lora', serif;
    font-size: 15px;
    font-weight: 700;
    color: #334633;
    margin-bottom: 18px !important;
    padding-bottom: 14px;
    border-bottom: 1px solid #e6e0d5;
}

.jr-rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jr-rank-list li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}

.jr-rank-list li:last-child {
    margin-bottom: 0;
}

.jr-rank-num {
    font-family: 'Lora', serif;
    font-size: 15px;
    font-weight: 700;
    color: #C9A15D;
    flex-shrink: 0;
}

.jr-rank-list a {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #334633;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.jr-rank-list a:hover {
    color: #C9A15D;
}

.jr-topic-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jr-topic-list li {
    border-bottom: 1px solid #e6e0d5;
}

.jr-topic-list li:last-child {
    border-bottom: none;
}

.jr-topic-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 2px;
    font-family: 'Raleway', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #334633;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.jr-topic-list a:hover {
    color: #C9A15D;
    padding-left: 6px;
}

.jr-topic-list em {
    font-style: normal;
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    color: #a8a196;
}

.jr-side-note {
    background-color: #334633;
    position: relative;
    overflow: hidden;
    padding-top: 30px;
}

.jr-side-note::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.jr-hang-tag-sm {
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
    transform: rotate(-2deg);
}

.jr-side-note-text {
    position: relative;
    z-index: 1;
    font-family: 'Cormorant Upright', serif;
    font-style: italic;
    font-size: 17px;
    color: #F6F3EC;
    line-height: 1.55;
    margin-bottom: 0 !important;
}

/* ---------- newsletter postcard ---------- */
.jr-postcard {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background-color: #334633;
    border: 1.5px dashed rgba(201, 161, 93, 0.55);
    border-radius: 14px;
    padding: 46px 54px;
    margin-bottom: 40px;
    overflow: hidden;
}

.jr-postcard-left h2 {
    font-family: 'Lora', serif;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.jr-postcard-left p {
    font-family: 'Raleway', sans-serif;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0 !important;
    max-width: 380px;
}

.jr-postcard-form {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.jr-postcard-form input {
    width: 240px;
    border: none;
    border-radius: 30px;
    padding: 13px 20px;
    font-family: 'Raleway', sans-serif;
    font-size: 13.5px;
    color: #334633;
    outline: none;
}

.jr-postcard-form input::placeholder {
    color: #a8a196;
}

.jr-postcard-form button {
    background-color: #C9A15D;
    color: #fff;
    border: none;
    font-family: 'Lora', serif;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 13px 26px;
    border-radius: 30px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.25s ease;
}

.jr-postcard-form button:hover {
    background-color: #b98d47;
}

.jr-stamp {
    position: absolute;
    top: 22px;
    right: 26px;
    width: 44px;
    height: 44px;
    border: 1.5px dashed rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(8deg);
}

.jr-stamp i {
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .jr-feature {
        grid-template-columns: 1fr;
    }

    .jr-body-grid {
        grid-template-columns: 1fr;
        margin-bottom: 20px;
        gap: 20px;
    }

    .jr-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .jr-side-card {
        flex: 1 1 260px;
    }

    .jr-card-lg {
        grid-column: span 2;
        grid-template-columns: 1fr;
    }

    .jr-card-lg .jr-card-img {
        aspect-ratio: 16 / 10;
    }

    .jr-postcard {
        flex-wrap: wrap;
    }

    .jr-postcard-form {
        width: 100%;
    }

    .jr-postcard-form input {
        flex: 1;
        width: auto;
    }
}


@media only screen and (min-width:576px) and (max-width: 767px) {
    .jr-feature {
        grid-template-columns: 1fr;
        margin-bottom: 20px;
    }

    .jr-body-grid {
        margin-bottom: 0px;
        gap: 0px;
    }

    .jr-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .jr-side-card {
        flex: 1 1 260px;
    }

    .jr-side-note { 
        margin-bottom: 20px;
    }

    .jr-card-lg {
        grid-column: span 2;
        grid-template-columns: 1fr;
    }

    .jr-grid {
        margin-bottom: 20px;
        gap: 20px;
    }

    .jr-card-lg .jr-card-img {
        aspect-ratio: 16 / 16;
    }

    .jr-postcard {
        flex-wrap: wrap;
        margin-bottom: 20px;
    }

    .jr-postcard-form {
        width: 100%;
    }

    .jr-postcard-form input {
        flex: 1;
        width: auto;
    }

    .jr-hero {
        margin-bottom: 20px;
    }
}

@media (max-width: 575px) {
    .jr-hero {
        padding-top: 36px;
        margin-bottom: 20px;
    }

    .jr-hero-top {
        padding-bottom: 28px;
    }

    .jr-hero h1 {
        font-size: 28px;
    }

    .jr-hero-top p {
        font-size: 13px;
        margin-bottom: 22px !important;
    }

    .jr-search input {
        font-size: 12.5px;
        padding: 12px 18px 12px 42px;
    }

    .jr-feature {
        border-radius: 4px 14px 4px 4px;
        margin-bottom: 20px;
    }

    .jr-feature-content {
        padding: 26px 22px;
    }

    .jr-feature-content h2 {
        font-size: 21px;
    }

    .jr-pullquote {
        font-size: 16px;
    }

    .jr-feature .jr-hang-tag {
        top: 16px;
        font-size: 10px;
        padding: 7px 14px 7px 10px;
    }

    .jr-section-head h2 {
        font-size: 20px;
    }

    .jr-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 0px;
    }

    .jr-card-lg {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }

    .jr-card-lg .jr-card-body h5 {
        font-size: 16px;
    }

    .jr-sidebar {
        flex-direction: column;
    }

    .jr-postcard {
        padding: 30px 24px;
        margin-bottom: 20px;
    }

    .jr-postcard-left h2 {
        font-size: 20px;
    }

    .jr-postcard-form input {
        width: 100%;
    }

    .jr-stamp {
        display: none;
    }
}

@media only screen and (min-width:768px) and (max-width: 991px) {
    .jr-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}