/* =========================================================================
   AMIK 94 — основа: токени, типография, layout
   ========================================================================= */

:root {
	--ink: #1c1f24;
	--deep: #14171b;
	--soft: #2a2e35;
	--paper: #e8e5df;
	--paper-2: #f2f0eb;
	--copper: #c2703d;
	--copper-light: #d18a5c;
	--copper-ink: #96502a;
	--steel: #5a5f66;
	--steel-light: #9a9ea4;
	--line: rgba(28, 31, 36, 0.14);
	--line-dark: rgba(232, 229, 223, 0.14);
	--success: #2f6a49;
	--success-light: #7fb99a;
	--danger: #96342c;
	--danger-light: #e08a80;
	--warn: #7a5310;
	--warn-light: #d9a441;
	--font-display: "Unbounded", "Arial", sans-serif;
	--font-text: "Onest", "Helvetica Neue", Arial, sans-serif;
	--font-mono: "JetBrains Mono", "Courier New", monospace;
	--container: 1240px;
	--gutter: clamp(20px, 4vw, 48px);
	--section: clamp(64px, 9vw, 128px);
	--radius: 2px;
	--dur: 0.22s;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--shadow-nav: 0 8px 24px rgba(20, 23, 27, 0.08);
	--shadow-modal: 0 24px 60px rgba(20, 23, 27, 0.18);
}

/* Reset ------------------------------------------------------------------ */

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
	-webkit-text-size-adjust: 100%;
}

.site-main:focus {
	outline: none;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-text);
	font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
	font-weight: 400;
	line-height: 1.65;
	overflow-x: clip;
}

body.menu-open,
body.lightbox-open {
	overflow: hidden;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

img {
	display: block;
}

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

::selection {
	background: var(--copper);
	color: var(--deep);
}

/* Type ------------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-weight: 500;
}

h1,
h2 {
	font-family: var(--font-display);
	line-height: 1.05;
	letter-spacing: -0.02em;
	overflow-wrap: normal;
	hyphens: none;
}

h1 {
	font-size: clamp(1.25rem, 4.6vw, 4.25rem);
	font-weight: 600;
	line-height: 0.98;
	letter-spacing: -0.03em;
}

h2 {
	font-size: clamp(1.4rem, 3.4vw, 3.25rem);
}

h3 {
	font-size: clamp(1.25rem, 1.6vw, 1.5rem);
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

h4 {
	font-size: 1.0625rem;
	line-height: 1.3;
}

p {
	margin: 0 0 1em;
}

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

strong {
	font-weight: 500;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	text-decoration-color: var(--copper-ink);
}

a:hover {
	text-decoration-color: var(--copper);
}

:focus-visible {
	outline: 2px solid var(--copper-ink);
	outline-offset: 3px;
}

.site-footer :focus-visible,
.status-band :focus-visible,
.lightbox :focus-visible {
	outline-color: var(--copper-light);
}

.mono {
	font-family: var(--font-mono);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
}

.eyebrow {
	margin: 0 0 16px;
	color: var(--copper-ink);
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.eyebrow--on-dark {
	color: var(--copper-light);
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: var(--gutter);
	top: -100px;
	z-index: 1000;
	padding: 12px 20px;
	background: var(--ink);
	color: var(--paper);
	border-radius: var(--radius);
	text-decoration: none;
	transition: top 0.15s ease;
}

.skip-link:focus {
	top: 12px;
}

/* Layout ----------------------------------------------------------------- */

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section {
	padding-block: var(--section);
}

.section--alt {
	background: var(--paper-2);
}

.section-head {
	max-width: 860px;
	margin-bottom: clamp(32px, 5vw, 56px);
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.section-head--row {
	display: flex;
	max-width: none;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}

.section-head__intro {
	max-width: 62ch;
	margin: 16px 0 0;
	color: var(--steel);
}

.section-foot {
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	color: var(--steel);
	font-size: 0.9375rem;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding-bottom: 4px;
	border-bottom: 1px solid var(--copper-ink);
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.12s ease, gap 0.12s ease;
}

.link-arrow:hover {
	gap: 0.75rem;
	color: var(--copper-ink);
}
