/* Base — reset + tipografi */

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--eg-font-sans);
	font-weight: var(--eg-fw-medium);
	font-size: var(--eg-fs-base);
	line-height: var(--eg-lh-base);
	color: var(--eg-text);
	background: var(--eg-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
main { display: block; }

h1,h2,h3,h4,h5,h6 {
	font-family: var(--eg-font-display);
	font-weight: var(--eg-fw-bold);
	line-height: var(--eg-lh-tight);
	margin: 0 0 var(--eg-sp-4);
	color: var(--eg-text);
	letter-spacing: -.01em;
}
h1 { font-size: var(--eg-fs-h1); letter-spacing: -.02em; }
h2 { font-size: var(--eg-fs-h2); letter-spacing: -.015em; }
h3 { font-size: var(--eg-fs-h3); }
h4 { font-size: var(--eg-fs-xl); }
h5 { font-size: var(--eg-fs-lg); }
h6 { font-size: var(--eg-fs-md); }

p { margin: 0 0 var(--eg-sp-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--eg-brand); text-decoration: none; transition: color var(--eg-dur-fast) var(--eg-ease); }
a:hover { color: var(--eg-brand-2); }

strong, b { font-weight: var(--eg-fw-bold); }
em, i { font-style: italic; }
small { font-size: var(--eg-fs-sm); }
code, pre, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

ul, ol { margin: 0 0 var(--eg-sp-4); padding-left: 1.25em; }
li + li { margin-top: var(--eg-sp-1); }

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

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
img { border-style: none; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: var(--eg-sp-3); border-bottom: 1px solid var(--eg-border); text-align: left; }

blockquote {
	margin: 0 0 var(--eg-sp-4);
	padding: var(--eg-sp-4) var(--eg-sp-5);
	background: var(--eg-surface);
	border-left: 3px solid var(--eg-brand);
	border-radius: var(--eg-r-sm);
	color: var(--eg-text-soft);
}

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

:focus-visible {
	outline: 2px solid var(--eg-brand);
	outline-offset: 2px;
	border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

::selection {
	background: var(--eg-brand);
	color: #0B0F14;
}

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px,1px,1px,1px);
	width: 1px; height: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	clip: auto !important;
	display: block;
	top: 8px; left: 8px;
	background: var(--eg-brand);
	color: #0B0F14;
	padding: 10px 14px;
	border-radius: var(--eg-r-sm);
	font-weight: 700;
	z-index: 999999;
}

/* Gutenberg align */
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100%; }

/* Body scroll lock (mobile nav) */
body.eg-nav-open { overflow: hidden; }
