/*
 * ritualkongress.ch — hand-written stylesheet.
 *
 * Mirrors the design the site actually had (WordPress Twenty Seventeen with the owner's
 * customiser settings): Roboto Mono throughout, pale-yellow masthead, white nav band,
 * the 2018 flyer behind the content, white title cards on pale-green content cards.
 * The colour values below are the ones recovered from the archived inline CSS.
 */

@font-face {
	font-family: 'Roboto Mono';
	font-style: normal;
	font-weight: 100 700;
	font-display: swap;
	src: url('/fonts/roboto-mono-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
		U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
		U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Roboto Mono';
	font-style: normal;
	font-weight: 100 700;
	font-display: swap;
	src: url('/fonts/roboto-mono-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
		U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
		U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--band-header: rgba(255, 248, 193, 0.8);
	--band-nav: rgba(255, 255, 255, 0.9);
	--band-footer: rgba(212, 219, 193, 0.8);
	--card-title: rgba(255, 255, 255, 0.9);
	--card-content: rgba(213, 219, 193, 0.9);
	--ink: #333;
	--ink-strong: #0a0808;
	--ink-nav: #222;
	--ink-muted: #767676;
	--rule: #eee;
	--font: 'Roboto Mono', 'Lucida Console', Monaco, monospace;
}

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

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

body {
	margin: 0;
	background: #fff;
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	overflow-wrap: break-word;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

a:hover,
a:focus {
	color: var(--ink-muted);
}

:focus-visible {
	outline: 2px solid var(--ink-nav);
	outline-offset: 2px;
}

img {
	max-width: 100%;
	height: auto;
}

.wrap {
	max-width: 700px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

@media screen and (min-width: 48em) {
	.wrap {
		max-width: 1000px;
		padding: 0 3rem;
	}
}

/* --- skip link ---------------------------------------------------------- */

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 10;
	padding: 0.75rem 1rem;
	background: #fff;
	font-size: 0.875rem;
	font-weight: 600;
}

.skip-link:focus {
	left: 0;
}

/* --- masthead ----------------------------------------------------------- */

.site-header {
	background-color: var(--band-header);
	padding: 3.5rem 0 3rem;
}

.site-title {
	margin: 0;
	font-size: 2rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--ink-strong);
}

.site-title a {
	text-decoration: none;
}

.site-title a:hover,
.site-title a:focus {
	color: var(--ink-strong);
	text-decoration: underline;
}

.site-description {
	margin: 0.5rem 0 0;
	font-size: 1rem;
	color: var(--ink-strong);
}

/* --- navigation --------------------------------------------------------- */

.site-nav {
	background-color: var(--band-nav);
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
}

.site-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav a {
	display: block;
	padding: 0.875rem 0;
	color: var(--ink-nav);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current='page'] {
	color: var(--ink-muted);
	text-decoration: underline;
}

/* --- content ------------------------------------------------------------ */

.site-content {
	background-color: #fff;
	background-image: url('/assets/2017/04/Ritualkongress-2018_Flyer-2.jpg');
	background-position: center top;
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
}

@media screen and (max-width: 48em), (prefers-reduced-motion: reduce) {
	.site-content {
		background-attachment: scroll;
	}
}

.panel {
	padding: 3rem 0;
}

@media screen and (min-width: 48em) {
	.panel .wrap {
		display: grid;
		grid-template-columns: 36% 1fr;
		column-gap: 6%;
		align-items: start;
	}
}

.panel-title {
	margin: 0;
	padding: 0.75rem 20px;
	background-color: var(--card-title);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ink-strong);
}

.panel-content {
	padding: 0.75rem 20px 1.5rem;
	background-color: var(--card-content);
}

@media screen and (max-width: 47.9375em) {
	.panel-content {
		margin-top: 0.5rem;
	}
}

.panel-content > *:first-child {
	margin-top: 0.75rem;
}

.panel-content > *:last-child {
	margin-bottom: 0;
}

.panel-content h3 {
	margin: 2rem 0 0.5rem;
	font-size: 1.125rem;
	line-height: 1.4;
}

.panel-content h4 {
	margin: 1.5rem 0 0.5rem;
	font-size: 1rem;
}

.panel-content p {
	margin: 0 0 1rem;
}

.panel-content ul {
	margin: 0 0 1rem;
	padding-left: 1.25rem;
}

.panel-content li {
	margin-bottom: 0.35rem;
}

.panel-content img {
	display: block;
	margin: 1rem 0 1.5rem;
}

/* --- programme table ---------------------------------------------------- */

.panel-content table {
	width: 100%;
	margin: 0 0 1.5rem;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.panel-content td,
.panel-content th {
	padding: 0.6rem 0.75rem 0.6rem 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	text-align: left;
	vertical-align: top;
}

.panel-content td:first-child {
	width: 4.5rem;
	white-space: nowrap;
	font-weight: 600;
}

.panel-content td p {
	margin: 0.5rem 0 0;
	font-size: 0.875rem;
}

/* --- the two inline styles that carried meaning ------------------------- */

.is-centered {
	text-align: center;
}

.is-alert {
	color: #c1121f;
}

.map-link {
	display: inline-block;
	margin-bottom: 0.5rem;
	font-weight: 600;
}

/* --- footer ------------------------------------------------------------- */

.site-footer {
	background-color: var(--band-footer);
	padding: 3rem 0 2rem;
	font-size: 0.875rem;
	font-weight: 300;
}

.widget-title {
	margin: 0 0 1rem;
	font-size: 0.6875rem;
	font-weight: 400;
	letter-spacing: 0.1818em;
	text-transform: uppercase;
	color: var(--ink-nav);
}

.impressum p {
	margin: 0 0 0.75rem;
	max-width: 42rem;
}

.impressum a {
	color: #000;
}

.site-info {
	margin: 2rem 0 0;
	font-size: 0.6875rem;
	font-weight: 400;
	color: var(--ink);
}

/* --- print -------------------------------------------------------------- */

@media print {
	.site-nav,
	.skip-link {
		display: none;
	}

	body {
		color: #000;
	}

	.site-header,
	.site-content,
	.site-footer,
	.panel-title,
	.panel-content {
		background: none;
	}

	.panel .wrap {
		display: block;
	}

	a[href^='http']::after {
		content: ' (' attr(href) ')';
		font-size: 0.75em;
		word-break: break-all;
	}
}
