/*
Theme Name: BuzzPoints
Theme URI: https://buzzpoints.com/
Author: BuzzPoints
Author URI: https://buzzpoints.com/
Description: A fast editorial WordPress theme for points, miles, credit cards, and travel coverage.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.1
Text Domain: buzzpoints
*/

:root {
    --bg: #f7f3ea;
    --bg-soft: #efe6d6;
    --paper: #fffaf2;
    --surface: #fdf7ee;
    --ink: #142013;
    --muted: #5e6759;
    --line: rgba(20, 32, 19, 0.12);
    --line-strong: rgba(20, 32, 19, 0.2);
    --accent: #c66a2b;
    --accent-deep: #8f451b;
    --accent-soft: #efc9a6;
    --evergreen: #1d4d45;
    --gold: #e7b751;
    --shadow: 0 24px 60px rgba(74, 54, 24, 0.12);
    --radius-lg: 34px;
    --radius-md: 22px;
    --site-width: min(1240px, calc(100vw - 32px));
    --text-width: min(760px, calc(100vw - 32px));
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(231, 183, 81, 0.22), transparent 30%),
        radial-gradient(circle at top right, rgba(29, 77, 69, 0.16), transparent 28%),
        linear-gradient(180deg, #faf6ee 0%, #f6f0e5 52%, #fbf7f0 100%);
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-shell {
    overflow: clip;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(250, 247, 241, 0.92);
    border-bottom: 1px solid rgba(20, 32, 19, 0.08);
}

.site-header__inner,
.site-main,
.site-footer__inner {
    width: var(--site-width);
    margin: 0 auto;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand__mark {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
}

.brand__title {
    font-family: "Newsreader", serif;
    font-size: clamp(1.4rem, 2.1vw, 1.85rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav ul,
.site-footer__links ul {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav li,
.site-footer__links li {
    margin: 0;
}

.site-nav a {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav .current-menu-item > a,
.site-nav .current-menu-parent > a {
    color: var(--ink);
}

.site-nav .current-menu-item > a,
.site-nav .current-menu-parent > a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.24em;
}

.site-main {
    padding: 34px 0 80px;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 32px;
    align-items: stretch;
    padding: 42px;
    background: linear-gradient(135deg, rgba(255, 250, 242, 0.92), rgba(248, 239, 223, 0.82));
    border: 1px solid rgba(20, 32, 19, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.hero::before {
    width: 340px;
    height: 340px;
    right: -70px;
    top: -90px;
    background: radial-gradient(circle, rgba(231, 183, 81, 0.28), transparent 70%);
}

.hero::after {
    width: 240px;
    height: 240px;
    left: -50px;
    bottom: -110px;
    background: radial-gradient(circle, rgba(29, 77, 69, 0.18), transparent 70%);
}

.eyebrow,
.story-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--evergreen);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.eyebrow::before,
.story-label::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
}

.hero__title,
.story-title,
.section-title,
.archive-title,
.page-title,
.entry-title {
    font-family: "Newsreader", serif;
    letter-spacing: -0.045em;
}

.hero__title {
    margin: 16px 0 14px;
    font-size: clamp(2.8rem, 5vw, 5.4rem);
    line-height: 0.94;
    max-width: 10ch;
}

.hero__copy {
    max-width: 62ch;
    color: var(--muted);
    font-size: 1.06rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 700;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
}

.button--solid {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    box-shadow: 0 16px 32px rgba(143, 69, 27, 0.18);
}

.button--ghost {
    border-color: rgba(20, 32, 19, 0.12);
    background: rgba(255, 255, 255, 0.48);
}

.hero__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    padding: 24px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(20, 32, 19, 0.04), rgba(20, 32, 19, 0.01)),
        linear-gradient(145deg, rgba(255, 255, 255, 0.85), rgba(249, 240, 224, 0.82));
    border: 1px solid rgba(20, 32, 19, 0.08);
}

.hero__kicker {
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero__spotlight {
    margin-top: 18px;
}

.hero__spotlight-image {
    aspect-ratio: 4 / 3;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(29, 77, 69, 0.1), rgba(231, 183, 81, 0.1));
}

.hero__spotlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__spotlight-title {
    margin: 16px 0 10px;
    font-family: "Newsreader", serif;
    font-size: clamp(1.55rem, 2vw, 2rem);
    line-height: 1;
}

.hero__spotlight-copy,
.story-excerpt,
.section-intro,
.archive-description,
.entry-excerpt {
    color: var(--muted);
}

.grid-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 40px;
    margin-top: 58px;
}

.stack {
    display: grid;
    gap: 52px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.section-title,
.archive-title,
.page-title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 0.97;
}

.section-intro {
    max-width: 58ch;
    margin: 8px 0 0;
}

.story-flow {
    display: grid;
    gap: 26px;
}

.story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 24px;
    padding: 0 0 24px;
    border-bottom: 1px solid var(--line);
}

.story:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.story-title {
    margin: 10px 0 10px;
    font-size: clamp(1.65rem, 2.3vw, 2.3rem);
    line-height: 0.98;
}

.story-meta,
.entry-meta,
.post-card__meta,
.hero__spotlight-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.story-image,
.post-card__image,
.feature-grid__image {
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(29, 77, 69, 0.1), rgba(231, 183, 81, 0.12));
}

.story-image {
    aspect-ratio: 1 / 1;
    align-self: start;
}

.story-image img,
.post-card__image img,
.feature-grid__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
}

.post-card__image {
    aspect-ratio: 16 / 10;
    margin-bottom: 16px;
}

.post-card__title {
    margin: 10px 0 10px;
    font-family: "Newsreader", serif;
    font-size: 1.7rem;
    line-height: 1;
}

.rail {
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 251, 245, 0.88), rgba(250, 244, 233, 0.88));
    border: 1px solid rgba(20, 32, 19, 0.08);
}

.rail__title {
    margin: 0;
    font-family: "Newsreader", serif;
    font-size: 1.8rem;
    line-height: 1;
}

.rail-list {
    display: grid;
    gap: 18px;
}

.rail-item {
    display: grid;
    gap: 8px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.rail-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.rail-item__title {
    margin: 0;
    font-family: "Newsreader", serif;
    font-size: 1.28rem;
    line-height: 1;
}

.topic-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.topic-cloud a,
.chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(20, 32, 19, 0.09);
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 700;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
    align-items: start;
}

.entry-header,
.page-header,
.archive-header {
    width: var(--text-width);
    margin: 0 auto 30px;
}

.entry-title {
    margin: 14px 0 18px;
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    line-height: 0.95;
}

.entry-excerpt {
    font-size: 1.15rem;
}

.featured-image {
    width: var(--site-width);
    margin: 0 auto 34px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.featured-image img {
    width: 100%;
    max-height: 70vh;
    object-fit: cover;
}

.entry-content,
.page-content {
    width: var(--text-width);
    margin: 0 auto;
    font-size: 1.08rem;
}

.entry-content > * + *,
.page-content > * + * {
    margin-top: 1.3em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.page-content h2,
.page-content h3,
.page-content h4 {
    font-family: "Newsreader", serif;
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.entry-content h2,
.page-content h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
}

.entry-content h3,
.page-content h3 {
    font-size: clamp(1.55rem, 2.2vw, 2rem);
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.page-content p,
.page-content ul,
.page-content ol {
    color: #223021;
}

.entry-content a,
.page-content a {
    color: var(--accent-deep);
    text-decoration: underline;
    text-decoration-color: rgba(143, 69, 27, 0.35);
    text-underline-offset: 0.16em;
}

.entry-content blockquote,
.page-content blockquote {
    margin: 1.8em 0;
    padding: 0.1em 0 0.1em 1.2em;
    border-left: 3px solid var(--accent);
    font-family: "Newsreader", serif;
    font-size: 1.5rem;
    line-height: 1.18;
}

.archive-layout {
    display: grid;
    gap: 28px;
}

.empty-state {
    padding: 42px;
    border-radius: 30px;
    background: rgba(255, 251, 245, 0.75);
    border: 1px solid rgba(20, 32, 19, 0.08);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(20, 32, 19, 0.09);
    font-weight: 700;
}

.pagination .current {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-deep));
    border-color: transparent;
}

.site-footer {
    border-top: 1px solid rgba(20, 32, 19, 0.08);
    background: rgba(255, 250, 242, 0.78);
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0 38px;
    color: var(--muted);
    font-size: 0.93rem;
}

.site-footer__links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

@media (max-width: 1100px) {
    .hero,
    .grid-shell,
    .split-section,
    .story {
        grid-template-columns: 1fr;
    }

    .story-image {
        max-width: 360px;
    }

    .site-header__inner,
    .site-footer__inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }
}

@media (max-width: 820px) {
    .site-main {
        padding-top: 22px;
    }

    .hero {
        padding: 26px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

}

@media (max-width: 640px) {
    :root {
        --site-width: min(100vw - 22px, 100%);
        --text-width: min(100vw - 22px, 100%);
    }

    .site-header__inner {
        min-height: 64px;
        gap: 12px;
    }

    .site-nav {
        gap: 12px;
    }

    .hero__title {
        max-width: none;
    }

    .story-title,
    .post-card__title,
    .hero__spotlight-title {
        line-height: 1.02;
    }

    .entry-content,
    .page-content {
        font-size: 1rem;
    }
}
