/*
 * GORILLA GARAGE — BASE
 *
 * Minimaler moderner Reset (in Anlehnung an Andy Bell, gezielt zusammengestrichen).
 * Body, Typografie, Focus-Styles, Bild-/Form-Defaults.
 *
 * Keine Hardcoded-Werte: alles ueber Tokens aus tokens.css.
 */

/* ────────────────────────────────────────────────────────────
 * RESET
 * ──────────────────────────────────────────────────────────── */

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

* {
	margin: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	tab-size: 4;
	scroll-behavior: smooth;
	color-scheme: light;
}

html:focus-within {
	scroll-behavior: smooth;
}

body {
	min-height: 100vh;
	min-height: 100svh;
	line-height: var(--lh-relaxed);
	font-family: var(--font-body);
	font-size: var(--fs-base);
	font-weight: var(--fw-regular);
	color: var(--color-text);
	background-color: var(--gg-black);
	background-image:
		repeating-linear-gradient(
			135deg,
			rgba(255, 255, 255, 0.025) 0,
			rgba(255, 255, 255, 0.025) 2px,
			transparent 2px,
			transparent 10px
		),
		repeating-linear-gradient(
			45deg,
			rgba(255, 255, 255, 0.025) 0,
			rgba(255, 255, 255, 0.025) 2px,
			transparent 2px,
			transparent 10px
		),
		radial-gradient(ellipse at 20% 0%, rgba(200, 16, 46, 0.10) 0%, transparent 55%),
		radial-gradient(ellipse at 80% 100%, rgba(201, 162, 76, 0.08) 0%, transparent 55%),
		linear-gradient(180deg, var(--gg-black) 0%, var(--gg-black-soft) 50%, var(--gg-black) 100%);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

/* ────────────────────────────────────────────────────────────
 * Media-Defaults
 * ──────────────────────────────────────────────────────────── */

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

img,
video {
	font-style: italic;
	background-repeat: no-repeat;
	background-size: cover;
	shape-margin: 0.75rem;
}

svg {
	fill: currentColor;
}

/* ────────────────────────────────────────────────────────────
 * Form-Elemente erben Typografie
 * ──────────────────────────────────────────────────────────── */

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

button {
	background: none;
	border: 0;
	cursor: pointer;
	padding: 0;
}

button:disabled,
[disabled] {
	cursor: not-allowed;
}

/* ────────────────────────────────────────────────────────────
 * Typografie
 * ──────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-headline);
	font-weight: var(--fw-bold);
	line-height: var(--lh-tight);
	letter-spacing: var(--ls-tight);
	text-transform: uppercase;
	text-wrap: balance;
	color: var(--color-heading);
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-base); letter-spacing: var(--ls-wider); }
h6 { font-size: var(--fs-sm);   letter-spacing: var(--ls-wider); }

p,
ul,
ol,
dl,
blockquote,
figure {
	text-wrap: pretty;
}

p + p {
	margin-top: var(--space-4);
}

strong, b {
	font-weight: var(--fw-bold);
}

em, i {
	font-style: italic;
}

small {
	font-size: var(--fs-sm);
}

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

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

a {
	color: var(--color-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color var(--dur-fast) var(--ease-standard);
}

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

a:active {
	color: var(--color-accent-pressed);
}

/* ────────────────────────────────────────────────────────────
 * Listen
 * ──────────────────────────────────────────────────────────── */

ul[role="list"],
ol[role="list"] {
	list-style: none;
	padding: 0;
}

/* ────────────────────────────────────────────────────────────
 * Selektion
 * ──────────────────────────────────────────────────────────── */

::selection {
	background-color: var(--gg-red);
	color: var(--gg-white);
}

/* ────────────────────────────────────────────────────────────
 * Focus-Visible — sichtbar fuer Keyboard, unsichtbar fuer Maus
 * ──────────────────────────────────────────────────────────── */

:focus {
	outline: none;
}

:focus-visible {
	outline: 2px solid var(--color-focus-ring);
	outline-offset: 4px;
	border-radius: var(--radius-sm);
}

.section--dark :focus-visible,
.section--dark-soft :focus-visible,
[data-theme="dark"] :focus-visible {
	outline-color: var(--gg-red-bright);
}

/* ────────────────────────────────────────────────────────────
 * HR
 * ──────────────────────────────────────────────────────────── */

hr {
	height: 1px;
	border: 0;
	background-color: var(--color-border);
	margin-block: var(--space-8);
}

/* ────────────────────────────────────────────────────────────
 * Reduced Motion
 * ──────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	html:focus-within {
		scroll-behavior: auto;
	}
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
