/* ==========================================================================
   Linek Traders — base
   Design tokens, reset and typography.
   Palette is taken from the logo: charcoal #2A2D34 and amber #CA8921.
   ========================================================================== */

:root {
	/* Brand */
	--ink:          #2A2D34;
	--ink-700:      #3D424C;
	--ink-500:      #5A616E;
	--amber:        #CA8921;
	--amber-600:    #A66E15;
	--amber-100:    #FBEFD8;

	/* Neutrals */
	--surface:      #FFFFFF;
	--sand:         #F6F1E8;
	--stone:        #E8E4DD;
	--line:         #DCD8D0;
	--muted:        #6B7280;

	/* Semantic */
	--ok:           #1F7A4C;
	--error:        #B3261E;

	/* Type */
	--font-head: "Barlow Condensed", "Haettenschweiler", "Arial Narrow", system-ui, sans-serif;
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	/* Fluid type scale */
	--fs-sm:   0.875rem;
	--fs-base: 1rem;
	--fs-lg:   clamp(1.0625rem, 0.4vw + 1rem, 1.1875rem);
	--fs-xl:   clamp(1.25rem, 0.8vw + 1.05rem, 1.6rem);
	--fs-2xl:  clamp(1.75rem, 2vw + 1.2rem, 2.5rem);
	--fs-3xl:  clamp(2.25rem, 5vw + 1rem, 4rem);

	/* Space */
	--sp-1: 0.5rem;
	--sp-2: 1rem;
	--sp-3: 1.5rem;
	--sp-4: 2.5rem;
	--sp-5: 4rem;
	--sp-6: 6rem;

	/* Layout */
	--wrap:        1200px;
	--wrap-narrow: 780px;
	--gutter:      clamp(1.25rem, 4vw, 2.5rem);

	/* Effects */
	--radius:  4px;
	--notch:   14px;               /* angular cut — echoes the logo */
	--shadow:  0 1px 2px rgba(42, 45, 52, .06), 0 8px 24px rgba(42, 45, 52, .07);
	--shadow-lg: 0 2px 4px rgba(42, 45, 52, .07), 0 18px 48px rgba(42, 45, 52, .13);
	--ease:    cubic-bezier(.2, .7, .3, 1);
	--header-h: 98px;
}

/* --------------------------------------------------------------- reset -- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
	margin: 0;
	background: var(--surface);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
}

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

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: .01em;
	text-transform: uppercase;
	text-wrap: balance;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--amber-600); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--ink); }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

blockquote {
	margin: var(--sp-3) 0;
	padding: var(--sp-2) var(--sp-3);
	border-left: 4px solid var(--amber);
	background: var(--sand);
	font-size: var(--fs-lg);
}

hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-4) 0; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: .6rem .75rem; border-bottom: 1px solid var(--line); text-align: left; }
th { font-weight: 600; background: var(--sand); }

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
pre { padding: var(--sp-2); background: var(--ink); color: #F4F4F5; overflow-x: auto; border-radius: var(--radius); }

/* ------------------------------------------------------ focus + a11y -- */

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--amber);
	outline-offset: 2px;
	border-radius: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
	white-space: nowrap; border: 0;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: .75rem 1.25rem;
	background: var(--ink);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}
.skip-link:focus { left: .5rem; top: .5rem; color: #fff; }

.is-muted { color: var(--muted); }

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