/*
Theme Name:   Astra Child (Robinson Arrubla)
Theme URI:    https://robinsonarrubla.com
Description:  Child theme for robinsonarrubla.com. Design direction "Clean Signal": Geist, off-black ink, one emerald accent.
Author:       Robinson Arrubla
Template:     astra
Version:      1.0.0
Text Domain:  astra-child
*/

/* ---------- Fonts (self-hosted, variable weight) ---------- */
@font-face {
	font-family: "Geist";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/Geist-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Geist";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/Geist-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Geist Mono";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/GeistMono-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Geist Mono";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/GeistMono-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
	--ra-bg: #FFFFFF;
	--ra-surface: #F7F7F5;
	--ra-surface-2: #F1F1EE;
	--ra-line: #ECECEA;
	--ra-line-strong: #DCDCD8;
	--ra-ink: #111113;
	--ra-muted: #4A4A52;
	--ra-subtle: #5B5B63;
	--ra-accent: #0F7B4F;
	--ra-accent-tint: #EEF7F2;
	--ra-accent-ink: #0B5A3A;
	--ra-font: "Geist", ui-sans-serif, system-ui, sans-serif;
	--ra-mono: "Geist Mono", ui-monospace, monospace;
	--ra-wrap: 1200px;
	--ra-gutter: 24px;
	--ra-section: clamp(72px, 9vw, 112px);
}

/* ---------- Site-wide (all pages) ---------- */
body,
button,
input,
select,
textarea {
	font-family: var(--ra-font);
}
body {
	color: var(--ra-ink);
	background: var(--ra-bg);
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6,
.entry-content :where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--ra-font);
	color: var(--ra-ink);
	letter-spacing: -0.02em;
}

/* Header: white bar, text wordmark, ink menu */
.ast-primary-header-bar,
.main-header-bar,
.ast-mobile-header-wrap .ast-primary-header-bar {
	background: var(--ra-bg) !important;
	border-bottom: 1px solid var(--ra-line);
}
.site-title,
.site-title a {
	font-family: var(--ra-font);
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--ra-ink) !important;
	text-decoration: none;
	white-space: nowrap;
}
.site-title a::after {
	content: ".";
	color: var(--ra-accent);
}
.main-header-menu .menu-link,
.ast-builder-menu .menu-item > .menu-link {
	font-family: var(--ra-font);
	font-size: 15px;
	font-weight: 500;
	color: var(--ra-ink) !important;
}
.main-header-menu .menu-link:hover {
	color: var(--ra-accent) !important;
}
.ast-header-button-1 .ast-custom-button,
.ast-header-button-1 .menu-link {
	font-family: var(--ra-font);
	font-size: 15px;
	font-weight: 500;
	background: var(--ra-ink) !important;
	color: #FFFFFF !important;
	border: 0 !important;
	border-radius: 999px !important;
	padding: 12px 20px !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}
.ast-header-button-1 .ast-custom-button:hover {
	background: var(--ra-accent) !important;
}
.ast-mobile-menu-trigger-minimal,
.menu-toggle {
	color: var(--ra-ink) !important;
	background: transparent !important;
}
.ast-mobile-menu-trigger-minimal .ast-mobile-svg,
.menu-toggle .ast-mobile-svg {
	fill: var(--ra-ink) !important;
}
#ast-mobile-popup-wrapper .ast-mobile-popup-drawer .ast-mobile-popup-inner,
.ast-mobile-header-content {
	background: var(--ra-bg) !important;
}

/* Header and footer share the page's content width */
.site-header .ast-container,
.site-footer .ast-container {
	max-width: var(--ra-wrap);
	padding-left: var(--ra-gutter);
	padding-right: var(--ra-gutter);
}

/* Footer: quiet single line */
.site-footer,
.site-below-footer-wrap,
.site-primary-footer-wrap {
	background: var(--ra-bg) !important;
	border-top: 1px solid var(--ra-line);
}
.site-footer,
.ast-footer-copyright,
.ast-footer-copyright p {
	font-family: var(--ra-font);
	font-size: 14px;
	color: var(--ra-subtle) !important;
}
.ast-footer-copyright a {
	color: var(--ra-ink);
}

/* ---------- Home template ---------- */
body.page-template-template-home .site-content > .ast-container {
	max-width: none;
	padding: 0;
	display: block;
}
body.page-template-template-home #content {
	padding: 0;
}

.ra {
	font-family: var(--ra-font);
	color: var(--ra-ink);
	background: var(--ra-bg);
	font-size: 16px;
	line-height: 1.55;
}
.ra :where(h1, h2, h3, p, ul, ol, figure) {
	margin: 0;
	padding: 0;
}
.ra :where(ul, ol) {
	list-style: none;
}
.ra :where(a) {
	color: var(--ra-ink);
}
.ra :where(a:hover) {
	color: var(--ra-accent);
}
.ra :where(strong) {
	font-weight: 700;
}

.ra-wrap {
	max-width: var(--ra-wrap);
	margin: 0 auto;
	padding: 0 var(--ra-gutter);
}
.ra-wrap--narrow {
	max-width: 860px;
}
.ra-section {
	padding: var(--ra-section) 0;
}
.ra-section--tint {
	background: var(--ra-surface);
	border-top: 1px solid var(--ra-line);
	border-bottom: 1px solid var(--ra-line);
}
.ra-accent {
	color: var(--ra-accent);
}

/* Type */
.ra .ra-h1 {
	font-family: var(--ra-font);
	font-size: clamp(42px, 5.6vw, 72px);
	line-height: 1.02;
	letter-spacing: -0.035em;
	font-weight: 500;
	color: var(--ra-ink);
}
.ra .ra-h2 {
	font-family: var(--ra-font);
	font-size: clamp(32px, 4vw, 52px);
	line-height: 1.08;
	letter-spacing: -0.03em;
	font-weight: 500;
	color: var(--ra-ink);
	max-width: 760px;
	margin-bottom: 48px;
}
.ra .ra-h2--xl {
	font-size: clamp(36px, 5vw, 64px);
	line-height: 1.02;
	margin-bottom: 20px;
}
.ra .ra-h3 {
	font-family: var(--ra-font);
	font-size: clamp(22px, 2.2vw, 30px);
	line-height: 1.15;
	letter-spacing: -0.02em;
	font-weight: 600;
	color: var(--ra-ink);
}
.ra-lead {
	font-size: 19px;
	line-height: 1.55;
	color: var(--ra-muted);
	max-width: 520px;
}
.ra-meta {
	font-family: var(--ra-mono);
	font-size: 13px;
	color: var(--ra-subtle);
}
.ra-small {
	font-size: 14px;
	color: var(--ra-subtle);
}

/* Buttons and links */
.ra-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}
.ra .ra-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 14px 26px;
	border-radius: 999px;
	font-family: var(--ra-font);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.ra .ra-btn--primary {
	background: var(--ra-ink);
	color: #FFFFFF;
}
.ra .ra-btn--primary:hover {
	background: var(--ra-accent);
	color: #FFFFFF;
}
.ra .ra-btn--ghost {
	border: 1px solid var(--ra-line-strong);
	color: var(--ra-ink);
}
.ra .ra-btn--ghost:hover {
	border-color: var(--ra-ink);
	color: var(--ra-ink);
}
.ra .ra-btn--block {
	width: 100%;
}
.ra .ra-link {
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid var(--ra-line-strong);
	padding-bottom: 2px;
	align-self: flex-start;
}
.ra .ra-link::after {
	content: " \2192";
}
.ra .ra-link:hover {
	border-color: var(--ra-accent);
}

/* Hero */
.ra-hero {
	padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px);
}
.ra-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: 56px;
	align-items: center;
}
.ra-hero__copy {
	display: flex;
	flex-direction: column;
	gap: 26px;
}
.ra-pill {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 10px;
	border: 1px solid var(--ra-line-strong);
	border-radius: 999px;
	padding: 7px 14px;
	font-family: var(--ra-mono);
	font-size: 13px;
	color: var(--ra-muted);
}
.ra-pill__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ra-accent);
}

/* Project screenshots in a flat browser window */
.ra-browser {
	background: var(--ra-bg);
	border: 1px solid var(--ra-line-strong);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(17, 17, 19, .04), 0 24px 48px -28px rgba(17, 17, 19, .28);
}
.ra-browser__bar {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 38px;
	padding: 0 14px;
	background: var(--ra-surface);
	border-bottom: 1px solid var(--ra-line);
}
.ra-browser__dots {
	display: flex;
	gap: 6px;
	flex: none;
}
.ra-browser__dots i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--ra-line-strong);
}
.ra-browser__url {
	flex: 1;
	max-width: 280px;
	margin: 0 auto;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--ra-bg);
	border: 1px solid var(--ra-line);
	font-family: var(--ra-mono);
	font-size: 12px;
	line-height: 1.3;
	color: var(--ra-subtle);
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ra .ra-screen {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: top;
}

/* Services */
.ra-services {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}
.ra-card {
	background: var(--ra-bg);
	border: 1px solid var(--ra-line);
	border-radius: 20px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.ra-card svg {
	color: var(--ra-accent);
}
.ra .ra-card h3 {
	font-family: var(--ra-font);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--ra-ink);
}
.ra-card p {
	font-size: 15px;
	color: var(--ra-muted);
}

/* Work */
.ra-feature {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 48px;
	align-items: center;
	margin-bottom: 72px;
}
.ra-feature--flip {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
}
.ra-feature--flip .ra-feature__media {
	order: 2;
}
.ra-result {
	align-self: flex-start;
	padding: 12px 16px;
	border-radius: 14px;
	background: var(--ra-accent-tint);
	color: var(--ra-accent-ink);
	font-size: 15px;
}
.ra .ra-result strong {
	color: var(--ra-accent-ink);
}
.ra-feature__copy,
.ra-project {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.ra-feature__copy > p:not(.ra-meta),
.ra-project > p:not(.ra-meta) {
	color: var(--ra-muted);
}
.ra-pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
}
.ra-project .ra-browser {
	margin-bottom: 10px;
}
.ra-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.ra-tags li {
	border: 1px solid var(--ra-line-strong);
	border-radius: 999px;
	padding: 5px 12px;
	font-size: 13px;
}

/* Numbers */
.ra-numbers {
	background: var(--ra-ink);
	color: #FFFFFF;
	padding: clamp(64px, 8vw, 88px) 0;
}
.ra-numbers__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
}
.ra-numbers__grid p {
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: #B8B8BE;
	font-size: 15px;
}
.ra-num {
	font-size: clamp(48px, 6vw, 72px);
	line-height: 1;
	font-weight: 600;
	letter-spacing: -0.04em;
	color: #FFFFFF;
}

/* Process */
.ra-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	border-top: 1px solid var(--ra-ink);
}
.ra-steps li {
	padding: 28px 28px 0 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ra-step__n {
	font-size: 44px;
	line-height: 1;
	font-weight: 500;
	letter-spacing: -0.04em;
	color: var(--ra-accent);
}
.ra .ra-steps h3 {
	font-family: var(--ra-font);
	font-size: 20px;
	font-weight: 600;
	color: var(--ra-ink);
}
.ra-steps p {
	font-size: 15px;
	color: var(--ra-muted);
}

/* FAQ */
.ra-faq details {
	border-top: 1px solid var(--ra-line-strong);
	padding: 22px 0;
}
.ra-faq details:last-child {
	border-bottom: 1px solid var(--ra-line-strong);
}
.ra-faq summary {
	font-size: 19px;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 16px;
}
.ra-faq summary::-webkit-details-marker {
	display: none;
}
.ra-faq summary::after {
	content: "+";
	font-weight: 400;
	color: var(--ra-subtle);
}
.ra-faq details[open] summary::after {
	content: "\2212";
}
.ra-faq details p {
	margin-top: 12px;
	color: var(--ra-muted);
}

/* Contact */
.ra-contact {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 56px;
	align-items: center;
}
.ra-contact__card {
	border: 1px solid var(--ra-line);
	border-radius: 24px;
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	box-shadow: 0 10px 40px rgba(17, 17, 19, .06);
}
.ra-contact__card .ra-small {
	margin-top: 8px;
	text-align: center;
}

/* Focus */
.ra a:focus-visible,
.ra summary:focus-visible {
	outline: 2px solid var(--ra-accent);
	outline-offset: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.ra-services {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.ra-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 32px;
	}
}
@media (max-width: 860px) {
	.ra-hero__grid,
	.ra-feature,
	.ra-feature--flip,
	.ra-pair,
	.ra-contact {
		grid-template-columns: minmax(0, 1fr);
	}
	.ra-hero__grid {
		gap: 40px;
	}
	.ra-feature {
		gap: 28px;
		margin-bottom: 56px;
	}
	.ra-pair {
		gap: 56px;
	}
	.ra-feature--flip .ra-feature__media {
		order: 0;
	}
	.ra-contact {
		gap: 32px;
	}
}
@media (max-width: 600px) {
	.ra-services,
	.ra-steps,
	.ra-numbers__grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.ra-numbers__grid {
		gap: 28px;
	}
	.ra-lead {
		font-size: 17px;
	}
	.ra .ra-h2 {
		margin-bottom: 32px;
	}
	.ra-actions .ra-btn {
		flex: 1 1 100%;
	}
	.ra-contact__card {
		padding: 24px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.ra .ra-btn {
		transition: none;
	}
}
