/* ==========================================================================
   Guney Ghost Theme - Minimal Editorial Design
   ========================================================================== */

:root {
    --black: #111;
    --gray: #666;
    --light: #999;
    --border: #e5e5e5;
    --bg: #fafafa;
    --white: #fff;
    --accent: #c45a3b;
    --success: #2d6b5a;
    --error: #c45a3b;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 18px;
}

body {
    font-family: 'Newsreader', Georgia, serif;
    background: var(--bg);
    color: var(--black);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent);
    color: var(--white);
}

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

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

/* ==========================================================================
   Layout
   ========================================================================== */

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

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 100;
}

.site-header .container {
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--black);
    text-decoration: none;
}

.logo img {
    height: 28px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-nav {
    display: flex;
    gap: 1.75rem;
}

.site-nav a {
    font-size: 0.9rem;
    color: var(--gray);
    text-decoration: none;
    transition: color 0.2s;
}

.site-nav a:hover {
    color: var(--black);
}

.header-socials {
    display: flex;
    gap: 1rem;
    padding-left: 2rem;
    border-left: 1px solid var(--border);
}

.header-socials a {
    color: var(--light);
    transition: color 0.2s;
}

.header-socials a:hover {
    color: var(--black);
}

.header-socials svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ==========================================================================
   Article
   ========================================================================== */

.article {
    padding: 3rem 0 6rem;
}

/* Featured Image */
.featured-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    margin-bottom: 3rem;
    overflow: hidden;
    background: var(--border);
}

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

/* Article Header */
.article-header {
    margin-bottom: 3.5rem;
    text-align: center;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.article-meta a {
    color: var(--black);
    text-decoration: none;
    transition: color 0.2s;
}

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

.article h1 {
    font-size: clamp(2.25rem, 6vw, 3.25rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--gray);
    font-weight: 300;
}

.divider {
    width: 50px;
    height: 1px;
    background: var(--black);
    margin: 3rem auto;
}

/* ==========================================================================
   Content - Full Typography & Elements
   ========================================================================== */

.content {
    font-size: 1rem;
}

.content > * + * {
    margin-top: 1.75rem;
}

.content p {
    margin-bottom: 0;
}

.content p:first-of-type::first-letter {
    font-size: 4rem;
    float: left;
    line-height: 0.8;
    margin: 0.1em 0.15em 0 0;
    font-weight: 500;
}

/* Headings */
.content h2 {
    font-size: 1.75rem;
    font-weight: 400;
    margin-top: 3rem;
    margin-bottom: 0;
    line-height: 1.3;
}

.content h3 {
    font-size: 1.35rem;
    font-weight: 400;
    margin-top: 2.5rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.content h4 {
    font-size: 1.15rem;
    font-weight: 500;
    margin-top: 2rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.content h5,
.content h6 {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 1.75rem;
    margin-bottom: 0;
}

.content h2 + *,
.content h3 + *,
.content h4 + *,
.content h5 + *,
.content h6 + * {
    margin-top: 1rem;
}

/* Links */
.content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

.content a:hover {
    text-decoration: none;
}

/* Bold & Italic */
.content strong {
    font-weight: 500;
}

.content em {
    font-style: italic;
}

/* Blockquotes */
.content blockquote {
    border-left: 2px solid var(--black);
    padding-left: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    font-style: italic;
    color: var(--gray);
}

.content blockquote p {
    margin: 0;
}

.content blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-style: normal;
    color: var(--light);
}

.content blockquote cite::before {
    content: '— ';
}

/* Lists */
.content ul,
.content ol {
    padding-left: 1.5rem;
}

.content li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

.content li:last-child {
    margin-bottom: 0;
}

.content li > ul,
.content li > ol {
    margin-top: 0.5rem;
}

/* Code */
.content code {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.85em;
}

.content p code,
.content li code {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 0.15em 0.4em;
    border-radius: 3px;
}

.content pre {
    background: var(--black);
    color: var(--white);
    padding: 1.5rem;
    overflow-x: auto;
    font-size: 0.85rem;
    border-radius: 4px;
    line-height: 1.6;
}

.content pre code {
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

/* Figures & Images */
.content figure {
    margin-left: 0;
    margin-right: 0;
}

.content figure img {
    width: 100%;
}

.content figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 0.75rem;
    font-style: italic;
}

/* Tables */
.content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.content thead {
    border-bottom: 2px solid var(--black);
}

.content th {
    text-align: left;
    font-weight: 500;
    padding: 0.75rem 1rem 0.75rem 0;
}

.content td {
    padding: 0.75rem 1rem 0.75rem 0;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.content tbody tr:last-child td {
    border-bottom: none;
}

/* Horizontal Rule */
.content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 3rem 0;
}

/* Subscript & Superscript */
.content sub,
.content sup {
    font-size: 0.75em;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

.content sup {
    top: -0.5em;
}

.content sub {
    bottom: -0.25em;
}

/* Mark / Highlight */
.content mark {
    background: rgba(196, 90, 59, 0.15);
    padding: 0.1em 0.2em;
}

/* Abbreviations */
.content abbr[title] {
    text-decoration: underline dotted;
    cursor: help;
}

/* Keyboard */
.content kbd {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.85em;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 0.1em 0.4em;
    box-shadow: 0 1px 0 var(--border);
}

/* Definition Lists */
.content dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1.5rem;
}

.content dt {
    font-weight: 500;
}

.content dd {
    color: var(--gray);
}

/* Embedded Content */
.content iframe {
    width: 100%;
    border: none;
}

.content video,
.content audio {
    width: 100%;
}

.content audio {
    height: 42px;
}

/* Tags */
.tags {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tags a {
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--gray);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}

.tags a:hover {
    border-color: var(--black);
    color: var(--black);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.cta-row {
    max-width: 480px;
    margin: 0 auto;
}

.cta-subscribe h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.cta-subscribe > p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.email-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.email-form input[type="email"] {
    flex: 1;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    background: var(--white);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.email-form input[type="email"]:focus {
    outline: none;
    border-color: var(--black);
}

.email-form input[type="email"]::placeholder {
    color: var(--light);
}

.email-form button {
    padding: 0.9rem 1.5rem;
    background: var(--black);
    color: var(--white);
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.email-form button:hover {
    background: var(--accent);
}

.email-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-note {
    font-size: 0.8rem;
    color: var(--light);
}

.cta-divider {
    width: 50px;
    height: 1px;
    background: var(--border);
    margin: 2rem auto;
}

.cta-book {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.cta-book span {
    color: var(--light);
    font-size: 0.9rem;
}

.cta-button {
    display: inline-block;
    padding: 0.9rem 1.75rem;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.cta-button:hover {
    background: #a84a2d;
}

/* Ghost Members Form States */
.email-form[data-members-form] {
    position: relative;
}

.email-form[data-members-form].loading button {
    opacity: 0.6;
    pointer-events: none;
}

.email-form[data-members-form].loading button::after {
    content: '...';
}

.email-form[data-members-form].success input,
.email-form[data-members-form].success button {
    display: none;
}

.email-form[data-members-form].error input {
    border-color: var(--error);
}

.email-form .message-success,
.email-form .message-error {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    text-align: center;
}

.email-form .message-success {
    color: var(--success);
}

.email-form .message-error {
    color: var(--error);
}

/* ==========================================================================
   Post Feed (Index, Tag, Author)
   ========================================================================== */

.post-feed {
    padding: 3rem 0;
}

.post-card {
    margin-bottom: 4rem;
}

.post-card:last-child {
    margin-bottom: 0;
}

.post-card-image {
    display: block;
    aspect-ratio: 3 / 2;
    margin-bottom: 1.5rem;
    overflow: hidden;
    background: var(--border);
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card-image:hover img {
    transform: scale(1.02);
}

.post-card-meta {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.75rem;
}

.post-card-meta a {
    color: var(--black);
    transition: color 0.2s;
}

.post-card-meta a:hover {
    color: var(--accent);
}

.post-card-title {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.post-card-title a {
    transition: color 0.2s;
}

.post-card-title a:hover {
    color: var(--accent);
}

.post-card-excerpt {
    color: var(--gray);
    font-size: 1rem;
}

/* ==========================================================================
   Archive Headers
   ========================================================================== */

.archive-header {
    padding: 4rem 0 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.archive-header h1 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.archive-description {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

.author-header .author-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    object-fit: cover;
}

.author-location {
    font-size: 0.9rem;
    color: var(--light);
    margin-top: 0.75rem;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}

.pagination a {
    color: var(--gray);
    transition: color 0.2s;
}

.pagination a:hover {
    color: var(--black);
}

.page-number {
    color: var(--light);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.site-footer .container {
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.8rem;
    color: var(--light);
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-links a {
    color: var(--light);
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--black);
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ==========================================================================
   Koenig Editor Cards - Complete Coverage
   ========================================================================== */

.kg-card {
    margin-top: 2rem;
}

.kg-card + .kg-card {
    margin-top: 1.5rem;
}

/* Image Card */
.kg-image-card img {
    width: 100%;
    height: auto;
}

.kg-image-card figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 0.75rem;
    font-style: italic;
}

/* Width variants */
.kg-width-wide {
    margin-left: -5rem;
    margin-right: -5rem;
    max-width: calc(100% + 10rem);
}

.kg-width-full {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
}

@media (max-width: 800px) {
    .kg-width-wide {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        max-width: calc(100% + 3rem);
    }
}

/* Gallery Card */
.kg-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kg-gallery-row {
    display: flex;
    gap: 0.75rem;
}

.kg-gallery-row:not(.kg-gallery-row-last) {
    margin-bottom: 0;
}

.kg-gallery-image {
    flex: 1;
    height: 100%;
}

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

.kg-gallery-card figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 0.75rem;
    font-style: italic;
}

/* Bookmark Card */
.kg-bookmark-card {
    background: var(--white);
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.kg-bookmark-card:hover {
    border-color: var(--light);
}

.kg-bookmark-container {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.kg-bookmark-content {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.kg-bookmark-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.kg-bookmark-description {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.kg-bookmark-metadata {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: var(--light);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.kg-bookmark-icon {
    width: 16px;
    height: 16px;
    margin-right: 0.25rem;
}

.kg-bookmark-author::before {
    content: '•';
    margin-right: 0.5rem;
}

.kg-bookmark-publisher::before {
    content: '•';
    margin-right: 0.5rem;
}

.kg-bookmark-thumbnail {
    width: 200px;
    flex-shrink: 0;
    position: relative;
}

.kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

@media (max-width: 600px) {
    .kg-bookmark-container {
        flex-direction: column-reverse;
    }

    .kg-bookmark-thumbnail {
        width: 100%;
        height: 150px;
    }
}

/* Embed Card (YouTube, Vimeo, Twitter, etc.) */
.kg-embed-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kg-embed-card > * {
    width: 100%;
}

.kg-embed-card iframe {
    width: 100%;
}

.kg-embed-card figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 0.75rem;
    font-style: italic;
}

/* Video Card */
.kg-video-card {
    position: relative;
}

.kg-video-card video {
    width: 100%;
    height: auto;
}

.kg-video-card figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 0.75rem;
    font-style: italic;
}

.kg-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    transition: background 0.2s;
}

.kg-video-overlay:hover {
    background: rgba(0, 0, 0, 0.2);
}

.kg-video-large-play-icon {
    width: 72px;
    height: 72px;
}

.kg-video-player-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

/* Audio Card */
.kg-audio-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.kg-audio-thumbnail {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    background: var(--border);
}

.kg-audio-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kg-audio-player-container {
    flex: 1;
}

.kg-audio-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

/* File Card */
.kg-file-card {
    background: var(--white);
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}

.kg-file-card:hover {
    border-color: var(--light);
}

.kg-file-card-container {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
}

.kg-file-card-contents {
    flex: 1;
}

.kg-file-card-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.kg-file-card-caption {
    font-size: 0.9rem;
    color: var(--gray);
}

.kg-file-card-metadata {
    font-size: 0.8rem;
    color: var(--light);
    margin-top: 0.25rem;
}

.kg-file-card-icon {
    width: 24px;
    height: 24px;
    margin-left: 1rem;
    color: var(--light);
}

/* Button Card */
.kg-button-card {
    text-align: center;
}

.kg-button-card.kg-align-left {
    text-align: left;
}

.kg-btn {
    display: inline-block;
    padding: 0.9rem 1.75rem;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s;
    border-radius: 0;
}

.kg-btn:hover {
    background: var(--accent);
}

.kg-btn-accent {
    background: var(--accent);
}

.kg-btn-accent:hover {
    background: #a84a2d;
}

/* Callout Card */
.kg-callout-card {
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border-left: 3px solid var(--accent);
    display: flex;
    gap: 0.75rem;
}

.kg-callout-card-grey {
    border-left-color: var(--gray);
}

.kg-callout-card-white {
    border-left-color: var(--border);
    background: var(--bg);
}

.kg-callout-card-blue {
    border-left-color: #3b82c4;
}

.kg-callout-card-green {
    border-left-color: var(--success);
}

.kg-callout-card-yellow {
    border-left-color: #c4a43b;
}

.kg-callout-card-red {
    border-left-color: var(--error);
}

.kg-callout-card-pink {
    border-left-color: #c43b8e;
}

.kg-callout-card-purple {
    border-left-color: #8e3bc4;
}

.kg-callout-emoji {
    font-size: 1.25rem;
    line-height: 1.4;
}

.kg-callout-text {
    flex: 1;
}

/* Toggle Card */
.kg-toggle-card {
    background: var(--white);
    border: 1px solid var(--border);
}

.kg-toggle-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.25rem;
    cursor: pointer;
    gap: 1rem;
}

.kg-toggle-heading-text {
    flex: 1;
}

.kg-toggle-heading-text h4 {
    font-weight: 500;
    margin: 0;
    font-size: 1rem;
}

.kg-toggle-card-icon {
    width: 16px;
    height: 16px;
    color: var(--light);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.kg-toggle-card[data-kg-toggle-state="open"] .kg-toggle-card-icon {
    transform: rotate(180deg);
}

.kg-toggle-content {
    padding: 0 1.25rem 1.25rem;
    color: var(--gray);
}

.kg-toggle-content p {
    margin: 0;
}

/* Product Card */
.kg-product-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 1.5rem;
}

.kg-product-card-image {
    margin-bottom: 1rem;
}

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

.kg-product-card-title-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.kg-product-card-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
}

.kg-product-card-rating {
    display: flex;
    gap: 0.125rem;
    color: #fbbf24;
}

.kg-product-card-rating-star {
    width: 16px;
    height: 16px;
}

.kg-product-card-description {
    color: var(--gray);
    margin-bottom: 1rem;
}

.kg-product-card-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--black);
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.kg-product-card-button:hover {
    background: var(--accent);
}

/* Header Card */
.kg-header-card {
    padding: 6rem 2rem;
    text-align: center;
    background: var(--black);
    color: var(--white);
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
}

.kg-header-card.kg-size-small {
    padding: 4rem 2rem;
}

.kg-header-card.kg-size-large {
    padding: 8rem 2rem;
}

.kg-header-card.kg-style-light {
    background: var(--bg);
    color: var(--black);
}

.kg-header-card.kg-style-accent {
    background: var(--accent);
}

.kg-header-card h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: inherit;
}

.kg-header-card h3 {
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.8;
    margin-bottom: 2rem;
    color: inherit;
}

.kg-header-card .kg-btn {
    margin-top: 1rem;
}

/* Signup Card */
.kg-signup-card {
    padding: 4rem 2rem;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
}

.kg-signup-card h2 {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.kg-signup-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.kg-signup-card form {
    display: flex;
    gap: 0.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.kg-signup-card input[type="email"] {
    flex: 1;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    background: var(--bg);
    font-family: inherit;
    font-size: 0.95rem;
}

.kg-signup-card button {
    padding: 0.9rem 1.5rem;
    background: var(--black);
    color: var(--white);
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.kg-signup-card button:hover {
    background: var(--accent);
}

@media (max-width: 500px) {
    .kg-signup-card form {
        flex-direction: column;
    }
}

/* Divider Card */
.kg-divider-card hr {
    border: none;
    border-top: 1px solid var(--border);
}

/* Code Card */
.kg-code-card {
    position: relative;
}

.kg-code-card pre {
    margin: 0;
}

.kg-code-card figcaption {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    color: var(--light);
    background: rgba(0, 0, 0, 0.5);
    font-family: 'SF Mono', Monaco, monospace;
}

/* Before/After Card */
.kg-before-after-card {
    position: relative;
    overflow: hidden;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .site-header .container,
    .site-footer .container {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 17px;
    }

    .site-header {
        padding: 1rem 0;
    }

    .header-right {
        gap: 1.25rem;
    }

    .site-nav {
        gap: 1rem;
    }

    .site-nav a {
        font-size: 0.85rem;
    }

    .header-socials {
        padding-left: 1.25rem;
        gap: 0.75rem;
    }

    .article {
        padding: 2rem 0 4rem;
    }

    .featured-image {
        margin-bottom: 2rem;
    }

    .article-header {
        margin-bottom: 2.5rem;
    }

    .content p:first-of-type::first-letter {
        font-size: 3rem;
    }

    .email-form {
        flex-direction: column;
    }

    .cta-book {
        flex-direction: column;
        gap: 0.75rem;
    }

    .site-footer .container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .archive-header {
        padding: 3rem 0 1.5rem;
    }

    .post-feed {
        padding: 2rem 0;
    }

    .post-card {
        margin-bottom: 3rem;
    }

    .kg-header-card {
        padding: 4rem 1.5rem;
    }

    .kg-header-card h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .header-socials {
        display: none;
    }

    .site-nav {
        gap: 1.25rem;
    }
}
