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

:root {
	font-size: 12px;
	--color-text: rgba(255,255,255,0.95);
    --color-bg: #f58eb8;
	--color-link: #000000;
	--color-bg-date: rgb(96 56 178 / 48%);
	--color-link-hover: rgb(224 237 18);
	--color-border: rgba(255,255,255,0.7);
}

body {
	margin: 0;
	color: var(--color-text);
	background-color: var(--color-bg);
	font-family: "ocr-a-std", monospace;
	text-transform: uppercase;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.back-to-top {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	width: 30px;
	height: 30px;
	background: black;              /* black button */
	color: #f58eb8;                 /* pink arrow */
	font-family: "ocr-a-std", monospace;
	font-size: 18px;
	font-weight: 900;
	display: flex;                  /* perfect centering */
	align-items: center;            /* vertical center */
	justify-content: center;        /* horizontal center */
	border: none;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0,0,0,0.4);
	transition: transform 0.2s ease, background 0.2s ease;
	z-index: 1000;
}

.back-to-top:hover {
	transform: scale(1.2);
	background: #111;               /* subtle hover change */
}




.review {
  font-family: "tonos",sans-serif;
  	font-size: 18px;
    color:black;
    line-height: 26px;
    	text-transform: none;
}

/* Page Loader */
.js .loading::before,
.js .loading::after {
	content: '';
	position: fixed;
	z-index: 1000;
}

.js .loading::before {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--color-bg);
}

.js .loading::after {
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	margin: -30px 0 0 -30px;
	border-radius: 50%;
	opacity: 0.4;
	background: var(--color-link);
	animation: loaderAnim 0.7s linear infinite alternate forwards;

}

@keyframes loaderAnim {
	to {
		opacity: 1;
		transform: scale3d(0.5,0.5,1);
	}
}

a {
	text-decoration: none;
	color: var(--color-link);
	outline: none;
	cursor: pointer;
	font-size: 13px;
}

a:hover {
	color: var(--color-link-hover);
	outline: none;
	font-weight: 800;
}

/* Better focus styles from https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible */
a:focus {
	/* Provide a fallback style for browsers
	 that don't support :focus-visible */
	outline: none;
	background: lightgrey;
}

a:focus:not(:focus-visible) {
	/* Remove the focus indicator on mouse-focus for browsers
	 that do support :focus-visible */
	background: transparent;
}

a:focus-visible {
	/* Draw a very noticeable focus style for
	 keyboard-focus on browsers that do support
	 :focus-visible */
	outline: 2px solid red;
	background: transparent;
}

.unbutton {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	cursor: pointer;
}

.unbutton:focus {
	outline: none;
}

.frame {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-areas:
		"title"
		"back"
		"prev"
		"home"
		"demos"
		"contact"
		"art";
	gap: 30px;
	padding: 2rem;
}
.frame a {
	pointer-events: auto;
}


.frame__title {
	grid-area: title;
	font-size: 1.85rem;
	margin: 0;
	font-weight: inherit;
}

.frame__back    { grid-area: back; }
.frame__prev    { grid-area: prev; }
.frame__home    { grid-area: home; }
.frame__demos   { grid-area: demos; }
.frame__contact { grid-area: contact; }
.frame__art     { grid-area: art; }


.frame__demos {
	grid-area: demos;
	display: flex;
	gap: 1rem;
}

.title {
	font-weight: 400;
	font-size: clamp(2rem,8.5vw,8rem);
	text-align: center;
	margin: 14vh auto 5vh;
	display: flex;
	justify-content: center;
	width: min-content;
	border-bottom: 1px solid var(--color-border);
}

.title2 {
	font-weight: 400;
	font-size: clamp(2rem,8.5vw,8rem);
	text-align: center;
		margin: 3vh auto 5vh;
	display: flex;
	justify-content: center;
	width: min-content;
	border-bottom: 1px solid var(--color-border);
}

.title span::first-letter {
	opacity: 0.5;
}

.title2 span::first-letter {
	opacity: 0.5;
}

.subtitle {
	text-align: center;
	max-width: 70%;
	margin: 0 auto;
	font-size: 20px;
	line-height: 30px;
}

.card-grid {
	display: grid;
	margin: 10vh 0;
	grid-template-columns: 1fr;
	border-top: 1px solid var(--color-border);
}

.card:nth-child(3n - 1) {
	border-left: 1px solid var(--color-border);
	border-right: 1px solid var(--color-border);
}

.card {
	display: grid;
	grid-template-rows: auto 1fr auto;
	cursor: pointer;
	position: relative;
	min-height: 60vh;
	padding: 4vw;
	overflow: hidden;
	border-bottom: 1px solid var(--color-border);	
}

.card__img,
.card__img-wrap,
.card__img-inner {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.card__img,
.card__img-inner {
	background-size: cover;
	background-position: 50% 50%;
}

.card__img,
.card__img-wrap {
	overflow: hidden;
}

.card__img {
	z-index: -1;
	pointer-events: none;
	--columns: 0;
	--rows: 0;
}

.card img {
	width: 100%;
	aspect-ratio: 1 / 1;   /* forces square */
	object-fit: cover;     /* crops nicely */
	display: block;
}


.js .card__img {
	opacity: 0;
}



.card__img-inner {
	filter: brightness(0.6);
	width: calc(100% + (var(--columns) - 1) * 1px);
	height: calc(100% + (var(--rows) - 1) * 1px);
}

.card__date {
	display: flex;
	align-content: center;
	align-items: center;
	line-height: 1;
	position: relative;
}

.card__date::before {
	content: '';
	width: 15px;
	height: 15px;
	border: 1px solid var(--color-link);
	background: var(--color-bg-date);
	margin: 0 10px 4px 0;
}

.card__title {
	font-weight: 400;
	font-size: clamp(1.5rem,5vw,2.5rem);
}

.card__link {
	position: relative;
	font-size: 20px;
	color:pink;
}

.card__link::before {
	content: '+';
	margin-right: 10px;
}

.simple-quote {
  max-width: 700px;
  margin: 30px auto;
  padding: 30px;
  font-size: 16px;
  line-height: 26px;
  font-family: "tonos", sans-serif;
  font-style: italic; 
  color: #fff;
  background: rgba(238, 77, 155, 0.5);
  border-left: 6px solid #fff;
  border-radius: 12px;
}

.simple-quote .author {
  display: block;
  margin-top: 15px;
  font-size: 1rem;
  opacity: 0.7;
}




/* increase header size after 600px */
@media all and (min-width: 600px) {
    .blockquote h1 {
        font-size: 15px;
        line-height: 1.2;
   }

}

@media screen and (min-width: 33em) {
	.grid {
		grid-template-columns: repeat(2,1fr);
	}
}

@media screen and (min-width: 60em) {
	.frame {
		grid-template-columns: repeat(6, auto);
		grid-template-areas:
			"title title title title title title"
			"back prev home demos contact art";
		align-items: center;
		gap: 1.5rem;
	}

	.card-grid {
		grid-template-columns: repeat(3,1fr);
	}
	body #cdawrap {
	    justify-self: end;
	}
}
