/*
	Tactile Art Collective
	Base Theme v1
*/

:root {
	color-scheme: light dark;

	--bg: #f8f5ef;
	--surface: #ffffff;
	--surfaceAlt: #f1ece3;

	--text: #1f1f1f;
	--textSoft: #4b4b4b;

	--accent: #2c6b5f;
	--accentHover: #1f544a;

	--brass: #c98f1f;
	--clay: #a95b3b;

	--border: #d8d1c7;

	--focus: #0f62fe;

	--maxWidth: 75rem;

	--radius: 1rem;
	--radiusSmall: .5rem;

	--shadow:
		0 1px 2px rgba(0,0,0,.05),
		0 4px 12px rgba(0,0,0,.04);

	--font:
		"Atkinson Hyperlegible Next",
		"Avenir Next",
		system-ui,
		sans-serif;
}

@media (prefers-color-scheme: dark) {

	:root {
		--bg: #181818;
		--surface: #242424;
		--surfaceAlt: #303030;

		--text: #f3f3f3;
		--textSoft: #d0d0d0;

		--accent: #67c8b3;
		--accentHover: #89dbc8;

		--brass: #ddb457;
		--clay: #d69073;

		--border: #494949;

		--focus: #89b7ff;

		--shadow:
			0 1px 2px rgba(0,0,0,.35),
			0 6px 16px rgba(0,0,0,.30);
	}
}

/* Reset */

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.125rem;
	line-height: 1.6;

	background-color: var(--bg);
	color: var(--text);
}

/* Main Layout */

main,
header,
footer {
	width: min(100% - 2rem, var(--maxWidth));
	margin-inline: auto;
}

main {
	padding-block: 1.5rem 4rem;
}

.skipLink {
	position: absolute;
	top: 1rem;
	left: 1rem;
	z-index: 10;

	padding: .75rem 1rem;

	background: var(--surface);
	color: var(--accent);

	border: 2px solid var(--focus);
	border-radius: var(--radiusSmall);
}

.skipLink:not(:focus):not(:active) {
	width: 1px;
	height: 1px;

	padding: 0;
	margin: -1px;

	overflow: hidden;

	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;

	border: 0;
}

.skipLink:focus,
.skipLink:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

/* Header */

.siteHeader {
	padding-block: 1.25rem;

	display: grid;
	gap: 1rem;

	border-bottom: 1px solid var(--border);
}

.siteBranding {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.logoLink {
	display: inline-flex;
	flex: 0 0 auto;
}

.siteLogo {
	width: clamp(5rem, 18vw, 8rem);
	height: auto;

	border: 1px solid var(--border);
	border-radius: var(--radiusSmall);

	background: white;
}

.siteTagline {
	max-width: 32rem;
	margin: 0;

	color: var(--textSoft);
	font-size: 1rem;
	line-height: 1.4;
}

.navList {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1rem;

	padding: 0;
	margin: 0;

	list-style: none;
}

.navList li + li {
	margin-top: 0;
}

.navList a {
	display: inline-block;

	padding: .35rem 0;

	font-weight: 700;
}

/* Typography */

h1,
h2,
h3,
h4 {
	line-height: 1.2;
	font-weight: 700;
	margin-top: 2rem;
	margin-bottom: 1rem;
}

h1 {
	font-size: clamp(2.5rem, 5vw, 4rem);
	color: var(--accent);
}

h2 {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h3 {
	font-size: 1.4rem;
}

p,
ul,
ol {
	max-width: 70ch;
}

li + li {
	margin-top: .5rem;
}

.lede {
	font-size: clamp(1.25rem, 2vw, 1.65rem);
	line-height: 1.45;
}

/* Links */

a {
	color: var(--accent);
	text-decoration-thickness: .12em;
	text-underline-offset: .15em;
}

a:hover,
a:focus-visible {
	color: var(--accentHover);
}

/* Focus */

:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

/* Hero Area */

.hero {
	padding: clamp(2rem, 6vw, 4rem);
	margin-block: 2rem 3rem;
	overflow: hidden;
}

.hero h1 {
	margin-top: 0;
}

.heroContent {
	max-width: 58rem;
}

/* Card Pattern */

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.5rem;
	box-shadow: var(--shadow);
}

.card h2,
.card h3 {
	margin-top: 0;
}

/* Workshop Paper Panels */

.paperPanel {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 2rem;
	position: relative;
}

.paperPanel > * {
	position: relative;
	z-index: 1;
}

/*
	Tactile contour motif

	Very subtle.
	Represents raised-line exploration.
*/

.paperPanel::before {
	content: "";

	position: absolute;
	inset: 0;

	background-image:
		radial-gradient(
			circle at 10% 20%,
			transparent 0,
			transparent 40px,
			rgba(0,0,0,.03) 41px,
			transparent 42px
		),

		radial-gradient(
			circle at 85% 70%,
			transparent 0,
			transparent 60px,
			rgba(0,0,0,.03) 61px,
			transparent 62px
		);

	pointer-events: none;
	border-radius: inherit;
}

@media (prefers-color-scheme: dark) {

	.paperPanel::before {

		background-image:
			radial-gradient(
				circle at 10% 20%,
				transparent 0,
				transparent 40px,
				rgba(255,255,255,.04) 41px,
				transparent 42px
			),

			radial-gradient(
				circle at 85% 70%,
				transparent 0,
				transparent 60px,
				rgba(255,255,255,.04) 61px,
				transparent 62px
			);
	}
}

/* Instructor Cards */

.instructorCard {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);

	padding: 1.5rem;
	box-shadow: var(--shadow);
}

.instructorCard h2,
.instructorCard h3 {
	margin-top: 0;
}

.instructorMeta {
	margin-block: .75rem;
	padding-inline-start: .75rem;

	color: var(--text);
	border-inline-start: .25rem solid var(--accent);
	font-weight: 600;
	line-height: 1.45;
}

/* Resource Blocks */

.resourceCard {
	border-left: .4rem solid var(--accent);

	background: var(--surface);
	padding: 1.5rem;

	border-radius: var(--radiusSmall);
	box-shadow: var(--shadow);
}

.resourceCard h2,
.resourceCard h3 {
	margin-top: 0;
}

/* Content Layouts */

.contentBlock {
	margin-block: 4rem;
}

.introGrid,
.cardGrid,
.resourceGrid,
.instructorGrid,
.splitGrid {
	display: grid;
	gap: 1rem;
}

.introGrid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
	margin-block: 3rem 4rem;
}

.cardGrid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	margin-top: 1.5rem;
}

.resourceGrid,
.splitGrid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
	margin-top: 1.5rem;
}

.instructorGrid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
	margin-top: 1.5rem;
}

.callout {
	padding: 2rem;

	background: var(--surfaceAlt);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.callout h2 {
	margin-top: 0;
}

.workshopCallout {
	border-left: .5rem solid var(--brass);
}

/* Forms */

input,
textarea,
select {
	width: 100%;

	padding: .75rem;

	font: inherit;

	border: 1px solid var(--border);
	border-radius: .5rem;

	background: var(--surface);
	color: var(--text);
}

label {
	display: block;
	margin-bottom: .4rem;
	font-weight: 600;
}

.formGroup {
	margin-bottom: 1.25rem;
}

/* Footer */

footer {
	border-top: 1px solid var(--border);

	padding-top: 2rem;
	padding-bottom: 2rem;

	color: var(--textSoft);
}

/*
	Optional decorative divider

	Can be used between major content areas
*/

.tactileDivider {
	height: 2px;

	border: 0;

	background:
		repeating-linear-gradient(
			90deg,
			var(--accent),
			var(--accent) 12px,
			transparent 12px,
			transparent 24px
		);

	margin: 3rem 0;
}
