/*
 * karyapravah.com — the whole stylesheet. Hand-written, no build (KP-ARCH-004).
 * Every colour is a named token in the :root block below, from the Taskport brand palette.
 */

@font-face { font-family: "Outfit"; font-weight: 400; font-display: swap; src: url("../fonts/Outfit-Regular.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 500; font-display: swap; src: url("../fonts/Outfit-Medium.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url("../fonts/Outfit-SemiBold.woff2") format("woff2"); }

:root {
	/* ── The brand palette ─────────────────────────────────────────────────────
	   The ONLY colour values on this site: each is a value the Taskport app declares,
	   already adjusted there for WCAG AA (tools/brand-palette.json, generated from the
	   app — never retyped). tools/check-colours.js fails on a literal anywhere else.
	   @req KP-UI-005, SITE-COLOR-001/002, BRAND-001..016 */
	--tp-home: #FD7246;          /* fill — ink on it 5.71 (white is 2.74) */
	--tp-work: #4355B6;          /* fill — white on it 6.53 */
	--tp-work-on: #FFFFFF;
	--tp-both: #14B8A6;          /* fill — ink on it 6.28 (white is 2.49) */
	--tp-ink: #202427;           /* the one ink for both companies (SITE-COLOR-004) */
	--tp-text: #1F2937;          /* body copy, 14.7 on white */
	--tp-paper: #FFFFFF;
	--tp-neutral-100: #F9FAFB;
	--tp-neutral-200: #E5E7EB;
	--tp-neutral-500: #6B7280;   /* secondary text, 4.83 on white, 4.6 on neutral-100 */
	--tp-error: #EF4444;         /* border/icon only — 3.76 on white (UI ≥ 3) */
	--tp-error-light: #FDEDED;
	--tp-error-dark: #5F2120;
	--tp-success-light: #EDF7ED;
	--tp-success-dark: #1E4620;

	/* ── Karya Pravah roles, named onto the palette ─────────────────────────── */
	--kp-orange: var(--tp-home);           /* fills only — never text (2.74 on white) */
	--kp-ink: var(--tp-ink);
	--kp-ink-2: var(--tp-text);
	--kp-muted: var(--tp-neutral-500);
	--kp-line: var(--tp-neutral-200);
	--kp-surface: var(--tp-paper);
	--kp-surface-2: var(--tp-neutral-100);
	--kp-focus: var(--tp-work);
	--kp-error-border: var(--tp-error);
	--kp-error: var(--tp-error-dark);      /* text on --kp-error-soft */
	--kp-error-soft: var(--tp-error-light);
	--kp-success: var(--tp-success-dark);  /* text on --kp-success-soft */
	--kp-success-soft: var(--tp-success-light);
	--tp-section: color-mix(in srgb, var(--tp-both) 8%, var(--tp-paper));   /* Taskport section wash */

	--radius: 16px;
	--wrap: 1160px;
	--shadow: 0 10px 30px color-mix(in srgb, var(--tp-ink) 8%, transparent);
	--shadow-cta: 0 6px 16px color-mix(in srgb, var(--kp-orange) 35%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--kp-surface);
	color: var(--kp-ink-2);
	font: 400 1.0625rem/1.65 "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { color: var(--kp-ink); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); letter-spacing: -.015em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

a { color: var(--kp-ink); text-decoration-color: var(--kp-orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--kp-focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.skip-link { position: absolute; left: 16px; top: -100px; background: var(--kp-ink); color: var(--kp-surface); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip-link:focus { top: 12px; }

/* ---- buttons --------------------------------------------------------- */
.button {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 24px; border: 2px solid var(--kp-orange); border-radius: 999px;
	background: var(--kp-orange); color: var(--kp-ink);
	font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow-cta); }
.button--quiet { background: transparent; border-color: var(--kp-ink); }
.button--quiet:hover { box-shadow: none; background: var(--kp-surface-2); }
.button[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } .button:hover { transform: none; } }

/* ---- header ---------------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--kp-line); background: var(--kp-surface); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.site-header__brand img { width: 132px; height: auto; }
.site-nav { display: flex; gap: 20px; }
.site-nav a { text-decoration: none; font-weight: 500; color: var(--kp-ink); }
.site-nav a:hover { text-decoration: underline; text-decoration-color: var(--kp-orange); }
@media (max-width: 480px) { .site-nav { gap: 14px; font-size: .95rem; } .site-header__brand img { width: 108px; } }

/* ---- hero ------------------------------------------------------------ */
.hero { padding: 48px 0 32px; }
.hero__inner { display: grid; gap: 32px; align-items: center; }
.eyebrow { font-weight: 500; color: var(--kp-muted); letter-spacing: .02em; margin-bottom: 12px; }
.lead { font-size: 1.2rem; color: var(--kp-ink-2); max-width: 36em; }
.lead em { font-style: normal; font-weight: 600; color: var(--kp-ink); }
.hero__actions, .taskport__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero__art { width: 100%; max-width: 560px; justify-self: center; }
@media (min-width: 960px) {
	.hero { padding: 72px 0 56px; }
	.hero__inner { grid-template-columns: 1.05fr 1fr; gap: 48px; }
}

/* ---- about ----------------------------------------------------------- */
.about { padding: 64px 0; background: var(--kp-surface-2); }
.section-lead { font-size: 1.15rem; max-width: 46em; }
.pillars { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.pillars li { background: var(--kp-surface); border: 1px solid var(--kp-line); border-radius: var(--radius); padding: 24px; border-top: 4px solid var(--kp-orange); }
.pillars p { margin: 0; color: var(--kp-muted); }
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ---- taskport -------------------------------------------------------- */
.taskport { padding: 64px 0; background: var(--tp-section); }
.taskport__inner { display: grid; gap: 40px; align-items: center; }
.taskport__logo { width: 168px; margin-bottom: 24px; }
.taskport h2 { color: var(--tp-ink); }
.mode { display: inline-block; padding: 0 .55em; border-radius: 999px; font-weight: 600; line-height: 1.6; }
.mode--work { background: var(--tp-work); color: var(--kp-surface); }
.mode--home { background: var(--tp-home); color: var(--tp-ink); }
.mode--both { background: var(--tp-both); color: var(--tp-ink); }
.facts { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.facts li { padding-left: 28px; position: relative; color: var(--tp-ink); }
.facts li::before {
	content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
	background: var(--tp-both);
}
.facts li::after { content: ""; position: absolute; left: 6px; top: calc(.35em + 4px); width: 5px; height: 9px; border: solid var(--tp-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.taskport__art { width: 100%; max-width: 440px; justify-self: center; }
@media (min-width: 960px) {
	.taskport { padding: 96px 0; }
	.taskport__inner { grid-template-columns: 1.1fr 1fr; gap: 64px; }
}

/* ---- contact --------------------------------------------------------- */
.contact { padding: 64px 0 80px; }
.contact__inner { display: grid; gap: 40px; }
.contact dl { margin: 24px 0 0; }
.contact dt { font-weight: 600; color: var(--kp-ink); margin-top: 20px; }
.contact dd { margin: 4px 0 0; }
.contact address { font-style: normal; }
.contact__form { background: var(--kp-surface); border: 1px solid var(--kp-line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; color: var(--kp-ink); margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--kp-muted); }
.field input, .field textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--kp-muted); border-radius: 10px;
	font: inherit; color: var(--kp-ink); background: var(--kp-surface);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--kp-focus); }
.field [aria-invalid="true"] { border-color: var(--kp-error-border); background: var(--kp-error-soft); }
.field--trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact__form .button { width: 100%; }
.form-status { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; }
.form-status[data-kind="success"] { background: var(--kp-success-soft); color: var(--kp-success); }
.form-status[data-kind="error"] { background: var(--kp-error-soft); color: var(--kp-error); }
.form-status[data-kind="info"] { background: var(--kp-surface-2); color: var(--kp-ink-2); }
@media (min-width: 960px) { .contact__inner { grid-template-columns: 1fr 1.2fr; gap: 64px; } .contact__form { padding: 32px; } }

/* ---- pages, 404, footer ---------------------------------------------- */
.prose-page { max-width: 780px; padding-top: 48px; padding-bottom: 64px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.not-found { padding: 96px 16px; text-align: center; }

.site-footer { border-top: 1px solid var(--kp-line); background: var(--kp-surface-2); padding: 28px 0; font-size: .95rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
.site-footer__legal { margin: 0; color: var(--kp-muted); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
