/*
Theme Name: Dermobliss
Description: Custom presentation theme for the Dermobliss corporate catalog.
Author: Dermobliss
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dermobliss
Domain Path: /languages
*/

/* Global foundation. Component and page-specific design is added separately. */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--dermobliss-background-primary);
	color: var(--dermobliss-text-primary);
	font-family: var(--dermobliss-font-body);
	font-size: var(--dermobliss-text-base);
	font-weight: 400;
	line-height: var(--dermobliss-leading-body);
	overflow-wrap: anywhere;
}

:where(h1, h2, h3, h4, h5, h6, p, ul, ol, dl, dd, blockquote, figure, pre) {
	margin: 0;
}

:where(ul, ol) {
	padding-inline-start: var(--dermobliss-flow-space);
}

:where(img, picture, video, canvas, svg) {
	max-inline-size: 100%;
}

:where(img, video, canvas, svg) {
	block-size: auto;
	vertical-align: middle;
}

:where(iframe, input, select, textarea, button) {
	max-inline-size: 100%;
}

:where(button, input, select, textarea) {
	font: inherit;
	color: inherit;
}

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

:where(button, input):disabled {
	cursor: not-allowed;
}

/* Preserve native controls and link affordances until their components exist. */
a {
	color: inherit;
	text-underline-offset: 0.2em;
	text-decoration-thickness: 0.0625em;
	transition: color var(--dermobliss-transition-duration) var(--dermobliss-transition-easing);
}

a:hover {
	color: var(--dermobliss-accent-gold-dark);
}

:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

::selection {
	background: var(--dermobliss-background-muted);
	color: var(--dermobliss-text-primary);
}

:where(h1, h2, h3) {
	font-family: var(--dermobliss-font-display);
}

:where(h1, h2) {
	letter-spacing: var(--dermobliss-tracking-heading);
}

h1 {
	font-size: var(--dermobliss-text-h1);
	font-weight: 300;
	line-height: var(--dermobliss-leading-h1);
}

h2 {
	font-size: var(--dermobliss-text-h2);
	font-weight: 400;
	line-height: var(--dermobliss-leading-h2);
}

h3 {
	font-size: var(--dermobliss-text-h3);
	font-weight: 500;
	line-height: var(--dermobliss-leading-h3);
}

:where(code, kbd, samp, pre) {
	font-family: var(--dermobliss-font-mono);
	font-size: 1em;
}

pre {
	white-space: pre-wrap;
}

/* Reference wordmark: shared by the header, drawer and footer. */
.brand-wordmark {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	color: var(--dermobliss-text-primary);
	text-decoration: none;
}

.brand-wordmark:is(:hover, :focus-visible) {
	color: var(--dermobliss-text-primary);
}

.brand-wordmark__name {
	font-family: var(--dermobliss-font-display);
	font-size: 24px;
	font-weight: 600;
	line-height: 26px;
	letter-spacing: 0.18em;
}

.brand-wordmark__descriptor {
	margin-block-start: 3px;
	color: var(--dermobliss-accent-gold);
	font-family: var(--dermobliss-font-mono);
	font-size: 8px;
	font-weight: 400;
	line-height: 9px;
	letter-spacing: 0.42em;
}

.brand-wordmark--light,
.brand-wordmark--light:is(:hover, :focus-visible) {
	color: var(--dermobliss-background-primary);
}

/* The 1280px outer box includes gutters: 1184px usable at desktop widths. */
.site-container {
	inline-size: 100%;
	max-inline-size: var(--dermobliss-container-max);
	min-inline-size: 0;
	margin-inline: auto;
	padding-inline: var(--dermobliss-gutter);
}

/* Apply to a full-width section; place .site-container inside when needed. */
.section {
	padding-block: var(--dermobliss-section-space);
}

/* Opt-in content rhythm; lists keep their native markers. */
.flow > * + * {
	margin-block-start: var(--dermobliss-flow-space);
}

.screen-reader-text:not(:focus) {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	a {
		transition: none;
	}
}
