/* ==========================================================================
Nua.CSS v1.0
Lightweight CSS baseline and browser normalisation
Inspired by normalize.css v8.0.1
MIT Licensed
========================================================================== */

/*
MIT License

Copyright © 2026 Saskia Ostermann Toutatis

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
*/

/* Document v1.0 for cache busting
========================================================================== */

/* Apply consistent box model */
html {
box-sizing: border-box;
height: 100%;

line-height: 1.15;

-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;

-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;

scrollbar-width: auto;
scrollbar-color: #888 #f1f1f1;
}

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

/* Body defaults */
body {
margin: 0;
min-height: 100vh;
overflow-x: hidden;

font-family:
system-ui,
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
Roboto,
Helvetica,
Arial,
Verdana,
sans-serif;

font-size: 1rem;
line-height: 1.5;
text-rendering: optimizeLegibility;
}

/* Semantic HTML rendering */
main,
header,
footer,
section,
article,
aside,
nav {
display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
margin-top: 0;
line-height: 1.25;
}

p,
ul,
ol,
dl,
blockquote {
margin-top: 0;
}

/* Links */
a {
background-color: transparent;
text-decoration-skip-ink: auto;
}

/* Lists */
ul,
ol {
padding-left: 2rem;
}

/* Horizontal rule */
hr {
height: 0;
overflow: visible;
border: 0;
border-top: 1px solid currentcolor;
opacity: 0.15;
}

/* Tables */
table {
width: 100%;
border-collapse: collapse;
border-color: currentcolor;
}

/* Media responsiveness */
img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
height: auto;
border-style: none;
}

/* Forms */
button,
input,
optgroup,
select,
textarea {
font: inherit;
line-height: 1.15;
margin: 0;
}

button,
select {
text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
appearance: button;
-webkit-appearance: button;
cursor: pointer;
}

/* Firefox button fix */
button::-moz-focus-inner {
border-style: none;
padding: 0;
}

/* Textareas */
textarea {
resize: vertical;
}

/* Placeholder text */
::placeholder {
color: #757575;
opacity: 1;
}

/* Details / summary */
summary::-webkit-details-marker {
display: none;
}

summary {
list-style: none;
cursor: pointer;
}

/* Accessible focus state */
:focus-visible {
outline: 2px dashed #005fcc;
outline-offset: 4px;
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
html:focus-within {
scroll-behaviour: auto;
}

*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behaviour: auto !important;
}
}

/* WebKit scrollbar support */
::-webkit-scrollbar {
width: 12px;
height: 12px;
}

::-webkit-scrollbar-track {
background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
background: #888;
}

::-webkit-scrollbar-thumb:hover {
background: #555;
}

/* Mobile optimisation */
@media (max-width: 768px) {
body {
line-height: 1.6;
}
}
/* EOF */
