@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap");

* {
    box-sizing: border-box;
}

:root {
    --bg: #faf9f7;
    --surface: #ffffff;
    --surface-alt: #f5f4f1;
    --text: #1a1a18;
    --text-muted: #706f6a;
    --border: #e5e1d8;
    --accent: #1a1a18;
    --accent-hover: #000000;
    --accent-light: #f5f4f1;
    --gold: #a68556;
    --shadow-sm: 0 8px 16px rgba(20, 20, 20, 0.04);
    --shadow: 0 12px 32px rgba(20, 20, 20, 0.08);
    --shadow-lg: 0 24px 70px rgba(20, 20, 20, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

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

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

p,
h1,
h2,
h3,
h4,
ul,
ol,
figure {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h4,
h5 {
    font-weight: 600;
}

ul,
ol {
    padding-left: 1.25rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border);
    background: rgba(250, 249, 247, 0.92);
    backdrop-filter: blur(12px);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    gap: 1.5rem;
}

.site-nav img {
    width: 116px;
    height: auto;
}

.site-nav > ul {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.5rem 0.2rem;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 200ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    border-bottom-color: var(--gold);
    color: var(--text);
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 5rem;
}

.article-page .container {
    max-width: 920px;
}

.featured-blog,
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
    align-items: center;
    gap: 2.5rem;
    min-height: 32rem;
    margin: 0 0 4rem;
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.featured-blog h1,
.featured-blog h2,
.featured-blog p,
.hero h1,
.hero h2,
.hero p {
    max-width: 42rem;
}

.featured-blog h1,
.hero h1 {
    margin-bottom: 1.2rem;
    color: var(--text);
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    line-height: 1;
}

.featured-blog h2,
.hero h2 {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-family: Inter, sans-serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 500;
}

.featured-blog p,
.hero p {
    margin-bottom: 1.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.hero-media {
    position: relative;
}

.blog-image img,
.hero-media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.4rem 0.8rem;
    background: rgba(166, 133, 86, 0.08);
    border-radius: 20px;
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.button,
.read-more,
.read-more-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.75rem 1.2rem;
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1;
    cursor: pointer;
    transition: all 220ms ease;
}

.button:hover,
.button:focus-visible,
.read-more:hover,
.read-more:focus-visible,
.read-more-small:hover,
.read-more-small:focus-visible {
    background: var(--accent-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.button:focus-visible,
.read-more:focus-visible,
.read-more-small:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin: 5rem 0 2rem;
}

.section-heading > div span {
    display: block;
    margin-bottom: 0.5rem;
}

.section-heading h2 {
    margin-bottom: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.section-heading p {
    max-width: 30rem;
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.blog-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: all 300ms ease;
}

.blog-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow);
    transform: translateY(-6px);
}

.blog-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
}

.card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.5rem;
}

.card-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--text);
}

.card-content p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.card-content .read-more-small {
    margin-top: auto;
    align-self: flex-start;
}

.article-hero {
    margin-bottom: 2.5rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.article-hero h1,
.article-title,
.article-body > h1,
.article-body header h1 {
    margin-bottom: 0.85rem;
    color: var(--text);
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 1.1;
}

.article-lead {
    max-width: 48rem;
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.featured-image {
    width: 100%;
    max-height: 32rem;
    margin: 1.5rem 0 0;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.article-body {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.article-body section,
.article-section {
    margin-bottom: 2.5rem;
}

.article-body section:last-child,
.article-section:last-child {
    margin-bottom: 0;
}

.article-body h2 {
    margin: 2rem 0 0.85rem;
    color: var(--text);
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    line-height: 1.2;
}

.article-body h3 {
    margin: 1.5rem 0 0.55rem;
    color: var(--text);
    font-size: 1.15rem;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    line-height: 1.25;
}

.article-body p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.article-body li {
    margin-bottom: 0.6rem;
    color: var(--text-muted);
}

.toc-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 1.5rem 0 2rem;
}

.toc-table th,
.toc-table td {
    min-width: 13rem;
    padding: 1rem;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
    font-size: 0.9rem;
}

.toc-table th {
    background: var(--text);
    color: #fff;
    font-weight: 600;
}

.toc-table tr:nth-child(even) {
    background: var(--accent-light);
}

.product-card {
    margin: 2rem 0;
    padding: clamp(1.5rem, 3vw, 2rem);
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: all 220ms ease;
}

.product-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--gold);
}

.product-rank {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.4rem 0.8rem;
    background: rgba(166, 133, 86, 0.1);
    border-radius: 20px;
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.product-image {
    width: 100%;
    max-height: 28rem;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--accent-light);
    padding: 1rem;
}

.product-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.product-title-row h3,
.product-title-row h4 {
    margin-bottom: 0;
    font-family: "Playfair Display", serif;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
}

.product-title-row + p {
    margin: 1rem 0;
    color: var(--gold);
    font-weight: 700;
    font-size: 1.1rem;
}

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 1.75rem 0;
}

.price {
    color: var(--gold);
    font-size: 1.15rem;
    font-weight: 700;
}

.store-button {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.store-button img {
    width: 1.6rem;
    height: 1.6rem;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.laptop-scroll,
.horizontal-cards {
    display: grid;
    grid-auto-columns: minmax(12rem, 1fr);
    grid-auto-flow: column;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0 0.75rem;
}

.trend-card {
    min-width: 12rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: all 220ms ease;
}

.trend-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.trend-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border-radius: 8px;
    background: var(--accent-light);
    padding: 0.5rem;
}

.trend-card h3,
.trend-card h5 {
    margin: 0.8rem 0 0.3rem;
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--text);
}

.trend-card p {
    margin: 0;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.9rem;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 2rem;
    align-items: start;
    margin-top: 2rem;
}

.info-panel {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: all 220ms ease;
}

.info-panel:hover {
    box-shadow: var(--shadow);
}

.info-panel h2 {
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
}

.info-panel p {
    color: var(--text-muted);
    line-height: 1.7;
}

footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    background: var(--text);
    color: rgba(255, 255, 255, 0.9);
}

.footer {
    max-width: 1180px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    text-align: center;
}

.footer p {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer p:last-child {
    margin-bottom: 0;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.1rem;
    transition: all 220ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--text);
    transform: translateY(-3px);
}

/* Backward compatibility for footer social links */
.f-w {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.1rem;
    transition: all 220ms ease;
    cursor: pointer;
}

.f-w:hover,
.f-w:focus-visible {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--text);
    transform: translateY(-3px);
}

@media (max-width: 900px) {
    .featured-blog,
    .hero,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .section-heading {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        margin-bottom: 1.5rem;
    }

    .product-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 680px) {
    .site-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }

    .site-nav > ul {
        width: 100%;
        gap: 0.5rem;
    }

    .site-nav a {
        padding: 0.4rem 0.1rem;
        font-size: 0.8rem;
    }

    .container {
        padding: 2.5rem 1rem 3rem;
    }

    .featured-blog,
    .hero {
        min-height: auto;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .featured-blog h1,
    .hero h1 {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }

    .article-hero,
    .article-body,
    .product-card {
        padding: 1.2rem;
    }

    .grid-container,
    .spec-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .section-heading {
        margin: 3rem 0 1.5rem;
    }

    .section-heading h2 {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }

    .info-panel {
        padding: 1.5rem;
    }

    .footer {
        padding: 2rem 1rem;
    }

    .blog-card {
        border-radius: 10px;
    }

    .card-content {
        padding: 1.25rem;
    }
}
