/**
 * DinnerlyHub - Base Styles
 * Typography, links, forms, and global elements.
 */

body {
	font-family: var(--dh-font-body);
	color: var(--dh-text);
	font-size: var(--dh-text-body);
	line-height: var(--dh-leading-relaxed);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Skip link - WCAG 2.1 requirement */
.skip-link {
	position: absolute;
	top: -100%;
	left: 16px;
	z-index: 10000;
	background: var(--dh-green);
	color: var(--dh-white);
	padding: 8px 16px;
	border-radius: 0 0 var(--dh-radius-sm) var(--dh-radius-sm);
	font-family: var(--dh-font);
	font-weight: 600;
	font-size: 0.875rem;
	text-decoration: none;
	transition: top 0.2s;
}

.skip-link:focus {
	top: 0;
}

/* Links */
a {
	color: var(--dh-green);
	text-decoration: none;
	transition: color var(--dh-ease);
}

a:hover {
	color: var(--dh-green-dark);
}

/* Article & Page Content Links - Green with underline, no hover color change */
.article-content a,
.page-content a,
.entry-content a,
.dh-single__content a {
	color: var(--dh-green);
	text-decoration: underline;
	text-decoration-color: rgba(74, 124, 89, 0.4);
	text-underline-offset: 3px;
	transition: text-decoration-color var(--dh-ease);
}

.article-content a:hover,
.page-content a:hover,
.entry-content a:hover,
.dh-single__content a:hover {
	color: var(--dh-green);
	text-decoration-color: var(--dh-green);
}

/* Headings use Poppins */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--dh-font-heading);
	font-weight: 600;
	color: var(--dh-text-heading);
	line-height: var(--dh-leading-tight);
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--dh-green);
	outline-offset: 3px;
	border-radius: var(--dh-radius-sm);
}

/* Images */
img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Screen reader text */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--dh-white);
	clip: auto !important;
	clip-path: none;
	color: var(--dh-text);
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}
