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

:root {
    --color-text: #0a0a0a;
    --color-muted: #6b6b6b;
    --color-light: #b4b4b4;
    --color-bg: #ffffff;
    --color-soft: #f2f2f2;
    --color-button: #363636;
    --color-accent: #3b6286;
    --color-announcement: #5e798f;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-heading: "Spectral", Georgia, serif;
    --container: 1370px;
}

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

html {
    font-size: 85%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent);
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.25;
    margin: 0 0 0.6em;
}

p {
    margin: 0 0 1em;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* Top bar */
.top-bar {
    background: var(--color-soft);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-light);
    text-align: center;
    padding: 6px 16px;
}

.top-bar-items {
    margin: 0;
    letter-spacing: 0.02em;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-soft);
}

.site-header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 14px 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
}

.main-nav {
    min-width: 0;
}

.nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 6px 22px;
}

.nav a {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.nav a[aria-current="page"],
.nav a:hover {
    color: var(--color-accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 6px;
    cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }

.site-logo {
    font-family: var(--font-heading);
    font-size: 34px;
    line-height: 1;
    text-align: left;
    justify-self: start;
}

.site-logo img {
    display: block;
    max-height: 60px;
    width: auto;
}

.header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-icon {
    display: inline-flex;
    align-items: center;
}

.header-text-link {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Buttons */
.button,
.select-options {
    display: inline-block;
    background: var(--color-button);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.47px;
    padding: 14px 18px;
    border: 0;
    border-radius: 0;
    cursor: pointer;
}

.button:hover,
.select-options:hover {
    background: var(--color-accent);
    color: #fff;
}

/* Hero / announcement */
.hero-inner {
    max-width: var(--container);
    margin: 0 auto;
}

.announcement {
    background: var(--color-announcement);
    color: #fff;
    text-align: center;
    padding: 80px 24px;
}

.announcement-title {
    color: #fff;
    font-size: 42px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.announcement-text {
    font-size: 18px;
    max-width: 720px;
    margin: 0 auto;
}

/* Sections */
.section {
    padding: 56px 0;
}

.section-title {
    text-align: center;
    font-size: 42px;
    margin-bottom: 40px;
}

.archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.archive-description {
    max-width: 680px;
    margin: 0 auto;
    color: var(--color-muted);
}

.author-image {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 24px;
}

.product-card {
    text-align: left;
}

.product-image {
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--color-soft);
    overflow: hidden;
    margin-bottom: 14px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-image:hover img {
    transform: scale(1.03);
}

.product-title {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 4px;
}

.product-excerpt,
.product-tag {
    font-size: 14px;
    color: var(--color-muted);
    margin: 0 0 6px;
}

.select-options {
    background: none;
    color: var(--color-text);
    padding: 0;
    font-weight: 500;
    font-size: 13px;
    text-decoration: underline;
    letter-spacing: 0.02em;
}

.select-options:hover {
    background: none;
    color: var(--color-accent);
}

/* Story */
.section-story {
    background: var(--color-soft);
}

.story {
    text-align: center;
    max-width: 760px;
}

.story-title {
    font-size: 42px;
}

.story-text {
    font-size: 18px;
}

/* Post and page */
.post-layout {
    max-width: 860px;
    padding-top: 56px;
    padding-bottom: 56px;
}

.post-header {
    text-align: center;
    margin-bottom: 36px;
}

.post-tag,
.post-meta {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-muted);
}

.post-title {
    font-size: 42px;
}

.post-excerpt {
    font-size: 18px;
    color: var(--color-muted);
}

.post-feature-image {
    margin: 0 0 40px;
}

.post-feature-image figcaption {
    font-size: 13px;
    color: var(--color-muted);
    text-align: center;
    margin-top: 8px;
}

.post-footer {
    margin-top: 48px;
    border-top: 1px solid var(--color-soft);
    padding-top: 24px;
}

.post-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.post-tags a {
    display: inline-block;
    background: var(--color-soft);
    padding: 4px 12px;
    font-size: 13px;
}

/* Ghost editor content */
.gh-content > * + * {
    margin-top: 1.4em;
}

.gh-content h2,
.gh-content h3 {
    margin-top: 1.6em;
}

.gh-content blockquote {
    border-left: 3px solid var(--color-accent);
    margin: 1.5em 0;
    padding-left: 20px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-style: italic;
}

.gh-content figure {
    margin: 2em 0;
}

.gh-content figcaption {
    font-size: 13px;
    color: var(--color-muted);
    text-align: center;
}

.kg-width-wide,
.kg-width-full {
    position: relative;
    width: 100vw;
    max-width: none;
    left: 50%;
    transform: translateX(-50%);
}

.kg-width-full img {
    width: 100vw;
    max-width: none;
}

.kg-card img {
    margin: 0 auto;
}

.kg-gallery-container,
.kg-gallery-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kg-gallery-row {
    flex-direction: row;
}

.kg-gallery-image {
    flex: 1 1 0;
}

.kg-gallery-image img {
    width: 100%;
    height: auto;
}

.kg-bookmark-card,
.kg-embed-card,
.kg-callout-card,
.kg-button-card {
    margin: 2em 0;
}

.kg-button-card .kg-btn {
    display: inline-block;
    background: var(--color-button);
    color: #fff;
    padding: 12px 18px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
}

.kg-callout-card {
    background: var(--color-soft);
    padding: 20px 24px;
}

.kg-toggle-card {
    border-top: 1px solid var(--color-soft);
    padding: 12px 0;
}

.kg-header-card {
    text-align: center;
    padding: 60px 24px;
    background: var(--color-soft);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 48px;
    font-size: 14px;
}

.pagination-link {
    text-transform: uppercase;
    font-weight: 600;
}

/* Footer */
.site-footer {
    margin-top: 56px;
    background: var(--color-soft);
}

.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 56px 24px 32px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-heading {
    font-size: 22px;
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 16px;
}

.footer-col li {
    margin-bottom: 6px;
}

.footer-contact {
    white-space: pre-line;
    font-size: 16px;
}

.social-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 40px 0 0;
    padding: 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-text);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.social-links a:hover {
    background: var(--color-accent);
    color: #fff;
}

.footer-bar {
    background: #efefef;
    color: rgba(0, 0, 0, 0.5);
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    padding: 12px 24px;
}

.footer-bar a:hover {
    color: var(--color-accent);
}

/* Responsive */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

@media (max-width: 1024px) {
    .site-header-inner {
        display: flex;
        justify-content: space-between;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        order: 3;
    }

    .header-actions {
        order: 2;
    }

    .main-nav .nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        background: var(--color-bg);
        padding: 16px 24px;
        border-bottom: 1px solid var(--color-soft);
    }

    .main-nav.is-open .nav {
        display: flex;
    }

    .main-nav {
        position: static;
    }

    .site-logo {
        font-size: 26px;
    }

    .header-text-link {
        display: none;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 16px;
    }

    .section-title,
    .announcement-title,
    .post-title,
    .story-title {
        font-size: 30px;
    }

    .header-text-link {
        display: none;
    }
}

@media (max-width: 480px) {
    .footer-columns {
        grid-template-columns: 1fr;
    }
}
