/*
Theme Name: The Norm
Theme URI: https://thenorm.site
Author: The Norm
Description: Hybrid media theme — PHP templates + theme.json tokens. Timeless, laconic, flat.
Version: 0.4.8
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 8.2
Text Domain: thenorm
*/

/* Coming soon front (Figma 69:28) */
body.coming-soon {
	padding-left: 0;
	padding-right: 0;
	min-height: 100vh;
	min-height: 100dvh;
	background: var(--wp--preset--color--white, #fff);
	color: var(--wp--preset--color--black, #000);
}

.coming-soon__main {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	min-height: 100dvh;
	max-width: none;
	margin: 0;
	padding: var(--thenorm-space-4) var(--thenorm-gutter);
}

.coming-soon__copy {
	width: 100%;
	max-width: 680px;
}

.coming-soon__lede {
	margin: 0 0 var(--thenorm-space-5);
	font-family: var(--wp--preset--font-family--arial, Arial, Helvetica, sans-serif);
	font-size: 2.25rem; /* 36px */
	font-weight: 400;
	line-height: 1.32;
	letter-spacing: normal;
	color: var(--wp--preset--color--black, #000);
}

.coming-soon__brand {
	font-weight: 700;
}

.coming-soon__emdash {
	font-weight: 400;
}

.coming-soon__note {
	margin: 0 0 var(--thenorm-space-3);
	font-family: var(--wp--preset--font-family--times-new-roman, "Times New Roman", Times, serif);
	font-size: 1.25rem; /* 20px */
	font-weight: 400;
	line-height: 1.36;
	letter-spacing: 0.1px;
	color: var(--wp--preset--color--black, #000);
}

/* Subscribe form: one row, native controls */
.coming-soon__form {
	margin: 0;
}

.coming-soon__form-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5em;
}

.coming-soon__form input[type="email"],
.coming-soon__form input[type="submit"] {
	all: revert;
}

.coming-soon__form-status {
	margin: 0.5em 0 0;
	font-family: var(--wp--preset--font-family--times-new-roman, "Times New Roman", Times, serif);
	font-size: 1rem;
	line-height: 1.4;
}

/* Invisible honeypot — off-screen, not display:none (bots often skip that) */
.coming-soon__hp {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* A11y */
.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(--wp--preset--color--white, #fff);
	clip: auto !important;
	clip-path: none;
	color: var(--wp--preset--color--black, #000);
	display: block;
	font-family: var(--wp--preset--font-family--arial, Arial, Helvetica, sans-serif);
	font-size: var(--wp--preset--font-size--meta, 0.875rem);
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/*
 * Layout margins: Apple HIG compact width = 16pt side margins.
 * Internal rhythm: 8pt grid (8 / 16 / 24 / 32 / 48). Web: 1pt ≈ 1px → use px.
 */
:root {
	--thenorm-gutter: 16px;
	--thenorm-space-1: 8px;
	--thenorm-space-2: 16px;
	--thenorm-space-3: 24px;
	--thenorm-space-4: 32px;
	--thenorm-space-5: 48px;
}

/* Document shell — layout only, tokens from theme.json */
body {
	margin: 0;
	padding-left: var(--thenorm-gutter);
	padding-right: var(--thenorm-gutter);
}

img,
video {
	max-width: 100%;
	height: auto;
	border-radius: 0;
}

.site-header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--thenorm-space-2);
	padding-top: var(--thenorm-space-2);
	padding-bottom: var(--thenorm-space-2);
	border-bottom: 1px solid var(--wp--preset--color--black, #000);
	max-width: var(--wp--style--global--wide-size, 72rem);
	margin-inline: auto;
}

.site-brand {
	font-family: var(--wp--preset--font-family--arial, Arial, Helvetica, sans-serif);
	font-size: var(--wp--preset--font-size--h-2, 1.5rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--wp--preset--color--black, #000);
	text-decoration: none;
}

.site-brand:visited,
.site-brand:hover,
.site-brand:focus {
	color: var(--wp--preset--color--black, #000);
	text-decoration: none;
}

.site-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--thenorm-space-1) var(--thenorm-space-2);
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: var(--wp--preset--font-family--arial, Arial, Helvetica, sans-serif);
	font-size: var(--wp--preset--font-size--meta, 0.875rem);
}

.site-nav__list a {
	text-decoration: none;
}

.site-nav__list a:hover,
.site-nav__list a:focus {
	text-decoration: underline;
}

.site-main,
.site-footer {
	max-width: var(--wp--style--global--content-size, 42rem);
	margin-inline: auto;
	padding-top: var(--thenorm-space-4);
	padding-bottom: var(--thenorm-space-5);
}

.site-footer {
	border-top: 1px solid var(--wp--preset--color--black, #000);
	max-width: var(--wp--style--global--wide-size, 72rem);
	padding-top: var(--thenorm-space-2);
	padding-bottom: var(--thenorm-space-3);
	font-family: var(--wp--preset--font-family--arial, Arial, Helvetica, sans-serif);
	font-size: var(--wp--preset--font-size--meta, 0.875rem);
	color: var(--wp--preset--color--gray-500, #888);
}

.longread__header {
	margin-bottom: var(--thenorm-space-3);
}

.longread__meta,
.entry-meta,
.archive-header__meta {
	font-family: var(--wp--preset--font-family--arial, Arial, Helvetica, sans-serif);
	font-size: var(--wp--preset--font-size--meta, 0.875rem);
	color: var(--wp--preset--color--gray-500, #888);
	margin: 0 0 var(--thenorm-space-2);
}

.longread__title,
.archive-header__title,
.entry-title {
	font-family: var(--wp--preset--font-family--arial, Arial, Helvetica, sans-serif);
	font-weight: 700;
	margin: 0 0 var(--thenorm-space-2);
}

.entry-title a {
	color: var(--wp--preset--color--black, #000);
	text-decoration: none;
}

.entry-title a:hover,
.entry-title a:focus {
	color: var(--wp--preset--color--link-hover, #c00);
	text-decoration: underline;
}

.entry-summary {
	margin-bottom: var(--thenorm-space-4);
}

.longread__content > *.alignwide,
.entry-content > *.alignwide {
	max-width: var(--wp--style--global--wide-size, 72rem);
}

.longread__featured {
	margin: 0 0 var(--thenorm-space-3);
}

.longread__featured img {
	display: block;
	width: 100%;
	height: auto;
}

/* Buttons outside block markup (forms, etc.) */
.button,
button,
input[type="submit"] {
	appearance: none;
	border-radius: 0;
	border: 1px solid var(--wp--preset--color--black, #000);
	background: var(--wp--preset--color--black, #000);
	color: var(--wp--preset--color--white, #fff);
	font-family: var(--wp--preset--font-family--arial, Arial, Helvetica, sans-serif);
	font-size: var(--wp--preset--font-size--meta, 0.875rem);
	font-weight: 700;
	line-height: 1.2;
	padding: var(--thenorm-space-1) var(--thenorm-space-2);
	box-shadow: none;
	cursor: pointer;
}

.button--secondary,
button.button--secondary {
	background: var(--wp--preset--color--white, #fff);
	color: var(--wp--preset--color--black, #000);
}

.button:disabled,
button:disabled,
input[type="submit"]:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

@media (min-width: 768px) {
	/* HIG regular-width layout margins ≈ 20pt; keep on 8pt grid → 24px */
	:root {
		--thenorm-gutter: 24px;
	}

	body {
		--wp--style--root--padding-left: 24px;
		--wp--style--root--padding-right: 24px;
	}
}
