/*
Theme Name: Stormforz
Theme URI: https://stormforz.com
Author: Stormforz Digital LLP
Description: Single-purpose block theme for stormforz.com. Dark, quiet, no third-party dependencies. Fonts are self-hosted.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
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: stormforz
*/

:root {
	--sfz-bg: #07090C;
	--sfz-bg-alt: #0A0D11;
	--sfz-text: #E9EDF1;
	--sfz-soft: #B4BCC8;
	--sfz-muted: #8A94A3;
	--sfz-line: #161B22;
	--sfz-line-2: #232A34;
	--sfz-line-3: #343C48;
	--sfz-accent: #A9B8FF;
	--sfz-serif: "Instrument Serif", Georgia, serif;
	--sfz-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--sfz-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--sfz-bg);
	color: var(--sfz-text);
	font-family: var(--sfz-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
.wp-site-blocks > * { margin-block-start: 0; }
[class*="sfz-"] { margin-block-start: 0; margin-block-end: 0; box-sizing: border-box; }
a { color: var(--sfz-text); text-decoration: none; }
a:hover, a:focus-visible { color: var(--sfz-accent); }
:focus-visible { outline: 2px solid var(--sfz-accent); outline-offset: 3px; }
[id] { scroll-margin-top: 24px; }

/* ---------- shared ---------- */
.sfz-wrap { max-width: 1240px; margin-inline: auto; padding-inline: 40px; }
.sfz-section { border-bottom: 1px solid var(--sfz-line); }
.sfz-section--alt { background: var(--sfz-bg-alt); }
.sfz-pad { padding-block: 120px; }
.sfz-stack { display: flex; flex-direction: column; }
.sfz-label {
	font-family: var(--sfz-mono); font-size: 12px; letter-spacing: 0.18em;
	text-transform: uppercase; color: var(--sfz-muted); line-height: 1.6;
}
.sfz-label--accent { color: var(--sfz-accent); }
.sfz-h2 {
	font-family: var(--sfz-serif); font-weight: 400; font-size: clamp(40px, 5vw, 68px);
	line-height: 1.02; letter-spacing: -0.015em; text-wrap: balance;
}
.sfz-h2 em, .sfz-display em { font-style: italic; color: var(--sfz-accent); }
.sfz-muted { color: var(--sfz-muted); text-wrap: pretty; }
.sfz-soft { color: var(--sfz-soft); text-wrap: pretty; }
.sfz-redact { display: block; height: 14px; background: var(--sfz-line-2); }

.sfz-cta a, .sfz-form button {
	display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 28px;
	background: var(--sfz-text); color: var(--sfz-bg); border: 0; border-radius: 0;
	font-family: var(--sfz-sans); font-weight: 600; font-size: 15px; white-space: nowrap; cursor: pointer;
	transition: background-color .2s ease;
}
.sfz-cta a::after, .sfz-form button::after {
	content: ""; width: 16px; height: 16px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 3.5 13.5 8 9 12.5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 3.5 13.5 8 9 12.5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sfz-cta a:hover, .sfz-cta a:focus-visible, .sfz-form button:hover, .sfz-form button:focus-visible { background: var(--sfz-accent); color: var(--sfz-bg); }
.sfz-textlink a {
	display: inline-flex; align-items: center; min-height: 44px; font-size: 15px;
	color: var(--sfz-soft); border-bottom: 1px solid var(--sfz-line-3); white-space: nowrap;
}

/* ---------- header ---------- */
.sfz-header { border-bottom: 1px solid var(--sfz-line); }
.sfz-header__in {
	padding-block: 24px; display: flex; flex-wrap: wrap; gap: 20px 40px;
	align-items: center; justify-content: space-between;
}
.sfz-logo { display: flex; align-items: center; min-height: 44px; }
.sfz-logo img { display: block; height: 26px; width: auto; }
.sfz-nav { display: flex; flex-wrap: wrap; gap: 8px 36px; align-items: center; font-size: 14px; }
.sfz-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--sfz-soft); white-space: nowrap; }
.sfz-nav a:hover, .sfz-nav a:focus-visible { color: var(--sfz-accent); }
.sfz-nav a.sfz-nav__cta { padding: 0 20px; border: 1px solid var(--sfz-line-3); color: var(--sfz-text); font-weight: 500; transition: border-color .2s ease; }
.sfz-nav a.sfz-nav__cta:hover, .sfz-nav a.sfz-nav__cta:focus-visible { border-color: var(--sfz-accent); color: var(--sfz-accent); }

/* ---------- hero ---------- */
.sfz-hero__in {
	padding-block: 88px 104px; min-height: 760px; display: flex; flex-wrap: wrap;
	gap: 56px 40px; align-items: center;
}
.sfz-hero__copy { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
.sfz-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.sfz-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sfz-accent); animation: sfz-pulse 3.2s ease-in-out infinite; }
.sfz-display {
	font-family: var(--sfz-serif); font-weight: 400; font-size: clamp(52px, 7.4vw, 108px);
	line-height: 0.98; letter-spacing: -0.02em; text-wrap: balance;
}
.sfz-lede { max-width: 520px; font-size: 19px; line-height: 1.6; color: var(--sfz-soft); text-wrap: pretty; }
.sfz-hero__actions { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; padding-top: 8px; }
.sfz-hero__art { flex: 1 1 400px; min-width: 0; max-width: 560px; margin-inline: auto; position: relative; color: var(--sfz-accent); }
.sfz-hero__art::before {
	content: ""; position: absolute; inset: 8%; border-radius: 50%;
	background: radial-gradient(closest-side, currentColor, transparent); opacity: 0.09;
}
.sfz-hero__art svg { display: block; width: 100%; height: auto; position: relative; }
.sfz-hero__art text { font-family: var(--sfz-mono); font-size: 11px; letter-spacing: 0.12em; fill: var(--sfz-muted); }
.sfz-spin { transform-origin: 300px 300px; animation: sfz-drift 160s linear infinite; }
.sfz-spin--back { animation: sfz-drift-back 90s linear infinite; }

@keyframes sfz-drift { to { transform: rotate(360deg); } }
@keyframes sfz-drift-back { to { transform: rotate(-360deg); } }
@keyframes sfz-pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ---------- doctrine ---------- */
.sfz-doctrine { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 0 48px; overflow: hidden; }
.sfz-doctrine__item { padding-block: 64px; display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--sfz-line); margin-top: -1px; }
.sfz-h3 { font-family: var(--sfz-serif); font-weight: 400; font-size: 34px; line-height: 1.1; }

/* ---------- capabilities ---------- */
.sfz-gap-64 { gap: 64px; }
.sfz-gap-24 { gap: 24px; }
.sfz-gap-20 { gap: 20px; }
.sfz-head { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; justify-content: space-between; }
.sfz-head__title { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.sfz-head__aside { flex: 0 1 360px; color: var(--sfz-muted); text-wrap: pretty; }
.sfz-rows { display: flex; flex-direction: column; border-bottom: 1px solid var(--sfz-line-2); }
.sfz-row { display: flex; flex-wrap: wrap; gap: 8px 40px; align-items: baseline; padding-block: 30px; border-top: 1px solid var(--sfz-line-2); }
.sfz-row--center { align-items: center; }
.sfz-row__num { flex: 0 0 64px; font-family: var(--sfz-mono); font-size: 13px; color: var(--sfz-muted); }
.sfz-row__title { flex: 1 1 300px; min-width: 0; font-family: var(--sfz-serif); font-weight: 400; font-size: 34px; line-height: 1.15; }
.sfz-row__title .sfz-redact { width: 240px; max-width: 100%; height: 22px; }
.sfz-row__desc { flex: 1.3 1 340px; min-width: 0; color: var(--sfz-soft); text-wrap: pretty; }
.sfz-row__desc--mono { font-family: var(--sfz-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--sfz-muted); text-transform: uppercase; }

/* ---------- model ---------- */
.sfz-narrow { max-width: 760px; }
.sfz-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 40px 32px; }
.sfz-step { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 1px solid var(--sfz-line-3); }
.sfz-step--first { border-top-color: var(--sfz-accent); }
.sfz-step__title { font-family: var(--sfz-serif); font-weight: 400; font-size: 40px; line-height: 1; }
.sfz-step--last .sfz-step__title { font-style: italic; color: var(--sfz-accent); }

/* ---------- registry / access (two columns) ---------- */
.sfz-split { display: flex; flex-wrap: wrap; gap: 56px 80px; align-items: flex-start; }
.sfz-split__a { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.sfz-split__b { flex: 1 1 480px; min-width: 0; }
.sfz-split__a p { max-width: 440px; }
.sfz-reg { font-family: var(--sfz-mono); font-size: 13px; letter-spacing: 0.06em; border-bottom: 1px solid var(--sfz-line-2); }
.sfz-reg__row { display: flex; gap: 24px; align-items: center; padding-block: 22px; border-top: 1px solid var(--sfz-line-2); }
.sfz-reg__row--head { padding-block: 14px; border-top: 0; color: var(--sfz-muted); font-size: 11px; letter-spacing: 0.18em; }
.sfz-reg__ref { flex: 0 0 72px; color: var(--sfz-muted); }
.sfz-reg__name { flex: 0 0 96px; }
.sfz-reg__profile { flex: 1 1 0; min-width: 0; color: var(--sfz-soft); }
.sfz-reg__status { flex: 0 0 72px; text-align: right; color: var(--sfz-soft); }
.sfz-reg__row--head span { color: var(--sfz-muted); }

.sfz-display--access { font-size: clamp(44px, 5.6vw, 80px); line-height: 1; letter-spacing: -0.015em; }
.sfz-contact { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; font-family: var(--sfz-mono); font-size: 13px; letter-spacing: 0.06em; color: var(--sfz-muted); }
.sfz-contact a { display: inline-flex; align-items: center; min-height: 44px; }

.sfz-form { display: flex; flex-direction: column; gap: 28px; margin: 0; }
.sfz-form__two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 28px 32px; }
.sfz-field { display: flex; flex-direction: column; gap: 6px; }
.sfz-field label { font-family: var(--sfz-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--sfz-muted); text-transform: uppercase; }
.sfz-field input, .sfz-field textarea {
	width: 100%; min-height: 48px; padding: 0; background: transparent; border: 0;
	border-bottom: 1px solid var(--sfz-line-3); border-radius: 0; color: var(--sfz-text);
	font-family: var(--sfz-sans); font-size: 17px; line-height: 1.5;
}
.sfz-field textarea { padding-block: 12px; resize: vertical; }
.sfz-field input::placeholder, .sfz-field textarea::placeholder { color: #7A8493; }
.sfz-field input:focus, .sfz-field textarea:focus { outline: none; border-bottom-color: var(--sfz-text); }
.sfz-form__foot { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.sfz-form__note { font-family: var(--sfz-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--sfz-muted); text-transform: uppercase; }
.sfz-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sfz-notice { padding: 16px 20px; border: 1px solid var(--sfz-line-3); font-size: 15px; color: var(--sfz-text); }
.sfz-notice--ok { border-color: var(--sfz-accent); }

/* ---------- footer ---------- */
.sfz-footer__in {
	padding-block: 40px 48px; display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center;
	justify-content: space-between; font-family: var(--sfz-mono); font-size: 12px; letter-spacing: 0.12em;
	color: var(--sfz-muted); text-transform: uppercase;
}
.sfz-footer__logo img { display: block; height: 20px; width: auto; }
.sfz-footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.sfz-footer__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--sfz-muted); }
.sfz-footer__links a:hover, .sfz-footer__links a:focus-visible { color: var(--sfz-accent); }

/* ---------- inner pages (privacy, terms, 404) ---------- */
.sfz-page { max-width: 760px; margin-inline: auto; padding: 96px 40px 120px; min-height: 60vh; }
.sfz-page .wp-block-post-title, .sfz-page h1 { font-family: var(--sfz-serif); font-weight: 400; font-size: clamp(40px, 5vw, 68px); line-height: 1.02; letter-spacing: -0.015em; margin: 0 0 40px; }
.sfz-page h2, .sfz-page h3 { font-family: var(--sfz-serif); font-weight: 400; line-height: 1.15; margin: 48px 0 16px; }
.sfz-page h2 { font-size: 34px; } .sfz-page h3 { font-size: 26px; }
.sfz-page p, .sfz-page li { color: var(--sfz-soft); }
.sfz-page a { border-bottom: 1px solid var(--sfz-line-3); }

@media (max-width: 600px) {
	.sfz-wrap { padding-inline: 24px; }
	.sfz-pad { padding-block: 80px; }
	.sfz-hero__in { padding-block: 56px 72px; min-height: 0; }
	.sfz-page { padding: 64px 24px 80px; }
	.sfz-reg__row { gap: 14px; }
	.sfz-reg__name { flex-basis: 56px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { animation: none !important; transition: none !important; }
}
