/* ==========================================================================
   TtMr — base / reset / typography / buttons
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: 1.65;
	color: var(--text);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }

a { color: var(--blue); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--blue-600); }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; color: inherit; }

p { text-wrap: pretty; }

ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 1rem; left: 1rem; width: auto; height: auto; clip: auto;
	z-index: 999; background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 8px;
}

/* ---- Buttons (slim capsules) ---- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	font-family: var(--font-heading); font-weight: 600; font-size: .9rem; letter-spacing: .005em; line-height: 1;
	padding: .62em 1.35em; border-radius: 999px; border: 1.5px solid transparent;
	cursor: pointer; white-space: nowrap; text-decoration: none;
	transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
	will-change: transform;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn--primary:hover { background: var(--blue-600); color: #fff; }

/* Ghost: brand-coloured outline; hover fills with an explicit text colour
   (never currentColor, which made the label vanish on light sections). */
.btn--ghost { background: transparent; color: var(--blue); border-color: rgba(37, 99, 235, .35); }
.btn--ghost:hover { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: var(--shadow-blue); }
.section--bg-ink .btn--ghost, .section--bg-steel .btn--ghost { color: var(--text-invert); border-color: var(--line-soft); }
.section--bg-ink .btn--ghost:hover, .section--bg-steel .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; box-shadow: none; }

.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: var(--amber-600); color: var(--ink); }
.btn--lg { font-size: 1rem; padding: .8em 1.7em; }

/* ---- Prose (blog / rich text) ---- */
.prose { font-size: var(--fs-body); color: var(--text); line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { font-family: var(--font-heading); line-height: 1.25; color: var(--ink); }
.prose h2 { font-size: var(--fs-h2); margin-top: 1.9em; }
.prose h3 { font-size: var(--fs-h3); margin-top: 1.8em; }
.prose h4 { font-size: 1.3rem; margin-top: 1.6em; }
.prose h5 { font-size: 1.12rem; margin-top: 1.5em; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { list-style: disc; padding-left: 1.4em; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose img { border-radius: var(--radius); margin-block: 1.5em; }
.prose figure { margin: 1.8em 0; }
.prose figure img { width: 100%; height: auto; margin-block: 0; box-shadow: var(--shadow-sm); }
.prose blockquote {
	margin: 1.8em 0; padding: 1.1rem 1.5rem; border-left: 3px solid var(--blue);
	background: var(--paper-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-style: italic; color: var(--text);
}
/* ✅ checklist -> styled list */
.prose .ttmr-check { list-style: none; padding-left: 0; display: grid; gap: .7rem; }
.prose .ttmr-check li { position: relative; padding-left: 2.2rem; }
.prose .ttmr-check li::before {
	content: "✓"; position: absolute; left: 0; top: .05em;
	display: grid; place-items: center; width: 1.55rem; height: 1.55rem;
	border-radius: 7px; background: rgba(37, 99, 235, .1); color: var(--blue);
	font-size: .9rem; font-weight: 700;
}
/* phone / email contact chips */
.prose .ttmr-contact { margin-top: .6rem; }
.prose .ttmr-contact a {
	display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem;
	border: 1px solid var(--line); border-radius: 999px; text-decoration: none;
	font-family: var(--font-heading); font-weight: 600; color: var(--ink);
	transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.prose .ttmr-contact a:hover { border-color: var(--blue); color: var(--blue); }

/* Service / plain page body sits closer under the subheader. */
.prose--page > :first-child { margin-top: 0; }

/* Buttons inside prose: keep their own colours (the generic `.prose a` colour
   was overriding the button text, e.g. blue-on-blue). */
.prose a.btn { text-decoration: none; }
.prose a.btn--primary, .prose a.btn--primary:hover { color: #fff; }
.prose a.btn--ghost { color: var(--blue); }
.prose a.btn--ghost:hover { color: #fff; }
.prose a.btn--amber, .prose a.btn--amber:hover { color: var(--ink); }
.section--bg-ink .prose a.btn--ghost, .section--bg-steel .prose a.btn--ghost { color: var(--text-invert); }
.section--bg-ink .prose a.btn--ghost:hover, .section--bg-steel .prose a.btn--ghost:hover { color: var(--ink); }

/* Prose on dark sections: keep text readable (was dark-on-dark before). */
.section--bg-ink .prose, .section--bg-steel .prose { color: var(--text-invert); }
.section--bg-ink .prose h2, .section--bg-ink .prose h3, .section--bg-ink .prose h4, .section--bg-ink .prose h5, .section--bg-ink .prose h6,
.section--bg-steel .prose h2, .section--bg-steel .prose h3, .section--bg-steel .prose h4, .section--bg-steel .prose h5, .section--bg-steel .prose h6 { color: #fff; }
.section--bg-ink .prose a, .section--bg-steel .prose a { color: var(--accent); }
.section--bg-ink .prose blockquote, .section--bg-steel .prose blockquote { background: rgba(255, 255, 255, .05); border-left-color: var(--accent); color: var(--text-invert); }
.section--bg-ink .prose .ttmr-check li::before, .section--bg-steel .prose .ttmr-check li::before { background: rgba(56, 189, 248, .16); color: var(--accent); }
