/* ─────────────────────────────────────────────────────────────────────
   Reset + base typography. Editorial defaults: serif headlines,
   comfortable line-heights, restrained link styling.
   Cocina de Noche: espresso base with the sienna pixel-dot grid.
   ───────────────────────────────────────────────────────────────────── */

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

html {
    background: var(--surface-base);
    color: var(--ink-body);
    font-family: var(--sans);
    font-size: 16px;
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    min-height: 100vh;
    background: var(--surface-base);
    /* Warm pixel-dot grid — same texture as sofritoconrecao.com. */
    background-image: radial-gradient(rgba(201, 123, 94, 0.07) 1.5px,
                                      transparent 1.5px);
    background-size: 26px 26px;
    background-attachment: fixed;
}

/* Headlines — serif, generous tracking. */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    color: var(--ink-headline);
    font-weight: 400;
    line-height: var(--lh-headline);
    letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-lead); }
h6 { font-size: var(--fs-body); }

p {
    margin-bottom: var(--sp-3);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--t-fast);
}

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

/* Reading-prose links — underlined inline, only in long-form copy. */
.prose a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(201, 123, 94, 0.4);
    text-underline-offset: 0.2em;
}
.prose a:hover { text-decoration-color: var(--accent); }

ul, ol {
    list-style: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

img, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

hr {
    border: 0;
    border-top: 1px solid var(--surface-rule);
    margin: var(--sp-5) 0;
}

/* Reduced motion respect. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Selection — warm accent. */
::selection {
    background: var(--accent-soft);
    color: var(--ink-headline);
}

/* Print — strip chrome, keep content readable. */
@media print {
    body { background: white; color: black; }
    .masthead, .sidebar, .footer, .nav, button { display: none !important; }
    a { color: black; text-decoration: underline; }
    h1, h2, h3, h4 { color: black; page-break-after: avoid; }
}
