@font-face {
	font-family: "RuneScape-UF";
	src: url("fonts/RuneScape-UF.woff2") format("woff2");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
	image-rendering: pixelated;
}

:root{
	--wrap-max: 980px;

	--card-max: 848px;
	
	--pad-x: 48px;
	--pad-top: 14px;
	
	--right-safe:88px;
	
	--text: #e9eef2;
	--muted: #b7c0c8;
}

*{ 
	box-sizing:border-box; }
html, body{ 
	height:100%; }

body{
	margin:0;
	font-family: "RuneScape-UF", sans-serif;
	color: var(--text);

	background: url("images/background.png") center top / cover no-repeat fixed;

	-webkit-font-smoothing: none;
	font-smooth: never;
	text-rendering: geometricPrecision;
	image-rendering: pixelated;
}

.warning {
	width: 60%;
	padding-right: 52px;
}

.card {
	width: min(100%, var(--card-max));
	margin:40px auto;
}

.cap {
	position: relative;
	width: 100%;
}

.cap__img {
	display: block;
	width: 100%;
	height: auto;
	image-rendering: pixelated;
}

.cap__overlay {
	position: absolute;
	inset: 0;
	padding: var(--pad-top) calc(var(--pad-x) + var(--right-safe)) 0 var(--pad-x);
	display:flex;
	flex-direction:column;
	gap: 10px;
	/*--outline: 2px dashed rgba(255,0,0,.6)*/
}

/* date n time's row... */
.cap__row--meta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	align-items: start;
}

.cap__toprow{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

/*
.cap__toprow {
		display: flex;
		justify-content: left;
		align-items: left;
		margin-left:14px;
		flex-wrap: wrap;
		gap: 0;
		transform:translateY(var(--meta-nudge-y));
	}
	*/

.cap__date,
.cap__time {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 20px;
	margin-top: 4px;
}

.cap__time {
	text-align:right;
}

.cap__meta {
	text-align: right;
}

/* for the title */
.cap__title {
	font-size: 18px;
	color: var(--muted);
	white-space:nowrap;
	overflow: hidden;
	text-overflow:ellipsis;
	margin-top: 32px;
}

.page {
	min-height: 100px;
	display: flex;
	flex-direction: column;
}

.content {
	flex: 1;
	max-width: var(--wrap-max);
	margin:0 auto;
	width: 100%;
	padding:16px 16px;
	align-items: center;
  justify-content: center;
}

.site-header{
	max-width: var(--wrap-max);
	margin: 0 auto;
	padding: 24px 16px 10px;
	display:flex;
	align-items:flex-end;
	justify-content:space-between;
	gap: 16px;
}

.email {
text-indent: 50px;
letter-spacing: 5px;}

.brand{
	display:flex;
	flex-direction:column;
	gap: 6px;
}

.brand__logo{
	height: 100%;
	width: 224px;
	image-rendering: pixelated;
}

.brand__tagline{
	color: var(--muted);
	font-size: 24px;
	letter-spacing: .3px;
}

.nav__arrow {
	margin: auto auto; 
	Height:25px; 
	float: left;
	}
	
.nav{
	display:flex;
	gap: 14px;
	flex-wrap:wrap;
	justify-content:flex-end;
}

.nav__link{
	color: var(--muted);
	text-decoration:none;
	font-size: 18px;
	padding: 6px 10px;
	border-radius: 8px;
	border: 1px solid rgba(255,255,255,.08);
	background: rgba(0,0,0,.18);
}

.nav__link:hover{
	color: var(--text);
	border-color: rgba(255,255,255,.18);
	background: rgba(0,0,0,.28);
}

.nav__link--active{
	color: var(--text);
	border-color: rgba(214,194,106,.35);
	box-shadow: 0 0 0 1px rgba(214,194,106,.3);
}

/* BODY */

.frame--body{
  /* 3-layer background: top, middle repeat, bottom */
  background-image:
    url("images/body_top.png"),
    url("images/body_mid.png"),
    url("images/body_bottom.png");

  background-repeat:
    no-repeat,
    repeat-y,
    no-repeat;

  background-position:
    top center,
    top center,
    bottom center;

  /* Make top/bottom stretch horizontally with the card */
  background-size:
    100% auto,
    100% auto,
    100% auto;
	
	/*min-height: 2000px;*/
}

.frame__content{
  padding: 8px 42px 14px 42px;   /* tune to your sprite */
  margin: 0;
}
.post { width: 100%; }
.post__body {
  width: 100%;
}

.post__body p,
.post__body li{
  font-size: 20px;
  line-height: 1.5;
  max-width: none;
  margin: 0 0 14px;
}

.foot__img {
	width: 100%;
	position: relative;
}
.foot__body {
	position: absolute;
	margin-top: -64px;
}

.post__foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 18px 16px;
  background: rgba(0,0,0,.18);
}

.post__tags{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

.frame__content pre{
  white-space: pre;
  tab-size: 2;
}

.frame__content ul{
  padding-left: 22px;  /* bullet indent */
  margin: 10px 0 14px;
}

.frame__content li{
  margin: 6px 0;
}
.frame__content h3{
  max-width: none;
  margin: 18px 0 10px;
}

.frame__content pre{
  margin: 14px 0;
  padding: 12px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: pre;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;     /* explicitly none */
}

.frame__content code{
  display:block;
  white-space: inherit;
  line-height: 1.5;
}

/*end of body*/
.site-footer{
	color: var(--muted);
	font-size: 20px;
	text-align:center;
	opacity: 0.35;
	padding: 24px 16px;
	max-width: var(--wrap-max);
	margin: 0 auto;
	width: 100%;
}

.frame__content blockquote{
  margin: 14px 0 0;
  padding: 12px 14px;
  overflow-wrap: break-word;
  max-width: none;     /* explicitly none */
  opacity: 30%;
  text-align: center;
}

/* phone */
@media (max-width: 640px){
	:root {
		--pad-x: 4.0%;
		--right-safe: 56px;
		--pad-top: 0;
		
		
	
		--meta-nudge-y:5px;
	}
	
.post { width: 100%; }
.post__body {
  width: 100%;
}

.post__foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 18px 16px;
  background: rgba(0,0,0,.18);
  max-width: 90%;
}
	
  .content{
    padding: 16px 8px;  /* tighter */
  }

	.card {
		width: min(100%, var(--card-max));
		margin: 16px auto;
	}

	.warning {
		width: 42%;
		padding-right: 24px;
	}
	
	.cap__img {
		width: 100%;
	}

	.cap__overlay{
		padding: var(--pad-top) calc(var(--pad-x) + var(--right-safe)) 0 var(--pad-x); /* no extra right reservation */
	}
	
	.cap__toprow {
		justify-content: space-between; /* keep date left, time right */
    margin-left: 0;                       /* stop shifting the whole row */
    transform: translateY(5px);        
	}
	
	.cap__date,
  .cap__time{
    font-size: 8px;
    letter-spacing: 2px;           /* 3px is a bit much on tiny screens */
  }
	

	.cap__date::after{
		content: " . . . ";
	}
	
	.cap__title {
		transform: translateY(10px);   /* move title lower */
		margin-top: 4px;                /* don't double-offset */
		text-align: right;
		margin-right: 0;
		padding-right: 56px; 
font-size: 12px;		
	}
		
	.brand__logo { width: 180px; }
	
	.brand__tagline{
		color: var(--muted);
		font-size: 18px;
		letter-spacing: .3px;
	}
	
	.nav__arrow {
	float: left;	
	margin: auto auto; 
	Height:10px;
	}
	
	.nav {
		/*flex-direction: column;*/   /* THIS is the key */
		align-items: flex-end;    /* keeps them right-aligned */
		gap: 10px;
		padding-right: 0px;
	}
	
	.nav__link {
		display: flex;
		justify-content: flex-end;
		width: 120px;
		font-size: 14px;
		padding: 5px 8px;
		text-align: right;
	}
	
	.frame__content{
	  padding: 18px 18px 20px 20px; /* keep this, it’s fine */
	}
	
	

  .frame__content p,
  .frame__content li{
    font-size: 14px;
    line-height: 1.55;
  }

  .frame__content code{
    font-size: 12px;
  }

	.frame__content pre{
	  margin-left: 12px;
	  margin-right: 24px;
	  padding: 12px 23px;
	  overflow-x: auto;          /* scroll horizontally */
	  overflow-y: hidden;
	  white-space: pre;          /* never wrap */
	  -webkit-overflow-scrolling: touch;
	  
	}

	.frame__content code{
	  white-space: inherit;
	  display: block;            /* keeps layout stable */
	  font-size: 13px;           /* mobile-friendly */
	  line-height: 1.5;
	}

	.frame__content pre::-webkit-scrollbar{
	  height: 10px;
	}
	
	
.site-footer{
	color: var(--muted);
	font-size: 20px;
	text-align:center;
	opacity: 0.35;
	padding: 24px 16px;
	max-width: var(--wrap-max);
	margin: 0 auto;
	width: 80%;
}

}