/*
Theme Name: IC Analytica
Theme URI: https://icanalytica.com
Author: IC Analytica, LLC
Description: Custom block theme for icanalytica.com — a semiconductor IP startup. Design ported from the internal ica-landing draft: dark blueprint surface, manim palette, italic serif display, animated canvas vignettes.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.1
Version: 0.2.9
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: icanalytica
*/

/* ---------- global surface ---------- */
html { scroll-behavior: smooth; }
body {
	background-image:
		linear-gradient(var(--wp--preset--color--grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--wp--preset--color--grid) 1px, transparent 1px);
	background-size: 100px 100px;
	background-attachment: fixed;
}
::selection { background: rgba(88, 196, 221, .35); }

/* pin the footer to the viewport bottom on short pages */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100svh;
}
.wp-site-blocks > main { flex-grow: 1; }

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--wp--preset--color--blue);
	outline-offset: 3px;
	border-radius: 2px;
}

/* ---------- fixed header ---------- */
.ica-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 14px 28px;
	background: linear-gradient(rgba(22, 27, 44, .92), rgba(22, 27, 44, .55) 70%, transparent);
}
body.admin-bar .ica-header { top: var(--wp-admin--admin-bar--height, 32px); }

.ica-wordmark {
	font: italic 600 21px Helvetica, Arial, sans-serif;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	letter-spacing: .02em;
	display: inline-flex;
	align-items: center;
}
.ica-wordmark img.mark {
	height: 42px;
	width: auto;
	display: block;
	margin-right: 13px;
	filter: drop-shadow(0 0 6px rgba(236, 230, 214, .18));
}
.ica-header nav { margin-left: auto; display: flex; gap: 22px; }
.ica-header nav a {
	color: var(--wp--preset--color--ink-2);
	text-decoration: none;
	font-size: 14px;
	letter-spacing: .06em;
}
.ica-header nav a:hover,
.ica-header nav a:focus-visible { color: var(--wp--preset--color--ink); }

/* ---------- hero ---------- */
.ica-hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	overflow: hidden;
}
.ica-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ica-hero .hero-copy {
	position: relative;
	max-width: 1160px;
	margin: 0 auto;
	padding: 120px 28px 80px;
	width: 100%;
}
.eyebrow {
	font-size: 13px;
	letter-spacing: .22em;
	color: var(--wp--preset--color--ink-3);
	text-transform: uppercase;
	margin: 0 0 18px;
}
.ica-hero h1 {
	margin: 0 0 12px;
	max-width: 11ch;
	text-shadow: 0 0 26px rgba(88, 196, 221, .25);
}
.ica-hero h1 em { font-style: italic; color: var(--wp--preset--color--blue); }
.hero-sub {
	max-width: 34em;
	color: #bcc4de; /* lighter than ink-2: stays legible over the wafer-map canvas */
	font-size: 19px;
	margin: 18px 0 36px;
}
.hero-sub b, .hero-sub strong { color: var(--wp--preset--color--ink); font-weight: 600; }
.scrollhint {
	position: absolute;
	bottom: 26px;
	left: 50%;
	transform: translateX(-50%);
	color: var(--wp--preset--color--ink-3);
	font-size: 12px;
	letter-spacing: .14em;
}

/* ---------- CTAs ---------- */
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.cta-row .wp-block-button__link,
a.cta {
	display: inline-block;
	padding: 12px 26px;
	border-radius: 10px;
	text-decoration: none;
	font-size: 16px;
	border: 2px solid var(--wp--preset--color--blue);
	color: var(--wp--preset--color--blue);
	background: transparent;
	font-weight: 400;
	transition: box-shadow .15s, color .15s;
}
.cta-row .wp-block-button__link:hover,
a.cta:hover { box-shadow: 0 0 18px rgba(88, 196, 221, .45); }
.cta-row .is-style-fill .wp-block-button__link,
a.cta.solid {
	background: var(--wp--preset--color--blue);
	color: #0c1020;
	font-weight: 600;
}
.cta-row .is-style-fill .wp-block-button__link:hover,
a.cta.solid:hover { box-shadow: 0 0 22px rgba(88, 196, 221, .65); }

/* ---------- thesis ---------- */
.ica-thesis {
	max-width: 760px;
	margin: 0 auto;
	padding: 130px 28px 110px;
	text-align: center;
}
.ica-thesis .thesis-line {
	font: italic 400 clamp(24px, 3.2vw, 34px)/1.5 Georgia, 'Times New Roman', serif;
	margin: 0;
}
.ica-thesis .thesis-line b,
.ica-thesis .thesis-line strong {
	color: var(--wp--preset--color--yellow);
	font-weight: 400;
}
.ica-thesis .after {
	font-family: var(--wp--preset--font-family--body);
	font-size: 15px;
	line-height: 1.7;
	color: var(--wp--preset--color--ink-2);
	margin-top: 26px;
}

/* ---------- vignettes ---------- */
.ica-vigs {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 28px 130px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
}
.vig {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--grid);
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.vig canvas { width: 100%; height: 220px; display: block; }
.vig .body { padding: 20px 24px 26px; }
.vig h2 {
	font: italic 400 24px Georgia, 'Times New Roman', serif;
	margin: 0 0 8px;
}
.vig p { margin: 0; color: var(--wp--preset--color--ink-2); font-size: 15px; }
.vig[data-c="blue"] h2 { color: var(--wp--preset--color--blue); }
.vig[data-c="yel"] h2 { color: var(--wp--preset--color--yellow); }
.vig[data-c="grn"] h2 { color: var(--wp--preset--color--green); }

/* ---------- closing ---------- */
.ica-closing {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 28px 120px;
	text-align: center;
}
.ica-closing h2 { margin: 0 0 14px; }
.ica-closing p { color: var(--wp--preset--color--ink-2); margin: 0 0 34px; }
.ica-closing .cta-row { justify-content: center; }

/* ---------- footer ---------- */
.ica-footer {
	border-top: 1px solid var(--wp--preset--color--grid);
	padding: 34px 28px 44px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	align-items: baseline;
	max-width: 1160px;
	margin: 0 auto;
}
.ica-footer .fm { font: italic 600 17px Helvetica, Arial, sans-serif; }
.ica-footer p { margin: 0; color: var(--wp--preset--color--ink-3); font-size: 13px; }
.ica-footer nav { margin-left: auto; display: flex; gap: 18px; }
.ica-footer nav a {
	font-size: 13px;
	color: var(--wp--preset--color--ink-2);
	text-decoration: none;
	letter-spacing: .06em;
}
.ica-footer nav a:hover { color: var(--wp--preset--color--ink); }

/* ---------- interior pages ---------- */
.ica-page {
	max-width: 760px;
	margin: 0 auto;
	padding: 150px 28px 110px;
}
.ica-page .wp-block-post-title { margin: 0 0 30px; }
.ica-page p { color: var(--wp--preset--color--ink-2); }
.ica-page p strong, .ica-page p b { color: var(--wp--preset--color--ink); }
.ica-page h2, .ica-page h3 { margin-top: 1.6em; }

/* ---------- team page ---------- */
/* break the grid out of .ica-page's 760px column to full viewport width */
.ica-page .team-grid {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	padding: 0 28px;
	box-sizing: border-box;
}
.team-grid .wp-block-columns.alignwide {
	max-width: 1480px;
	margin-left: auto;
	margin-right: auto;
}
.team-grid .wp-block-list {
	padding-left: 1.1em;
	color: var(--wp--preset--color--ink-2);
}
.team-grid .wp-block-list li { margin-bottom: 4px; }
.team-grid .wp-block-image img { width: 50%; height: auto; }
/* mid widths: 4-up gets cramped, wrap to 2×2 instead */
@media (min-width: 782px) and (max-width: 1180px) {
	.team-grid .wp-block-columns.alignwide { flex-wrap: wrap !important; }
	.team-grid .wp-block-column { flex-basis: calc(50% - 12px) !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
	.ica-vigs { grid-template-columns: 1fr; max-width: 560px; }
	.ica-header nav { gap: 14px; }
}
@media (max-width: 700px) {
	.scrollhint { display: none; }
}
