/*
Theme Name: Monte Canvas
Theme URI: https://montebaunk.com/
Author: Built for Monte Baunk
Author URI: https://montebaunk.com/
Description: A canvas. Pages render edge to edge with no header, no page title and no container, so a plugin that draws its own interface gets the whole screen. Ships no front end JavaScript and almost no CSS of its own, and never touches user input. A Standard Page template is included for the occasional page that is only words.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: monte-canvas
Tags: full-width-template, translation-ready, threaded-comments
*/

/* --------------------------------------------------------------------------
 * The whole point of this file is to get out of the way.
 *
 * Every rule is wrapped in :where(), which strips it to zero specificity. A
 * plugin's own stylesheet then always wins without needing !important, no
 * matter what order the stylesheets load in. Nothing here can ever be the
 * reason a plugin looks wrong.
 * ----------------------------------------------------------------------- */

:where(*, *::before, *::after) { box-sizing: border-box; }

:where(html) { -webkit-text-size-adjust: 100%; }

:where(body) {
	margin: 0;
	background: #0E0E10;
	color: #F2F2F3;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

:where(img, svg, video, canvas, iframe) { max-width: 100%; }
:where(img, svg, video) { height: auto; }

:where(button, input, select, textarea) { font: inherit; color: inherit; }

:where(a) { color: inherit; }


/* --------------------------------------------------------------------------
 * Standard Page
 *
 * The one layout this theme draws itself, for pages that are just words:
 * terms, a privacy policy, a note. Scoped under .mc-doc so it cannot reach
 * any canvas page.
 * ----------------------------------------------------------------------- */

.mc-doc {
	--mc-ink: #F2F2F3;
	--mc-dim: #9B9B9B;
	--mc-line: #2A2A2E;
	--mc-accent: #C58CFF;
	--mc-gut: clamp(20px, 5vw, 40px);
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
}

/* :where() keeps the default link colour at zero specificity, so any named
   part below claims its own colour without a fight. Plain descendant
   selectors here would outrank a single class and quietly repaint things
   like the brand link. */
.mc-doc :where(a) { color: var(--mc-accent); text-underline-offset: 3px; }
.mc-doc :where(a):hover { text-decoration: none; }

.mc-bar {
	border-bottom: 1px solid var(--mc-line);
	padding: 22px var(--mc-gut);
	display: flex;
	flex-wrap: wrap;
	gap: 14px 28px;
	align-items: baseline;
}

.mc-brand {
	font-weight: 700;
	letter-spacing: .02em;
	text-decoration: none;
	color: var(--mc-ink);
}

.mc-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; }
.mc-nav a { color: var(--mc-dim); text-decoration: none; font-size: 14px; }
.mc-nav a:hover { color: var(--mc-ink); }

.mc-main { flex: 1 0 auto; padding: clamp(40px, 7vw, 80px) var(--mc-gut); }
.mc-wrap { max-width: 42rem; margin: 0 auto; }

.mc-title {
	font-size: clamp(30px, 5vw, 48px);
	line-height: 1.1;
	letter-spacing: -.02em;
	margin: 0 0 .7em;
}

.mc-body { font-size: 17px; line-height: 1.65; color: #D6D6D9; }
.mc-body > * + * { margin-top: 1.1em; }
.mc-body h2 { font-size: 1.5em; line-height: 1.25; margin-top: 1.8em; color: var(--mc-ink); }
.mc-body h3 { font-size: 1.2em; line-height: 1.3; margin-top: 1.6em; color: var(--mc-ink); }
.mc-body ul, .mc-body ol { padding-left: 1.3em; }
.mc-body li + li { margin-top: .4em; }
.mc-body blockquote {
	margin-left: 0; margin-right: 0;
	padding-left: 1em;
	border-left: 2px solid var(--mc-line);
	color: var(--mc-dim);
}
.mc-body code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .9em;
	background: #1A1A1E;
	padding: .15em .4em;
}
.mc-body pre { overflow-x: auto; background: #1A1A1E; padding: 16px; }
.mc-body pre code { background: none; padding: 0; }
.mc-body table { width: 100%; border-collapse: collapse; }
.mc-body th, .mc-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--mc-line); }
.mc-body img { display: block; }

.mc-foot {
	border-top: 1px solid var(--mc-line);
	padding: 26px var(--mc-gut);
	color: var(--mc-dim);
	font-size: 13px;
}

.mc-search { margin-top: 1.6em; display: flex; gap: 10px; flex-wrap: wrap; }
.mc-search input[type="search"] {
	flex: 1 1 14rem;
	background: #1A1A1E;
	border: 1px solid var(--mc-line);
	color: var(--mc-ink);
	padding: 12px 14px;
	font-size: 16px;
}
.mc-search button {
	background: var(--mc-ink);
	color: #0E0E10;
	border: 0;
	padding: 12px 20px;
	cursor: pointer;
	font-size: 14px;
	letter-spacing: .04em;
}

.mc-list { list-style: none; margin: 0; padding: 0; }
.mc-list li + li { margin-top: 1.4em; padding-top: 1.4em; border-top: 1px solid var(--mc-line); }
.mc-list a { text-decoration: none; font-size: 1.15em; }
.mc-list time { display: block; color: var(--mc-dim); font-size: 13px; margin-top: .3em; }

.mc-doc .nav-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 2.4em; }
.mc-doc .nav-links .page-numbers {
	padding: 8px 12px;
	border: 1px solid var(--mc-line);
	text-decoration: none;
	color: var(--mc-dim);
	font-size: 14px;
}
.mc-doc .nav-links .page-numbers:hover { color: var(--mc-ink); }
.mc-doc .nav-links .page-numbers.current { color: #0E0E10; background: var(--mc-ink); border-color: var(--mc-ink); }
.mc-doc .screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Anything a keyboard reaches has to show where it is. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 2px solid #C58CFF;
	outline-offset: 2px;
}

.mc-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	background: #F2F2F3;
	color: #0E0E10;
	padding: 12px 18px;
	z-index: 100000;
}
.mc-skip:focus { left: 8px; top: 8px; }
