/* ============================================================
   GIVE ME $10 — Stylesheet
   ============================================================ */

@font-face {
    font-family: "Chevalier AT";
    src: url("fonts/ChevalierAT-Regular.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

:root {
    --color-bg: #eef4e8;
    --color-bg-alt: #dfe9d6;
    --color-text: #1e2a1a;
    --color-text-muted: #4a6040;
    --color-accent: #2e8b3a;
    --color-accent-hover: #24712e;
    --color-cta-bg: #1e2a1a;
    --color-cta-text: #eef4e8;
    --color-border: #b0ccaa;
    --color-therm-track: #c6d8c0;
    --color-therm-fill: #2e8b3a;
    --color-therm-beyond: #3aad48;
    --font-serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
    --font-sans:
        "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --max-width: 720px;
}

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

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

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

.cta-section a,
.hero a,
.share-section a {
    color: #7aaa70;
}

.cta-section a:hover,
.hero a:hover,
.share-section a:hover {
    color: var(--color-cta-text);
}

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

.container.narrow {
    max-width: var(--max-width);
}

/* ---- HERO ---- */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--color-cta-bg);
    color: var(--color-cta-text);
    padding: 2.5rem 2rem 2rem;
    min-height: 100vh;
}

.hero h1 {
    font-family: "Chevalier AT", serif;
    font-size: clamp(1.8rem, 5.5vw, 4rem);
    font-weight: normal;
    letter-spacing: -0.18em;
    line-height: 1.05;
    margin-bottom: 0.5rem;
}

.hero .subtitle {
    font-family: var(--font-sans);
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    font-weight: 400;
    color: #7aaa70;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: #7aaa70;
    animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-hint-text {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.scroll-hint-chevron {
    width: 24px;
    height: 24px;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

.hero-image {
    display: block;
    max-width: 900px;
    width: 100%;
    margin: 0 auto 1.5rem;
    border-radius: 4px;
}

.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    margin: 2rem 0;
    border-radius: 4px;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.section-image {
    display: block;
    max-width: 100%;
    margin: 0 auto 2rem;
    border-radius: 4px;
    opacity: 0.9;
}

/* ---- SHARE SECTION ---- */

.share-section {
    padding: 4rem 1.5rem;
    background: var(--color-cta-bg);
    color: var(--color-cta-text);
    text-align: center;
}

.share-section h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: 0.75rem;
}

.share-subtitle {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: #7aaa70;
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    max-width: 600px;
    margin: 0 auto;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--color-cta-text);
    background: rgba(122, 170, 112, 0.15);
    border: 1px solid rgba(122, 170, 112, 0.3);
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.share-btn:hover {
    background: rgba(122, 170, 112, 0.25);
    border-color: rgba(122, 170, 112, 0.5);
}

/* ---- INLINE SHARE ---- */

.share-inline {
    padding: 1.5rem;
    text-align: center;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.share-inline-text {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.share-inline-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.share-inline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--color-text-muted);
    background: rgba(46, 139, 58, 0.08);
    text-decoration: none;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.share-inline-btn:hover {
    background: var(--color-accent);
    color: var(--color-cta-text);
}

/* ---- CONTENT SECTIONS ---- */

.content-section {
    padding: 5rem 1.5rem;
}

.content-section.alt {
    background: var(--color-bg-alt);
}

.content-section h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.content-section p {
    margin-bottom: 1.25rem;
}

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

.content-section p strong {
    font-weight: 700;
}

.content-section p em {
    font-style: italic;
}

.float-image {
  float: right;
  width: 280px;
  margin: 0 0 0.5rem 0.75rem;
  border-radius: 4px;
}

@media (max-width: 500px) {
  .float-image {
    float: none;
    display: block;
    width: 60%;
    margin: 0 auto 1.5rem;
  }
}

.content-section .dropcap::first-letter {
    font-family: "Chevalier AT", serif;
    float: left;
    font-size: 4.4em;
    line-height: 0.75;
    padding-right: 0.02em;
    padding-top: 0.06em;
    color: var(--color-accent);
}

.content-section ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    list-style: none;
}

.content-section ul li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    position: relative;
}

.content-section ul li::before {
    content: "•";
    font-family: "Chevalier AT", serif;
    color: var(--color-accent);
    position: absolute;
    left: -1.2rem;
    font-size: 1.3em;
    line-height: 1.75;
}

.content-section ol {
    margin: 1.5rem 0;
    padding-left: 2.5rem;
    list-style: none;
    counter-reset: styled-counter;
}

.content-section ol li {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
    counter-increment: styled-counter;
    position: relative;
}

.content-section ol li::before {
    content: counter(styled-counter) ".";
    font-family: "Chevalier AT", serif;
    color: var(--color-accent);
    position: absolute;
    right: calc(100% + 0.4rem);
    font-size: 1.1em;
    line-height: 1.75;
    white-space: nowrap;
}

.content-section ol li p {
    margin-bottom: 0;
}

.content-section blockquote {
    border-left: 4px solid var(--color-accent);
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    background: rgba(46, 139, 58, 0.06);
    border-radius: 0 4px 4px 0;
    font-style: italic;
}

.content-section blockquote p {
    margin-bottom: 0.75rem;
}

.content-section blockquote p:last-child {
    margin-bottom: 0;
}

/* ---- CTA SECTIONS ---- */

.cta-section {
    padding: 4rem 1.5rem;
    background: var(--color-cta-bg);
    color: var(--color-cta-text);
}

.cta-box {
    text-align: center;
}

.cta-box h3 {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.donate-btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-cta-bg);
    background: #eef4e8;
    border: none;
    padding: 1rem 3rem;
    border-radius: 4px;
    cursor: pointer;
    transition:
        background 0.2s,
        transform 0.1s;
    letter-spacing: 0.01em;
}

.donate-btn:hover {
    background: #b0ccaa;
    transform: translateY(-1px);
}

.donate-btn:active {
    transform: translateY(0);
}

.donate-btn-large {
    font-size: 1.4rem;
    padding: 1.25rem 4rem;
}

.cta-note {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: #5a7a50;
    margin-top: 1rem;
}

.final-cta {
    padding: 6rem 1.5rem;
}

.final-cta .cta-box h3 {
    font-size: clamp(2rem, 6vw, 4rem);
    margin-bottom: 2rem;
}

/* ---- DONATION FEED ---- */

.donation-feed {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.feed-scroll {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 1.25rem;
    display: none;
}

.feed-scroll.active {
    display: block;
}

.feed-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
    text-align: center;
}

.feed-empty p {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.feed-empty.hidden {
    display: none;
}

.feed-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.feed-item:last-child {
    border-bottom: none;
}

.feed-item-header {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 0.3rem;
}

.feed-item-note {
    font-size: 0.95rem;
    line-height: 1.6;
}

.feed-item-note.no-note {
    font-style: italic;
    color: var(--color-text-muted);
}

/* ---- TESTIMONIALS ---- */

.testimonial {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--color-border);
}

.testimonial blockquote {
    font-style: italic;
    margin-bottom: 0.5rem;
    border-left: none;
    padding-left: 0;
    background: none;
    border-radius: 0;
}

.testimonial cite {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-style: normal;
}

.testimonial-note {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin-top: 1.5rem;
}

/* ---- BIG THERMOMETER ---- */

.big-thermometer {
    margin: 2.5rem 0;
}

.big-therm-container {
    position: relative;
    height: 48px;
    background: var(--color-therm-track);
    border-radius: 24px;
    overflow: visible;
}

.big-therm-fill {
    height: 100%;
    width: 0%;
    overflow: hidden;
    background: linear-gradient(
        90deg,
        var(--color-therm-fill) 0%,
        var(--color-therm-fill) 80%,
        var(--color-therm-beyond) 100%
    );
    border-radius: 24px;
    transition: width 1.5s ease;
    position: relative;
}

.big-therm-marker {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    background: white;
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: left 1.5s ease;
    white-space: nowrap;
    z-index: 2;
}

.big-therm-labels {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.big-therm-label-mid {
    text-align: center;
}

.big-therm-label-end {
    text-align: right;
}

.big-therm-label-sub {
    display: block;
    font-size: 0.65rem;
    color: #78a068;
}

.therm-count {
    text-align: center;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 1.5rem;
}

/* ---- FOOTER ---- */

.site-footer {
    padding: 3rem 1.5rem;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
}

.site-footer a {
    color: var(--color-text);
    text-decoration: underline;
}

.footer-small {
    font-size: 0.7rem;
    margin-top: 0.75rem;
}

/* ---- DONATION MODAL ---- */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--color-bg);
    border-radius: 8px;
    max-width: 480px;
    width: 100%;
    padding: 2.5rem;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-muted);
    line-height: 1;
}

.modal h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.modal p {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.modal label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--color-text);
}

.modal input,
.modal textarea {
    display: block;
    width: 100%;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    padding: 0.7rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    margin-bottom: 1rem;
    background: white;
    color: var(--color-text);
}

.modal textarea {
    height: 100px;
    resize: vertical;
}

.modal input:focus,
.modal textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.modal .note-hint {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: #78a068;
    margin-top: -0.7rem;
    margin-bottom: 1rem;
}

.modal-submit {
    display: block;
    width: 100%;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: #eef4e8;
    background: var(--color-accent);
    border: none;
    padding: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-submit:hover {
    background: var(--color-accent-hover);
}

.modal-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-error {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--color-accent);
    margin-top: 0.75rem;
    display: none;
}

.thankyou-modal {
    text-align: center;
}

.thankyou-modal h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.thankyou-modal p {
    margin-bottom: 1rem;
}

.thankyou-small {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 1.5rem;
}

.thankyou-modal .modal-submit {
    margin-top: 1.5rem;
}

.modal-price {
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

/* ---- RESPONSIVE ---- */

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

    .content-section {
        padding: 3.5rem 1.25rem;
    }

    .cta-section {
        padding: 3rem 1.25rem;
    }

    .donate-btn {
        padding: 0.9rem 2rem;
    }

    .modal {
        padding: 1.75rem;
    }

    .big-therm-container {
        height: 36px;
    }
}
