:root {
	--pine: #17291d;
	--moss: #354b2e;
	--fern: #64724a;
	--lichen: #a9ad7a;
	--bone: #e2dfc8;
	--ink: #111510;
	--rust: #8b3e2b;
}

@font-face {
	font-family: "Alice Wonderland";
	src: url("fonts/Alice_in_Wonderland_3.ttf") format("truetype");
	font-display: swap;
}

@font-face {
	font-family: "Faith Collapsing";
	src: url("fonts/forgore.otf") format("opentype");
	font-display: swap;
}

@font-face {
	font-family: "Olde English";
	src: url("fonts/OldeEnglish.ttf") format("truetype");
	font-display: swap;
}

* { box-sizing: border-box; }

html {
	min-height: 100%;
	height: 100%;
	overflow: hidden;
	background: var(--pine);
}

body {
	height: 100%;
	min-height: 100vh;
	margin: 0;
	overflow: hidden;
	color: var(--bone);
	background-color: var(--pine);
	background-image: url("assets/bg.gif");
	background-repeat: repeat;
	font-family: "Alice Wonderland", Georgia, serif;
}

body::before,
body::after {
	position: fixed;
	z-index: 5;
	left: 0;
	width: 100%;
	height: 90px;
	background-image: url("assets/laceupdown.png");
	background-position: center;
	background-repeat: repeat-x;
	background-size: auto 90px;
	content: "";
	pointer-events: none;
}

body::before { top: -20px; }
body::after {
	bottom: -20px;
	transform: rotate(180deg);
}

* {
	cursor: url('assets/cursoridea-cursor.png') 4 4, auto !important;
}

.page-shell {
	display: flex;
	flex-direction: column;
	position: relative;
	z-index: 1;
	width: min(820px, calc(100% - 40px));
	min-height: 0;
	margin: 90px auto 70px;
	padding: 18px 20px;
	border-width: 9px;
	border-style: solid;
	border-image: url("assets/mainborder.png") 11 fill round;
}

.page-shell::before {
	position: absolute;
	inset: 10px;
	
	content: "";
	pointer-events: none;
}

.image-slot {
	border-width: 9px;
border-style: solid;

}

.image-slot::after {
	position: absolute;
	height: 480px;
    max-width:800px;
    padding: 12px 15px;
	inset: 8px;

	pointer-events: none;
}

.credits-panel,
.credits-panel a {
	color: var(--moss);
}

.credits-panel {
	text-align: center;
}
.banner {
	display: grid;
	order: 1;
	min-height: 100px;
	align-items: center;
	margin: 0 0 10px;
	border-width: 9px;
	border-style: solid;
	border-image: url("assets/box.png") 13 fill round;
	background-color: transparent;
}

.banner-copy {
	position: relative;
	z-index: 1;
	padding: 12px 22px;
	color: var(--pine);
	text-align: center;
	text-shadow: 1px 1px 0 rgba(226, 223, 200, .8);
}

.eyebrow {
	display: block;
	margin-bottom: 2px;
	font-family: "Alice Wonderland", "Special Elite", monospace;
	font-size: 9px;
	letter-spacing: 2px;
	text-transform: uppercase;
    color: var(--fern);
}

h1 {
	margin: 0;
	font-size: clamp(25px, 6vw, 38px);
	font-family: "Alice Wonderland", "IM Fell English", Georgia, serif;
	font-weight: 400;
	letter-spacing: 1px;
    color: var(--fern);
}

h3 {
	margin: 0;
	font-size: clamp(25px, 6vw, 38px);
	font-family: "Olde English", "IM Fell English", Georgia, serif;
	font-weight: 400;
	letter-spacing: 1px;
    color: var(--moss);
}

.story-panel {
	order: 3;
	position: relative;
	height: 480px;
    max-width:800px;
    padding: 12px 15px;
	border-width: 9px;
	border-style: solid;
	border-image: url("assets/box.png") 13 fill round;
	background-color: transparent;
}

.about-photo-frame {
	position: absolute;
	top: 18px;
	left: 18px;
	width: 230px;
	height: 295px;
}

.about-photo-placeholder,
.about-photo-frame img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.about-photo-placeholder {
	top: 23%;
	left: 24%;
	width: 53%;
	height: 49%;
	border-radius: 50%;
	background: var(--moss) url("assets/about-photo.png") center / cover no-repeat;
	box-shadow: 0 0 0 2px rgba(23, 41, 29, .45);
}

.about-photo-frame img {
	z-index: 1;
	object-fit: contain;
}

.about-info-box {
	position: absolute;
	top: 42px;
	left: 270px;
	width: min(500px, calc(100% - 290px));
	height: 325px;
}

.about-info-box > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: fill;
}

.about-info-content {
	position: absolute;
	top: 18%;
	left: 16%;
	width: 68%;
	height: 64%;
	color: var(--moss);
	font-family: "Olde English", Georgia, serif;
	font-size: 17px;
	line-height: 1.35;
	text-align: center;
}

.about-info-content h2 {
	margin: 0 0 12px;
	font-family: "Olde English", Georgia, serif;
	font-size: 30px;
	font-weight: 400;
}

.about-info-content p {
	margin: 5px 0;
}

.about-info-content strong {
	font-family: "Faith Collapsing", Georgia, serif;
	font-size: 13px;
}

.journal-document,
.journal-page {
	height: 100%;
	min-height: 100%;
	overflow: hidden;
}

.journal-page .journal-panel {
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-gutter: stable;
	scrollbar-width: thin;
	scrollbar-color: var(--lichen) rgba(245, 255, 217, 0.75);
}

.journal-entries {
	padding: 10px 18px;
}

.journal-page .journal-panel::-webkit-scrollbar {
	width: 12px;
}

.journal-page .journal-panel::-webkit-scrollbar-track {
	background: rgba(23, 41, 29, .75);
	border-left: 1px solid rgba(226, 223, 200, .25);
}

.journal-page .journal-panel::-webkit-scrollbar-thumb {
	min-height: 48px;
	border: 2px solid var(--pine);
	border-radius: 2px;
	background: var(--lichen);
}

.journal-page .journal-panel::-webkit-scrollbar-thumb:hover {
	background: var(--bone);
}

.journal-entry time {
  color: var(--fern);
  font-family: "Faith Collapsing", Georgia, serif;
  font-size: 11px;
}

.journal-entry-heading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
}

.journal-entry-heading img {
	width: 120px;
	height: 120px;
	object-fit: contain;
}

.journal-entry p {
  color: var(--lichen);
  font-family: "Olde English", Georgia, serif;
  font-size: 18px;
  line-height: 1.5;
}

.story-copy {
	position: relative;
	z-index: 2;
	width: calc(100% - 410px);
	margin: 22px 28px 0 auto;
	color: var(--fern);
	font-family: "Olde English", "IM Fell English", Georgia, serif;
	font-size: 18px;
	line-height: 1.35;
	text-align: center;
}

.story-copy p {
	width: min(100%, 290px);
	margin: 0 0 0 auto;
}

.story-divider {
	width: min(100%, 290px);
	height: 42px;
	margin: 13px 0 13px auto;
	background-image: url("assets/mothdivider.png");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 100% 100%;
}

.gothic-calendar {
	position: absolute;
	top: 22px;
	left: 20px;
	z-index: 3;
	width: 185px;
	padding: 13px 11px 15px;
	border: 1px solid rgba(100, 114, 74, .7);
	color: var(--fern);
	font-family: "Faith Collapsing", "Special Elite", monospace;
	text-align: center;
	transform: rotate(-2deg);
}

.calendar-kicker,
.calendar-year,
.calendar-note {
	font-size: 15px;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.gothic-calendar h2 {
	margin: 15px 0 0;
	font-family: "Olde English", Georgia, serif;
	font-size: 33px;
	font-weight: 400;
	line-height: 1;
}

.calendar-year { margin: 4px 0 9px; }

.calendar-weekdays,
.calendar-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 3px;
	font-size: 10px;
}

.calendar-weekdays {
	margin-bottom: 4px;
	color: var(--moss);
}

.calendar-days span {
	position: relative;
	min-height: 17px;
}

.calendar-marked {
	color: var(--bone);
}

.calendar-marked::after {
	position: absolute;
	top: -2px;
	left: 50%;
	width: 21px;
	height: 21px;
	border: 1px solid var(--rust);
	border-radius: 50%;
	content: "";
	transform: translateX(-50%);
}

.calendar-note {
	margin-top: 9px;
	font-family: "Faith Collapsing", Georgia, serif;
	font-size: 15px;
	letter-spacing: 0;
	text-transform: none;
}

.calendar-tree {
	position: absolute;
	top: 40px;
	left: 240px;
	z-index: 3;
	width: 155px;
	height: 255px;
	object-fit: contain;
}

.story-stamp {
	position: absolute;
	right: 20px;
	bottom: 0px;
	z-index: 20;
	width: 85px;
	height: 85px;
	padding-top: 26px;
	border: 1px solid var(--moss);
	color: var(--moss);
	font-family: "Faith Collapsing", "Special Elite", monospace;
	font-size: 29px;
	line-height: 18px;
	text-align: center;
	transform: rotate(-8deg);
}

.story-stamp span { font-size: 13px; letter-spacing: 1px; }

.stamp-carousel {
	position: relative;
	width: 100%;
	margin-top: -25px;
	z-index: 6;
	height: 92px;
	overflow: hidden;
	background: transparent;
}

.stamp-track {
	display: flex;
	width: max-content;
	height: 100%;
	align-items: center;
	gap: 24px;
	padding: 7px 18px;
	animation: stamps-left-to-right 22s linear infinite;
}

.stamp-track img {
	display: block;
	width: 96px;
	height: 96px;
	flex: 0 0 86px;
	object-fit: contain;
}

.copyright-divider {
	width: min(100%, 290px);
	height: 40px;
	margin: 0 auto 3px;
	background: url("assets/runrabbir.png") center / 100% 100% no-repeat;
}

.copyright {
	display: block;
	color: var(--moss);
	font-family: "Faith Collapsing", "Special Elite", monospace;
	font-size: 9px;
	letter-spacing: 1px;
	text-align: center;
	text-transform: uppercase;
}

@keyframes stamps-left-to-right {
	from { transform: translateX(-50%); }
	to { transform: translateX(0); }
}

.portrait {
	position: absolute;
	z-index: 10;
	width: 154px;
	height: 154px;
	display: block;
	object-fit: contain;
	object-position: center;
	visibility: visible;
	opacity: 1;
	transition: transform .25s ease;
}

.portrait--top {
	top: -15px;
	left: -35px;
	width: 180px;
	height: 180px;
	transform: rotate(18deg);
}
.portrait--left {
	bottom: -35px;
	left: -66px;
	width: 190px;
	height: 190px;
    transform: rotate(330deg);
}
.portrait--right {
	top: 226px;
	right: -170px;
	width: 340px;
	height: 340px;
}

.portrait--top:hover { transform: rotate(24deg); }
.portrait--left:hover { transform: rotate(336deg); }
.portrait--right:hover { transform: rotate(-6deg); }

.site-nav {
	display: flex;
	order: 2;
	position: relative;
	z-index: 4;
	min-height: 43px;
	justify-content: center;
	gap: 25px;
	align-items: center;
	margin: 0 0 7px;
	border-width: 9px;
	border-style: solid;
	border-image: url("assets/box.png") 11 fill round;
	font-family: "Special Elite", monospace;
	font-size: 10px;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.site-nav a {
	color: var(--lichen);
	text-decoration: none;
	transition: color .2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--lichen); }

@media (max-width: 700px) {
	.page-shell {
		width: calc(100% - 28px);
		min-height: 0;
		margin: 62px auto 50px;
		padding: 14px 12px;
	}

	.story-panel {
		min-height: 400px;
		margin-right: -8px;
		margin-left: -8px;
	}
	.about-photo-frame {
		top: 12px;
		left: 12px;
		width: 175px;
		height: 225px;
	}
	.about-info-box {
		top: 250px;
		left: 12px;
		width: calc(100% - 24px);
		height: 220px;
	}
	.story-copy {
		width: calc(100% - 240px);
		margin-top: 12px;
		margin-right: 16px;
		font-size: 14px;
	}
	.story-divider {
		height: 30px;
		margin: 8px 0 8px auto;
	}
	.gothic-calendar {
		top: 16px;
		left: 12px;
		width: 150px;
		padding: 10px 8px 11px;
	}
	.gothic-calendar h2 { font-size: 25px; }
	.calendar-tree {
		top: 64px;
		left: 190px;
		width: 95px;
		height: 155px;
	}
	.stamp-carousel {
		width: 100%;
		margin-top: -18px;
		height: 78px;
	}
	.copyright-divider { height: 18px; }
	.copyright { font-size: 6px; }
	.stamp-track {
		gap: 18px;
		padding: 5px 12px;
	}
	.stamp-track img {
		width: 96px;
		height: 96px;
		flex-basis: 96px;
	}
	.portrait { width: 108px; height: 108px; }
	.portrait--top {
		top: -28px;
		left: -28px;
		width: 125px;
		height: 125px;
	}
	.portrait--left {
		bottom: -33px;
		left: -39px;
		width: 140px;
		height: 140px;
	}
	.portrait--right {
		top: 198px;
		right: -95px;
		width: 220px;
		height: 220px;
	}
}
