/* START VARIABLES */

:root {

	/* START COLORS */

	--color-white                      : white;

	/* HINDU TRADITIONAL */
	--color-hindu-traditional-blue     : oklch(55.83% 0.1722 253.98);
	--color-hindu-traditional-red      : oklch(58.03% 0.2286 21.35);

	--background-color-body            : oklch(55.83% 0.1722 253.98 / 48%);
	--background-image-body            : url(../img/om.svg);
	--background-color-selection       : #b3d4fc;

	--color-link                       : oklch(0.3946 0.181371 328.3634);
	--color-font                       : #222222;
	--color-heading-glow               : oklch(55.83% 0.1722 253.98 / 30%);
	--linear-gradient-reflect-button   : below 0px linear-gradient(
			to bottom,
			oklch(55.83% 0.1722 253.98 / 0%) 66%,
			oklch(55.83% 0.1722 253.98 / 28%) 100%
	);

	--background-color-section         : oklch(100% 0 0 / 96%);

	--background-color-button          : oklch(0.3946 0.181371 328.3634 / 74%);
	--outline-color-button             : var(--color-hindu-traditional-blue);

	/* END COLORS */

	--font-family                      : Verdana;
	--font-family-heading              : "Heading";
	--line-height-heading              : 1.3;
	--line-height                      : 1.5;
	--line-height-target               : 44px;
	--font-weight-bolder               : 700;
	--font-weight-bold                 : 600;
	--font-weight-normal               : 400;

	--border-radius-small              : 7px;
	--border-radius-medium             : 9px;
	--border-radius-large              : 13px;
	--border-radius-button             : 22px;

	--border-width                     : 0;
	--border-style                     : double;
	--border-color                     : var(--background-color-body);

	--box-shadow-section               : 0 0 18px 6px oklch(1 0 0 / 55%);
	--box-shadow-item                  : 0 0 8px 2px oklch(1 0 0 / 55%);

	--spacing-double                   : clamp(1.5rlh, 1.2rlh + 2vw, 2rlh);
	--spacing-single                   : clamp(.75rlh, .6rlh + 1vw, 1rlh);
	--spacing-half                     : clamp(.375rlh, .3rlh + .5vw, .5rlh);

}

/* END VARIABLES */

/* START FONTS */

/* Installed Verdana Bold, else a Latin subset of DejaVu Sans Bold. Android aliases the
   family name "Verdana" to Roboto, so a plain font stack never reaches the fallback;
   local() matches only a font's own full name, which Android lacks */
@font-face {
	font-family  : "Heading";
	src          : local("Verdana Bold"), local("Verdana-Bold"), url(../fonts/dejavu-sans-bold.woff2) format("woff2");
	font-weight  : 700;
	font-style   : normal;
	font-display : swap;
}

/* END FONTS */

/* START BOILERPLATE */

::selection {
	background  : var(--background-color-selection);
	text-shadow : none;
}

img,
svg {
	vertical-align : middle;
}

[hidden] {
	display : none !important;
}

/* END BOILERPLATE */

/* START GLOBALS */

/* iOS Safari still needs the prefix */
html {
	-webkit-text-size-adjust : 100%;
	text-size-adjust         : 100%;
}

body {
	font-family      : var(--font-family), sans-serif;
	line-height      : var(--line-height);
	font-size        : 1.125rem;
	color            : var(--color-font);
	padding          : 0 var(--spacing-single);
	margin           : 0 auto;
	max-width        : 60ch;
	background-color : var(--background-color-body);
}

body::before {
	content             : "";
	position            : fixed;
	inset               : 0;
	z-index             : -1;
	background-image    : var(--background-image-body);
	background-repeat   : no-repeat;
	background-position : 50%;
	background-size     : contain;
}

h1, h2, h3, h4, header .greeting {
	font-family : var(--font-family-heading), sans-serif;
	font-weight : var(--font-weight-bolder);
	color       : var(--color-font);
	text-wrap   : pretty;
}

h1, h2, header .greeting {
	text-align   : center;
	line-height  : var(--line-height-heading);
	margin-block : var(--spacing-single);
	text-shadow  : 0 0 7px var(--color-heading-glow);
	font-size    : clamp(2.1rem, -3.25rem + 12vw, 2.75rem);
}

h1 {
	margin-block : var(--spacing-single) 0;
}

h1 + h2 {
	margin-block : 0 var(--spacing-single);
}

h3 {
	line-height  : var(--line-height);
	margin-block : var(--spacing-single);
}

p, q, blockquote, address {
	display   : block;
	margin    : var(--spacing-single) auto;
	max-width : 75ch;
	text-wrap : pretty;
}

blockquote::before {
	content : open-quote;
}

blockquote::after {
	content : close-quote;
}

ul {
	padding-inline-start : var(--spacing-single);
	list-style-type      : circle;
}

img {
	display       : block;
	max-width     : 100%;
	height        : auto;
	margin        : 0 auto;
	object-fit    : contain;
	border-radius : var(--border-radius-large);
}

a {
	color         : var(--color-link);
	border-radius : var(--border-radius-small);
}

a.img {
	display       : block;
	width         : fit-content;
	margin        : 0 auto;
	border-radius : var(--border-radius-medium);
}

a:focus-visible,
button:focus-visible {
	outline-offset : 2px;
	outline        : var(--outline-color-button) solid 4px;
}

small {
	font-size : smaller;
}

/* START CLASSES */

.hide {
	display : none !important;
}

.inline-block {
	display : inline-block;
}

.cancelled {
	display      : block;
	font-family  : var(--font-family-heading), sans-serif;
	font-size    : 1.17em;
	font-weight  : bold;
	line-height  : var(--line-height);
	color        : var(--color-hindu-traditional-red);
	margin-block : 1rlh;
}

.cancelled + h3 {
	margin-block-start : 0;
}

/* END CLASSES */

/* START BUTTONS */

.button {
	display             : inline-block;
	width               : fit-content;
	text-align          : center;
	text-decoration     : none;
	color               : var(--color-white);
	background-color    : var(--background-color-button);
	border-radius       : var(--border-radius-button);
	font-family         : var(--font-family-heading), sans-serif;
	font-weight         : var(--font-weight-bold);
	-webkit-box-reflect : var(--linear-gradient-reflect-button);
}

@media ( max-width : 768px ) {
	.button {
		display : block;
		width   : auto;
	}
}

/* END BUTTONS */

/* END GLOBALS */

/* START HEADER */

header {
	display    : flow-root;
	position   : relative;
	padding    : 0;
	margin     : .5rlh 0 1rlh 0;
	text-align : center;

	.greeting {
		font-size : 1.4em;
	}

	p {
		margin-block   : 0 2rlh;
		max-width      : 48ch;
		padding-inline : var(--spacing-single);
	}

	.note {
		font-style : italic;
	}

	.button {
		padding : 9px 2rlh;
		margin  : 0 0 .25rlh;
	}
}

/* END HEADER */

/* START AGENDA */

.agenda {
	position : relative;
	z-index  : 5;
	padding  : 0;
	margin   : var(--spacing-double) 0 var(--spacing-single) 0;

	h2 {
		margin    : 0;
		font-size : 1.5em;
	}

	ol {
		list-style-type      : none;
		padding-inline-start : 0;
		margin-block         : var(--spacing-single) 0;
		text-align           : left;

		li {
			margin-block-end : var(--spacing-single);
			background-color : var(--background-color-section);
			box-shadow       : var(--box-shadow-item);
			border-radius    : var(--border-radius-large);
		}
	}

	a {
		display               : grid;
		grid-template-columns : 7.25em 1fr;
		column-gap            : var(--spacing-single);
		padding               : var(--spacing-half) var(--spacing-single);
		border-radius         : var(--border-radius-large);
		text-decoration       : none;

		@media ( max-width : 440px ) {
			grid-template-columns : 1fr;
		}
	}

	span {
		text-decoration : underline;
	}

	time {
		font-weight : var(--font-weight-bold);
		color       : var(--color-font);
	}
}

/* END AGENDA */

/* START SECTION */

.gathering {
	display           : flow-root;
	position          : relative;
	z-index           : 5;
	padding           : 0;
	margin            : 0 0 var(--spacing-single) 0;
	border-radius     : var(--border-radius-large);
	border-width      : var(--border-width);
	border-style      : var(--border-style);
	border-color      : var(--border-color);
	background-color  : var(--background-color-section);
	box-shadow        : var(--box-shadow-section);
	scroll-margin-top : 1rlh;

	h3, p, ul, blockquote {
		margin-inline : var(--spacing-single);
	}

	.date-time-frequency {
		padding : 0;
	}

	p:last-child {
		/*margin-block-end : 0;*/
	}

	.location {
		font-style : italic;
	}

	.location a {
		display : block;
	}

	.more-info a, .donation a {
		display       : inline-block;
		padding-block : calc((var(--line-height-target) - 1lh) / 2);
	}

	.more-info a {
		overflow-wrap : anywhere;
	}

	.frequency, .date, .time {
		font-weight : var(--font-weight-bold);
		display     : inline-block;
	}

	.date {
		border-right       : 2px solid var(--background-color-body);
		padding-inline-end : 12px;
		margin-inline-end  : 7px;
	}

	.frequency {
		display            : block;
		margin-block-start : .15rlh;
		font-weight        : var(--font-weight-normal);
		font-style         : italic;
	}

	img {
		max-height    : 480px;
		object-fit    : cover;
		border-radius : var(--border-radius-large) var(--border-radius-large) 0 0;
	}

	img.golden-horizontal {
		width           : 100%;
		max-height      : 500px;
		object-position : 50% 36%;
	}

	.uncropped {
		max-height      : none;
		object-position : top;
	}

	.fill {
		object-fit : fill;
	}

	.img-padding {
		max-width : calc(100% - 40px);
		padding   : 20px;
	}

	@media ( max-width : 768px ) {
		.date-time-frequency {
			list-style-type : none;

			.frequency, .date, .time {
				display : list-item;
			}
		}

		.date {
			border             : none;
			padding-inline-end : 0;
			margin-inline-end  : 0;
			margin-block-end   : .15rlh;
		}

		.time {
			display          : block;
			margin-block-end : .15rlh;
		}

		.frequency {
			margin-block-start : 0;
		}
	}

}

section.alternate {
	padding      : var(--spacing-single) var(--spacing-single) 0;
	margin-block : 1rlh;

	h2 {
		margin : 0;
	}

	.gathering {
		margin-inline : calc(var(--spacing-single) * -1);
	}

	h2 + .gathering {
		margin-block-start : calc(var(--spacing-single) + 1rlh);
	}
}

/* END SECTION */

/* START FOOTER */

footer {
	text-align : center;
	margin     : 2rlh auto;

	.button {
		padding : 9px 2rlh;
	}

	small {
		display        : block;
		max-width      : 48ch;
		margin         : 1.5rlh auto;
		padding-inline : var(--spacing-single);
		text-wrap      : pretty;

		a {
			color : var(--color-font);
		}
	}

	@media ( max-width : 768px ) {
		.button {
			display       : block;
			width         : auto;
			margin-inline : 1rlh;
			margin-block  : .5rlh;
		}
	}
}

/* END FOOTER */

/* 360px;  */
/* 768px;  */
/* 1024px; */
/* 1366px; */
/* 1920px; */
