/*
Theme Name: Woolly
Theme URI: https://woolly.app
Author: Woolly
Author URI: https://woolly.app
Description: Theme oficial do blog da Woolly. Inspirado na identidade do app — paleta cream/amber, tipografia Monigue + Gilmer, layout limpo e centrado em conteúdo.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: woolly
Tags: blog, classic, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ---------- Brand tokens ---------- */
:root {
    --w-cream:        #fddfb3;
    --w-cream-soft:   #fef2e0;
    --w-cream-bg:     #fcf3e3;
    --w-amber:        #eb9a3c;
    --w-burnt:        #ca5f2c;
    --w-sky:          #b9daef;
    --w-sky-pale:     #dbf1ff;
    --w-navy:         #1a5f85;
    --w-charcoal:     #143040;
    --w-text:         #143040;
    --w-text-soft:    #3a4a55;
    --w-muted:        #6b7480;
    --w-line:         #ece4d3;
    --w-line-strong:  #d9cfb8;
    --w-white:        #ffffff;
    --w-success:      #007408;
    --w-danger:       #c48d8c;

    --w-link:         var(--w-burnt);
    --w-link-hover:   var(--w-charcoal);

    --w-radius-sm:    8px;
    --w-radius-md:    16px;
    --w-radius-lg:    24px;
    --w-radius-pill:  999px;

    --w-shadow-card:  0 4px 18px rgba(20, 48, 64, 0.08);
    --w-shadow-soft:  0 2px 6px rgba(20, 48, 64, 0.06);

    --w-content-max:  720px;
    --w-wide-max:     1180px;

    --w-space-1:      4px;
    --w-space-2:      8px;
    --w-space-3:      12px;
    --w-space-4:      16px;
    --w-space-5:      24px;
    --w-space-6:      32px;
    --w-space-7:      48px;
    --w-space-8:      64px;
    --w-space-9:      96px;
}

/* ---------- Fonts ---------- */
@font-face {
    font-family: 'Monigue';
    src: url('assets/fonts/Monigue.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Gilmer';
    src: url('assets/fonts/GilmerLight.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Gilmer';
    src: url('assets/fonts/GilmerRegular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Gilmer';
    src: url('assets/fonts/GilmerMedium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Gilmer';
    src: url('assets/fonts/GilmerBold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Gilmer';
    src: url('assets/fonts/GilmerHeavy.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ---------- Reset (minimal) ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 96px;
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    background: var(--w-white);
    color: var(--w-text);
    font-family: 'Gilmer', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--w-link);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 120ms ease;
}
a:hover,
a:focus-visible {
    color: var(--w-link-hover);
}

button {
    font: inherit;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Gilmer', system-ui, sans-serif;
    color: var(--w-charcoal);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 var(--w-space-4);
    font-weight: 700;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin: 0 0 var(--w-space-5); }

blockquote {
    margin: var(--w-space-6) 0;
    padding: var(--w-space-4) var(--w-space-5);
    border-left: 4px solid var(--w-amber);
    background: var(--w-cream-soft);
    border-radius: 0 var(--w-radius-md) var(--w-radius-md) 0;
    color: var(--w-text);
    font-style: italic;
}

code, pre, kbd, samp {
    font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
    font-size: 0.95em;
}
code {
    background: var(--w-cream-soft);
    padding: 2px 6px;
    border-radius: var(--w-radius-sm);
}
pre {
    background: var(--w-charcoal);
    color: var(--w-cream-soft);
    padding: var(--w-space-5);
    border-radius: var(--w-radius-md);
    overflow-x: auto;
    line-height: 1.5;
}
pre code { background: transparent; padding: 0; color: inherit; }

hr {
    border: 0;
    height: 1px;
    background: var(--w-line);
    margin: var(--w-space-7) 0;
}

::selection {
    background: var(--w-cream);
    color: var(--w-charcoal);
}

/* ---------- A11y ---------- */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px; width: 1px;
    margin: -1px; overflow: hidden; padding: 0;
    position: absolute !important; word-wrap: normal !important;
}

.skip-link {
    position: absolute;
    left: 8px; top: -100px;
    background: var(--w-charcoal);
    color: var(--w-white);
    padding: 8px 16px;
    border-radius: var(--w-radius-sm);
    z-index: 1000;
}
.skip-link:focus {
    top: 8px;
    color: var(--w-white);
}

:focus-visible {
    outline: 2px solid var(--w-amber);
    outline-offset: 2px;
    border-radius: var(--w-radius-sm);
}
