/*
Theme Name: Gegants del Poblenou
Theme URI: https://gegantspoblenou.cat
Author: Associació de Geganters, Grallers i Portadors de Cabuts del Poblenou
Author URI: https://gegantspoblenou.cat
Description: Theme clàssic per a la web dels Gegants del Poblenou. Cultura popular viva, de generació en generació.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gegants-poblenou
Tags: culture, catalan, classic-theme, blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/*
 * This file is intentionally minimal.
 * Main styles live in assets/css/main.css, loaded via functions.php.
 * This file only contains the WordPress theme header (required) and
 * a small set of critical CSS variables and resets.
 */

/* =============================================
   CSS Custom Properties
   ============================================= */
:root {
    --color-primary:    #d94f45;
    --color-secondary:  #f4b942;
    --color-dark:       #1f1f1f;
    --color-light:      #fff8f3;
    --color-white:      #ffffff;
    --color-gray-100:   #f7f3ef;
    --color-gray-200:   #e8e0d8;
    --color-gray-400:   #9e9083;
    --color-gray-600:   #5c544d;
    --color-gray-800:   #3a342e;

    --font-heading: 'Georgia', 'Times New Roman', serif;
    --font-body:    system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

    --font-size-xs:   0.75rem;
    --font-size-sm:   0.875rem;
    --font-size-base: 1rem;
    --font-size-lg:   1.125rem;
    --font-size-xl:   1.25rem;
    --font-size-2xl:  1.5rem;
    --font-size-3xl:  1.875rem;
    --font-size-4xl:  2.25rem;
    --font-size-5xl:  3rem;
    --font-size-6xl:  3.75rem;

    --line-height-tight:  1.2;
    --line-height-snug:   1.375;
    --line-height-normal: 1.625;
    --line-height-loose:  1.875;

    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,.1), 0 2px 4px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 30px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);

    --max-width-content: 720px;
    --max-width-wide:    1120px;
    --max-width-full:    100%;

    --header-height: 72px;
    --transition: 200ms ease;
}

/* =============================================
   Critical Reset
   ============================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-dark);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

a:hover,
a:focus {
    color: var(--color-dark);
    text-decoration: none;
}

:focus-visible {
    outline: 3px solid var(--color-secondary);
    outline-offset: 2px;
}

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

.screen-reader-text:focus {
    background-color: var(--color-white);
    border-radius: var(--radius-sm);
    clip: auto !important;
    clip-path: none;
    color: var(--color-dark);
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 700;
    height: auto;
    left: 8px;
    line-height: normal;
    padding: 12px 20px;
    text-decoration: none;
    top: 8px;
    width: auto;
    z-index: 100000;
}
