/* ---------- Salida palette ---------- */
:root {
    --sl-primary: #4F6B4C;   /* Primary — buttons, links */
    --sl-accent:  #CDB3E0;   /* Accent — decorative highlights (not for text) */
    --sl-paper:   #F4F0E8;   /* Paper — page background */
    --sl-ink:     #1D241C;   /* Ink — text */
    --sl-muted:   #5E6659;   /* muted ink for secondary text (5.2:1 on paper) */
    --sl-card:    #FCFAF5;   /* letter sheet, a touch lighter than paper */
    --sl-line:    rgba(29, 36, 28, 0.12);

    /* Map onto Ghost / Edition variables (loaded after ghost_head, so these win) */
    --ghost-accent-color: var(--sl-primary);
    --brand-color: var(--sl-primary);
    --color-white: var(--sl-paper);
    --white-color: var(--sl-paper);
    --color-primary-text: var(--sl-ink);
    --primary-text-color: var(--sl-ink);
    --color-darker-gray: var(--sl-ink);
    --darker-gray-color: var(--sl-ink);
    --color-secondary-text: var(--sl-muted);
    --secondary-text-color: var(--sl-muted);
    --color-light-gray: #E2DCCF;
    --light-gray-color: #E2DCCF;
    --color-lighter-gray: #EDE8DE;
    --lighter-gray-color: #EDE8DE;
}
html, body {
    background-color: var(--sl-paper);
    color: var(--sl-ink);
}
::selection {
    background: var(--sl-accent);
    color: var(--sl-ink);
}
.gh-primary-btn,
.gh-head-btn.gh-btn {
    color: #fff;
    background-color: var(--sl-primary);
}

/* ---------- Salida homepage: hero + CEO letter ---------- */

.sl-home {
    padding-bottom: clamp(64px, 10vw, 128px);
}

/* Hero */
.sl-hero {
    padding-top: clamp(56px, 9vw, 120px);
    padding-bottom: clamp(40px, 6vw, 80px);
    text-align: center;
}
.sl-hero-inner {
    max-width: 960px;
    margin: 0 auto;
}
.sl-hero-title {
    margin: 0;
    font-size: clamp(3.6rem, 5.6vw, 6.4rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.015em;
    text-wrap: balance;
}
.sl-hero-subtitle {
    max-width: 680px;
    margin: 2.4rem auto 0;
    font-size: clamp(1.8rem, 2.2vw, 2.2rem);
    line-height: 1.5;
    color: var(--sl-muted);
    text-wrap: pretty;
}

/* Letter */
.sl-letter-paper {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(32px, 6vw, 72px) clamp(24px, 6vw, 80px);
    background: var(--sl-card);
    border: 1px solid var(--sl-line);
    border-top: 6px solid var(--sl-accent);
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(29, 36, 28, 0.05), 0 16px 48px -16px rgba(29, 36, 28, 0.18);
}
.sl-letter-content {
    font-size: clamp(1.8rem, 1.9vw, 2rem);
    line-height: 1.65;
    color: var(--sl-ink);
}
.sl-letter-content > * + * {
    margin-top: 1.1em;
}
.sl-letter-content p {
    margin-bottom: 0;
}
.sl-letter-content > p:first-child {
    font-weight: 700;
    font-size: 1.1em;
}
.sl-letter-content a {
    color: var(--ghost-accent-color);
    text-decoration: underline;
    text-decoration-color: var(--sl-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
}
.sl-letter-content em {
    font-style: italic;
}

/* The 10-point list */
.sl-letter-content ol {
    margin: 1.4em 0 0;
    padding: 0;
    list-style: none;
    counter-reset: sl-item;
    border-top: 1px solid var(--sl-line);
}
.sl-letter-content ol li {
    position: relative;
    margin: 0;
    padding: 0.55em 0 0.55em 2.6em;
    font-weight: 600;
    border-bottom: 1px solid var(--sl-line);
    counter-increment: sl-item;
}
.sl-letter-content ol li::before {
    position: absolute;
    top: 0.55em;
    left: 0;
    width: 1.8em;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ghost-accent-color);
    text-align: right;
    content: counter(sl-item) ".";
}

/* Signature: last paragraph */
.sl-letter-content > p:last-child {
    margin-top: 2em;
    padding-top: 1.2em;
    border-top: 1px dashed rgba(29, 36, 28, 0.2);
    font-size: 0.9em;
    line-height: 1.5;
    color: var(--sl-muted);
}

/* ---------- Header: no search/newsletter on the marketing site ---------- */
.gh-head .gh-search {
    display: none;
}

/* Header links from Settings → Navigation sit on the right, next to Sign in / Apply */
@media (min-width: 992px) {
    .is-head-left-logo .gh-head-menu {
        justify-content: flex-end;
        margin-right: 0;
    }
}

/* Header logo (theme asset).
   Fixed aspect ratio + no max-width so Safari can't shrink the box and squash it
   (a %-max-width image counts as 0px wide when the header lays out its columns). */
.gh-head-brand-wrapper,
.gh-head-logo {
    flex-shrink: 0;
}
.gh-head-logo img {
    width: auto;
    height: 32px;
    max-width: none;
    max-height: none;
    aspect-ratio: 1287 / 237;
    object-fit: contain;
}
@media (max-width: 767px) {
    .gh-head-logo img { height: 26px; }
}

/* Header: size columns to their content so Blog sits right next to the buttons */
@media (min-width: 768px) {
    .is-head-left-logo .gh-head-inner {
        grid-template-columns: auto 1fr auto;
    }
    .gh-head-members {
        gap: 28px;
    }
    .is-head-left-logo .gh-head-menu {
        justify-content: flex-end;
        margin-right: 0;
    }
}

/* Homepage: recent posts above the footer */
.sl-latest {
    margin-top: clamp(64px, 10vw, 120px);
}
.sl-latest-all {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--ghost-accent-color);
    white-space: nowrap;
}
.sl-latest-all:hover {
    opacity: 0.8;
}

/* Homepage: email signup between the letter and the Latest feed */
.sl-subscribe {
    margin-top: clamp(64px, 10vw, 120px);
    text-align: center;
}
.sl-subscribe-inner {
    max-width: 560px;
    margin: 0 auto;
}
.sl-subscribe-title {
    margin: 0;
    font-size: clamp(2.8rem, 3.6vw, 3.6rem);
    line-height: 1.15;
}
.sl-subscribe-text {
    margin: 1.2rem 0 0;
    font-size: 1.8rem;
    line-height: 1.5;
    color: var(--sl-muted);
}
.sl-subscribe-form {
    margin: 2.8rem auto 0;
}
.sl-subscribe-form input {
    width: 100%;
    background-color: #fff;
    border: 1px solid var(--sl-line);
    border-radius: 8px;
    padding-right: 140px;
    font-size: 1.6rem;
}
.sl-subscribe-form input:focus {
    border-color: var(--sl-primary);
    outline: 2px solid var(--sl-accent);
    outline-offset: 1px;
}
.sl-subscribe-form .form-button {
    color: #fff;
    background-color: var(--sl-primary);
    border-radius: 6px;
    text-transform: none;
    font-weight: 700;
    font-size: 1.5rem;
}

/* Blog index: signup sits at the top, above the "Blog" heading */
.sl-subscribe--top {
    margin-top: clamp(32px, 6vw, 72px);
    margin-bottom: clamp(48px, 8vw, 96px);
}

/* Blog posts: signup below the "Published by" footer */
.sl-subscribe--post {
    margin-top: clamp(48px, 8vw, 96px);
    margin-bottom: clamp(16px, 3vw, 32px);
}
