/*
Theme Name: Sandra Budimir — Stranica u izradi
Description: Minimalna privremena stranica na hrvatskom jeziku za odvjetnicu Sandru Budimir.
Author: Trelvior
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sandra-budimir-under-construction
*/

/* Settings: local fonts and a restrained version of the existing red accent. */
:root {
	--sbuc-color-paper: #f7f6f2;
	--sbuc-color-ink: #252826;
	--sbuc-color-muted: #616560;
	--sbuc-color-accent: #a83d35;
	--sbuc-color-line: #d9dcd4;
	--sbuc-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	--sbuc-font-heading: Georgia, "Times New Roman", serif;
	--sbuc-content-width: 68rem;
	--sbuc-page-gutter: clamp(1.25rem, 5vw, 5rem);
}

/* Base: allow natural scrolling when the screen is short or text is enlarged. */
html {
	box-sizing: border-box;
	background: var(--sbuc-color-paper);
	color-scheme: light;
}

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

body.sbuc-page {
	margin: 0;
	background: var(--sbuc-color-paper);
	color: var(--sbuc-color-ink);
	font-family: var(--sbuc-font-body);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.sbuc-shell :where(p, h1, dl, dd) {
	margin: 0;
}

.sbuc-shell a {
	color: var(--sbuc-color-ink);
	text-decoration-color: var(--sbuc-color-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.3em;
}

.sbuc-shell a:hover {
	color: var(--sbuc-color-accent);
	text-decoration-thickness: 2px;
}

.sbuc-page a:focus-visible {
	outline: 2px solid var(--sbuc-color-accent);
	outline-offset: 5px;
}

/* Layout: a quiet masthead, one main message and a small footer. */
.sbuc-shell {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: calc(var(--sbuc-content-width) + (2 * var(--sbuc-page-gutter)));
	min-height: 100vh;
	min-height: 100svh;
	margin-inline: auto;
	padding-inline: var(--sbuc-page-gutter);
}

.admin-bar .sbuc-shell {
	min-height: calc(100vh - var(--wp-admin--admin-bar--height, 32px));
	min-height: calc(100svh - var(--wp-admin--admin-bar--height, 32px));
}

.sbuc-header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 2rem;
	padding-block: clamp(1.75rem, 4vw, 3rem);
	border-bottom: 1px solid var(--sbuc-color-line);
}

.sbuc-main {
	display: flex;
	flex: 1 0 auto;
	align-items: center;
	justify-content: center;
	padding-block: clamp(4rem, 10vh, 7rem);
}

.sbuc-notice {
	width: 100%;
	max-width: 48rem;
	text-align: center;
}

.sbuc-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 2rem;
	padding-block: 1.5rem 1.75rem;
	border-top: 1px solid var(--sbuc-color-line);
	color: var(--sbuc-color-muted);
	font-size: 0.875rem;
}

/* Components. */
.sbuc-name {
	font-family: var(--sbuc-font-heading);
	font-size: clamp(1.5rem, 1.1rem + 1vw, 1.875rem);
	font-weight: 400;
	line-height: 1.25;
}

.sbuc-role {
	color: var(--sbuc-color-muted);
	font-size: 0.875rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.sbuc-accent {
	display: block;
	width: 2.75rem;
	height: 2px;
	margin: 0 auto 2rem;
	background: var(--sbuc-color-accent);
}

.sbuc-heading {
	max-width: 12ch;
	margin-inline: auto;
	font-family: var(--sbuc-font-heading);
	font-size: clamp(2.75rem, 1.65rem + 4.5vw, 5.75rem);
	font-weight: 400;
	letter-spacing: -0.035em;
	line-height: 1.08;
	text-wrap: balance;
	overflow-wrap: break-word;
}

.sbuc-message {
	max-width: 36rem;
	margin: 1.75rem auto 0;
	color: var(--sbuc-color-muted);
	font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
	line-height: 1.75;
	text-wrap: pretty;
}

.sbuc-contact {
	margin-top: 2.75rem;
	font-style: normal;
}

.sbuc-contact-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem 3rem;
}

.sbuc-contact-item {
	min-width: 0;
	max-width: 100%;
}

.sbuc-contact-label {
	margin-bottom: 0.125rem;
	color: var(--sbuc-color-muted);
	font-size: 0.875rem;
}

.sbuc-contact-value {
	font-size: 1rem;
	line-height: 1.5;
}

.sbuc-contact-value a {
	display: inline-flex;
	max-width: 100%;
	min-height: 2.75rem;
	align-items: center;
	padding-block: 0.375rem;
	overflow-wrap: anywhere;
}

/* Utility: keyboard access without a permanently visible extra navigation item. */
.sbuc-skip-link {
	position: absolute;
	top: -10rem;
	left: 1.25rem;
	z-index: 100001;
	padding: 0.75rem 1rem;
	background: var(--sbuc-color-ink);
	color: var(--sbuc-color-paper);
	font-size: 1rem;
	text-decoration: underline;
}

.sbuc-skip-link:focus {
	top: 1rem;
}

.admin-bar .sbuc-skip-link:focus {
	top: calc(var(--wp-admin--admin-bar--height, 32px) + 1rem);
}

@media (max-width: 40rem) {
	.sbuc-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.375rem;
	}

	.sbuc-contact-list {
		flex-direction: column;
		gap: 1rem;
	}

	.sbuc-footer {
		align-items: center;
		flex-direction: column;
		text-align: center;
	}
}
