/*
Theme Name: ConvertAllDoc
Theme URI: https://convertalldoc.com
Description: Lightweight theme for convertalldoc.com. Pairs with the ConvertAllDoc Tools plugin. No page builder needed.
Author: convertalldoc.com
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: convertalldoc
*/

@font-face {
	font-family: "Bricolage Grotesque";
	src: url("assets/fonts/bricolage-grotesque-latin-wght.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Instrument Sans";
	src: url("assets/fonts/instrument-sans-latin-wght.woff2") format("woff2");
	font-weight: 400 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "IBM Plex Mono";
	src: url("assets/fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "IBM Plex Mono";
	src: url("assets/fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

:root {
	--ca-blue: #2d3ce6;
	--ca-blue-dark: #1a25ad;
	--ca-yellow: #ffd43b;
	--ca-ink: #0e1330;
	--ca-muted: #5c6488;
	--ca-line: #d8ddeb;
	--ca-paper: #f4f6fb;
	--ca-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
	--ca-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
	--ca-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: #fff;
	color: var(--ca-ink);
	font-family: var(--ca-body);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--ca-blue); }
a:hover { color: var(--ca-blue-dark); }
:focus-visible { outline: 2px solid var(--ca-blue); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--ca-display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; color: var(--ca-ink); }

.screen-reader-text, .skip-link {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 100000; width: auto; height: auto; margin: 0; padding: 12px 18px;
	clip: auto; background: var(--ca-ink); color: #fff; border-radius: 4px; text-decoration: none;
}

.cad-container { max-width: 1120px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
@media (max-width: 600px) { .cad-container { padding-left: 20px; padding-right: 20px; } }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--ca-line); }
.site-header-inner {
	min-height: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
}
.site-brand { display: flex; align-items: center; gap: 10px; color: var(--ca-ink); text-decoration: none; }
.site-brand:hover { color: var(--ca-ink); }
.site-wordmark {
	display: flex; align-items: baseline; font-family: var(--ca-display); font-weight: 700;
	font-size: 24px; line-height: 1; letter-spacing: -0.03em;
}
.site-wordmark .all { background: var(--ca-yellow); border-radius: 6px; padding: 2px 6px 4px; margin: 0 2px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--ca-ink); text-decoration: none; padding: 8px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ca-blue); }

/* Footer */
.site-footer { background: var(--ca-paper); border-top: 1px solid var(--ca-line); }
.site-footer-inner { padding-top: 40px; padding-bottom: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer-about { flex: 1 1 280px; display: flex; flex-direction: column; gap: 8px; }
.site-footer-about strong { font-family: var(--ca-display); font-size: 20px; letter-spacing: -0.02em; }
.site-footer-about span { font-size: 14px; color: var(--ca-muted); max-width: 300px; }
.site-footer-cols { display: flex; flex-wrap: wrap; gap: 12px 40px; font-size: 15px; }
.site-footer-col { display: flex; flex-direction: column; gap: 8px; }
.site-footer-col a { color: var(--ca-ink); text-decoration: none; }
.site-footer-col a:hover { color: var(--ca-blue); text-decoration: underline; }
.site-footer-legal { padding-bottom: 32px; font-size: 13px; color: var(--ca-muted); }

/* Ordinary pages (privacy policy and similar) */
.site-main { min-height: 40vh; }
.page-plain { max-width: 760px; margin: 0 auto; padding: 56px 20px 72px; }
.page-plain h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 24px; letter-spacing: -0.035em; }
.page-plain h2 { font-size: 1.5rem; margin: 36px 0 8px; }
.page-plain p, .page-plain li { font-size: 1.0625rem; }
