/* ==========================================
   DRACONET.PL – DEFERRED STYLESHEET
   Ładowany asynchronicznie po renderze ATF
   ========================================== */

/* --- ZMIENNE --- */
:root {
    --col-bg: #f7f6f2;
    --col-paper: #ffffff;
    --col-ink-black: #0c0a09;
    --col-ink-dark: #1c1917;
    --col-ink: #292524;
    --col-ink-mid: #44403c;
    --col-ink-light: #57534e;
    --col-ink-faint: #57534e;
    --col-border: #e7e5e0;
    --col-border-mid: #d6d3d1;
    --col-surface: #f5f5f4;
    --col-surface-warm: #fafaf9;
    --col-yellow: #fef08a;
    --col-red: #b91c1c;
    --col-red-bg: #fef2f2;
    --col-red-border: #fecaca;
    --col-amber: #fcd34d;
    --col-dark-bg: #1c1917;
    --col-dark-text: #f5f5f4;
    --col-dark-muted: #a8a29e;

    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, Helvetica, sans-serif;
    --font-serif: Georgia, 'Times New Roman', Times, serif;
    --font-mono: 'Courier New', Courier, monospace;
}

/* --- ZAZNACZENIE TEKSTU --- */
::selection {
    background: var(--col-yellow);
    color: #000;
}

/* --- FOKUS (WCAG 2.4.7) --- */
:focus-visible {
    outline: 2px solid var(--col-ink-dark);
    outline-offset: 3px;
    border-radius: 2px;
}

/* --- SUB-HEADLINE --- */
.sub-headline {
    margin: 0 0 2.5rem;
    padding: .75rem 0 .75rem 1.25rem;
    border-left: 4px solid var(--col-ink-dark);
    background: var(--col-surface-warm);
    font-style: italic;
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--col-ink-mid);
}

/* --- ARTYKUŁ --- */
article {
    color: var(--col-ink-mid);
}

article p {
    margin: 0 0 1.25rem;
}

article p.letter-salutation {
    font-weight: 700;
    color: var(--col-ink-dark);
    font-size: 1.05rem;
    padding-top: .5rem;
}

article p.intro-name {
    font-weight: 600;
    color: var(--col-ink-black);
}

article strong {
    color: var(--col-ink-black);
    font-weight: 700;
}

/* --- NAGŁÓWKI W ARTYKULE (hierarchia: h2 → h3) --- */
article h2 {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--col-ink-black);
    margin: 2rem 0 .9rem;
    letter-spacing: -.01em;
    line-height: 1.3;
}

article h3 {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: clamp(.95rem, 2vw, 1.1rem);
    color: var(--col-ink-black);
    margin: 0 0 .75rem;
    line-height: 1.35;
    display: flex;
    align-items: flex-start;
    gap: .45rem;
}

article h3 .num {
    font-weight: 900;
    color: var(--col-ink-dark);
    flex-shrink: 0;
}

/* --- BLOKI PROBLEMÓW (01, 02, 03) --- */
.problem-blocks {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin: 1.75rem 0;
}

.problem-block {
    padding: 1.25rem;
    background: var(--col-surface-warm);
    border: 1px solid var(--col-border);
}

.problem-block p {
    margin-bottom: .75rem;
    font-size: .94rem;
}

.problem-block p:last-child {
    margin-bottom: 0;
}

.problem-insight {
    font-size: .88rem;
    line-height: 1.7;
    color: var(--col-ink-mid);
    border-left: 2px solid var(--col-border-mid);
    padding: .5rem 0 .5rem .8rem;
    background: rgba(245,245,244,.7);
    margin-top: .5rem;
}

/* --- LISTA FUNKCJI --- */
.feature-list {
    list-style: none;
    padding: 0;
    margin: .6rem 0 .75rem;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    font-size: .9rem;
    color: var(--col-ink-light);
}

.feature-list li {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    line-height: 1.65;
}

.feature-list li::before {
    content: "•";
    font-weight: 900;
    color: var(--col-ink-dark);
    flex-shrink: 0;
    margin-top: .05em;
}

.feature-list-conclusion {
    font-weight: 600;
    color: var(--col-ink-black);
    font-size: .9rem;
    margin-top: .5rem !important;
}

/* --- SEKCJA DOSTĘPNOŚĆ --- */
.availability {
    padding-top: 1.25rem;
    border-top: 1px solid var(--col-border);
    margin-top: 1.5rem;
}

.availability h2 {
    margin-top: 0;
}

/* --- CIEMNY BOX CTA --- */
.cta-box {
    margin: 2.5rem 0;
    padding: 1.5rem;
    background: var(--col-dark-bg);
    color: var(--col-dark-text);
}

@media (min-width: 640px) {
    .cta-box { padding: 2rem; }
}

.cta-box h2 {
    font-family: var(--font-sans);
    font-size: clamp(.95rem, 2vw, 1.1rem);
    font-weight: 700;
    color: var(--col-dark-text);
    margin: 0 0 .75rem;
    line-height: 1.45;
    letter-spacing: 0;
}

.cta-box p {
    color: var(--col-dark-muted);
    font-size: .88rem;
    margin: 0 0 1.5rem;
    line-height: 1.65;
}

.cta-urgency {
    font-size: .84rem;
    color: #e5c07b;
    font-style: italic;
    border-left: 2px solid #78716c;
    padding-left: .8rem;
    margin-bottom: 1.75rem !important;
    line-height: 1.65;
}

.cta-btn {
    font-family: var(--font-mono);
    font-size: clamp(1rem, 3vw, 1.35rem);
    font-weight: 700;
    color: var(--col-amber);
    text-decoration: underline;
    text-decoration-color: var(--col-amber);
    text-underline-offset: .4rem;
    text-decoration-thickness: 2px;
    transition: color .2s ease, text-decoration-color .2s ease;
}

.cta-btn:hover {
    color: #fde68a;
    text-decoration-color: #fde68a;
}

.cta-btn:focus-visible {
    outline: 2px solid var(--col-amber);
    outline-offset: 4px;
    color: #fde68a;
}

/* --- PODPIS --- */
.signature {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-top: 1.5rem;
    padding-bottom: .5rem;
}

.signature img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 2px solid var(--col-border-mid);
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .signature img { width: 96px; height: 96px; }
}

.sig-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--col-ink-black);
    margin: 0 0 .2rem;
}

.sig-title {
    font-family: var(--font-mono);
    font-size: .75rem;
    color: var(--col-ink-light);
    margin: 0;
}

/* --- P.S. --- */
.ps-block {
    margin-top: 2rem;
}

.ps-block p {
    font-size: .95rem;
    line-height: 1.75;
    color: var(--col-ink-dark);
    margin: 0;
}

.ps-block strong {
    font-family: var(--font-sans);
    font-weight: 700;
}

/* --- STOPKA LISTU --- */
.letter-footer {
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--col-border);
    font-family: var(--font-mono);
    font-size: .75rem;
    color: var(--col-ink-light);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
}

/* --- UTILITIES --- */
.yellow-highlight {
    background: linear-gradient(120deg, var(--col-yellow) 0%, var(--col-yellow) 100%);
    padding: 1px 5px;
    border-radius: 2px;
    font-weight: 600;
}

.red-warning {
    color: var(--col-red);
    font-weight: 700;
}
