/*** atkinson-hyperlegible-regular - latin ***/
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/atkinson-hyperlegible-v10-latin-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/atkinson-hyperlegible-v10-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/atkinson-hyperlegible-v10-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/atkinson-hyperlegible-v10-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../fonts/atkinson-hyperlegible-v10-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/atkinson-hyperlegible-v10-latin-regular.svg#AtkinsonHyperlegible') format('svg'); /* Legacy iOS */
}

/*** hubot sans ***/
@font-face {
  font-family: 'Hubot Sans';
  src:
    url('../fonts/Hubot-Sans.woff2') format('woff2 supports variations'),
    url('../fonts/Hubot-Sans.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-stretch: 75% 125%;
}

html, body {
  --background: #18161d !important; /* violet-90 */
  --background-button: #c6cace; /* gray-cool-20 */
  --text-hover: #ffffff; /* white */
  --text-logo: #18161d; /* violet-90 */
  --text-body: #dfe1e2; /* gray-cool-10 */

  --dialog-background-color: none;
  --modal-overlay-backdrop-filter: none;
  --modal-overlay-background-color: #000000e4;

  --color: var(--text-body);
  --primary: var(--text-body);
  --h1-color: var(--text-body);
  --h2-color: var(--text-body);
  --h3-color: var(--text-body);
  --primary-hover: #ad00ffcc;

  --product-font-family: "Hubot Sans";
  --header-font-family: "Playfair Display";
	--font-family: "Atkinson Hyperlegible";

	--border-width: 0.2vw;
	--border-radius: 0.75em;
	--form-element-spacing-horizontal: 1.5rem;
	--form-element-spacing-vertical: 0.25rem;
	--font-size: 1em;
	--font-size-smaller: 0.95em;
	--font-size-smallest: 0.9em;
	--font-weight-lightest: 400;

  --menu-height: 4.5rem;
  --pop-height: 24em;
  --pop-margin: 2em;
  --pop-margin-top: 3em;
  --pop-margin-bottom: 2em;

  background: var(--background);
  color: var(--text-body);
  text-align: center;
  font-family: var(--font-family);
  /* font-size: 2vw; */ /* scale font and em unit with viewport width */
  overflow-x: hidden; /* hide any horizontal scrollbar */
  
  position: relative;
  min-height: 100vh;
}
@media (min-width: 1200px) { /* mobile */
	body {
		--font-size-smaller: 0.9em;
		--font-size-smallest: 0.8em;
		--font-weight-lightest: 300;
		--border-width: 0.125vw;

    --pop-margin: 4em;
    --pop-margin-top: 4em;
    --pop-margin-bottom: 6em;
	}
}

a:focus, a:active {
  color: inherit;
}

button {
  --box-shadow: none;
}
button:focus {
  --box-shadow: none;
}

.logo {
  position: absolute;
  display: inline-block;
  top: 1.25rem;
  left: 1.5rem;
}
a.logo {
  width: 2rem;
  height: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--header-font-family);
  font-size: 1.5em;
  color: var(--text-body);
}
a.logo div {
  margin-bottom: 0.1em;
}
a.logo:hover, a.logo:focus, a.logo:active {
  color: var(--text-hover);
}

.responsive article {
  width: 40em;
  margin: 0;
  padding: 0;
  background: none;
  box-shadow: none;

  margin: var(--pop-margin);
  margin-top: var(--pop-margin-top);
  margin-bottom: var(--pop-margin-bottom);
  min-height: var(--pop-height);
}

.responsive {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--menu-height));
  font-size: 0.9em;
  text-align: left;
}

.story {
  margin-top: 1em;
}

.title > h1 {
  margin: 0;
  flex-basis: 100%;
  line-height: 1em;

  /* adjust */
  color: #fff;
  font-family: var(--header-font-family);
  font-weight: 300;
  font-size: 3.5em;

  text-align: left;
}
.title > h2 {
  margin: 0;
  flex-basis: 100%;
  line-height: normal;

  /* adjust */
  color: #fff;
  font-family: var(--header-font-family);
  font-weight: 300;
  font-size: 1.1em;

  text-align: left;
}

.colon {
  font-family: var(--header-font-family);
  font-weight: 600;
  font-style: normal;
  font-size: 1.1em;
}

span.thing {
  font-variant: all-small-caps;
  font-size: 0.95em;
  letter-spacing: 0.025em;
}

a.thing:hover, a.thing:active, a.thing:focus {
  text-decoration: none;
  color: var(--text-hover);
}

p.thing {
  /* right align item */
  width: 90%;
  margin-left: auto;
}
a.thing {
  font-family: var(--product-font-family);
  letter-spacing: 0.025em;
}

ul.thing {
}
ul.thing li {
  padding-left: 1em;
  list-style: disclosure-closed;
}
ul.thing li:not(:last-child) {
  padding-bottom: 1em;
}
ul.thing li p {
  margin: 0 0 0 1em;
}

/* footer */
body > footer {
  font-variant: all-small-caps;
  letter-spacing: 0.1em;
  font-size: 0.9em;

  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0 1.5rem 1rem 0;
  text-align: right;
}

/* menu bar */
.menu {
  position: relative;
  text-align: left;
  height: var(--menu-height);
  background: var(--background);
}
.menu nav {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-variant: all-small-caps;
  letter-spacing: 0.1em;
  font-size: 0.9em;
}
.menu nav > a {
  background: none;
  border-radius: 0;
  margin: 0;
  padding: 0 0 0 1rem;
}
.menu nav > a:not(:last-child) {
  padding: 0 1rem 0 1rem;
  border-right: 1px solid #ffffffc0;
}
body a:hover, body a:focus {
  text-decoration: none;
  color: #ffffff;
}

.buttons {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

a.circle {
  /* invert */
  background: var(--background-button);
  color: var(--background);

  border-radius: 50%;
  overflow: hidden;

  width: 2em;
  padding: 0.25em;

  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
}
a.circle:focus, a.circle:hover {
  background: #ffffff;
  color: var(--background);
}
a.circle > svg {
  width: 100%;
  height: 100%;
}

h5 {
  margin: 0 0 0.5em 0;
  font-variant: all-small-caps;
  font-size: 1em;
  color: inherit;
  font-weight: normal;
}

.right {
  text-align: right;
}
.right > a {
  font-variant: all-small-caps;
  border-bottom: 2px dotted #ffffff60;
}

/* dialog */
dialog {
  font-size: 0.9em;
}
dialog article > header > h3 {
  color: var(--dialog-text-color);
  font-family: var(--header-font-family);
  font-size: 1.1em;
  margin: 0;
  margin-bottom: 1em;
  margin-top: 1em;
  font-weight: 400;
}
dialog article, dialog > article {
  /* for proper scrollbars and sizing */
  display: flex;
  flex-direction: column;
}
dialog article > div {
  /* for proper scrollbars and sizing */
  overflow-y: auto;
}
dialog article, dialog > article > * {
  background: var(--dialog-background-color);
  text-align: center;
}
dialog article p {
  color: var(--dialog-text-color);
}
dialog article p a {
  color: var(--dialog-text-color);
  text-decoration: underline;
}
dialog article > header {
  margin-bottom: 0;
  padding-bottom: 0;
  border: 0;
}
dialog article > footer {
  padding-top: 1em;
  margin-top: 0;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  border: 0;
}
dialog article > footer > button {
  width: auto;
}
dialog article > header button[rel="prev"] {
  margin: 0;
  padding: 0;
  float: right;
  display: block;
  width: 1rem;
  height: 1.6rem;
  border: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgb(136, 145, 164)' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  transition: opacity 0.2s ease-in-out;
}
dialog article > header button[rel="prev"]:hover {
  opacity: 1.0;
}
