@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300italic,600italic,300,600,700&display=swap");

/*
	Phase Engineering — interior page styles
	Extends the Dimension identity (HTML5 UP) for long-form, crawlable pages.
*/

:root {
	--bg:            #1b1f22;
	--bg-panel:      #000000;
	--bg-raise:      #14171a;
	--fg:            #ffffff;
	--fg-light:      rgba(255, 255, 255, 0.62);
	--fg-dim:        rgba(255, 255, 255, 0.42);
	--rule:          rgba(255, 255, 255, 0.14);
	--rule-strong:   rgba(255, 255, 255, 0.30);
	/* Signal amber, taken from ANSI Z535 arc flash warning labels */
	--signal:        #ffb000;
	--signal-dim:    rgba(255, 176, 0, 0.14);
	--measure:       42rem;
	--ls:            0.2rem;
	--ls-head:       0.5rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body.page {
	margin: 0;
	background-color: var(--bg);
	background-image: linear-gradient(rgba(19,21,25,0.86), rgba(19,21,25,0.96)), url("../../images/bg.jpg");
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	color: var(--fg-light);
	font-family: "Source Sans Pro", Helvetica, sans-serif;
	font-weight: 300;
	font-size: 16.5pt;
	line-height: 1.65;
	letter-spacing: 0.015rem;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

@media screen and (max-width: 1680px) { body.page { font-size: 14pt; } }
@media screen and (max-width: 980px)  { body.page { font-size: 13pt; background-attachment: scroll; } }
@media screen and (max-width: 736px)  { body.page { font-size: 12.5pt; } }

/* ---------- Skip link ---------- */

.skip {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: var(--signal); color: #000; padding: 0.6rem 1rem;
	font-weight: 600; letter-spacing: var(--ls); text-transform: uppercase; font-size: 0.7em;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(12, 14, 16, 0.94);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--rule);
}

.site-header .bar {
	max-width: 74rem; margin: 0 auto;
	padding: 0.75rem 1.5rem;
	display: flex; align-items: center; gap: 1.25rem;
	flex-wrap: wrap;
}

.site-header .brand { display: flex; align-items: center; margin-right: auto; }
.site-header .brand img { height: 2.4rem; width: auto; display: block; }
.site-header .brand span {
	display: none;
	font-weight: 600; color: var(--fg);
	letter-spacing: var(--ls); text-transform: uppercase; font-size: 0.72em;
}

.site-nav ul {
	list-style: none; margin: 0; padding: 0;
	display: flex; gap: 1.4rem; flex-wrap: wrap;
}
.site-nav a {
	color: var(--fg-light); text-decoration: none;
	font-size: 0.66em; font-weight: 600;
	letter-spacing: var(--ls); text-transform: uppercase;
	padding-bottom: 3px; border-bottom: 1px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.site-nav a:hover, .site-nav a:focus { color: var(--fg); border-bottom-color: var(--signal); }
.site-nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--rule-strong); }

.call-cta {
	display: inline-flex; align-items: center; gap: 0.5rem;
	border: 1px solid var(--signal); color: var(--signal);
	text-decoration: none; white-space: nowrap;
	padding: 0.42rem 0.95rem;
	font-size: 0.68em; font-weight: 600;
	letter-spacing: var(--ls); text-transform: uppercase;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.call-cta:hover, .call-cta:focus { background: var(--signal); color: #000; }

@media screen and (max-width: 736px) {
	.site-header .bar { padding: 0.6rem 1rem; gap: 0.75rem; }
	.site-header .brand img { height: 1.9rem; }
	.site-nav { order: 3; width: 100%; }
	.site-nav ul { gap: 0.9rem; }
	.site-nav a { font-size: 0.6em; letter-spacing: 0.1rem; }
}

/* ---------- Hero ---------- */

.page-hero {
	max-width: 74rem; margin: 0 auto;
	padding: 4rem 1.5rem 2.25rem;
	width: 100%;
}
.eyebrow {
	display: block; margin: 0 0 0.9rem;
	color: var(--signal);
	font-size: 0.66em; font-weight: 600;
	letter-spacing: var(--ls-head); text-transform: uppercase;
}
.page-hero h1 {
	margin: 0 0 1.1rem;
	color: var(--fg); font-weight: 600;
	font-size: 2.1em; line-height: 1.15;
	letter-spacing: 0.12rem; text-transform: uppercase;
	max-width: 20ch;
}
.page-hero .lede {
	margin: 0; max-width: var(--measure);
	font-size: 1.06em; color: var(--fg-light);
}
.page-hero::after {
	content: ""; display: block;
	margin-top: 2.25rem; height: 1px; background: var(--rule);
}

@media screen and (max-width: 736px) {
	.page-hero { padding: 2.5rem 1rem 1.5rem; }
	.page-hero h1 { font-size: 1.55em; letter-spacing: 0.06rem; }
}

/* ---------- Content ---------- */

main.page-body {
	max-width: 74rem; margin: 0 auto; padding: 0 1.5rem 4rem;
	width: 100%; flex: 1;
}
@media screen and (max-width: 736px) { main.page-body { padding: 0 1rem 2.5rem; } }

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.15rem; }
.prose p { margin: 0; }

.prose h2 {
	margin: 3rem 0 0; padding-bottom: 0.6rem;
	border-bottom: 1px solid var(--rule);
	color: var(--fg); font-weight: 600;
	font-size: 1.15em; line-height: 1.3;
	letter-spacing: var(--ls-head); text-transform: uppercase;
}
.prose h3 {
	margin: 2rem 0 0;
	color: var(--fg); font-weight: 600;
	font-size: 0.95em; line-height: 1.35;
	letter-spacing: var(--ls); text-transform: uppercase;
}
.prose ul, .prose ol { margin: 0; padding-left: 1.15rem; }
.prose li + li { margin-top: 0.5rem; }
.prose li::marker { color: var(--signal); }
.prose strong, .prose b { color: var(--fg); font-weight: 600; }
.prose a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--signal); }
.prose a:hover, .prose a:focus { color: var(--signal); }
.prose img { max-width: 100%; height: auto; display: block; border: 1px solid var(--rule); }
.prose figure { margin: 0; }
.prose figcaption {
	margin-top: 0.6rem; color: var(--fg-dim);
	font-size: 0.72em; letter-spacing: 0.08rem; text-transform: uppercase;
}

/* ---------- Signature: code citation callout ---------- */
/* This business runs on citing the standard. Make the citation an artifact. */

.code-ref {
	margin: 1.6rem 0 0;
	border: 1px solid var(--rule);
	border-left: 3px solid var(--signal);
	background: var(--bg-panel);
	padding: 1.1rem 1.25rem;
}
.code-ref .ref-id {
	display: block; margin-bottom: 0.45rem;
	color: var(--signal);
	font-family: "Courier New", monospace;
	font-size: 0.72em; font-weight: 700;
	letter-spacing: 0.14rem; text-transform: uppercase;
}
.code-ref p { margin: 0; font-size: 0.92em; }
.code-ref p + p { margin-top: 0.7rem; }

/* ---------- Cards ---------- */

.card-grid {
	display: grid; gap: 1px;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	background: var(--rule);
	border: 1px solid var(--rule);
	margin-top: 2rem;
}
.card {
	background: var(--bg); padding: 1.5rem;
	display: flex; flex-direction: column;
	transition: background-color 0.2s ease;
}
a.card { text-decoration: none; }
a.card:hover, a.card:focus { background: var(--bg-panel); }
.card h3 {
	margin: 0 0 0.6rem; color: var(--fg); font-weight: 600;
	font-size: 0.82em; letter-spacing: var(--ls); text-transform: uppercase;
}
.card p { margin: 0; font-size: 0.86em; color: var(--fg-light); }
a.card .more {
	margin-top: 1rem; color: var(--signal);
	font-size: 0.7em; font-weight: 600;
	letter-spacing: var(--ls); text-transform: uppercase;
}

/* ---------- CTA band ---------- */

.cta-band {
	margin-top: 3.5rem; padding: 2.25rem 1.5rem;
	border-top: 1px solid var(--rule-strong);
	border-bottom: 1px solid var(--rule-strong);
	background: var(--bg-panel);
	text-align: center;
}
.cta-band h2 {
	margin: 0 0 0.75rem; color: var(--fg); font-weight: 600;
	font-size: 1.05em; letter-spacing: var(--ls-head); text-transform: uppercase;
}
.cta-band p { margin: 0 auto 1.4rem; max-width: 36rem; font-size: 0.92em; }
.cta-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.btn {
	display: inline-block; text-decoration: none;
	padding: 0.62rem 1.4rem; border: 1px solid var(--rule-strong);
	color: var(--fg); font-size: 0.7em; font-weight: 600;
	letter-spacing: var(--ls); text-transform: uppercase;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover, .btn:focus { border-color: var(--fg); background: rgba(255,255,255,0.06); }
.btn.primary { border-color: var(--signal); background: var(--signal); color: #000; }
.btn.primary:hover, .btn.primary:focus { background: transparent; color: var(--signal); }

/* ---------- Breadcrumb ---------- */

.crumb {
	max-width: 74rem; margin: 0 auto; padding: 1rem 1.5rem 0; width: 100%;
	font-size: 0.66em; letter-spacing: 0.1rem; text-transform: uppercase;
	color: var(--fg-dim);
}
.crumb a { color: var(--fg-dim); text-decoration: none; border-bottom: 1px solid transparent; }
.crumb a:hover, .crumb a:focus { color: var(--fg); border-bottom-color: var(--rule-strong); }
@media screen and (max-width: 736px) { .crumb { padding: 0.75rem 1rem 0; } }

/* ---------- Footer ---------- */

.site-footer {
	border-top: 1px solid var(--rule);
	background: rgba(10, 12, 14, 0.7);
	padding: 2.5rem 1.5rem 2rem;
	font-size: 0.82em;
}
.site-footer .cols {
	max-width: 74rem; margin: 0 auto;
	display: grid; gap: 2rem;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.site-footer h2 {
	margin: 0 0 0.8rem; color: var(--fg); font-weight: 600;
	font-size: 0.78em; letter-spacing: var(--ls); text-transform: uppercase;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 0.4rem; }
.site-footer a { color: var(--fg-light); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { color: var(--fg); }
.site-footer .legal {
	max-width: 74rem; margin: 2rem auto 0; padding-top: 1.25rem;
	border-top: 1px solid var(--rule);
	color: var(--fg-dim); font-size: 0.88em;
	display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* ---------- Focus ---------- */

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
	outline: 2px solid var(--signal);
	outline-offset: 3px;
}

/* ---------- Home hero ---------- */

.home-hero { padding-bottom: 2.75rem; }
.home-hero h1 { max-width: 24ch; }
.home-hero .cta-actions { justify-content: flex-start; margin-top: 1.9rem; }
