/* GivvBack blog — static, crawler-friendly styles.
   Inlined-safe: uses system fonts so pages render even before webfonts load. */
:root {
    --terracotta: #C24C2E;
    --terracotta-dark: #a63e24;
    --moss: #4A6741;
    --cream: #FDF6E3;
    --ink: #1f2937;
    --muted: #6b7280;
    --border: #e5e0d3;
    --card: #ffffff;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--terracotta); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 780px; margin: 0 auto; padding: 32px 24px 96px; }
.wrap-wide { max-width: 1080px; margin: 0 auto; padding: 32px 24px 96px; }

/* Header */
.site-header {
    display: flex; justify-content: space-between; align-items: center;
    gap: 24px; flex-wrap: wrap;
    padding: 16px 24px; border-bottom: 1px solid var(--border);
    background: rgba(253, 246, 227, 0.9);
    backdrop-filter: blur(8px);
    position: sticky; top: 0; z-index: 10;
}
.site-header .brand img { height: 40px; display: block; }
.site-header nav a {
    color: var(--ink); text-decoration: none;
    margin-left: 20px; font-size: 14px;
}
.site-header nav a:hover { color: var(--terracotta); text-decoration: underline; }
.site-header nav .cta-pill {
    display: inline-block; padding: 8px 16px; border-radius: 999px;
    background: var(--terracotta); color: #fff; font-weight: 600;
}
.site-header nav .cta-pill:hover { background: var(--terracotta-dark); text-decoration: none; }

/* Article */
.kicker {
    text-transform: uppercase; letter-spacing: 0.12em;
    font-size: 12px; color: var(--terracotta); font-weight: 700;
}
h1 {
    font-size: 42px; line-height: 1.15;
    margin: 12px 0 20px; font-weight: 300; letter-spacing: -0.01em;
}
h2 {
    font-size: 26px; margin: 48px 0 12px;
    border-left: 4px solid var(--terracotta); padding-left: 12px;
    font-weight: 600;
}
h3 { font-size: 20px; margin: 32px 0 8px; font-weight: 600; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.lede { font-size: 19px; color: #374151; line-height: 1.6; margin: 20px 0 8px; }
article p { font-size: 17px; }
article ul, article ol { font-size: 17px; }
article li { margin-bottom: 8px; }
blockquote {
    margin: 24px 0; padding: 16px 20px; background: #fff;
    border-left: 4px solid var(--moss); border-radius: 6px;
    color: #374151; font-style: italic;
}

/* Callout box */
.callout {
    margin: 32px 0; padding: 24px;
    background: linear-gradient(135deg, #fff4ea 0%, #ffe6d1 100%);
    border: 1px solid #e9c8ab;
    border-radius: 16px;
}
.callout h3 { margin-top: 0; }
.callout .cta {
    display: inline-block; margin-top: 8px;
    padding: 12px 22px; border-radius: 999px;
    background: var(--terracotta); color: #fff !important; font-weight: 600;
}
.callout .cta:hover { background: var(--terracotta-dark); text-decoration: none; }

/* FAQ */
details {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 12px; padding: 14px 18px; margin: 10px 0;
}
details summary {
    font-weight: 600; cursor: pointer; font-size: 17px;
    list-style: none;
}
details summary::before { content: "+ "; color: var(--terracotta); font-weight: 700; }
details[open] summary::before { content: "− "; }
details[open] { padding-bottom: 18px; }
details p { margin: 12px 0 0; }

/* Blog listing */
.post-list { display: grid; gap: 20px; margin-top: 32px; }
.post-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 16px; padding: 24px; transition: border-color 0.2s;
}
.post-card:hover { border-color: var(--terracotta); }
.post-card h2 { border: none; padding: 0; margin: 0 0 8px; font-size: 22px; }
.post-card h2 a { color: var(--ink); }
.post-card h2 a:hover { color: var(--terracotta); text-decoration: none; }
.post-card .excerpt { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
.post-card .tags span {
    display: inline-block; margin-right: 8px; font-size: 12px; color: var(--moss);
    text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;
}

/* Footer */
.site-footer {
    margin-top: 64px; padding: 32px 24px;
    border-top: 1px solid var(--border);
    text-align: center; color: var(--muted); font-size: 14px;
}
.site-footer a { color: var(--moss); margin: 0 6px; }
.site-footer a:hover { color: var(--terracotta); }

/* Newsletter capture strip */
.newsletter {
    margin: 48px 0 8px;
    padding: 28px 26px;
    background: linear-gradient(135deg, #4A6741 0%, #3a5133 100%);
    color: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(74, 103, 65, 0.25);
    position: relative;
    overflow: hidden;
}
.newsletter::before {
    content: "";
    position: absolute;
    top: -60px; right: -60px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(255, 240, 220, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.newsletter h3 {
    margin: 0 0 6px; font-size: 22px; color: #fff;
    letter-spacing: -0.005em; font-weight: 600;
}
.newsletter p {
    margin: 0 0 16px; color: rgba(255, 244, 232, 0.9);
    font-size: 15px; max-width: 520px;
}
.newsletter form {
    display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch;
    position: relative; z-index: 1;
}
.newsletter input[type=email] {
    flex: 1; min-width: 220px;
    padding: 12px 16px; border-radius: 10px; border: 0;
    background: rgba(255, 255, 255, 0.95); color: var(--ink);
    font-size: 15px;
}
.newsletter input[type=email]:focus {
    outline: 2px solid var(--terracotta); outline-offset: 2px;
}
.newsletter button {
    padding: 12px 22px; border-radius: 10px; border: 0;
    background: var(--terracotta); color: #fff; font-weight: 600;
    font-size: 15px; cursor: pointer; transition: background 0.2s;
}
.newsletter button:hover { background: var(--terracotta-dark); }
.newsletter button:disabled { opacity: 0.55; cursor: not-allowed; }
.newsletter .status {
    margin-top: 10px; font-size: 14px; min-height: 20px;
    color: rgba(255, 244, 232, 0.95);
}
.newsletter .status.error { color: #fecaca; }
.newsletter .fine {
    font-size: 12px; color: rgba(255, 244, 232, 0.65);
    margin-top: 10px;
}

/* Author Bio Block */
.author-bio {
    display: flex; gap: 20px; align-items: flex-start;
    margin-top: 48px; padding: 24px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 16px;
}
.author-bio img { height: 44px; width: auto; flex-shrink: 0; margin-top: 4px; }
.author-bio .author-name {
    margin: 0 0 6px; font-weight: 700; color: var(--ink); font-size: 15px;
    letter-spacing: 0.02em;
}
.author-bio .author-blurb {
    margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55;
}
.author-bio .author-blurb a { color: var(--terracotta); font-weight: 600; }

/* Responsive */
@media (max-width: 640px) {
    h1 { font-size: 32px; }
    h2 { font-size: 22px; }
    .site-header nav a { margin-left: 12px; font-size: 13px; }
    .site-header nav a:not(.cta-pill) { display: none; }
    .site-header nav .cta-pill { display: inline-block; }
}
