/* Risk Letters Ghost Theme - CSS
 * Based on Claude's color palette
 */

:root {
    --white: #ffffff;
    --cream: #FAF9F7;
    --beige: #E9E5DE;
    --orange: #D97757;
    --orange-hover: #C4654A;
    --grey: #7A7A7A;
    --charcoal: #3D3D3D;
    --black: #191919;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Lora', Georgia, serif;
}

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

html {
    font-family: var(--font-sans);
    background: var(--white);
    color: var(--black);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    line-height: 1.65;
}

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

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

/* Navigation */
nav {
    position: sticky;
    top: 0;
    background: var(--white);
    border-bottom: 1px solid var(--beige);
    z-index: 100;
}

.nav-inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    flex-direction: column;
}

.wordmark {
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 0.8125rem;
    color: var(--grey);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    font-size: 0.875rem;
    color: var(--grey);
    transition: color 0.15s;
}

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

.nav-cta {
    background: var(--orange);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 500;
}

.nav-cta:hover {
    background: var(--orange-hover);
}

/* Main */
main {
    width: 100%;
}

/* Content container - used inside sections */
.content {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Hero */
.hero {
    padding: 80px 24px 60px;
    max-width: 820px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 24px;
}

.hero h1 .serif {
    font-family: var(--font-serif);
    font-weight: 400;
}

.hero h1 .bold {
    font-weight: 600;
}

.lede {
    font-size: 1.1875rem;
    color: var(--charcoal);
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.hero-note {
    font-size: 0.875rem;
    color: var(--grey);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: background 0.15s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--orange-hover);
}

.btn-secondary {
    display: inline-block;
    background: var(--white);
    color: var(--black);
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9375rem;
    border: 1px solid var(--beige);
    transition: background 0.15s;
}

.btn-secondary:hover {
    background: var(--cream);
}

.full-width {
    width: 100%;
    text-align: center;
}

/* About */
.about {
    padding: 80px 24px;
    background: var(--cream);
}

.about .content {
    max-width: 820px;
    margin: 0 auto;
}

.about h2 {
    font-family: var(--font-serif);
    font-size: 1.875rem;
    font-weight: 400;
    margin-bottom: 32px;
    letter-spacing: -0.01em;
}

.prose {
    color: var(--charcoal);
    line-height: 1.8;
}

.prose p {
    margin-bottom: 24px;
}

.prose strong {
    color: var(--black);
    font-weight: 600;
}

/* Audience Section */
.audience-section {
    padding: 80px 24px;
}

.audience-section .content {
    max-width: 820px;
    margin: 0 auto;
}

.audience-section h2 {
    font-family: var(--font-serif);
    font-size: 1.875rem;
    font-weight: 400;
    margin-bottom: 40px;
}

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

.audience-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.audience-card p {
    color: var(--charcoal);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* Domains Section */
.domains-section {
    padding: 80px 24px;
    background: var(--cream);
}

.domains-section .content {
    max-width: 820px;
    margin: 0 auto;
}

.domains-section h2 {
    font-family: var(--font-serif);
    font-size: 1.875rem;
    font-weight: 400;
    margin-bottom: 16px;
}

.section-intro {
    color: var(--grey);
    font-size: 1.0625rem;
    margin-bottom: 48px;
    line-height: 1.7;
}

.domains-grid {
    display: grid;
    gap: 40px;
}

.domain-card {
    border-bottom: 1px solid var(--beige);
    padding-bottom: 40px;
}

.domain-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.domain-num {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--orange);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 12px;
}

.domain-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.domain-card p {
    color: var(--charcoal);
    line-height: 1.7;
    margin-bottom: 12px;
}

.domain-examples {
    font-size: 0.9375rem;
    color: var(--grey);
    padding-left: 16px;
    border-left: 2px solid var(--beige);
}

/* How Section */
.how-section {
    padding: 80px 24px;
}

.how-section .content {
    max-width: 820px;
    margin: 0 auto;
}

.how-section h2 {
    font-family: var(--font-serif);
    font-size: 1.875rem;
    font-weight: 400;
    margin-bottom: 32px;
}

/* Pricing */
.pricing-section {
    padding: 80px 24px;
    background: var(--cream);
}

.pricing-section .content {
    max-width: 820px;
    margin: 0 auto;
}

.pricing-section h2 {
    font-family: var(--font-serif);
    font-size: 1.875rem;
    font-weight: 400;
    margin-bottom: 16px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--beige);
    border-radius: 4px;
    padding: 32px;
}

.pricing-card.featured {
    border-color: var(--orange);
}

.pricing-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.price {
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--grey);
}

.pricing-desc {
    color: var(--grey);
    font-size: 0.9375rem;
    margin: 16px 0 20px;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 24px;
}

.pricing-card li {
    padding: 8px 0;
    font-size: 0.9375rem;
    color: var(--charcoal);
    border-bottom: 1px solid var(--beige);
}

.pricing-card li:last-child {
    border-bottom: none;
}

.pricing-note {
    font-size: 0.8125rem;
    color: var(--grey);
    margin-bottom: 20px;
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
    width: 100%;
    text-align: center;
}

/* Coming Soon */
.coming-soon {
    padding: 80px 24px;
}

.coming-soon .content {
    max-width: 820px;
    margin: 0 auto;
}

.coming-soon h2 {
    font-family: var(--font-serif);
    font-size: 1.875rem;
    font-weight: 400;
    margin-bottom: 16px;
}

.ask-ai-highlight {
    margin-top: 40px;
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--orange);
    border-radius: 4px;
}

.ask-ai-highlight h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--orange);
}

.ask-ai-highlight p {
    color: var(--charcoal);
    line-height: 1.7;
    margin-bottom: 12px;
}

.ask-ai-highlight em {
    color: var(--black);
    font-style: italic;
}

.ask-ai-note {
    font-size: 0.875rem;
    color: var(--grey);
    margin-bottom: 0;
}

.coming-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.coming-item h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.coming-item p {
    color: var(--charcoal);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.coming-note {
    margin-top: 40px;
    padding: 20px 24px;
    background: var(--cream);
    border-radius: 4px;
    font-size: 0.9375rem;
    color: var(--charcoal);
}

/* Signup */
.signup-section {
    padding: 80px 24px;
    background: var(--cream);
}

.signup-section .content {
    max-width: 820px;
    margin: 0 auto;
}

.signup-inner {
    max-width: 480px;
}

.signup-section h2 {
    font-family: var(--font-serif);
    font-size: 1.875rem;
    font-weight: 400;
    margin-bottom: 12px;
}

.signup-section > p,
.signup-inner > p {
    color: var(--grey);
    margin-bottom: 32px;
    line-height: 1.7;
}

.signup-form {
    margin-bottom: 16px;
}

.signup-note {
    font-size: 0.8125rem;
    color: var(--grey);
}

/* Footer */
footer {
    border-top: 1px solid var(--beige);
}

.footer-inner {
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-brand .wordmark {
    font-size: 1rem;
    display: block;
    margin-bottom: 4px;
}

.footer-brand p {
    color: var(--grey);
    font-size: 0.8125rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--grey);
    transition: color 0.15s;
}

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

.footer-bottom {
    max-width: 820px;
    margin: 0 auto;
    padding: 20px 24px;
    border-top: 1px solid var(--beige);
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--grey);
}

/* Post/Newsletter Styles */
.post-content {
    padding: 60px 0;
}

.post-content h1 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.post-meta {
    color: var(--grey);
    font-size: 0.9375rem;
    margin-bottom: 40px;
}

.post-body {
    color: var(--charcoal);
    line-height: 1.8;
}

.post-body h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 48px 0 24px;
}

.post-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 36px 0 16px;
}

.post-body p {
    margin-bottom: 24px;
}

.post-body a {
    color: var(--orange);
    text-decoration: underline;
}

.post-body ul,
.post-body ol {
    margin: 0 0 24px 24px;
}

.post-body li {
    margin-bottom: 8px;
}

.post-body blockquote {
    border-left: 3px solid var(--orange);
    padding-left: 20px;
    margin: 24px 0;
    font-style: italic;
    color: var(--grey);
}

/* Ghost Koenig Editor Width Classes */
.kg-width-wide {
    position: relative;
    width: 85vw;
    min-width: 100%;
    margin-left: calc(50% - 42.5vw);
    margin-right: calc(50% - 42.5vw);
}

.kg-width-full {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.kg-width-full img,
.kg-width-wide img {
    max-width: 100%;
}

/* Ghost Card Assets */
.kg-card {
    margin: 24px 0;
}

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

.kg-bookmark-card {
    background: var(--cream);
    border: 1px solid var(--beige);
    border-radius: 4px;
    overflow: hidden;
}

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

.kg-bookmark-content {
    flex: 1;
    padding: 20px;
}

.kg-bookmark-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
}

.kg-bookmark-description {
    font-size: 0.875rem;
    color: var(--charcoal);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kg-bookmark-metadata {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    color: var(--grey);
}

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

.kg-bookmark-author::before {
    content: "•";
    margin: 0 6px;
}

.kg-bookmark-thumbnail {
    width: 180px;
    min-height: 160px;
    background-size: cover;
    background-position: center;
}

.kg-callout-card {
    display: flex;
    padding: 20px;
    border-radius: 4px;
    margin: 24px 0;
}

.kg-callout-card-grey {
    background: var(--cream);
}

.kg-callout-card-white {
    background: var(--white);
    border: 1px solid var(--beige);
}

.kg-callout-card-blue,
.kg-callout-card-green,
.kg-callout-card-yellow,
.kg-callout-card-red,
.kg-callout-card-pink,
.kg-callout-card-purple {
    background: var(--cream);
}

.kg-callout-card-accent {
    background: var(--orange);
    color: var(--white);
}

.kg-callout-emoji {
    font-size: 1.25rem;
    margin-right: 12px;
}

.kg-callout-text {
    line-height: 1.6;
}

.kg-button-card {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.kg-button-card a {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s;
}

.kg-button-card a:hover {
    background: var(--orange-hover);
}

.kg-gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.kg-gallery-row {
    display: flex;
    flex: 1 1 auto;
    gap: 8px;
}

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

/* Archive Pages (Tag, Author) */
.tag-description,
.author-bio {
    color: var(--grey);
    font-size: 1.0625rem;
    margin-bottom: 40px;
}

.post-feed {
    margin-top: 40px;
}

.post-card {
    padding: 24px 0;
    border-bottom: 1px solid var(--beige);
}

.post-card:last-child {
    border-bottom: none;
}

.post-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

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

.post-card h2 a:hover {
    color: var(--orange);
}

.post-card .post-meta {
    font-size: 0.875rem;
    color: var(--grey);
    margin-bottom: 8px;
}

.post-card p {
    color: var(--charcoal);
    line-height: 1.6;
}

/* Error Page */
.error-page {
    text-align: center;
    padding: 120px 24px;
}

.error-page h1 {
    font-size: 6rem;
    font-weight: 600;
    color: var(--beige);
    margin-bottom: 16px;
}

.error-page .error-message {
    font-size: 1.25rem;
    color: var(--grey);
    margin-bottom: 32px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--beige);
}

.pagination a {
    color: var(--orange);
    font-weight: 500;
}

.pagination a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links a:not(.nav-cta) {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .pricing-grid,
    .audience-grid,
    .coming-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 24px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 16px;
    }
}
