/*
Theme Name: Coaching HW
Theme URI: https://example.com/themes/coaching-hw
Author: Codex Automation
Author URI: https://example.com
Description: Modular coaching starter theme with HW micro-framework.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: coaching
Tags: custom-colors, custom-logo, custom-menu, featured-images, rtl-language-support
*/

:root {
    color-scheme: light;
}

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

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--hw-font-body, "Roboto", "Helvetica Neue", Arial, sans-serif);
    line-height: 1.6;
    font-size: 1rem;
    color: var(--hw-color-text, #212121);
    background-color: var(--hw-color-surface, #ffffff);
    -webkit-font-smoothing: antialiased;
}

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

p {
    margin: 0 0 1.25rem;
    color: inherit;
}

small {
    font-size: 0.875rem;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.45em;
    font-family: var(--hw-font-heading, "Montserrat", "Roboto", sans-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--hw-color-heading, #111111);
}

h1 { font-size: clamp(2.5rem, 6vw, 3.25rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; }

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    font-family: var(--hw-font-button, var(--hw-font-body, "Roboto", "Helvetica Neue", Arial, sans-serif));
}

ul[role="list"], ol[role="list"] {
    list-style: none;
    padding: 0;
}

ul, ol {
    margin: 0 0 1.25rem 1.5rem;
    margin-inline-start: 0;
}

blockquote {
    margin: 0 0 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--hw-color-primary, #cc2002);
    color: var(--hw-color-text-soft, #4c4c4c);
    font-style: italic;
}

code, pre {
    font-family: "Fira Code", "SFMono-Regular", Menlo, Consolas, monospace;
    background-color: var(--hw-color-surface-alt, #f6f6f6);
    border-radius: 0.25rem;
}

pre {
    padding: 1rem;
    overflow-x: auto;
}

a {
    color: var(--hw-color-link, #cc2002);
    text-decoration: none;
    position: relative;
}

a:focus-visible {
    outline: 2px solid var(--hw-color-focus, #111827);
    outline-offset: 2px;
}

.hw-link {
    color: inherit;
    text-decoration: none;
    transition: color 200ms ease;
}

.hw-link:hover,
.hw-link:focus-visible {
    color: var(--hw-color-link, #cc2002);
}

p, span {
    font-size: 1rem;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
    background: transparent;
    border: 1px solid var(--hw-color-border, #e0e0e0);
    border-radius: var(--hw-radius-md, 0.5rem);
    padding: 0.75rem 1rem;
    width: 100%;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    border-color: var(--hw-color-primary, #cc2002);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--hw-color-primary, #cc2002) 25%, transparent);
    outline: none;
}

button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    cursor: pointer;
}

fieldset {
    border: 1px solid var(--hw-color-border, #e0e0e0);
    border-radius: var(--hw-radius-md, 0.5rem);
    padding: 1rem;
    margin: 0 0 1.5rem;
}

legend {
    padding: 0 0.5rem;
    font-weight: 600;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

thead {
    background: var(--hw-color-surface-alt, #f6f6f6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td, th {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--hw-color-border, #e0e0e0);
    text-align: left;
}

tfoot {
    background: var(--hw-color-surface-alt, #f6f6f6);
}

hr {
    border: none;
    border-top: 1px solid var(--hw-color-border, #e0e0e0);
    margin: 2rem 0;
}

.container {
    width: min(var(--hw-layout-width, 1200px), 100% - 2rem);
    margin-inline: auto;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
