/* =================================================================
   All In Solutions — main stylesheet
   Standalone theme. Design tokens, layout, components.
   ================================================================= */

:root {
	/* Palette */
	--paper: #EFEDE6;        /* warm grey paper page */
	--paper-lift: #F6F4EE;   /* lifted surfaces */
	--ink: #1B1A17;          /* warm near-black text */
	--ground: #1C1A14;       /* deep warm charcoal, hero + dark band + footer */
	--muted: #5E5A50;        /* warm grey secondary text */
	--line: #DAD6CB;         /* hairlines on light */
	--line-dark: rgba(237, 234, 224, 0.14); /* hairlines on dark */
	--accent: #8A6A39;       /* muted bronze, light contexts */
	--accent-d: #C2A06A;     /* lighter bronze, dark contexts */
	--cream: #EDEAE0;        /* text on dark */
	--cream-dim: #A7A091;    /* muted text on dark */

	/* Type */
	--font-display: "Spectral", Georgia, "Times New Roman", serif;
	--font-body: "Instrument Sans", system-ui, -apple-system, sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

	/* Rhythm */
	--wrap: 1120px;
	--gutter: clamp(1.25rem, 4vw, 3rem);
	--section-y: clamp(4rem, 9vw, 7.5rem);
}

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

html { scroll-behavior: smooth; }

body {
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.64;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3 {
	font-family: var(--font-display);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.005em;
	margin: 0;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.mono {
	font-family: var(--font-mono);
	font-size: 0.74rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.eyebrow {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 1.4rem;
}
.eyebrow--light { color: var(--accent-d); }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
	left: 1rem; top: 1rem; z-index: 100;
	background: var(--ink); color: var(--cream);
	padding: 0.6rem 1rem; border-radius: 4px;
}
.screen-reader-text {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	width: 1px; height: 1px; overflow: hidden;
}

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

.site-header { background: var(--ground); color: var(--cream); }
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between;
	gap: 1rem; padding-block: 1.25rem;
}
.brand__link {
	display: inline-flex; align-items: baseline; gap: 0.7rem;
	text-decoration: none; color: var(--cream);
}
.brand__mark {
	font-family: var(--font-mono);
	font-weight: 500;
	font-size: 1.05rem;
	letter-spacing: 0.18em;
	color: var(--accent-d);
}
.brand__name {
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 0.82rem;
	letter-spacing: 0.01em;
	color: var(--cream-dim);
}
.header-cta {
	font-family: var(--font-mono);
	font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--cream); text-decoration: none;
	padding: 0.5rem 1rem; border: 1px solid var(--line-dark); border-radius: 999px;
	transition: border-color 0.2s ease, color 0.2s ease;
}
.header-cta:hover { border-color: var(--accent-d); color: var(--accent-d); }
.site-nav__list {
	list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0;
	font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em;
}
.site-nav__list a { color: var(--cream); text-decoration: none; }
.site-nav__list a:hover { color: var(--accent-d); }

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

.hero {
	background: var(--ground);
	color: var(--cream);
	padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 9vw, 7rem);
	position: relative;
	overflow: hidden;
}
.hero::after {
	content: "";
	position: absolute; inset: 0;
	background-image: linear-gradient(var(--line-dark) 1px, transparent 1px);
	background-size: 100% 2.4rem;
	opacity: 0.4;
	pointer-events: none;
}
.hero__inner {
	position: relative; z-index: 1;
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: clamp(2rem, 6vw, 5rem);
	align-items: center;
}
.hero__title {
	font-size: clamp(2.7rem, 6.4vw, 4.8rem);
	font-weight: 500;
	color: var(--cream);
	margin: 0 0 0.6rem;
}
.hero__sub {
	font-family: var(--font-display);
	font-style: italic;
	font-size: clamp(1.15rem, 2vw, 1.5rem);
	color: var(--accent-d);
	margin: 0 0 1.6rem;
}
.hero__lead {
	font-family: var(--font-body);
	font-size: clamp(1.02rem, 1.6vw, 1.18rem);
	line-height: 1.6;
	color: var(--cream);
	max-width: 42ch;
	margin: 0;
}

/* ---------- Ledger (signature) ---------- */

.hero__ledger { width: 100%; }
.ledger {
	border: 1px solid var(--line-dark);
	border-top: 2px solid var(--accent-d);
	border-radius: 6px;
	padding: 1.5rem 1.6rem 1.4rem;
	background: rgba(237, 234, 224, 0.02);
}
.ledger__head {
	color: var(--cream-dim);
	margin: 0 0 1rem;
	letter-spacing: 0.14em;
}
.ledger__list { list-style: none; margin: 0; padding: 0; }
.ledger__row {
	display: flex; align-items: baseline; gap: 1rem;
	padding: 0.7rem 0;
	border-bottom: 1px solid var(--line-dark);
}
.ledger__row:last-child { border-bottom: 0; }
.ledger__no { color: var(--accent-d); font-size: 0.72rem; min-width: 1.6rem; }
.ledger__name {
	font-family: var(--font-display);
	font-size: 1.18rem;
	color: var(--cream);
}
.ledger__foot {
	color: var(--cream-dim);
	margin: 1.1rem 0 0;
	font-size: 0.66rem;
	letter-spacing: 0.12em;
}

/* ---------- Sections (shared) ---------- */

.section { padding-block: var(--section-y); }

.section__title {
	font-size: clamp(1.9rem, 3.4vw, 2.7rem);
	max-width: 18ch;
	margin: 0 0 1.4rem;
}
.section__title--invert { color: var(--cream); }

.lede {
	font-size: clamp(1.1rem, 1.6vw, 1.28rem);
	line-height: 1.55;
	color: var(--ink);
	max-width: 54ch;
	margin: 0 0 1.2rem;
	font-family: var(--font-body);
}
.lede--invert { color: var(--cream); }

.grid { display: grid; }
.grid--split {
	grid-template-columns: minmax(0, 0.32fr) minmax(0, 0.68fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: start;
}
.grid__aside .eyebrow { margin-top: 0.4rem; }
.grid__main p:not(.lede) { color: var(--muted); max-width: 56ch; }

/* Approach */
.section--approach { border-bottom: 1px solid var(--line); }

/* About (inverted band) */
.section--about { background: var(--ground); color: var(--cream); }
.section--about .grid__main p:not(.lede) { color: var(--cream-dim); max-width: 56ch; }

/* Contact */
.section--contact { padding-bottom: calc(var(--section-y) + 1rem); }
.section--contact .eyebrow { margin-bottom: 2.4rem; }
.contact {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 5vw, 4rem);
	border-top: 1px solid var(--line);
	padding-top: 2.4rem;
	max-width: 760px;
}
.contact__block--wide { grid-column: 1 / -1; }
.contact__label { color: var(--accent); margin: 0 0 0.7rem; font-weight: 500; }
.contact__value {
	font-size: 1.05rem; color: var(--ink); line-height: 1.55; margin: 0;
	max-width: 48ch;
}
.contact__value a { word-break: break-word; }

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

.site-footer { background: var(--ground); color: var(--cream); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.site-footer__inner {
	display: flex; align-items: flex-end; justify-content: space-between;
	gap: 2rem; flex-wrap: wrap;
}
.brand__mark--footer { font-size: 1.4rem; display: inline-block; margin-bottom: 0.6rem; }
.site-footer__tagline { color: var(--cream-dim); max-width: 36ch; font-size: 0.95rem; margin: 0; }
.site-footer__meta { text-align: right; }
.site-footer__meta .mono { color: var(--cream-dim); margin: 0 0 0.35rem; }

/* ---------- Generic content (fallbacks) ---------- */

.page-content { padding-block: var(--section-y); }
.page-content .entry-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.page-content .entry-content { max-width: 68ch; }
.page-content .entry-content > * { margin-bottom: 1.1em; }

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__ledger { max-width: 460px; margin-top: 1.5rem; }
	.grid--split { grid-template-columns: 1fr; gap: 1rem; }
	.grid__aside .eyebrow { margin-bottom: 0.6rem; }
}

@media (max-width: 560px) {
	.site-header__inner { flex-wrap: wrap; }
	.contact { grid-template-columns: 1fr; }
	.site-footer__inner { flex-direction: column; align-items: flex-start; }
	.site-footer__meta { text-align: left; }
}

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