/* ------------------------------
   CROW — Rediscovering Our World
   Main Website Styles
------------------------------ */

/* ---------- Base ---------- */

:root {
	--black: #050505;
	--black-soft: #0c0c0d;
	--graphite: #151518;
	--silver: #d8d8da;
	--silver-dark: #a2a2a9;
	--white: #f5f5f5;
	--border: rgba(255, 255, 255, 0.11);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	background: radial-gradient(ellipse at top, #111113 0%, #080809 38%, #050505 75%);
	color: var(--white);
	font-family: Arial, Helvetica, sans-serif;
	line-height: 1.75;
}

a:focus-visible {
	outline: 2px solid var(--silver);
	outline-offset: 5px;
}

#main-content,
section[id],
main a {
	scroll-margin-top: 104px;
}

main,
footer {
	overflow-wrap: anywhere;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ---------- Skip Navigation ---------- */

.skip-link {
	position: fixed;
	top: 1rem;
	left: 1rem;
	z-index: 1001;
	width: 1px;
	height: 1px;
	max-width: calc(100% - 2rem);
	padding: 0;
	border: 0;
	overflow: hidden;
	clip-path: inset(50%);
	border-radius: 3px;
	background: var(--black);
	color: var(--silver);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.skip-link:focus,
.skip-link:focus-visible {
	width: auto;
	height: auto;
	padding: 12px 18px;
	border: 1px solid var(--silver);
	overflow: visible;
	clip-path: none;
	outline: 2px solid var(--silver);
	outline-offset: 5px;
}

#main-content:focus-visible {
	outline: 2px solid var(--silver);
	outline-offset: -2px;
}

/* ---------- Navigation ---------- */

header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(5, 5, 5, 0.94);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--border);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

nav {
	width: 100%;
	margin: 0;
	padding: 0 clamp(28px, 7vw, 100px);
	min-height: 82px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.nav-logo {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}

nav img {
	width: 58px;
	height: 58px;
	object-fit: contain;
	flex-shrink: 0;
	mix-blend-mode: screen;
}

nav div {
	display: flex;
	min-width: 0;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0 clamp(24px, 2.4vw, 34px);
}

nav a {
	color: var(--silver);
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	scroll-margin-block: 12px;
	padding: 6px 2px;
	border-bottom: 1px solid transparent;
	text-decoration: none;
	font-size: 0.875rem;
	letter-spacing: 0.055em;
	transition: color 0.2s ease, border-color 0.2s ease;
}

nav a:hover,
nav a:focus-visible {
	color: var(--white);
	border-bottom-color: var(--silver-dark);
}

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

.hero {
	min-height: calc(100vh - 82px);
	min-height: calc(100svh - 82px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 56px 20px 88px;
	background: radial-gradient(ellipse min(340px, 48vw) min(320px, 46vw) at 50% 38%, rgba(216, 216, 218, 0.02), transparent 100%) var(--black);
}

.hero-logo {
	display: block;
	width: min(540px, 82vw);
	max-width: 100%;
	height: auto;
	mix-blend-mode: screen;
}

.hero-description {
	max-width: 660px;
	margin: 28px 0 0;
	color: #c2c2c8;
	font-size: clamp(1rem, 1.6vw, 1.125rem);
	line-height: 1.8;
}

/* Shared silver controls; the email keeps its natural casing. */
.hero-button,
.contact-button {
	display: inline-block;
	max-width: 100%;
	padding: 14px 26px;
	border: 1px solid rgba(216, 216, 218, 0.5);
	border-radius: 14px 14px 2px 14px; /* like the chat: three rounded corners, one sharp */
	color: var(--silver);
	text-decoration: none;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.hero-button:visited,
.contact-button:visited {
	color: var(--silver);
}

.hero-button {
	margin-top: 30px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.8rem;
}

.hero-button:hover,
.hero-button:focus-visible,
.contact-button:hover,
.contact-button:focus-visible {
	background-color: rgba(255, 255, 255, 0.08);
	border-color: var(--silver);
	color: var(--white);
	box-shadow: 0 0 22px rgba(255, 255, 255, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ---------- Main Sections ---------- */

/* The opaque hero retains its own approved black background. */
main {
	background: linear-gradient(180deg, var(--black) 0%, #080809 42%, var(--black) 72%, #080809 100%);
}

main section:not(.hero) {
	position: relative;
	width: min(1100px, 88%);
	margin: 0 auto;
	padding: clamp(80px, 8vw, 116px) 0;
	border-top: 1px solid transparent;
}

/* Decorative hairlines stay inside each section and never intercept input. */
main section:not(.hero)::before,
footer::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 1px;
	background: linear-gradient(90deg, rgba(216, 216, 218, 0.2), rgba(216, 216, 218, 0.06) 60%, transparent);
	pointer-events: none;
}

section h2 {
	margin-bottom: 28px;
	color: var(--white);
	font-size: clamp(1.9rem, 4vw, 2.75rem);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

section > p {
	max-width: 680px;
	margin-bottom: 20px;
	color: #bfbfc5;
	font-size: clamp(1rem, 1.4vw, 1.075rem);
}

section > p:last-child {
	margin-bottom: 0;
}

.section-label {
	margin-bottom: 16px;
	color: var(--silver-dark);
	font-size: 0.72rem;
	font-weight: bold;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

/* ---------- Mission ---------- */

#mission .mission-heading {
	text-align: left;
	line-height: 1.16;
	margin-bottom: 36px;
	padding-left: clamp(16px, 2.5vw, 28px);
	border-left: 1px solid rgba(216, 216, 218, 0.32);
}

#mission .mission-heading span {
	display: block;
}

#mission .mission-heading span + span {
	margin-top: 10px;
	font-size: 0.8em;
	font-weight: 400;
	letter-spacing: -0.015em;
	color: var(--silver);
}

#mission .mission-closing {
	font-weight: 600;
	color: var(--silver);
	margin-top: 30px;
}

/* ---------- Principles ---------- */

.principle-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-top: 36px;
}

.principle-grid article {
	position: relative;
	padding: clamp(24px, 3vw, 36px);
	background: linear-gradient(155deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008) 75%);
	border: 1px solid var(--border);
	border-radius: 14px 14px 2px 14px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 8px 20px rgba(0, 0, 0, 0.12);
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.principle-grid article::before {
	content: "";
	position: absolute;
	top: 0;
	left: clamp(24px, 3vw, 36px);
	width: 40px;
	height: 1px;
	background: var(--silver-dark);
	opacity: 0.45;
	pointer-events: none;
}

.principle-grid article:last-child {
	grid-column: 1 / -1;
}

@media (hover: hover) {
	.principle-grid article:hover {
		border-color: rgba(255, 255, 255, 0.22);
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 10px 24px rgba(0, 0, 0, 0.2);
	}
}

.principle-grid h3 {
	margin-bottom: 16px;
	color: #e4e4e6;
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.005em;
}

.principle-grid p {
	max-width: 58ch;
	color: #b5b5bd;
}

/* ---------- Development ---------- */

#development {
	text-align: left;
	background: linear-gradient(90deg, transparent, rgba(216, 216, 218, 0.018) 50%, transparent);
}

#development .section-label {
	width: fit-content;
	padding: 0 18px;
	border-inline: 1px solid rgba(216, 216, 218, 0.25);
}

#development h2 {
	max-width: 22ch;
	margin-left: 0;
	margin-right: auto;
}

#development p {
	max-width: 660px;
	margin-left: 0;
	margin-right: auto;
}

#development .development-preview {
	max-width: 760px;
	margin: 36px 0 32px;
}

#development .development-preview img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--border);
	border-radius: 10px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
}

#development .development-preview figcaption {
	margin-top: 12px;
	color: var(--silver);
	font-size: 0.85rem;
}

#development .development-status {
	width: fit-content;
	margin-top: 36px;
	padding-top: 22px;
	border-top: 1px solid var(--border);
	color: var(--silver);
	font-size: 0.9rem;
}

/* ---------- Contact ---------- */

#contact > p:not(.section-label) {
	max-width: 54ch;
}

.contact-button {
	margin-top: 16px;
	font-size: 1rem;
	letter-spacing: 0.01em;
	overflow-wrap: anywhere;
}

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

footer {
	position: relative;
	padding: 44px 20px 36px;
	text-align: center;
	border-top: 1px solid transparent;
	background: linear-gradient(180deg, #080809, #030303 75%);
	color: var(--silver-dark);
}

footer::before {
	background: linear-gradient(90deg, transparent, rgba(216, 216, 218, 0.14) 50%, transparent);
}

footer img {
	width: 72px;
	height: auto;
	margin-bottom: 12px;
	mix-blend-mode: screen;
}

footer p {
	margin: 6px 0;
	font-size: 0.8rem;
	letter-spacing: 0.025em;
}

footer p:first-of-type {
	color: var(--silver);
	font-size: 0.875rem;
	letter-spacing: 0.04em;
}

/* ---------- Error Pages ---------- */

.error-document {
	width: 100%;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
}

.error-document > .error-page,
.error-document > footer {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

.error-document .error-page {
	min-height: 0;
	flex: 1 0 auto;
	flex-direction: column;
	justify-content: flex-end;
	padding-bottom: 32px;
}

.error-document > footer {
	flex-shrink: 0;
	padding: 20px;
}

.error-page {
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 24px;
	text-align: center;
}

.error-content {
	width: 100%;
	max-width: 36rem;
	margin-inline: auto;
}

.error-content img {
	display: block;
	width: 184px;
	max-width: 100%;
	height: auto;
	margin: 0 auto 20px;
	mix-blend-mode: screen;
}

.error-content h1 {
	margin: 24px 0 12px;
	font-size: clamp(3.5rem, 12vw, 5rem);
	font-weight: 600;
	line-height: 1;
}

.error-content h2 {
	font-size: clamp(1.35rem, 4vw, 1.75rem);
	font-weight: 600;
	line-height: 1.3;
}

.error-description {
	margin: 20px auto 12px;
	max-width: 44ch;
	color: var(--silver-dark);
}

/* ---------- Mobile ---------- */

@media (max-width: 700px) {
	nav {
		width: calc(100% - 32px);
		margin: 0 auto;
		min-height: 70px;
		gap: 16px;
		padding: 8px 0;
	}

	nav img {
		width: 48px;
		height: 48px;
	}

	nav div {
		gap: 0 14px;
	}

	.hero {
		min-height: 0;
		padding: 44px 20px 56px;
	}

	.hero-description {
		margin-top: 24px;
	}

	.principle-grid {
		grid-template-columns: 1fr;
	}

	.principle-grid article:last-child {
		grid-column: auto;
	}

	main section:not(.hero) {
		padding: clamp(56px, 10vw, 72px) 0;
	}
}

@media (max-width: 480px) {
	#main-content,
	section[id],
	main a {
		scroll-margin-top: 128px;
	}

	nav div {
		justify-content: center;
		flex: 1;
		max-width: 280px;
		gap: 4px 12px;
	}

	nav a {
		justify-content: center;
		overflow-wrap: anywhere;
	}

	.contact-button {
		padding: 14px 18px;
	}
}

/* ---------- Reduced Motion ---------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	nav a,
	.hero-button,
	.contact-button,
	.principle-grid article {
		transition: none;
	}
}

/* ---------- What's coming (Nov 10, 2026) ---------- */

.coming-grid article:last-child {
	grid-column: auto;
}

#coming .coming-promise {
	margin-top: 36px;
	padding-left: clamp(16px, 2.5vw, 28px);
	border-left: 1px solid rgba(216, 216, 218, 0.32);
}

#coming .coming-promise strong {
	color: var(--white);
	font-weight: 600;
}

/* ---------- Meet miCROW (Nov 10, 2026) ---------- */

@font-face {
	font-family: 'Audiowide';
	src: url('assets/fonts/Audiowide-Regular.ttf') format('truetype');
	font-display: swap;
}

.crowbot-intro {
	display: flex;
	align-items: center;
	gap: clamp(16px, 3vw, 32px);
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.crowbot-face {
	width: clamp(150px, 26vw, 240px);
	height: auto;
	filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.6));
}

#microw h2 {
	margin-bottom: 0;
}

.crowbot-name {
	/* one shared line (owner, Nov 10, 2026): the bottoms of "Hi, I'm", "mi", the CROW letters and the dots
	   all sit on the same line */
	display: inline-flex;
	align-items: baseline;
	gap: 2px;
	vertical-align: baseline;
}

.crowbot-name img {
	height: 0.86em;
	width: auto;
	position: relative;
	top: 0.06em; /* the CROW picture has a sliver of space under the letters */
}

.crowbot-name span {
	/* drawn exactly like the chat's "bot" (owner, Nov 10, 2026): steel texture, brightened, a dark line under it,
	   the same size next to the CROW letters as in the chat (16px letters beside 15px CROW) */
	font-family: 'Audiowide', var(--font, sans-serif);
	font-weight: 400;
	font-size: 0.917em;
	line-height: 1;
	letter-spacing: 0.02em;
	background-image: url('assets/steel-texture.webp');
	background-size: auto 100%;
	background-repeat: repeat-x;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: brightness(1.35) drop-shadow(0 1px 0 rgba(0, 0, 0, 0.95));
}

/* "Hi, I'm miCROW..." stays on one line */
#microw h2 {
	white-space: nowrap;
	margin-bottom: 14px;
	font-size: clamp(1.5rem, 6.4vw, 2.6rem);
}

.section-label .mi-lower,
.follow-label .mi-lower {
	text-transform: none;
	letter-spacing: 0.06em;
}

#microw .microw-penny {
	display: block;
	width: min(100%, 560px);
	height: auto;
	margin-top: 32px;
}

/* "Hi, I'm" in copper, like PENNY (owner, Nov 10, 2026) */
#microw .copper-words {
	background: url('assets/copper-texture.png') center / cover, linear-gradient(180deg, #f0b98f, #c9814f 45%, #7a3e1e);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: brightness(1.1) drop-shadow(0 1px 0 rgba(0, 0, 0, 0.9));
}

/* ---------- Follow miCROW (Nov 10, 2026) ---------- */
.follow-label {
	margin-top: 36px;
	margin-bottom: 12px;
	color: var(--silver);
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.follow-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.follow-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
