/* =========================================================
   DMAY — Base CSS
   Global reset, custom properties, typography, utilities
   ========================================================= */

/* ----- Custom Properties ----- */
:root {
	--dmay-bg:          #0a0a0a;
	--dmay-fg:          #ffffff;
	--dmay-accent:      #e4ff03;
	--dmay-muted:       #8a8a8a;
	--dmay-surface:     #141414;
	--dmay-surface-2:   #1a1a1a;
	--dmay-border:      #2a2a2a;
	--dmay-accent-soft: rgba(228, 255, 3, 0.15);

	--dmay-font-display: 'Outfit', sans-serif;
	--dmay-font-body:    'DM Sans', sans-serif;

	--dmay-radius-sm:  4px;
	--dmay-radius:     8px;
	--dmay-radius-lg:  16px;
	--dmay-radius-xl:  24px;
	--dmay-radius-pill:9999px;

	--dmay-container:  1280px;
	--dmay-content:    720px;
	--dmay-gutter:     clamp(1rem, 4vw, 2rem);

	--dmay-transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);

	--dmay-z-header:   100;
	--dmay-z-overlay:  200;
	--dmay-z-modal:    300;
}

/* ----- Reset ----- */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	background-color: var(--dmay-bg);
	color: var(--dmay-fg);
	font-family: var(--dmay-font-body);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

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

a {
	color: inherit;
	text-decoration: none;
}

ul,
ol {
	list-style: none;
}

button,
input,
textarea,
select {
	font: inherit;
	color: inherit;
	background: none;
	border: none;
	outline: none;
	appearance: none;
}

button {
	cursor: pointer;
}

/* ----- Typography Scale ----- */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--dmay-font-display);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem,   5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem,2vw, 1.75rem); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p { max-width: 65ch; }

mark {
	background: none;
	color: var(--dmay-accent);
}

strong { font-weight: 700; }
em     { font-style: italic; }

/* ----- Layout Utilities ----- */
.dmay-container {
	width: 100%;
	max-width: var(--dmay-container);
	margin-inline: auto;
	padding-inline: var(--dmay-gutter);
}

.dmay-container--narrow {
	max-width: var(--dmay-content);
}

.dmay-section {
	padding-block: clamp(4rem, 8vw, 8rem);
}

/* ----- Visually Hidden ----- */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* ----- Focus ----- */
:focus-visible {
	outline: 2px solid var(--dmay-accent);
	outline-offset: 3px;
	border-radius: 2px;
}

/* ----- Scrollbar ----- */
::-webkit-scrollbar {
	width: 6px;
}
::-webkit-scrollbar-track {
	background: var(--dmay-bg);
}
::-webkit-scrollbar-thumb {
	background: var(--dmay-border);
	border-radius: var(--dmay-radius-pill);
}
::-webkit-scrollbar-thumb:hover {
	background: var(--dmay-muted);
}

/* ----- Selection ----- */
::selection {
	background: var(--dmay-accent);
	color: var(--dmay-bg);
}

/* ----- Button Base ----- */
.dmay-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border-radius: var(--dmay-radius-pill);
	font-family: var(--dmay-font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background var(--dmay-transition), color var(--dmay-transition), border-color var(--dmay-transition), transform var(--dmay-transition);
	white-space: nowrap;
	cursor: pointer;
	border: 1px solid transparent;
}

.dmay-btn--primary {
	background: var(--dmay-accent);
	color: var(--dmay-bg);
	border-color: var(--dmay-accent);
}
.dmay-btn--primary:hover {
	background: #f0ff3d;
	border-color: #f0ff3d;
}

.dmay-btn--outline {
	background: transparent;
	color: var(--dmay-fg);
	border-color: var(--dmay-border);
}
.dmay-btn--outline:hover {
	border-color: var(--dmay-fg);
}

.dmay-btn--ghost {
	background: transparent;
	color: var(--dmay-muted);
}
.dmay-btn--ghost:hover {
	color: var(--dmay-fg);
}

/* ----- Tag / Eyebrow ----- */
.dmay-eyebrow {
	display: inline-block;
	font-family: var(--dmay-font-body);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--dmay-accent);
}

/* ----- Divider ----- */
.dmay-divider {
	width: 100%;
	height: 1px;
	background: var(--dmay-border);
	border: none;
}

/* ----- Aspect Ratios ----- */
.dmay-ratio-16-9 { aspect-ratio: 16 / 9; }
.dmay-ratio-4-3  { aspect-ratio: 4 / 3; }
.dmay-ratio-1-1  { aspect-ratio: 1; }

/* ----- WordPress Core Overrides ----- */
.wp-site-blocks {
	padding-top: 0 !important;
}

.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: var(--dmay-container) !important;
	margin-inline: auto;
}

/* ----- Admin Bar ----- */
.admin-bar .dmay-header {
	top: 32px;
}
@media (max-width: 782px) {
	.admin-bar .dmay-header {
		top: 46px;
	}
}

/* ----- Responsive helpers ----- */
@media (max-width: 768px) {
	.dmay-hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
	.dmay-hide-desktop { display: none !important; }
}

/* ----- Scroll Reveal ----- */
.dmay-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
	            transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	will-change: opacity, transform;
}

.dmay-reveal--in {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.dmay-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ----- Eyebrow animate ----- */
.dmay-eyebrow {
	display: inline-block;
	position: relative;
}

.dmay-eyebrow::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: -3px;
	width: 0;
	height: 1.5px;
	background: var(--dmay-accent);
	transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dmay-eyebrow--animate::after {
	width: 100%;
}

/* ----- Focus visible ----- */
:focus-visible {
	outline: 2px solid var(--dmay-accent);
	outline-offset: 3px;
	border-radius: 3px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
	outline: none;
}
