/*
 * Lumika Core — Base CSS
 * Foundational reset + typography, derived from GeneratePress parent theme.
 * Loaded BEFORE main.css so main.css can override anything here.
 */

/* ── Reset ─────────────────────────────────────────────────────────────────── */

html,
body,
p,
ol,
ul,
li,
dl,
dt,
dd,
blockquote,
figure,
fieldset,
legend,
textarea,
pre,
iframe,
hr,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
    border: 0;
}

html {
    font-family: sans-serif;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    box-sizing: border-box;
}

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

main {
    display: block;
}

progress {
    vertical-align: baseline;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: 100%;
    margin: 0;
}

[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

:-moz-focusring {
    outline: 1px dotted ButtonText;
}

/* ── Base typography ────────────────────────────────────────────────────────── */

body,
button,
input,
select,
textarea {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-weight: normal;
    font-size: 17px;
    line-height: 1.5;
}

p {
    margin-bottom: 1.5em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: inherit;
    font-style: normal;
    font-weight: normal;
    line-height: 1.2em;
    text-transform: none;
}

h1 { font-size: 42px; margin-bottom: 20px; }
h2 { font-size: 35px; margin-bottom: 20px; }
h3 { font-size: 29px; margin-bottom: 20px; }
h4 { font-size: 24px; margin-bottom: 20px; }
h5 { font-size: 20px; margin-bottom: 20px; }
h6 { font-size: 17px; margin-bottom: 20px; }

ul,
ol {
    margin: 0 0 1.5em 3em;
}

ul { list-style: disc; }
ol { list-style: decimal; }

li > ul,
li > ol {
    margin-bottom: 0;
}

dt { font-weight: bold; }
dd { margin: 0 1.5em 1.5em; }

b,
strong { font-weight: bold; }

dfn,
cite,
em,
i { font-style: italic; }

address { margin: 0 0 1.5em; }

code,
kbd,
tt,
var {
    font: 15px Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
    border-bottom: 1px dotted #666;
    cursor: help;
}

mark,
ins { text-decoration: none; }

sup,
sub {
    font-size: 75%;
    height: 0;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}
sup { bottom: 1ex; }
sub { top: .5ex; }

small { font-size: 75%; }
big   { font-size: 125%; }

pre {
    background: rgba(0,0,0,.05);
    font-family: inherit;
    font-size: inherit;
    line-height: normal;
    margin-bottom: 1.5em;
    padding: 20px;
    overflow: auto;
    max-width: 100%;
}

blockquote {
    border-left: 5px solid rgba(0,0,0,.05);
    padding: 20px;
    font-size: 1.2em;
    font-style: italic;
    margin: 0 0 1.5em;
    position: relative;
}

blockquote p:last-child { margin: 0; }

hr {
    background-color: rgba(0,0,0,.1);
    border: 0;
    height: 1px;
    margin: 40px 0;
}

figure { margin: 0; }

/* ── Tables ─────────────────────────────────────────────────────────────────── */

table {
    border-collapse: collapse;
    margin: 0 0 1.5em;
    width: 100%;
}

th,
td {
    border: 1px solid rgba(0,0,0,.1);
    padding: 8px;
}

th { font-weight: bold; }

/* ── Images / media ─────────────────────────────────────────────────────────── */

img {
    height: auto;
    max-width: 100%;
}

embed,
iframe,
object {
    max-width: 100%;
}

/* ── Forms ──────────────────────────────────────────────────────────────────── */

fieldset {
    padding: 0;
    border: 0;
    min-width: inherit;
}

fieldset legend {
    padding: 0;
    margin-bottom: 1.5em;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
    border: 1px solid;
    border-radius: 0;
    padding: 10px 15px;
    max-width: 100%;
}

textarea { width: 100%; }

/* ── Links ──────────────────────────────────────────────────────────────────── */

a,
button,
input {
    transition: color 0.1s ease-in-out, background-color 0.1s ease-in-out;
}

a { text-decoration: none; }

/* ── Accessibility ──────────────────────────────────────────────────────────── */

.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 !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

#primary[tabindex="-1"]:focus { outline: 0; }

.using-mouse :focus          { outline: 0; }
.using-mouse ::-moz-focus-inner { border: 0; }

/* ── Alignment helpers ──────────────────────────────────────────────────────── */

.alignleft  { float: left;  margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em;  }

.aligncenter {
    clear: both;
    display: block;
    margin: 0 auto;
}

.size-auto,
.size-full,
.size-large,
.size-medium,
.size-thumbnail {
    max-width: 100%;
    height: auto;
}

/* ── Gutenberg / block editor ───────────────────────────────────────────────── */

.wp-block-button .wp-block-button__link {
    font-size: inherit;
    line-height: inherit;
    padding: 10px 20px;
    display: inline-block;
}
