/**
 * Bake Theme CSS reset
 *
 * Modern baseline so browser defaults (especially heading and paragraph
 * margins) do not leak into authored styles.
 */

/* 1. Intuitive box-sizing */
*,
*::before,
*::after {
	box-sizing: border-box;
}

/* 2. Remove default margin — this is what gives paragraphs margin-top */
* {
	margin: 0;
}

/* 3. Prevent mobile font-size inflation */
html {
	-moz-text-size-adjust: none;
	-webkit-text-size-adjust: none;
	text-size-adjust: none;
}

/* 4. Smooth in-page scrolling when motion is allowed */
@media (prefers-reduced-motion: no-preference) {
	html:focus-within {
		scroll-behavior: smooth;
	}
}

/* 5. Document defaults */
body {
	min-height: 100vh;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* 6. Media as block-level, never overflow their container */
img,
picture,
video,
canvas {
	display: block;
	max-width: 100%;
	height: auto;
}

svg {
	display: block;
	max-width: 100%;
}

/* 7. Inherit typography on form controls */
input,
button,
textarea,
select {
	font: inherit;
	letter-spacing: inherit;
}

button,
input,
select,
textarea {
	color: inherit;
}

/* 8. Avoid overflow from long words / URLs */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

/* 9. Better wrapping */
p {
	text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	text-wrap: balance;
}

/* 10. Lists that opt out of markers */
ul[role="list"],
ol[role="list"] {
	list-style: none;
	padding: 0;
}

/* 11. Link underline clipping */
a:not([class]) {
	text-decoration-skip-ink: auto;
}

/* 12. Textareas without rows are usable */
textarea:not([rows]) {
	min-height: 10em;
}

/* 13. Extra room when jumping to an in-page target */
:target {
	scroll-margin-block: 5ex;
}

/* 14. Tables */
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* 15. Respect the hidden attribute */
[hidden] {
	display: none !important;
}
